To find the minimum or maximum of a quadratic we complete the square expressing the function in the form
Ifthe minimum will be where
so
and the minimum is at
Ifthe maximum will be where
so
and the maximum is at

For example, to find the minimum ofcomplete the square to get
then the minimum is at
To find the maximum ofcomplete the square to get
then the maximum is at