← High school courses

High school Algebra II

The Quadratic Formula and the Discriminant Explained, Including Complex Roots

Some quadratic equations will not factor neatly, and the quadratic formula solves every one of them. The part under its square root, the discriminant, tells you what kind of answers to expect before you finish the work.

The quadratic formula

First write your equation in standard form, ax² + bx + c = 0, with everything on one side and zero on the other. Then read off a, b and c, keeping their signs.

The solutions are x = (−b ± √(b² − 4ac)) ÷ (2a). The ± sign means you do the calculation twice, once with plus and once with minus, which gives two solutions.

The discriminant

The discriminant is D = b² − 4ac, the expression under the square root. Its sign tells you the whole story.

If D > 0, there are two different real solutions. If D = 0, there is exactly one real solution, a repeated root, because adding or subtracting zero changes nothing. If D < 0, there are no real solutions; instead there are two complex solutions.

If D is a perfect square, such as 25, the real solutions are rational and the equation could have been factored.

Complex roots

You cannot take the square root of a negative number in the real numbers, so mathematicians define i = √(−1). Then √(−36) = 6i, because √36 × √(−1) = 6i.

Complex solutions are written a + bi, and they come as a matched pair called conjugates: for example, −2 + 3i and −2 − 3i. Graphically, this means the parabola never touches the x-axis.

Worked examples

Example 1

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

  1. Identify a = 2, b = −7, c = 3.
  2. Find the discriminant: (−7)² − 4(2)(3) = 49 − 24 = 25. It is positive, so expect two real solutions.
  3. Plug in: x = (7 ± √25) ÷ 4 = (7 ± 5) ÷ 4.
  4. Plus: 12 ÷ 4 = 3. Minus: 2 ÷ 4 = ½.

Answer: x = 3 or x = ½.

Example 2

Solve x² + 4x + 13 = 0.

  1. Here a = 1, b = 4, c = 13.
  2. The discriminant is 4² − 4(1)(13) = 16 − 52 = −36. It is negative, so the solutions are complex.
  3. x = (−4 ± √(−36)) ÷ 2 = (−4 ± 6i) ÷ 2.
  4. Divide each part by 2: x = −2 ± 3i.

Answer: x = −2 + 3i or x = −2 − 3i.

Example 3

Use the discriminant to describe the solutions of x² − 6x + 9 = 0.

  1. a = 1, b = −6, c = 9.
  2. D = (−6)² − 4(1)(9) = 36 − 36 = 0.
  3. A discriminant of 0 gives one repeated real solution: x = 6 ÷ 2 = 3.

Answer: There is one real solution, x = 3, a double root.

Common mistakes

Check yourself

  1. Solve x² − 5x + 6 = 0 with the quadratic formula.
    Show the answerD = 25 − 24 = 1, so x = (5 ± 1) ÷ 2, giving x = 3 or x = 2.
  2. Solve x² + 2x + 5 = 0.
    Show the answerD = 4 − 20 = −16, so x = (−2 ± 4i) ÷ 2 = −1 ± 2i.
  3. What does the discriminant of 2x² + 3x + 5 tell you?
    Show the answerD = 9 − 40 = −31, which is negative, so there are no real solutions, only two complex ones.

Practice it

Try ten free Algebra II practice questions, each with a hint and an explanation. No account needed.

Practice Algebra II free →

Written by passvana for high school Algebra II students. passvana is independent and not affiliated with any school, district or test publisher.