Part 30 of 30 · QuadraticsSee the whole course

The quadratic formula and the discriminant

Short answer

For ax² + bx + c = 0, the solutions are x = (−b ± √(b² − 4ac)) ÷ 2a. The number under the root, b² − 4ac, is the discriminant. If it is positive there are two solutions, if it is zero there is one, and if it is negative there are none (no real ones).

When to use it

Factoring is quick when the numbers are friendly. The formula works on every quadratic, including the ones that do not factor into whole numbers. First make sure the equation equals 0, then read off a, b and c with their signs.

The method in three steps

  1. Write a, b and c, with signs. In x² − 2x − 3 = 0: a = 1, b = −2, c = −3.
  2. Work out the discriminant b² − 4ac.
  3. Put everything into the formula: x = (−b ± √D) ÷ 2a. The ± gives two answers, one with plus and one with minus.

Example 1: x² − 2x − 3 = 0

a = 1, b = −2, c = −3.
b² − 4ac = (−2)² − 4(1)(−3) = 4 + 12 = 16.
x = (2 ± √16) ÷ 2 = (2 ± 4) ÷ 2.
Plus: 6 ÷ 2 = 3. Minus: −2 ÷ 2 = −1.

Factoring gives the same answers: (x − 3)(x + 1) = 0. The figure below starts here.

x² − 2x − 3 = 0
  1. a = 1, b = −2, c = −3
  2. b² − 4ac = (−2)² − 4(1)(−3) = 16
  3. x = (2 ± √16) ÷ 2 = −1 or 3
The discriminant 16 is positive, so there are two solutions: x = −1 and x = 3. The parabola crosses the x-axis twice.

Example 2: an answer that is not a whole number

x² − 4x + 1 = 0: a = 1, b = −4, c = 1.
b² − 4ac = 16 − 4 = 12.
x = (4 ± √12) ÷ 2. Since √12 = 2√3, this is 2 ± √3.
That is about 3.73 and 0.27.

What the discriminant tells you

D > 0: two solutions. The parabola crosses the x-axis twice.
D = 0: one solution. x² − 4x + 4 = 0 has D = 16 − 16 = 0, so x = 4 ÷ 2 = 2. The parabola touches the x-axis once.
D < 0: no real solutions. x² + 2x + 5 = 0 has D = 4 − 20 = −16. You cannot take the square root of a negative number, and the parabola never reaches the x-axis.

Where the formula comes from

The vertex of a parabola is at x = −b ÷ 2a, the middle. The ± part, √D ÷ 2a, is how far the two solutions sit on each side of that middle. A bigger discriminant means the solutions are further apart. When D = 0 the distance is 0, so the two solutions meet on the vertex. This is the same “halfway between the roots” picture as in factored form.

Watch it explained in under a minute

The same idea, narrated step by step. Square version for sharing: download the 1:1 video.

The four mistakes to avoid

Try it yourself

Tap a question to see the answer.

1. x² − 6x + 5 = 0

D = 36 − 20 = 16. x = (6 ± 4) ÷ 2, so x = 5 or x = 1.

2. 2x² + 3x − 2 = 0

a = 2, b = 3, c = −2. D = 9 + 16 = 25. x = (−3 ± 5) ÷ 4, so x = ½ or x = −2.

3. How many real solutions does x² + 3x + 5 = 0 have?

D = 9 − 20 = −11, which is negative, so none. The parabola never reaches the x-axis.

Where this fits in

That finishes the quadratics part of the course: what a quadratic is, vertex form, factored form, factoring, and the formula. To see how the same ideas play out in the app, try quadratics, visually, or browse every post in the series index.

Quick answers

Questions about this topic

What is the quadratic formula?

For ax² + bx + c = 0, x = (−b ± √(b² − 4ac)) ÷ 2a. It gives the solutions of any quadratic equation.

What is the discriminant?

The part under the square root, b² − 4ac. Its sign tells you how many real solutions there are.

What does a negative discriminant mean?

There are no real solutions, because you cannot take the square root of a negative number. The parabola never reaches the x-axis.

When should I use the formula instead of factoring?

Use factoring when you can spot the two numbers quickly. Use the formula when the numbers are awkward or the solutions are not whole numbers.

Keep going

Learn it by playing

Pip: Math Adventure is a math game for iPhone where functions, lines, equations and calculus are puzzles you solve by playing. It is coming soon to the App Store.

Join the list and we will tell you the day Pip is out.