Completing the square
The rule. Completing the square rewrites a quadratic so it contains a perfect square. For x2 + bx, take HALF of b, square it, and add (b/2)2, because x2 + bx + (b/2)2 equals (x + b/2)2. This turns standard form into vertex form a(x - h)2 + k, which shows the vertex (h, k) at a glance. If the leading coefficient a is not 1, factor a out of the x2 and x terms first. Whatever you add to build the square must be balanced — subtracted back in an expression, or added to both sides of an equation. Solving this way finishes with a plus-or-minus square root, so you get two solutions.
How to approach it
Start here. Decide the goal: rewriting into vertex form, finding a vertex, or solving an equation — and check whether the leading coefficient is 1.
Plan
- If a is not 1, factor a out of the x2 and x terms.
- Take half of b and square it to get (b/2)2.
- Add (b/2)2 to form the perfect square (x + b/2)2, and balance it.
- Read the vertex, or take the square root of both sides with plus-or-minus to solve.
Work it
- Build the perfect-square trinomial and fold it into (x + b/2)2.
- Finish the rewrite or the solve.
Check yourself. Did you halve b before squaring, keep the expression or equation balanced, and read the vertex x with the opposite sign of the number inside the parentheses?
Worked examples
Worked example 1
Rewrite x2 + 8x + 10 in vertex form.
We complete the square on x2 + 8x. Half of 8 is 4, and 4 squared is 16, so 16 is the constant that builds the square.
Plan
- Take half of the x-coefficient, then square it, to get 16.
- Add and subtract 16 so the value does not change.
- Group the first three terms into a perfect square.
- Combine the leftover constants.
| x2 + 8x + 10 = x2 + 8x + 16 - 16 + 10 | add and subtract (8/2)2 = 16 |
| = (x + 4)2 - 16 + 10 | group the perfect-square trinomial |
| = (x + 4)2 - 6 | combine -16 and 10 |
Check. Expanding (x + 4)2 - 6 gives x2 + 8x + 16 - 6 = x2 + 8x + 10, the original. The vertex is (-4, -6).
Answer: x2 + 8x + 10 = (x + 4)2 - 6
Worked example 2
Rewrite 2x2 + 12x + 5 in vertex form.
The leading coefficient is 2, so we factor 2 out of the x2 and x terms first, then complete the square inside the parentheses.
Plan
- Factor 2 from the x2 and x terms.
- Take half of 6 and square it to get 9; add and subtract 9 inside.
- Group the perfect square and distribute the 2 onto the -9.
- Combine the leftover constants.
| 2x2 + 12x + 5 = 2(x2 + 6x) + 5 | factor 2 from the x-terms |
| = 2(x2 + 6x + 9 - 9) + 5 | add and subtract (6/2)2 = 9 inside |
| = 2(x + 3)2 - 18 + 5 | group the square; distribute 2 onto -9 |
| = 2(x + 3)2 - 13 | combine constants |
Check. Expand 2(x + 3)2 - 13 = 2(x2 + 6x + 9) - 13 = 2x2 + 12x + 18 - 13 = 2x2 + 12x + 5, the original. The vertex is (-3, -13).
Answer: 2x2 + 12x + 5 = 2(x + 3)2 - 13
Common mistakes
Not halving before squaring
Adds the wrong constant to complete the square — using b2 (squared without halving), b/2 (halved without squaring), or b itself, instead of (b/2)2. For x2 + 6x the correct constant is (6/2)2 = 9.
Not balancing the added constant
Adds (b/2)2 to make the square but forgets to compensate — not subtracting it back in an expression, or not adding it to both sides of an equation. This throws off the constant k.
Wrong sign of h in the vertex
Reads the vertex x straight off the parentheses, so (x + 3)2 + k is misread as vertex x = 3. Because vertex form is (x - h), x + 3 means h = -3.
Ignoring the leading coefficient
When a is not 1, forgets to factor a out of the x2 and x terms before completing the square, or mishandles it while doing so. For 2x2 + 8x + 3, factor first: 2(x2 + 4x) + 3.
Related lessons
- Before this: Expand binomials / FOIL
- Before this: Factor quadratics
Practice this until it sticks
The adaptive tutor has 5 practice questions on this skill, names the exact mistake when you miss one, and gives you a fresh problem to confirm the fix. It is part of the Digital SAT program: $59 once, 12 months of access, no renewal.
See the Digital SAT programEnroll