Example 1: Complete the square to find the vertex
Rewrite y = x² + 10x + 7 in vertex form and state the minimum value of the function.
- y = x² + 10x + 7
Show solution
- Take half of the x-coefficient: half of 10 is 5. Square it: 5² = 25.
Half of b is the number whose square completes the pattern x² + 2px + p² = (x + p)².
- Add and subtract 25 so the function does not change: y = (x² + 10x + 25) - 25 + 7.
Adding 25 and subtracting 25 is adding zero. The grouping is the whole trick.
- Factor the grouped part as a perfect square: x² + 10x + 25 = (x + 5)², so y = (x + 5)² - 18.
- Read off the vertex from y = a(x - h)² + k: x + 5 is x - (-5), so h = -5 and k = -18. The vertex is (-5, -18) and the axis of symmetry is x = -5.
The sign flips: a plus inside the parentheses means a negative h.
- The leading coefficient is 1, which is positive, so the parabola opens upward and -18 is the minimum value.
For a maximum question you would need a negative a.
- Check by expanding: (x + 5)² - 18 = x² + 10x + 25 - 18 = x² + 10x + 7, which is the original.
Answer: y = (x + 5)² - 18, with minimum value -18 at x = -5