- Practice
- About 18 min
- 5 practice questions
Completing the square and the quadratic formula
Solve any quadratic equation by completing the square, see how this leads to the formula x = [−b ± √(b² − 4ac)] / 2a, and use the formula confidently with surds and fractions.
If something looks wrong, please tell us.
By the end of this lesson you can
- Add the right number to x² + bx to make a perfect square.
- Solve a quadratic equation by completing the square.
- Use the quadratic formula and simplify the answer, including surds.
Factorisation needs two convenient numbers, and often there are none. In x² + 6x − 3 = 0 no pair of whole numbers has product −3 and sum 6. Completing the square works for every quadratic, and when it is done once for the general equation it produces a formula you can use every time.
Completing the square
Since (x + p)² = x² + 2px + p², the expression x² + bx becomes a perfect square when we add (b/2)², the square of half the coefficient of x. For example x² + 6x + 9 = (x + 3)², because half of 6 is 3 and 3² = 9.
Worked example 1: x² + 6x − 3 = 0
Working: half of 6 is 3, so add and subtract 9: x² + 6x + 9 − 9 − 3 = 0, that is (x + 3)² − 12 = 0, so (x + 3)² = 12. Taking square roots: x + 3 = √12 or x + 3 = −√12. Since √12 = 2√3, x = −3 + 2√3 or x = −3 − 2√3.
Worked example 2: 2x² − 7x + 3 = 0
Working: make the coefficient of x² equal to 1 by dividing by 2: x² − (7/2)x + 3/2 = 0. Half of 7/2 is 7/4 and (7/4)² = 49/16. So (x − 7/4)² − 49/16 + 3/2 = 0. Since 3/2 = 24/16, (x − 7/4)² = 49/16 − 24/16 = 25/16. Then x − 7/4 = 5/4 or x − 7/4 = −5/4, giving x = 3 or x = 1/2. Check x = 3: 18 − 21 + 3 = 0.
The quadratic formula
Doing the same steps on ax² + bx + c = 0: divide by a to get x² + (b/a)x + c/a = 0; add and subtract (b/2a)²; this gives (x + b/2a)² = (b² − 4ac)/4a². Taking square roots and subtracting b/2a gives the formula below. The two roots are often named α (alpha) and β (beta).
The roots of ax² + bx + c = 0 are x = [−b ± √(b² − 4ac)] / 2a, that is α = [−b + √(b² − 4ac)] / 2a and β = [−b − √(b² − 4ac)] / 2a.
Using the formula
- Compare with ax² + bx + c = 0 Write a, b and c with their signs.
- Find b² − 4ac Work this out first; it goes under the root.
- Substitute in the formula Keep −b and 2a in brackets.
- Simplify both roots Use + for one root and − for the other; simplify surds.
Worked example 3: 3x² − 5x − 2 = 0
Working: a = 3, b = −5, c = −2. b² − 4ac = 25 − 4(3)(−2) = 25 + 24 = 49. So x = [5 ± √49] / 6 = (5 ± 7)/6. Hence x = 12/6 = 2 or x = −2/6 = −1/3. Roots: 2 and −1/3.
Worked example 4: x² − 4x + 1 = 0
Working: a = 1, b = −4, c = 1. b² − 4ac = 16 − 4 = 12, and √12 = 2√3. So x = (4 ± 2√3)/2 = 2 ± √3. Here factorisation would not have worked, because the roots are irrational.
All three methods give the same roots for the same equation. Use factorisation when the numbers split easily, and the formula otherwise. The roots can also be seen on a graph: for x² = 2x + 3, the roots are the x-coordinates of the points where the curve y = x² meets the line y = 2x + 3.
Key takeaways: to complete the square, make the coefficient of x² equal to 1, then add and subtract the square of half the coefficient of x. The formula x = [−b ± √(b² − 4ac)] / 2a works for every quadratic; find b² − 4ac first and keep track of signs.
Check your understanding
-
1. Which number must be added to x² − 8x to make it a perfect square?
- 64
- 16
- 4
- −16
Show answer
Answer: B. Half of the coefficient of x is −4, and (−4)² = 16. Then x² − 8x + 16 = (x − 4)². Adding 64 would be squaring the whole coefficient, not half of it.
-
2. Which is the formula for the roots of ax² + bx + c = 0?
- x = [b ± √(b² − 4ac)] / 2a
- x = [−b ± √(b² + 4ac)] / 2a
- x = [−b ± √(b² − 4ac)] / a
- x = [−b ± √(b² − 4ac)] / 2a
Show answer
Answer: D. Completing the square on ax² + bx + c = 0 gives (x + b/2a)² = (b² − 4ac)/4a², so x = [−b ± √(b² − 4ac)] / 2a. The others change a sign or the denominator.
-
3. Using the formula, what are the roots of 2x² + 3x − 2 = 0?
- 1/2 and −2
- −1/2 and 2
- 1 and −4
- 2 and −2
Show answer
Answer: A. a = 2, b = 3, c = −2. b² − 4ac = 9 + 16 = 25. x = (−3 ± 5)/4, so x = 2/4 = 1/2 or x = −8/4 = −2.
-
4. Solve x² − 2x − 4 = 0 by completing the square.
- x = 2 ± √5
- x = −1 ± √5
- x = 1 ± √5
- x = 1 ± √3
Show answer
Answer: C. Add and subtract 1 (half of −2 is −1): (x − 1)² − 1 − 4 = 0, so (x − 1)² = 5 and x − 1 = ±√5. Hence x = 1 ± √5.
-
5. For x² + 5x + 3 = 0, what is the value of b² − 4ac?
- 37
- 13
- 22
- −13
Show answer
Answer: B. a = 1, b = 5, c = 3: b² − 4ac = 25 − 12 = 13. (37 comes from adding 12 instead of subtracting it.)
Sign in to keep track of the lessons you finish.