Skip to content
Cambridge IGCSE® Mathematics 0580 Extended Algebra Lesson

The Quadratic Formula

The method that solves every quadratic — identify a, b and c, substitute safely, and read the discriminant to see how many roots there are.

Learning objectives What you will be able to do

  • Rearrange any quadratic into standard form ax² + bx + c = 0 and read off a, b and c with their signs.
  • Substitute into the quadratic formula inside brackets and evaluate without sign slips.
  • Use the discriminant b² − 4ac to state how many real solutions an equation has.
  • Give answers exactly in simplified surd form, or rounded to the accuracy the question demands.
  • Solve worded and geometric problems, rejecting roots that make no sense in context.

Key words

quadraticstandard formcoefficientdiscriminantreal solutionsurdexact formroot

Starter 5 minutes — before we begin

Answer from memory, then open each one to check.

Starter 1Evaluate (−7)² and −4 × 2 × (−3).
(−7)² = 49;  −4 × 2 × (−3) = +24 — two negatives give a plus.
Starter 2Simplify √28.
√28 = √4 × √7 = 2√7
Starter 3Rearrange 4x² = 3x + 6 so that one side is zero.
4x² − 3x − 6 = 0

Learn Teach · example · together

1 ·  The formula and how to use it

Some quadratics refuse to factorise. The formula below solves any quadratic, factorising or not, provided you first write it in the standard form ax² + bx + c = 0 with everything on one side and zero on the other.

x = −b ± √(b² − 4ac)2a The quadratic formula — it is given on the formula sheet, but learn it anyway
Watch out The whole of −b ± √(b² − 4ac) sits over 2a, not just the root. On a calculator you must bracket the entire numerator.

First identify a, b and c — with their signs. The sign in front of a number belongs to that number, and a missing term means its coefficient is zero, not blank.

EquationabcComment
3x² + 5x − 2 = 035−2the minus belongs to the 2
x² − 7x + 1 = 01−71a lone x² means a = 1
2x² − 9 = 020−9no x term, so b = 0
4x² = 3x + 64−3−6rearrange to 4x² − 3x − 6 = 0 first

Then substitute inside brackets. Never write −−7 — write −(−7) and (−7)². The brackets are what keep the signs right.

Example 1Solve 2x² + 5x − 3 = 0 using the quadratic formula.
1
Already in standard form. Read off the coefficients with their signs. a = 2,   b = 5,   c = −3
2
Substitute, using brackets everywhere. x = −(5) ± √((5)² − 4(2)(−3))2(2)
3
Work out under the root first. Note −4 × 2 × (−3) = +24: two negatives give a plus. 25 + 24 = 49  →  x = −5 ± 74
4
Split into the plus case and the minus case. x = 24 = 0.5   or   x = −124 = −3
x = 0.5  or  x = −3
Check x = 0.5: 2(0.25) + 2.5 − 3 = 0 ✓. Because the root came out exact, this one also factorises: (2x − 1)(x + 3) = 0.
Example 2Solve 3x² − 7x + 1 = 0, giving your answers correct to 2 decimal places.
1
Coefficients — the minus stays with the 7. a = 3,   b = −7,   c = 1
2
Substitute with brackets: −(−7) = +7 and (−7)² = +49. x = −(−7) ± √((−7)² − 4(3)(1))2(3) = 7 ± √376
3
37 is not a perfect square. Keep the full calculator value — do not round √37 = 6.0827… yet. x = (7 + 6.0827…) ÷ 6 = 2.18046…
x = (7 − 6.0827…) ÷ 6 = 0.15287…
4
Round only now, at the very end. 2.18046… → 2.18    0.15287… → 0.15
x = 2.18  or  x = 0.15  (2 d.p.)
Watch out Rounding √37 part-way through can shift the last digit and cost the accuracy mark. Carry the full value in your calculator.

2 ·  The discriminant b² − 4ac

The expression under the root has its own name, and it decides everything about the number of solutions, because you cannot square-root a negative number.

Definition The discriminant of ax² + bx + c = 0 is b² − 4ac. Its sign tells you how many real solutions the equation has, and therefore how many times the graph y = ax² + bx + c meets the x-axis.
DiscriminantNumber of real solutionsThe graph
b² − 4ac > 0Two different real solutionscrosses the x-axis twice
b² − 4ac = 0One repeated solutiontouches the x-axis at the turning point
b² − 4ac < 0No real solutionsnever reaches the x-axis

The three cases (for a > 0)

b² − 4ac > 0 two real roots b² − 4ac = 0 one repeated root b² − 4ac < 0 no real roots
Example 3The equation x² + kx + 9 = 0 has exactly one solution. Find the two possible values of k.
1
“Exactly one solution” means the discriminant is zero. a = 1,   b = k,   c = 9
2
Set b² − 4ac = 0 and solve, remembering both roots. k² − 36 = 0  →  k = ±6
k = 6 or k = −6
Check k = 6 gives (x + 3)² = 0, so x = −3 twice ✓; k = −6 gives (x − 3)² = 0 ✓.

3 ·  Choosing a method, and exact answers

Try factorising first

If the numbers are small and a factor pair jumps out, factorising is faster and less error-prone. Give it about twenty seconds.

Use the formula when…

the question says “correct to 2 decimal places” or “3 significant figures” — that wording tells you it will not factorise.

Complete the square when…

the question says so, or asks for the turning point. The formula is the completed square, done in general — both always give identical answers.

If the question says exact, leave the surd in. Simplify it if you can, then cancel any factor common to the whole numerator and the denominator.

Example 4Solve x² − 6x + 2 = 0, giving your answers in exact form.
1
Coefficients, then substitute. a = 1, b = −6, c = 2
x = 6 ± √(36 − 8)2 = 6 ± √282
2
Simplify the surd: 28 = 4 × 7 and 4 is a perfect square. √28 = √4 × √7 = 2√7
3
Every term of the numerator now has a factor 2, so divide the whole fraction by 2. x = 6 ± 2√72 = 3 ± √7
x = 3 + √7  or  x = 3 − √7  (5.65 or 0.35 to 2 d.p.)
Watch out You may only cancel a factor that divides every term. Cancelling the 2 in (7 ± √37)/6 would be nonsense — 7 and √37 are not multiples of 2.

Practice Now you try

Do every question on paper first, then open the solution and mark your own working.

Practice 1Solve x² + 3x − 5 = 0, correct to 2 decimal places.
1
Coefficients and discriminant. a = 1, b = 3, c = −5
b² − 4ac = 9 + 20 = 29
2
Apply the formula and round at the end. x = −3 ± √292 = −3 ± 5.3851…2
x = 1.19  or  x = −4.19  (2 d.p.)
Practice 2Solve 2x² − 5x − 4 = 0, giving your answers in exact form.
1
Discriminant: 25 + 32 = 57, which has no square factor. x = 5 ± √574
2
Nothing cancels — 4 does not divide every term of the numerator — so this is the exact answer. (3.14 or −0.64 to 2 d.p.)
x = 5 ± √574
Practice 3Use the discriminant to state the number of real solutions of (a) x² + 4x + 4 = 0  (b) 2x² + x + 3 = 0  (c) 3x² − 5x − 1 = 0.
1
Compute b² − 4ac for each. (a) 16 − 16 = 0
(b) 1 − 24 = −23
(c) 25 + 12 = 37
(a) one repeated solution  (b) no real solutions  (c) two real solutions
Practice 4Solve 3x² + 2x − 8 = 0.
1
Discriminant: 4 + 96 = 100 = 10² — a perfect square, so the roots are exact. x = −2 ± 106
2
Take each sign in turn. x = 86 = 43   or   x = −126 = −2
x = 43  or  x = −2  — it factorises: (3x − 4)(x + 2) = 0
Practice 5A right-angled triangle has base x cm and height (x + 4) cm. Its area is 15 cm². Form a quadratic equation and solve it to find x, correct to 2 decimal places.
1
Area of a triangle is ½ × base × height. ½x(x + 4) = 15  →  x² + 4x − 30 = 0
2
Discriminant 16 + 120 = 136; apply the formula. x = −4 ± √1362 = −2 ± √34
3
Reject the negative root — a length cannot be negative — and say so in words. x = −2 + √34 = 3.8309…
x = 3.83 (2 d.p.)

Common mistakes Lose no easy marks

Losing signs in the substitution Write −(−7) and (−7)², never −−7. And remember −4ac with a negative c becomes a plus: −4(2)(−3) = +24.
Dividing only the root by 2a The whole numerator −b ± √(b² − 4ac) sits over 2a. On the calculator, bracket the entire top before dividing.
Rounding too early Keep √37 = 6.0827… at full accuracy until the final line, then round to exactly the accuracy asked for. And with negatives, −3.886 rounds to −3.89, not −3.88.
Exam tip Write a = …, b = …, c = … and the full substitution line on your script before touching the calculator. Method marks are awarded for a correct substitution even when the arithmetic afterwards goes wrong.

Exit check Prove it before you leave

Exit 1Write down a, b and c for 4x² − 9x + 2 = 0.
a = 4, b = −9, c = 2 — the minus belongs to the 9.
Exit 2How many real solutions does 2x² + x + 3 = 0 have?
None — the discriminant is 1 − 24 = −23 < 0.
Exit 3The discriminant of a quadratic works out to 49. What does that tell you?
Two real solutions — and since 49 is a perfect square, the roots are exact and the quadratic would also factorise.

Keep going