Math Explainer.

The quadratic formula and the discriminant: solving any quadratic equation

Ages 14–16GCSE (A18c)

What you will learn

Not every quadratic equation factorises easily. The quadratic formula solves every one, and a number in it, the discriminant DD, tells you beforehand how many solutions there are. Only real solutions count: numbers on the number line.

Think first: what happens to the two solutions when you make cc larger and the parabola moves up? Then check: make cc larger step by step and watch DD.

The quadratic formula step by step and the parabola for the equationA coordinate grid with x from −6 to 6 and y from −8 to 8. The green graph shows y = ax² + bx + c; where it meets the x-axis there is a green dot: a solution of the equation ax² + bx + c = 0. Three sliders set a, b and c. Under them the equation is solved line by line: the equation with the numbers that are set, the discriminant D = b² − 4ac with the numbers substituted, its value, the quadratic formula with the numbers substituted, and the solutions. At a = 0 the equation is not quadratic, and no discriminant is shown.
x2−2x−3=0D=(−2)2−4×1×(−3)D=16>0x1,2=−(−2)±162×1x1=−1x2=3\begin{aligned} &x^2 - 2x - 3 = 0 \rule{0pt}{0.87em} \\ &D = (-2)^2 - 4 \times 1 \times (-3) \rule{0pt}{0.87em} \\ &D = 16 > 0 \\ &x_{1,2} = \frac{-(-2) \pm \sqrt{16}}{2 \times 1} \rule[-0.94em]{0pt}{2.53em} \\ &\mathrlap{x_1 = -1 \qquad x_2 = 3}\hspace{13.75em} \end{aligned}

The discriminant is D = 16, so it is positive: the equation x² − 2x − 3 = 0 has two solutions, −1 and 3. The parabola crosses the x-axis twice.

The quadratic formula

As cc grows, the two solutions here move closer together. When c=1c = 1 you get D=0D = 0, and the parabola only touches the axis. After that DD is negative: there is no real solution any more.

For ax2+bx+c=0ax^2 + bx + c = 0 with a≠0a \neq 0 you find the solutions with the quadratic formula:

x1,2=−b±b2−4ac2ax_{1,2} = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

The expression under the square root is called the discriminant: D=b2−4acD = b^2 - 4ac.

You read off the numbers aa, bb and cc with their signs. The green expression under the square root is the discriminant.

Self-check

What are aa, bb and cc in the equation x2−5x+3=0x^2 - 5x + 3 = 0?

Your answer
Show the solution

a=1a = 1, b=−5b = -5, c=3c = 3. There is no number in front of x2x^2, which means 1×x21 \times x^2. The minus sign in front of 5x5x belongs to bb.

Example 1

Solve the equation x2−4x−5=0x^2 - 4x - 5 = 0 with the quadratic formula.

  1. 01

    Read off aa, bb and cc with their signs.

    a=1,b=−4,c=−5a = 1, \quad b = -4, \quad c = -5
  2. 02

    Work out the discriminant. Substitute negative numbers in brackets.

    D=b2−4ac=(−4)2−4×1×(−5)=16+20=36D = b^2 - 4ac = (-4)^2 - 4 \times 1 \times (-5) = 16 + 20 = 36
  3. 03

    Substitute into the quadratic formula.

    x1,2=−b±D2a=−(−4)±362×1=4±62x_{1,2} = \frac{-b \pm \sqrt{D}}{2a} = \frac{-(-4) \pm \sqrt{36}}{2 \times 1} = \frac{4 \pm 6}{2}
  4. 04

    Work it out once with plus and once with minus.

    x=4+62=5orx=4−62=−1x = \frac{4 + 6}{2} = 5 \quad \text{or} \quad x = \frac{4 - 6}{2} = -1
Answer

The solutions are 55 and −1-1. Check with 55: 52−4×5−5=25−20−5=05^2 - 4 \times 5 - 5 = 25 - 20 - 5 = 0. Check with −1-1: (−1)2−4×(−1)−5=1+4−5=0(-1)^2 - 4 \times (-1) - 5 = 1 + 4 - 5 = 0.

The discriminant decides

The discriminant tells you the number of solutions before you take a square root. If DD is positive, there are two: one with plus, one with minus. If DD is zero, there is exactly one, because ±0\pm 0 changes nothing. If DD is negative, there is no real solution: a negative number has no real square root.

two solutions

one solution

no solution

Two solutions, one or none: the sign of the discriminant decides which case you get.

Example 2

Solve the equation 2x2+3x−2=02x^2 + 3x - 2 = 0 with the quadratic formula.

  1. 01

    Read off aa, bb and cc with their signs.

    a=2,b=3,c=−2a = 2, \quad b = 3, \quad c = -2
  2. 02

    Work out the discriminant.

    D=32−4×2×(−2)=9+16=25D = 3^2 - 4 \times 2 \times (-2) = 9 + 16 = 25
  3. 03

    Substitute into the quadratic formula. The denominator is 2a2a, so here 44.

    x1,2=−3±252×2=−3±54x_{1,2} = \frac{-3 \pm \sqrt{25}}{2 \times 2} = \frac{-3 \pm 5}{4}
  4. 04

    Work it out once with plus and once with minus.

    x=−3+54=0.5orx=−3−54=−2x = \frac{-3 + 5}{4} = 0.5 \quad \text{or} \quad x = \frac{-3 - 5}{4} = -2
Answer

The solutions are 0.50.5 and −2-2. Check with −2-2: 2×(−2)2+3×(−2)−2=8−6−2=02 \times (-2)^2 + 3 \times (-2) - 2 = 8 - 6 - 2 = 0. Check with 0.50.5: 2×0.52+3×0.5−2=0.5+1.5−2=02 \times 0.5^2 + 3 \times 0.5 - 2 = 0.5 + 1.5 - 2 = 0.

Self-check

What is the discriminant of the equation x2+2x+5=0x^2 + 2x + 5 = 0?

Show the solution

With a=1a = 1, b=2b = 2 and c=5c = 5: D=22−4×1×5=4−20=−16D = 2^2 - 4 \times 1 \times 5 = 4 - 20 = -16. The discriminant is negative, so the equation has no real solution.

Self-check

How many solutions does the equation x2−6x+9=0x^2 - 6x + 9 = 0 have?

Your answer
Show the solution

One. D=(−6)2−4×1×9=36−36=0D = (-6)^2 - 4 \times 1 \times 9 = 36 - 36 = 0, so there is exactly one solution: x=62=3x = \frac{6}{2} = 3. You can also see it from the perfect square: x2−6x+9=(x−3)2x^2 - 6x + 9 = (x - 3)^2.

For teachers: a lesson plan (45 min)
  1. 5 min

    Starter

    First ask without the simulation: the equation x2−2x−3=0x^2 - 2x - 3 = 0 has two solutions. What happens to them when the number at the end gets larger and the parabola moves up? The class predicts. Then open the simulation with ‘Full screen’: someone makes cc larger step by step, and the class watches DD and the dots on the xx-axis.

  2. 10 min

    The quadratic formula

    The figure with the formula: in their exercise books, the class substitutes aa, bb and cc of the figure’s equation into the discriminant. Then the first self-check. Reveal Example 1 step by step together.

  3. 10 min

    The discriminant decides

    The figure with the three parabolas: which of the three cases does x2+3x+1=0x^2 + 3x + 1 = 0 belong to? The class works out only DD, without solving the equation. Discuss the ‘Watch out’ box.

  4. 15 min

    Practice

    Let pupils try Example 2 on their own first, then reveal it and compare. The second and third self-checks, alone or in pairs. Anyone who finishes early solves an equation of their own in their exercise book, one that the simulation can set (aa from −2-2 to 22 in steps of a half, bb and cc integers from −6-6 to 66), and checks the result with the simulation.

  5. 5 min

    Plenary

    Read the ‘Remember’ box together. Ask: how can you tell from the discriminant that a parabola only touches the xx-axis?

Got an exercise on paper?

Take a photo of it and Math Explainer turns it into an explainer video with every step of the solution.

Upload a photo