Lesson 6 of 8 · 20 min

The quadratic formula and the discriminant

Solve any quadratic equation with the quadratic formula, giving exact or approximate solutions, and use the discriminant to tell how many real solutions there are.

What you will be able to do

  • Solve ax2+bx+c=0ax^2 + bx + c = 0 with the quadratic formula, giving exact solutions in simplest surd form.
  • Give approximate solutions to a stated number of decimal places, with or without technology.
  • Use the discriminant Δ=b2−4ac\Delta = b^2 - 4ac to state the number of real solutions.
  • Find an unknown coefficient so that an equation has a given number of solutions.

x2−4x+1=0x^2 - 4x + 1 = 0 will not factorise: no two integers multiply to 1 and add to −4-4. Completing the square still works, and if you complete the square once on ax2+bx+c=0ax^2 + bx + c = 0 in general, you get a formula that solves every quadratic equation.

The quadratic formula, for ax2+bx+c=0ax^2 + bx + c = 0 with a≠0a \ne 0. It is not in the formula book, so learn it.
x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
Deriving the quadratic formula

Start from ax2+bx+c=0ax^2 + bx + c = 0 with a≠0a \ne 0. Divide by aa, then complete the square.

x2+bax=−cax2+bax+b24a2=b24a2−ca(x+b2a)2=b2−4ac4a2x+b2a=±b2−4ac2ax=−b±b2−4ac2a\begin{aligned} x^2 + \frac{b}{a}x &= -\frac{c}{a} \\ x^2 + \frac{b}{a}x + \frac{b^2}{4a^2} &= \frac{b^2}{4a^2} - \frac{c}{a} \\ \left(x + \frac{b}{2a}\right)^2 &= \frac{b^2 - 4ac}{4a^2} \\ x + \frac{b}{2a} &= \pm\frac{\sqrt{b^2 - 4ac}}{2a} \\ x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \end{aligned}

Taking 4a2=2a\sqrt{4a^2} = 2a is fine even when a<0a < 0, because the ±\pm already covers both signs.

Using the quadratic formula

  1. Write the equation as ax2+bx+c=0ax^2 + bx + c = 0

    Then list aa, bb and cc, with their signs.

  2. Work out b2−4acb^2 - 4ac first

    Put negative values in brackets: with b=−4b = -4, b2=(−4)2=16b^2 = (-4)^2 = 16.

  3. Substitute into the formula

    x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

  4. Simplify or evaluate

    For exact answers, simplify the surd and cancel any factor common to every term. For approximate answers, evaluate each solution and round at the end.

For x2−4x+1=0x^2 - 4x + 1 = 0: a=1a = 1, b=−4b = -4 and c=1c = 1, so b2−4ac=16−4=12b^2 - 4ac = 16 - 4 = 12 and

x=4±122=4±232=2±3x = \frac{4 \pm \sqrt{12}}{2} = \frac{4 \pm 2\sqrt{3}}{2} = 2 \pm \sqrt{3}

Common mistake

Divide every term by 2a

4±232=2±3\frac{4 \pm 2\sqrt{3}}{2} = 2 \pm \sqrt{3}, because both terms of the numerator are divided by 2. Writing 4±34 \pm \sqrt{3} or 2±232 \pm 2\sqrt{3} divides only one of them. If only one term shares a factor with the denominator, nothing cancels: 3±252\frac{3 \pm 2\sqrt{5}}{2} is already in simplest form.

Use the quadratic formula to solve x2+6x+4=0x^2 + 6x + 4 = 0. Give exact answers in simplest form.

x =

Press Enter or type a comma after each value.

Worked example

Solve 3x2−2x−4=03x^2 - 2x - 4 = 0 with the quadratic formula

  • Complex familiar
  • Technology active

Use the quadratic formula to solve 3x2−2x−4=03x^2 - 2x - 4 = 0, giving the solutions (a) exactly, in simplest form, and (b) correct to two decimal places.

5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Rearrange to ax2+bx+c=0ax^2 + bx + c = 0 and list aa, bb, cc with their signs.

  2. Find b2−4acb^2 - 4ac, then substitute.

  3. Simplify the surd and cancel a factor common to every term.

  4. For decimals, evaluate at the end and round.

Watch out for

  • Writing −b=−2-b = -2 when b=−2b = -2. Here −b=2-b = 2.

  • Cancelling the 2 from only one term: 2±2136≠1±2133\frac{2 \pm 2\sqrt{13}}{6} \ne \frac{1 \pm 2\sqrt{13}}{3}.

Exact (Paper 1)

Leave the surd in: x=1±133x = \frac{1 \pm \sqrt{13}}{3}. Simplify the surd and cancel common factors. Give exact answers whenever the question says "exact" or the paper is technology-free.

Approximate (Paper 2)

Evaluate each solution and round at the end: x≈1.54x \approx 1.54 or x≈−0.87x \approx -0.87. A graphics calculator's polynomial equation solver, or the root (zero) tool on the graph, gives these directly. Write down the equation you solved.

Look at the number under the square root, b2−4acb^2 - 4ac. It decides how many solutions there are before you do any more work. It is called the discriminant, written Δ\Delta (the Greek capital delta):

Δ=b2−4ac\Delta = b^2 - 4ac

If Δ>0\Delta > 0, it has two square roots, ±Δ\pm\sqrt{\Delta}, so there are two solutions. If Δ=0\Delta = 0, the ±\pm adds and subtracts nothing, so there is one solution. If Δ<0\Delta < 0, it has no real square root, so there are no real solutions.

The discriminant and the graph of y=ax2+bx+cy = ax^2 + bx + c
DiscriminantReal solutions of ax2+bx+c=0ax^2 + bx + c = 0Graph
Δ>0\Delta > 0Two different solutionsCrosses the xx-axis twice
Δ=0\Delta = 0One solution (a repeated root)Touches the xx-axis at its turning point
Δ<0\Delta < 0No real solutionsDoes not meet the xx-axis

Same aa and bb, different cc: Δ=16\Delta = 16, Δ=0\Delta = 0 and Δ=−8\Delta = -8.

Interactive

Make it touch

For y=x2+bx+cy = x^2 + bx + c, Δ=b2−4c\Delta = b^2 - 4c. Predict the value of cc that makes the two roots merge, then test it.

How many real solutions does 2x2−3x+5=02x^2 - 3x + 5 = 0 have?

Choose one answer

The discriminant also works backwards. If a question asks when an equation has exactly one solution, set Δ=0\Delta = 0; for two solutions, Δ>0\Delta > 0; for none, Δ<0\Delta < 0. Then solve for the unknown.

Worked example

For which k does kx2+6x+1=0kx^2 + 6x + 1 = 0 have one solution?

  • Complex familiar
  • Technology free

For the equation kx2+6x+1=0kx^2 + 6x + 1 = 0, find (a) the values of kk for which it has exactly one real solution, and (b) the values of kk for which it has two distinct real solutions.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Write Δ\Delta in terms of the unknown.

  2. Set Δ=0\Delta = 0, Δ>0\Delta > 0 or Δ<0\Delta < 0 as the question needs, and solve.

  3. Check that the equation is still a quadratic for the values you found.

Watch out for

  • Reversing the inequality: 36−4k>036 - 4k > 0 gives k<9k < 9, not k>9k > 9.

  • Forgetting that k=0k = 0 stops the equation being quadratic.

For which values of kk does x2−8x+k=0x^2 - 8x + k = 0 have no real solutions?

Choose one answer

Tip

A quick test before you factorise

When aa, bb and cc are integers, the quadratic factorises over the integers exactly when Δ\Delta is a perfect square (0,1,4,9,…0, 1, 4, 9, \ldots). For 2x2−5x−3=02x^2 - 5x - 3 = 0, Δ=25+24=49=72\Delta = 25 + 24 = 49 = 7^2, so it factorises: (2x+1)(x−3)=0(2x + 1)(x - 3) = 0. If Δ\Delta is not a perfect square, go straight to the formula.

Summary

  • ax2+bx+c=0ax^2 + bx + c = 0 has solutions x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}. Learn it: it is not in the formula book.

  • Substitute with brackets around negative values, simplify the surd, and divide every term by 2a2a.

  • Give exact answers in simplest surd form unless asked to round, and round only at the end.

  • Δ=b2−4ac\Delta = b^2 - 4ac: Δ>0\Delta > 0 gives two real solutions, Δ=0\Delta = 0 one, and Δ<0\Delta < 0 none.

  • To find an unknown coefficient, set up Δ=0\Delta = 0, Δ>0\Delta > 0 or Δ<0\Delta < 0 and solve for it.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 6 of 80% read

Save your progress with a free account