Completing the square is simplest when x2 has coefficient 1. Divide every term by 2. Dividing both sides by a nonzero number keeps the same solutions.
x2+4x−5=0
2
Move the constant term
Add 5 to both sides so the x terms stand alone on the left.
x2+4x=5
3
Add the square of half the x coefficient
Half of 4 is 2, and 22=4. Adding 4 turns x2+4x into the perfect square x2+4x+4. Add the same 4 to the right side to keep the equation balanced.
x2+4x+4=9
4
Write the left side as a square
Factor the perfect square. The equation now says that x+2 is a number whose square is 9.
(x+2)2=9
5
Take both square roots
A positive number has two square roots, so x+2=3 or x+2=−3. Writing only +3 would lose a solution.
x+2=±3
6
Solve each case and check
Subtract 2 in each case. Both values check in the original equation, since 2(1)2+8(1)−10=0 and 2(−5)2+8(−5)−10=50−40−10=0.
x=1 or x=−5
7
Read the vertex form
The same steps rewrite y=2x2+8x−10 in vertex form. Its vertex is (−2,−18), the lowest point of the parabola, halfway between the x-intercepts −5and 1.
2x2+8x−10=2(x+2)2−18
Result
x=1 or x=−5. In vertex form, 2x2+8x−10=2(x+2)2−18, with vertex (−2,−18).
x=1 or x=−5
Your turn
1. One like the example
Solve x2−8x+3=0 by completing the square.
Show the answer and explanation
x=4±√13.
Move the constant to get x2−8x=−3. Half of −8is −4 and (−4)2=16, so add 16 to both sides, which gives (x−4)2=13. Then x−4=±√13 and x=4±√13, about 7.606 and 0.394.
x2−8x+3=0x2−8x=−3(x−4)2=13x=4±√13
2. A variation
Solve x2+3x−1=0 by completing the square. The x coefficient is odd, so expect fractions.
Show the answer and explanation
x=(−3±√13)/2.
Move the constant, x2+3x=1. Half of 3 is 3/2, and (3/2)2=9/4. Adding 9/4 to both sides gives (x+3/2)2=1+9/4=13/4. Taking both roots, x+3/2=±√13/2, so x=(−3±√13)/2.
x2+3x−1=0x2+3x=1(x+23)2=413x=2−3±√13
3. Somewhere new
Write y=x2−6x+11 in vertex form. What is the lowest value of y, and where does it occur?
Show the answer and explanation
y=(x−3)2+2. The lowest value is 2, at x=3.
Half of −6is −3 and (−3)2=9. Write 11 as 9+2, so x2−6x+11=(x2−6x+9)+2=(x−3)2+2. A square is never negative, so y is smallest when x−3=0, and then y=2.
y=x2−6x+11y=x2−6x+9+2y=(x−3)2+2
Keep exploring
Open the steps in Math and replace the 10with 16. Completing the square then gives (x+2)2=12, and the roots become irrational.