The maximum or minimum of a quadratic function is found at the vertex of its graph. Let us find the maximum of .
Since the coefficient of is negative, this graph is a downward-opening parabola. When it opens downward, the vertex is the highest point of the graph, where the function attains its maximum (there is no lower bound, so no minimum).
We find the vertex by completing the square: , so the vertex is . Since is times a square, it is always at most , and it is largest when . So the maximum value is taken at .
In general has, when (opening downward), a maximum at , and when (opening upward), a minimum at . Whether it is a maximum or a minimum depends only on the sign of the coefficient of . The large dot on the graph is the vertex , where the maximum is attained.