Quadratic formula and completing the square
The quadratic formula (Higher tier only)
The solves any ax² + bx + c = 0:
x = (−b ± √(b² − 4ac)) / 2a
It's on the formulae sheet. ± means work it out once with + and once with −.
- Rearrange to = 0 and write down a, b and c, with their signs.
- Work out b² − 4ac, then both answers.
Example: solve 2x² − 5x − 1 = 0. Give your answers to 2 decimal places.
- a = 2, b = −5, c = −1
- b² − 4ac = 25 − (4 × 2 × −1) = 25 + 8 = 33
- x = (5 ± √33) / 4 = 2.686… or −0.186…
- x = 2.69 or x = −0.19
Common mistake
If b = −5, then −b = 5 and b² = 25, not −25. On a calculator, type (−5)².
Key terms
Answers as surds (Higher tier only)
"Give your answer in surd form" means leave the square root in and simplify it.
Example: solve x² + 4x − 1 = 0, giving your answers in surd form.
- a = 1, b = 4, c = −1
- b² − 4ac = 16 − (4 × 1 × −1) = 16 + 4 = 20
- x = (−4 ± √20) / 2
- √20 = √4 × √5 = 2√5, so x = (−4 ± 2√5) / 2
- Divide each term by 2: x = −2 ± √5
The b² − 4ac tells you how many solutions there are: two if it's positive, one if it's 0, and none if it's negative, because you can't square root a negative number.
Completing the square (Higher tier only)
writes x² + bx + c as (x + p)² + q.
- Halve b to get p, and write (x + p)².
- Subtract p², because (x + p)² makes an extra p².
- Add c and simplify.
Example: write x² + 6x + 5 in the form (x + p)² + q.
- Half of 6 is 3: (x + 3)²
- (x + 3)² = x² + 6x + 9, which is 9 too many: (x + 3)² − 9
- (x + 3)² − 9 + 5 = (x + 3)² − 4
Harder example: complete the square for x² − 5x + 2.
- Half of −5 is −5/2: (x − 5/2)² − 25/4
- −25/4 + 2 = −25/4 + 8/4 = −17/4
- (x − 5/2)² − 17/4
Remember
Halve the b, then take away its square.
Key terms
Completing the square when a is more than 1 (Higher tier only)
Take a out of the x² and x terms first, then complete the square inside the bracket.
- Factorise a out of the first two terms.
- Complete the square inside the bracket.
- Multiply out the outer bracket and simplify.
Example: write 2x² + 12x + 7 in the form a(x + p)² + q.
- 2x² + 12x + 7 = 2(x² + 6x) + 7
- x² + 6x = (x + 3)² − 9, so 2[(x + 3)² − 9] + 7
- 2(x + 3)² − 18 + 7 = 2(x + 3)² − 11
Check by expanding: 2(x² + 6x + 9) − 11 = 2x² + 12x + 18 − 11 = 2x² + 12x + 7.
Solving by completing the square (Higher tier only)
Once a quadratic equation is in completed-square form, you can solve it with inverse operations.
- Complete the square.
- Get the squared bracket on its own.
- Square root both sides, with ±.
- Solve for x.
Example: solve x² + 6x + 5 = 0 by completing the square.
- (x + 3)² − 4 = 0
- (x + 3)² = 4
- x + 3 = ±2
- x = −1 or x = −5
Harder example: solve x² − 4x − 3 = 0, leaving your answers as surds.
- (x − 2)² − 4 − 3 = 0, so (x − 2)² − 7 = 0
- (x − 2)² = 7
- x − 2 = ±√7
- x = 2 + √7 or x = 2 − √7