Completing the square and the quadratic formula
Engineers and computer programs solve quadratic equations with this one formula every day, for example to find when a thrown object lands, because it never needs guessing factors.
Completing the square on ax² + bx + c = 0 gives the quadratic formula x = [−b ± √(b² − 4ac)] / 2a. It works for every quadratic equation.
Key facts
Quadratic formulax = [−b ± √(b² − 4ac)] / (2a)
Completing the squareWith x² coefficient 1, add (half the coefficient of x)² to both sides
Sum of rootsα + β = −b/a
Product of rootsαβ = c/a
Deriving the formula by completing the square
- 1Start with ax² + bx + c = 0, a ≠ 0.
- 2Multiply both sides by 4a: 4a²x² + 4abx + 4ac = 0.
- 3Move 4ac across and add b² to both sides: 4a²x² + 4abx + b² = b² − 4ac.
- 4The left side is a perfect square: (2ax + b)² = b² − 4ac.
- 5Take square roots: 2ax + b = ±√(b² − 4ac).
- 6So, x = [−b ± √(b² − 4ac)] / (2a). These are the two roots.
Example 1 (short extra): completing the square with numbers
Problem
Solve x² + 6x − 7 = 0 by completing the square. (Your lesson uses this method only to prove the formula, but it works on any equation.)
Working
- Move the number across: x² + 6x = 7.
- Half of 6 is 3, and 3² = 9. Add 9 to both sides: x² + 6x + 9 = 16.
- (x + 3)² = 16
- x + 3 = 4 or x + 3 = −4
- x = 1 or x = −7
- Check x = 1: 1 + 6 − 7 = 0.
Answer
x = 1 or x = −7
Example 2: using the formula
Problem
Solve (i) 4x² − 4x − 15 = 0 (ii) x² + 4x − 1 = 0.
Working
- (i) a = 4, b = −4, c = −15. b² − 4ac = 16 + 240 = 256, and √256 = 16.
- x = (4 ± 16)/8, so x = 20/8 = 5/2 or x = −12/8 = −3/2.
- (ii) a = 1, b = 4, c = −1. b² − 4ac = 16 + 4 = 20, and √20 = 2√5.
- x = (−4 ± 2√5)/2 = −2 ± √5
Answer
(i) 5/2 and −3/2 (ii) −2 + √5 and −2 − √5
Activity: verify the relation between roots and coefficients
- 1On chart paper list some equations with their roots. For example: x² − 7x + 10 = 0 (2, 5); x² + x − 12 = 0 (3, −4); 2x² − 5x + 3 = 0 (1, 3/2); x² − 2x − 1 = 0 (1 ± √2).
- 2Check each root by putting it back into its equation.
- 3Make columns: sum of roots, product of roots, −b/a and c/a.
- 4Fill them in. For x² − 7x + 10 = 0: sum 7 and −b/a = 7; product 10 and c/a = 10.
- 5For 2x² − 5x + 3 = 0: sum 5/2 = −b/a, product 3/2 = c/a. The other rows match too.
- 6Conclusion: sum of roots = −b/a and product of roots = c/a.
Example 3: an equation from its roots
Problem
Form a quadratic equation whose roots are 2 and −5.
Working
- Sum of roots = 2 + (−5) = −3. Product = 2 × (−5) = −10.
- An equation with roots α and β is x² − (α + β)x + αβ = 0.
- x² − (−3)x + (−10) = 0
- x² + 3x − 10 = 0. Check: (x − 2)(x + 5) = x² + 3x − 10.
Answer
x² + 3x − 10 = 0
Minus b, plus or minus root of b squared minus 4ac, all over 2a.