The maximum or minimum of a quadratic function is found at the vertex of its graph1. Let us find the maximum of .
Since the coefficient of is negative, this graph is a downward-opening parabola. The vertex is then the highest point, where the function attains its maximum. There is no lower bound, so no minimum.
So the vertex is . Since is times a square, it is always at most , and it is largest when . The maximum value is taken there.
| Method | Computation | Result |
|---|---|---|
| Completing the square | vertex | |
| Vertex formula | ||
| Calculus | , and |
Completing the square finds the vertex from the shape of the expression; differentiating finds it from where the slope is .
| Sign of in | At |
|---|---|
| maximum | |
| minimum |
Whether it is a maximum or a minimum depends only on the sign of the coefficient of .
One case deserves care: when is restricted to an interval. If the vertex lies outside it, the largest and smallest values occur at the endpoints instead. Take this same function on .
| Role | ||
|---|---|---|
| minimum | ||
| maximum | ||
| vertex, outside the interval |
With a restricted domain, always check whether the vertex is inside it.
To maximize the area of a rectangle of perimeter : with height the width is , so the area is , whose vertex is at . The area is greatest, at , when the rectangle is the by square.
The large dot on the graph is the vertex, where the maximum is attained.