Dear learner,
For maximum, we have to take x=-b/2a, and if you put x=-b/2a in equation y= ax^2 +bx +c that will give you max value which is -b^2/4a +c.
Best wishes