Discriminant
The discriminant $(b^2 - 4ac)$ of a quadratic equation determines whether it has two real solutions, one real solution, or no real solutions.
Formula
D = b^2 - 4ac
Definition
The discriminant is the expression under the square root in the quadratic formula, $D = b^2 - 4ac$, and it tells you how many real solutions a quadratic $ax^2 + bx + c = 0$ has without fully solving it: $D > 0$ gives two distinct real roots, $D = 0$ gives one repeated (double) root, and $D < 0$ gives two complex conjugate roots, with no real solutions. When $D$ is a perfect square and $a$, $b$, $c$ are integers, the roots are rational. More generally, the discriminant of a degree-$n$ polynomial $f$ is $\Delta(f) = a_n^{2n-2} \prod_{i < j} (r_i - r_j)^2$ over its complex roots $r_i$ (which reduces to $b^2 - 4ac$ for a quadratic and to $-4p^3 - 27q^2$ for a cubic $x^3 + px + q$); it is zero exactly when $f$ has a repeated root, equivalently when $\gcd(f, f')$ is not constant.
Example
For $x^2 - 4x + 4 = 0$, $D = 16 - 16 = 0$: one solution. For $x^2 - 5x + 6 = 0$, $D = 25 - 24 = 1 > 0$: two solutions. For $2x^2 + 3x + 5 = 0$, $D = 9 - 40 = -31 < 0$: no real solutions, and the parabola $y = 2x^2 + 3x + 5$ lies entirely above the x-axis. For $x^3 - 3x + 2 = 0$, the cubic discriminant is $-4(-3)^3 - 27(2)^2 = 108 - 108 = 0$, confirming the repeated root visible in $x^3 - 3x + 2 = (x-1)^2(x+2)$.
Key Insight
Positive discriminant means $2$ real solutions, zero means $1$, negative means $0$, so you can predict the answer count before solving, making it the key diagnostic tool for quadratics (in real-world models, $D < 0$ means the modeled situation never actually reaches zero). The discriminant is a polynomial in the coefficients of $f$ and is invariant under field extensions, $\Delta(f) = 0$ in any field containing the coefficients if and only if $f$ has a repeated root over the algebraic closure, making it a fundamental tool in Galois theory and algebraic number theory.