x² + 10x + 7
Worked example · Algebra
Completing the square, from scratch
Turn x² + 6x + 2 into (x + 3)² − 7—with every move shown and every rule explained.
Start with the pattern
What number belongs inside the square?
Why: In (x + h)², the middle term is 2hx. So the coefficient 6 tells us what h must be.
See why the pattern works
A square with side length x + h naturally splits into four pieces. Change h and watch every term change with it.
The identity
The middle number forces the last number
The two rectangles contribute hx + hx = 2hx. The corner contributes h². That is why halving the x-coefficient and then squaring it is not a trick—it rebuilds the missing corner.
Complete any square
Change the coefficients. The page completes the square, identifies the vertex, and plots the same expression in its more useful form.
Vertex form
- 1
- Half the effective x-coefficient: 6 ÷ 2 = 3
- 2
- Square that half: 3² = 9
- 3
- Add and subtract the needed amount: +9 − 9 = 0
- ✓
- Vertex: (−3, −7)
y = x² + 6x + 2
same curve, new formClimb the practice ladder
Say the half, the square, and the useful zero aloud before revealing each answer.
x² − 8x + 5
x² + 5x + 1
2x² + 8x + 6
Catch the common slips
Open each warning and use it as a ten-second self-check.
“I added the square number, but forgot to subtract it.”
You changed the expression. The useful move is always +h² − h², because that totals zero.
“I halved b even though the x² coefficient was not 1.”
Normalize first. Factor the leading coefficient from the x² and x terms, or use h = b/(2a).
“I read the vertex of (x + 3)² − 7 as (3, −7).”
The inside sign flips. The bracket reaches zero when x = −3, so the vertex is (−3, −7).
“My answer looks right, so I skipped the check.”
Expand back. It takes seconds and proves the new form equals the original for every x.
Feynman finish
Teach it back
If you can explain these five ideas without looking, you can operate the method—not just imitate it.