“Factor it and solve” falls apart the moment a quadratic refuses to factor. The rescue is simple: substituting into the quadratic formula always produces the roots, factorable or not. The discriminant goes one step further, telling you how many roots exist before you solve anything.

This article walks through the formula with fully substituted examples, explains how the discriminant reveals the count and type of roots, and covers when factoring is still the faster route — finishing with a free tool for checking your working.

The formula and the discriminant

For ax² + bx + c = 0 (a ≠ 0), the roots come from:

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

The expression under the radical, b² − 4ac, is the discriminant, written D. Its value predicts the number and type of roots before any solving:

Discriminant Roots Graph interpretation
D > 0 Two distinct real roots The parabola crosses the x-axis twice
D = 0 A repeated root The parabola touches the x-axis once
D < 0 No real roots The parabola never meets the x-axis

The formula and the discriminant connect directly: a positive D puts a positive number under the radical (two values of x), a zero D collapses the radical (one value), and a negative D leaves nothing real to take a root of.

The formula has this shape because it generalizes completing the square: any quadratic can be rewritten as “(x + something)² = a number”, and solving that form for x produces exactly the formula. Knowing this makes the formula a derived result rather than a memorized incantation.

The graph confirms the same story. The parabola y = ax² + bx + c crossing the x-axis twice means two real roots, touching it once means the repeated root, and missing it means no real roots. Checking both the equation and the picture cements the idea.

Worked examples

Example 1: x² − 5x + 6 = 0

With a = 1, b = −5, c = 6, the discriminant is

D = (−5)² − 4 × 1 × 6 = 25 − 24 = 1

Since D = 1 > 0, there are two roots. Substituting into the formula:

x = (−(−5) ± √1) ÷ (2 × 1) = (5 ± 1) ÷ 2

giving x = 3 and x = 2. Factorization agrees: (x − 2)(x − 3) = 0. Each root checks by substitution — at x = 2 the left side is 4 − 10 + 6 = 0.

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

With a = 2, b = 3, c = −2:

D = 3² − 4 × 2 × (−2) = 9 + 16 = 25

x = (−3 ± √25) ÷ (2 × 2) = (−3 ± 5) ÷ 4

so x = 2/4 = 1/2 and x = −8/4 = −2 — matching the factorization (2x − 1)(x + 2) = 0. Note how the negative c makes −4ac contribute a positive term.

Example 3: x² + 6x + 9 = 0 (a repeated root)

D = 36 − 36 = 0, so the root repeats:

x = (−6 ± √0) ÷ 2 = −6 ÷ 2 = −3

With √0 = 0 the “±” collapses to a single value. Factoring writes the same story as (x + 3)² = 0 — this is completing the square in action.

Example 4: x² + x + 1 = 0 (no real roots)

D = 1² − 4 × 1 × 1 = −3 < 0, so no real roots exist. Computing the discriminant first prevents wasting effort on an equation that cannot be solved in real numbers. Complex roots do exist: x = −1/2 ± (√3/2)i.

Example 5: x² − 4x + 3 = 0 (factoring compared)

Hunting for two numbers that multiply to 3 and add to −4 finds −1 and −3, so (x − 1)(x − 3) = 0 gives x = 1, 3. The formula route gives D = 16 − 12 = 4 and x = (4 ± 2) ÷ 2 — the same roots. That D = 4 is a perfect square (2²) is exactly the sign that integer factoring will work.

Three common mistakes: dropping the sign of −b (with b = −5, −b is +5 — the classic substitution error in Example 1); forgetting to divide by 2a; and mis-signing −4ac when c is negative (−4 × 2 × (−2) is +16). Also remember to move everything to one side first: x² = 5x − 6 becomes x² − 5x + 6 = 0 before you read off a, b and c. An equation with a = 0 is not quadratic — solve it as a linear one.

Factoring versus the formula

When the factorization is obvious, splitting (x − 2)(x − 3) = 0 into x = 2, 3 is faster. But factoring depends on luck — the formula always works. Rather than agonizing over a stubborn trinomial, switch to the formula after a brief attempt. The reverse direction is useful too: roots α and β let you rebuild the equation as a(x − α)(x − β). Roots 2 and 3 with a = 1 rebuild x² − 5x + 6, and the relations “sum of roots = −b/a” and “product of roots = c/a” make the reconstruction easy to see.

Verify with the tool

The Quadratic Equation Calculator takes a, b and c and shows the discriminant, the substituted quadratic formula and the roots — including complex roots when D < 0. Everything runs locally in your browser.

How to use it (3 steps)

1

Rearrange into standard form

Move everything to one side so the equation reads ax² + bx + c = 0, then read off a, b and c carefully — sign errors start here.

2

Enter a, b and c

Type the three coefficients into their fields. The default example (1, −5, 6) is exactly Example 1 of this article.

3

Read the discriminant, roots and working

The tool shows D, the substituted formula and the roots — two real, one repeated, or complex. The "conditions and results" copy button records the whole calculation.

The tool featured in this article

Quadratic Equation Calculator

Roots with the discriminant and substituted working, covering repeated and complex roots. Free and browser-based.

Try it now

Entering Example 2 (a = 2, b = 3, c = −2) shows D = 25 with roots 0.5 and −2; Example 4 (1, 1, 1) reports D = −3 and the complex roots. Results are rounded to at most ten significant digits, so for exact fraction and radical forms, keep your paper working alongside the tool.

Summary

  • Every quadratic is solved by x = (−b ± √(b² − 4ac)) ÷ 2a; factoring is a speed bonus, not a requirement
  • D = b² − 4ac predicts the count: two roots, a repeated root, or none in the reals
  • Rearrange into standard form first, and treat the signs of a, b and c with care
  • A zero a is not quadratic — solve as a linear equation
  • Verify roots by substituting them back into the original equation

FAQ

Why compute the discriminant first?

It tells you how many roots to expect, so a D < 0 equation consumes no solving effort, and it doubles as a graph check. A D that is a perfect square also signals that rational — usually integer — factoring will work.

Why are there two roots?

The “±” in the formula applies the radical both positively and negatively. A parabola can cross the x-axis at two points, and those two x-coordinates are the two roots.

What are “complex roots” when D is negative?

With no real solution available, the imaginary unit i (i² = −1) supplies one: x² + x + 1 = 0 has x = −1/2 ± (√3/2)i. The absence of real roots matches the parabola never crossing the x-axis.

Should I factor or use the formula?

Factor when the split is obvious; use the formula the moment it is not. Both routes reach identical roots, so the only cost of hesitating is time.

References

  • OpenStax, College Algebra 2e, Section 2.5 “Quadratic Equations” (the quadratic formula, the discriminant, and the relation to factoring): openstax.org