Completing the square, step by step
How to complete the square to solve x² + 6x − 7 = 0 and to find a parabola’s vertex, with the picture of why it works.
Completing the square rewrites x² + bx as a perfect square, (x + b/2)², minus a little bit. It's how the quadratic formula is built, and how you find a parabola's vertex.
The key fact
x² + bx + (b/2)² = (x + b/2)²
Picture it: an x-by-x square plus a strip of area bx, cut in half and placed on two sides. The missing corner is (b/2)²; adding it "completes the square".
Solving an equation
Solve x² + 6x − 7 = 0.
- x² + 6x = 7 (move the number over)
- Half of 6 is 3, and 3² = 9. Add 9 to both sides: x² + 6x + 9 = 16.
- (x + 3)² = 16
- x + 3 = ±4, so x = 1 or x = −7.
Check: 1 + 6 − 7 = 0 ✓ and 49 − 42 − 7 = 0 ✓
Finding the vertex
y = x² − 4x + 1. Half of −4 is −2; (−2)² = 4. Add and subtract 4: y = (x² − 4x + 4) − 4 + 1 = (x − 2)² − 3. The vertex is (2, −3), the lowest point of the parabola.
If there's a number in front of x²
Divide everything by it first (for an equation), or factor it out of the x-terms (for a function), then complete the square as above.
Common mistakes
- Adding (b/2)² to one side only.
- Forgetting the ± when taking the square root, and losing a solution.
Practice it free
Watch the full lesson and try questions with new numbers every time, with the worked steps shown if you get one wrong.