first of all, you should have a mental picture of the graph of y (a parabola with vertex up)

using calculus ...

find y' , set y' = 0 to find the x-value of the vertex (the maximum).

the maximum value is the value of y at that value of x.

using algebra ...

x-value of the vertex = -b/(2a)

using calculus