Algebra
Completing the Square Explained
Completing the square adds the term needed to turn x^2 + bx into a perfect-square binomial. The method works because the same amount is added to both sides of an equation.
Reviewed
The missing term
Expanding (x + p)^2 gives x^2 + 2px + p^2. To match x^2 + bx, choose p = b/2, so the required constant is (b/2)^2.
This pattern applies directly when the coefficient of x^2 is 1. If it is not 1, divide the equation by that coefficient or factor it from the quadratic terms first.
x^2 + bx + (b/2)^2 = (x + b/2)^2Worked example 2
Write x^2 - 8x + 3 in vertex form
Add and subtract 16 inside the expression.
x^2 - 8x + 16 - 16 + 3(x - 4)^2 - 13
Result: y = (x - 4)^2 - 13, with vertex (4, -13)
A method that also works when a is not 1
For 2x^2 + 12x + 7, factor 2 from the x terms before choosing the completing term.
- Factor the quadratic coefficient
2(x^2 + 6x) + 7 - Complete the square inside the parentheses
2(x^2 + 6x + 9 - 9) + 7 - Collect the constant terms
2(x + 3)^2 - 18 + 7 - Read the vertex form
2(x + 3)^2 - 11, so the vertex is (-3, -11)
Adding and subtracting 9 inside a factor of 2 changes the outside constant by 18, not 9.
Solving an equation
Move the constant term away from the x terms, add the completing term to both sides, factor the left side, and take both square roots. The plus-or-minus step is essential because positive and negative numbers can have the same square.
- Isolate x^2 + bx.
- Add (b/2)^2 to both sides.
- Rewrite the left side as a squared binomial.
- Take both square roots and isolate x.
Worked example 1
Solve x^2 + 6x - 7 = 0
Complete the square on x^2 + 6x.
x^2 + 6x = 7Add (6/2)^2 = 9 to both sides(x + 3)^2 = 16x + 3 = +/-4
Result: x = 1 or x = -7
Where the method usually goes off track
- Using b^2/2 instead of (b/2)^2.
- Adding the completing term to only one side of an equation.
- Taking a square root without including both positive and negative branches.
Questions about completing the square
Can every quadratic be completed to a square?
Yes, provided the quadratic coefficient is nonzero. The result may include fractions.