What Is the Discriminant?
The discriminant is a numerical invariant derived from a polynomial's coefficients that describes the nature of its roots. For a polynomial p(x) = aₙxⁿ + ... + a₁x + a₀, the discriminant encodes whether roots are real, complex, or repeated.
Rather than solving the polynomial explicitly, you compute the discriminant to determine:
- Whether roots are distinct or repeated
- Whether roots are real or non-real complex numbers
- The geometric structure of the polynomial's graph
This property makes discriminants invaluable in fields ranging from control theory (where repeated roots indicate system instability) to algebraic geometry and computational algebra.
Discriminant Formulas by Degree
Each polynomial degree has its own discriminant formula, built from the coefficients. As the degree rises, the formula becomes exponentially more intricate—a cubic has 5 terms, a quartic has 16, and a quintic jumps to 59.
Quadratic (ax² + bx + c):
Δ = b² − 4ac
Cubic (ax³ + bx² + cx + d):
Δ = 18abcd − 4b³d + b²c² − 4ac³ − 27a²d²
Quartic (ax⁴ + bx³ + cx² + dx + e):
Δ = 256a³e³ − 192a²bde² − 128a²c²e² + 144a²cd²e − 27a²d⁴ + 144ab²ce² − 6ab²d²e − 80abc²de + 18abcd³ + 16ac⁴e − 4ac³d² − 27b⁴e² + 18b³cde − 4b³d³ − 4b²c³e + b²c²d²
a, b, c, d, e— Polynomial coefficients in descending order of degree
Interpreting the Discriminant
The sign and magnitude of the discriminant tell you precisely what type of roots your polynomial has:
- Δ > 0: All roots are real and distinct. For quadratics, this means two separate x-intercepts; for higher degrees, it implies no repeated roots exist.
- Δ = 0: The polynomial has at least one repeated root. This is the boundary case where the polynomial touches (but may not cross) the x-axis, or where two or more roots coincide.
- Δ < 0: For quadratics, two complex conjugate roots exist. For cubics and higher, a mix of real and non-real roots occurs.
In control engineering, a zero discriminant signals marginal stability; in optimization, it identifies degenerate critical points.
Common Mistakes and Pitfalls
Avoid these frequent errors when computing or interpreting discriminants:
- Sign errors in coefficient entry — Discriminant formulas are highly sensitive to coefficient signs. A single mistaken negative sign cascades into a completely wrong result. Always double-check that you've entered coefficients with their correct signs, especially for linear and constant terms.
- Confusing the quadratic discriminant with others — The famous formula b² − 4ac applies only to quadratics. Many students mistakenly apply it to cubics or quartics. Higher-degree polynomials have their own distinct (and much longer) formulas that cannot be simplified to the quadratic version.
- Forgetting zero coefficients — If your polynomial is missing a term—for example, x⁴ + 2x² − 5 (no x³ or x term)—you must still enter the missing coefficients as zero. Omitting them entirely will produce incorrect results.
- Misinterpreting discriminant sign for root location — A negative discriminant does not mean the polynomial has no real roots; it depends on degree. A cubic with Δ < 0 always has at least one real root. Only for quadratics does Δ < 0 guarantee purely complex roots.
How to Use the Calculator
Using this tool requires just three straightforward steps:
- Select polynomial degree: Choose 2 (quadratic), 3 (cubic), 4 (quartic), or 5 (quintic).
- Enter coefficients: Input each coefficient in order from highest to lowest degree. Include zero for any missing terms.
- Read the result: The discriminant appears instantly, along with an interpretation of what it reveals about your polynomial's roots.
No intermediate steps are shown; the calculator computes the full formula internally and delivers the final numerical discriminant in one calculation.