Plotwise graphing calculator

Learn › A-level

The discriminant

A U-shaped quadratic graph can cross the x-axis twice, touch it once, or miss it completely. The discriminant is a quick calculation that tells you which, before you solve anything.

What you need first

  • What a quadratic is: an expression such as x² + 2x − 3, where the highest power of x is 2.
  • What a root is: a value of x that makes the expression equal 0. On a graph, the roots are where the curve meets the x-axis.
  • How to square a negative number: (−3)² = 9.

What you will be able to do

  • Work out the discriminant of any quadratic.
  • Say how many roots it has without solving it.
  • Use the discriminant to find when a line just touches a curve.

Working it out

Write the quadratic in the order ax² + bx + c. Then a is the number in front of x², b is the number in front of x, and c is the number on its own. Keep any minus signs attached to the numbers.

The discriminant is

b² − 4ac

For x² + 2x − 3 we have a = 1, b = 2 and c = −3. So

b² − 4ac = 2² − 4 × 1 × (−3) = 4 + 12 = 16

Notice the + 12. Minus 4 times minus 3 is plus 12. Sign slips here are the most common way to get the wrong answer.

What the answer tells you

DiscriminantNumber of rootsWhat the graph does
PositiveTwo different rootsCrosses the x-axis twice
ZeroOne root (called a repeated root)Just touches the x-axis
NegativeNo real rootsNever meets the x-axis

Our example gave 16, which is positive. So x² + 2x − 3 has two roots. The graph below starts on this quadratic, and you can see it cross the axis at x = −3 and x = 1.

The second line works out the discriminant, called d here, from the sliders. Its value appears underneath it. Open in the full calculator

Try it yourself

For each step, make a prediction before you move anything. Then check it.

  1. Look at the starting graph and the value of d. How many times does the curve cross the x-axis?

    What you should see

    Twice, at x = −3 and x = 1, and d = 16. A positive discriminant goes with two crossings.

  2. Raising c lifts the whole curve. Predict what happens to d as the curve lifts off the axis, then drag c slowly up to 1.

    What you should see

    As the curve rises, the two crossings move together and d falls. At c = 1 they meet: the curve just touches the axis at x = −1 and d = 0.

  3. Carry on to c = 2.

    What you should see

    The curve has left the axis and d = −4. A negative discriminant goes with no crossings.

  4. Set a to −1. The curve turns upside down. Does the rule still work?

    What you should see

    Yes. Whichever way up the curve is, d is positive when it crosses twice, zero when it touches, and negative when it misses.

Why it works

The quadratic formula gives the roots of ax² + bx + c = 0:

x = (−b ± √(b² − 4ac)) / 2a

The discriminant is the part under the square root sign. That square root decides everything:

Worked example 1

Find the values of k for which x² + kx + 9 = 0 has equal roots.

  1. Translate the words. "Equal roots" means one repeated root, so the discriminant must be zero.
  2. Read off a, b and c. Here a = 1, b = k and c = 9.
  3. Set the discriminant to zero. k² − 4 × 1 × 9 = 0, so k² = 36.
  4. Solve. k = 6 or k = −6. Remember both square roots.

Check it on the graph: set a = 1 and c = 9, then drag b. The curve touches the axis at b = 6 and at b = −6, and d reads 0 both times.

Worked example 2: a line that just touches a curve

Find c so that the line y = x + c is a tangent to the curve y = x². A tangent is a line that touches a curve at one point without cutting through it.

  1. Find where they meet. At a meeting point both formulas give the same y, so x² = x + c.
  2. Rearrange to equal zero. x² − x − c = 0. Now a = 1, b = −1 and the constant is −c.
  3. Use the tangent condition. A tangent meets the curve once, so this quadratic has one repeated root and its discriminant is zero.
  4. Solve. (−1)² − 4 × 1 × (−c) = 0, so 1 + 4c = 0 and c = −¼.

This is the form the discriminant usually takes in exam questions: you build a quadratic from a line and a curve, then ask how many times they meet.

Check yourself

Try each one on paper before you open the answer. Getting one wrong is useful: it shows you which part to reread.

  1. How many real roots does 2x² − 3x + 5 = 0 have?

    Show the answer

    None. Here a = 2, b = −3, c = 5, so the discriminant is (−3)² − 4 × 2 × 5 = 9 − 40 = −31, which is negative.

  2. How many roots does x² − 6x + 9 = 0 have?

    Show the answer

    One repeated root. The discriminant is 36 − 36 = 0. The quadratic is (x − 3)², so the root is x = 3.

  3. For which values of p does x² + 4x + p = 0 have two different real roots?

    Show the answer

    When p < 4. You need 16 − 4p > 0, which rearranges to p < 4.

Common mistakes

What to remember