Skip to content

The quadratic formula: how to use it, the discriminant and where it comes from

TutorAura guide · Updated

The quadratic formula solves any equation of the form ax2+bx+c=0ax^2 + bx + c = 0:

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

Use it when a quadratic doesn't factorise, or when the question asks for answers to a number of decimal places or in surd form. Most mistakes with the formula aren't about the formula itself: they're about getting aa, bb and cc right (including their signs) and working through the arithmetic carefully. This guide shows a reliable way to do both.

Key takeaways

  • Rearrange to ax² + bx + c = 0 first, then read off a, b and c with their signs.
  • Work out the discriminant b² − 4ac on its own before anything else.
  • The ± gives two solutions; write both.
  • b² − 4ac > 0: two solutions; = 0: one repeated solution; < 0: no real solutions.

Identifying a, b and c

The equation must equal zero and be in the order ax2+bx+cax^2 + bx + c.

Equationabc
2x2+3x−5=02x^2 + 3x - 5 = 023−5
x2−7x+2=0x^2 - 7x + 2 = 01−72
3x2=5x+13x^2 = 5x + 1, rearranged to 3x2−5x−1=03x^2 - 5x - 1 = 03−5−1
4x2−9=04x^2 - 9 = 0 (no xx term)40−9

A missing coefficient means 1 (or −1 for −x2-x^2), and a missing term means 0.

A worked example, step by step

Solve 2x2+3x−5=02x^2 + 3x - 5 = 0.

  1. a=2a = 2, b=3b = 3, c=−5c = -5.
  2. Discriminant: b2−4ac=9−4(2)(−5)=9+40=49b^2 - 4ac = 9 - 4(2)(-5) = 9 + 40 = 49.
  3. 49=7\sqrt{49} = 7.
  4. x=−3±74x = \dfrac{-3 \pm 7}{4}.
  5. x=44=1x = \dfrac{4}{4} = 1 or x=−104=−2.5x = \dfrac{-10}{4} = -2.5.

Check: 2(1)2+3(1)−5=02(1)^2 + 3(1) - 5 = 0 ✓ and 2(−2.5)2+3(−2.5)−5=12.5−7.5−5=02(-2.5)^2 + 3(-2.5) - 5 = 12.5 - 7.5 - 5 = 0 ✓.

Because the discriminant was a perfect square, this one would also have factorised: (2x+5)(x−1)=0(2x + 5)(x - 1) = 0. When it isn't a perfect square, you'll get surds or decimals.

Answers in surd form and to decimal places

Solve x2−6x+4=0x^2 - 6x + 4 = 0.

a=1a = 1, b=−6b = -6, c=4c = 4. Discriminant =36−16=20= 36 - 16 = 20.

x=6±202=6±252=3±5x = \frac{6 \pm \sqrt{20}}{2} = \frac{6 \pm 2\sqrt{5}}{2} = 3 \pm \sqrt{5}

In surd form: x=3+5x = 3 + \sqrt{5} or x=3−5x = 3 - \sqrt{5}. To 2 decimal places: x=5.24x = 5.24 or x=0.76x = 0.76.

Notice −b-b became +6+6 because bb was negative. Writing the substitution in full, with brackets around negative numbers, prevents most sign errors: x=−(−6)±(−6)2−4(1)(4)2(1)x = \dfrac{-(-6) \pm \sqrt{(-6)^2 - 4(1)(4)}}{2(1)}.

The discriminant

The part under the square root, b2−4acb^2 - 4ac, is the discriminant. It tells you how many real solutions there are before you solve anything:

DiscriminantSolutionsGraph of y=ax2+bx+cy = ax^2 + bx + c
PositiveTwo different real solutionsCrosses the x-axis twice
ZeroOne repeated solutionTouches the x-axis once
NegativeNo real solutionsDoesn't meet the x-axis

Exam questions use this backwards: "Find the values of kk for which x2+kx+9=0x^2 + kx + 9 = 0 has equal roots." Set b2−4ac=0b^2 - 4ac = 0: k2−36=0k^2 - 36 = 0, so k=±6k = \pm 6.

Where the formula comes from

Complete the square on ax2+bx+c=0ax^2 + bx + c = 0:

x2+bax=−ca  ⇒  (x+b2a)2=b24a2−ca=b2−4ac4a2x^2 + \frac{b}{a}x = -\frac{c}{a} \;\Rightarrow\; \left(x + \frac{b}{2a}\right)^2 = \frac{b^2}{4a^2} - \frac{c}{a} = \frac{b^2 - 4ac}{4a^2}

Square root both sides and rearrange:

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

So the formula is completing the square done once, for every quadratic at the same time.

Common mistakes

  • Forgetting that −b-b flips the sign of bb.
  • Calculating −4ac-4ac wrongly when cc is negative: −4(2)(−5)=+40-4(2)(-5) = +40.
  • Dividing only part of the top by 2a2a. The whole of −b±…-b \pm \sqrt{\ldots} is divided.
  • Rounding too early. Keep the surd until the last line, then round.
  • Not rearranging to =0= 0 first.

Our quadratic equation solver shows the full working and the discriminant for any equation.

Practice questions

  1. Solve x2+5x+3=0x^2 + 5x + 3 = 0 to 2 decimal places.
  2. Solve 3x2−2x−4=03x^2 - 2x - 4 = 0 in surd form.
  3. How many real solutions does x2+4x+7=0x^2 + 4x + 7 = 0 have?
  4. Find kk if 2x2+kx+8=02x^2 + kx + 8 = 0 has exactly one solution.

Answers: 1. x=−0.70x = -0.70 or x=−4.30x = -4.30. 2. x=1±133x = \dfrac{1 \pm \sqrt{13}}{3}. 3. None (discriminant 16−28=−1216 - 28 = -12). 4. k=±8k = \pm 8.

Frequently asked questions

When do you use the quadratic formula?

When a quadratic equation doesn't factorise, or when the question asks for answers in surd form or to a number of decimal places. It works for every quadratic.

What does the ± mean?

That there are two calculations to do: one with plus and one with minus. Each gives one solution, unless the discriminant is zero, when both give the same answer.

What if the discriminant is negative?

There are no real solutions, because you can't take the square root of a negative number in the real numbers. The graph doesn't cross the x-axis.

Sources

  1. GCSE mathematics: subject content and assessment objectives. Department for Education.
  2. Cambridge IGCSE Mathematics 0580 syllabus. Cambridge International.