Back to courseLesson 13 of 14

Completing the square

What you'll learn

Literally complete a square: fold x² + bx into a square shape missing one corner, and solve from there.

Some quadratics won't factor nicely — x² + 6x + 2 = 0 has no integer pair with sum 6 and product 2. The rescue is a technique with an unusually honest name: we are literally going to complete a square.

The picture first

(b/2)x(b/2)xx² + bx, with bx cut in half(b/2)²x + b/2x + b/2a square, missing one corner
x² + bx is almost the square (x + b/2)² — it's short exactly the (b/2)² corner. Add that corner to both sides of the equation and the left side becomes a perfect square.

Draw x² as a square and bx as a rectangle. Cut the rectangle into two strips of width b/2 and wrap them around two sides of the square. The result is almost a bigger square of side x + b/2 — it's missing exactly one corner piece of area (b/2)². So:

x2+bx+(b2)2=(x+b2)2x^2 + bx + \left(\tfrac{b}{2}\right)^2 = \left(x + \tfrac{b}{2}\right)^2

Add the missing corner and the expression becomes a perfect square — the pattern from the special-products lesson, now used as a tool.

Solving with it

Solve x² + 6x + 2 = 0. Here b = 6, so the magic corner is (6/2)² = 9.

StepWork
Move the constant awayx² + 6x = −2
Add the corner to both sidesx² + 6x + 9 = 7
The left side is now a square(x + 3)² = 7
Take ± the square rootx + 3 = ±√7
Finishx = −3 ± √7

Two exact solutions, from a trinomial that refused to factor. Note the ±: both √7 and −√7 square to 7, and forgetting the negative branch silently discards half the answers.

Vertex form, for free

The same manipulation rewrites y = x² + 6x + 2 as y = (x + 3)² − 7. That's vertex form: the parabola's lowest point sits at (−3, −7), readable directly. One technique, two payoffs — exact solutions and the graph's turning point.

Why this matters

Completing the square is the rare method that always works — no luck with factor pairs required. Run it one time on the fully general equation ax² + bx + c = 0 and out comes a formula you can reuse forever. That's the next lesson, and it's the finale of the course.

Check your understanding

Question 1 of 2

To complete the square on x² + 10x, you add:

Next lesson