Skip to main content
Mathematics LibreTexts

14.5: The Discriminant

  • Page ID
    248112
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \(\newcommand{\longvect}{\overrightarrow}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\ket}[1]{\left| #1 \right>}\)
    \(\newcommand{\bra}[1]{\left< #1 \right|}\)
    \(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
    \(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
    \(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
    \(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
    \(\newcommand{\expect}[1]{\langle #1 \rangle}\)
    \(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Videos

    Lecture: The Discriminant

    Definitions and Theorems

    Every quadratic equation in one variable can be written in the general form \(ax^2 + bx + c = 0\), where \(a\), \(b\), and \(c\) are real numbers and \(a \neq 0\). The solutions of such an equation are given by the Quadratic Formula,\[x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}.\nonumber\]The quantity beneath the radical governs the entire character of the solution set, and it is given its own name.

    Definition: Discriminant

    The discriminant of the quadratic equation \( ax^2 + bx + c = 0 \), where \(a\), \(b\), and \(c\) are real numbers and \(a \neq 0\), is the quantity\[ D = b^2 - 4ac. \nonumber \]

    Notation: The Discriminant

    The discriminant is denoted \(D\) throughout this text. Other sources denote it \(\Delta\) or \(b^2 - 4ac\) written out in full.

    Because the discriminant is a polynomial function of the coefficients alone, it allows you to deduce properties of the solutions without computing them.

    Theorem: The Discriminant Test

    Let \(ax^2 + bx + c = 0\), where \(a\), \(b\), and \(c\) are real numbers and \(a \neq 0\), and let \(D = b^2 - 4ac\).

    1. If \(D \gt 0\), the equation has two distinct real solutions.
    2. If \(D = 0\), the equation has exactly one real solution, called a repeated (or double) solution.
    3. If \(D \lt 0\), the equation has no real solutions; it has two solutions that are complex conjugates of one another.

    When the coefficients are restricted to the rational numbers, the discriminant reveals more than the count of the real solutions—it also separates the rational solutions from the irrational ones.

    Theorem: Rational Solutions

    Let \(ax^2 + bx + c = 0\), where \(a\), \(b\), and \(c\) are rational numbers and \(a \neq 0\), and let \(D = b^2 - 4ac\). The solutions of the equation are rational if and only if \(D\) is the square of a rational number. In particular, if \(a\), \(b\), and \(c\) are integers, the solutions are rational if and only if \(D\) is a perfect square.

    Summary: The Nature of the Solutions

    For \(ax^2 + bx + c = 0\) with integer coefficients and \(a \neq 0\):

    Discriminant Nature of the Solutions
    \(D \gt 0\) and a perfect square Two distinct real, rational solutions
    \(D \gt 0\) and not a perfect square Two distinct real, irrational solutions (conjugates)
    \(D = 0\) One repeated real, rational solution
    \(D \lt 0\) Two complex conjugate solutions; no real solutions
    Caution: General Form First

    The formula \(D = b^2 - 4ac\) is valid only when the equation has been written in the general form \(ax^2 + bx + c = 0\), with zero isolated on one side. Rearrange the equation before identifying \(a\), \(b\), and \(c\). Also note that \(b^2\) is never negative: the square of a negative coefficient is positive, so \((-7)^2 = 49\), not \(-49\).

    The Discriminant Test has an immediate graphical reading. The real solutions of \(ax^2 + bx + c = 0\) are precisely the \(x\)-intercepts of the parabola \(f(x) = ax^2 + bx + c\), so the sign of \(D\) counts those intercepts.

    Theorem: Discriminant and \(x\)-Intercepts

    Let \(f(x) = ax^2 + bx + c\) with \(a\), \(b\), and \(c\) real and \(a \neq 0\), and let \(D = b^2 - 4ac\). The graph of \(f\) has two \(x\)-intercepts if \(D \gt 0\), exactly one \(x\)-intercept if \(D = 0\), and no \(x\)-intercepts if \(D \lt 0\).

    Theorem: Zeros of a Quadratic Function and the Discriminant

    Let\[ f(x) = ax^2 + bx + c. \nonumber \]The graph of \( f \) has

    • two \( x \)-intercepts if the discriminant is positive,
    • one \( x \)-intercept if the discriminant is \( 0 \), and
    • no \( x \)-intercepts if the discriminant is negative.

    Another way to say this is the equation, \( ax^2 + bx + c = 0 \), has

    • two real roots if the discriminant is positive,
    • one real root if the discriminant is \( 0 \), and
    • two non-real roots if the discriminant is negative.
    Graph of three parabolas in different colors (black, green, blue) on a Cartesian plane, labeled with equations and coordinates.
    Figure \(\PageIndex{1}\): The parabolas \(f(x) = x^2 - 4x + 1\) (blue, with \(D = 12\)), \(g(x) = x^2 - 4x + 4\) (green, with \(D = 0\)), and \(h(x) = x^2 - 4x + 7\) (black, with \(D = -12\)). The graph of \(f\) crosses the \(x\)-axis twice, the graph of \(g\) touches the \(x\)-axis once at \((2,0)\), and the graph of \(h\) does not meet the \(x\)-axis.

    Examples

    Example \(\PageIndex{1}\): A Perfect-Square Discriminant

    Use the discriminant to determine the nature of the solutions of \(2x^2 - 7x + 3 = 0\).

    Solution

    The equation is already in general form, with \(a = 2\), \(b = -7\), and \(c = 3\). Therefore,\[D = b^2 - 4ac = (-7)^2 - 4(2)(3) = 49 - 24 = 25.\nonumber\]Since \(D \gt 0\), there are two distinct real solutions. Since \(25 = 5^2\) is a perfect square and the coefficients are integers, both solutions are rational.

    The equation has two distinct real, rational solutions. (For confirmation, they are \(x = \dfrac{1}{2}\) and \(x = 3\), though the discriminant alone settled the question.)

    Example \(\PageIndex{2}\): A Positive Discriminant That Is Not a Perfect Square

    Use the discriminant to determine the nature of the solutions of \(x^2 - 4x + 1 = 0\).

    Solution

    Here \(a = 1\), \(b = -4\), and \(c = 1\), so\[D = (-4)^2 - 4(1)(1) = 16 - 4 = 12.\nonumber\]Since \(D \gt 0\), there are two distinct real solutions. However, \(12\) is not a perfect square, so by the Rational Solutions Theorem the solutions are irrational.

    The equation has two distinct real, irrational solutions. They occur as a conjugate pair, \(x = 2 \pm \sqrt{3}\).

    Example \(\PageIndex{3}\): A Zero Discriminant

    Use the discriminant to determine the nature of the solutions of \(9x^2 - 12x + 4 = 0\).

    Solution

    With \(a = 9\), \(b = -12\), and \(c = 4\),\[D = (-12)^2 - 4(9)(4) = 144 - 144 = 0.\nonumber\]Since \(D = 0\), the equation has exactly one real solution, and that solution is repeated. Because \(0\) is a perfect square, the solution is rational.

    The equation has one repeated real, rational solution, namely \(x = \dfrac{2}{3}\). Equivalently, the left side factors as \((3x - 2)^2\), which is a perfect-square trinomial.

    Example \(\PageIndex{4}\): A Negative Discriminant

    Use the discriminant to determine the nature of the solutions of \(3x^2 - 2x + 5 = 0\).

    Solution

    With \(a = 3\), \(b = -2\), and \(c = 5\),\[D = (-2)^2 - 4(3)(5) = 4 - 60 = -56.\nonumber\]Since \(D \lt 0\), the radicand in the Quadratic Formula is negative, so the equation has no real solutions.

    The equation has two complex conjugate solutions, \(x = \dfrac{1 \pm i\sqrt{14}}{3}\). No classification as rational or irrational applies, since neither solution is real.

    Example \(\PageIndex{5}\): Rewriting Before Computing

    Use the discriminant to determine the nature of the solutions of \((x - 3)(x + 2) = 6\).

    Solution

    The equation is not in general form, so the coefficients cannot be read off directly. Expand the left side and subtract \(6\) from both sides:\[x^2 - x - 6 = 6 \quad \Longrightarrow \quad x^2 - x - 12 = 0.\nonumber\]Now \(a = 1\), \(b = -1\), and \(c = -12\), so\[D = (-1)^2 - 4(1)(-12) = 1 + 48 = 49.\nonumber\]Since \(D \gt 0\) and \(49 = 7^2\) is a perfect square, the equation has two distinct real, rational solutions. (They are \(x = -3\) and \(x = 4\).)

    Note that computing \(D\) from the unrearranged equation, by mistakenly taking \(c = -6\), would have produced \(D = 25\)—a different value, and the wrong one.

    Example \(\PageIndex{6}\): Solving for a Coefficient

    Determine all values of \(c\) for which the equation \(2x^2 + 8x + c = 0\) has

    1. two distinct real solutions,
    2. one repeated real solution, and
    3. no real solutions.
    Solutions

    In every part, \(a = 2\) and \(b = 8\), so the discriminant is\[D = 8^2 - 4(2)(c) = 64 - 8c.\nonumber\]Each part is now a linear equation or inequality in \(c\).

    1. Two distinct real solutions require \(D \gt 0\). Solving \(64 - 8c \gt 0\) gives \(64 \gt 8c\), so \(c \lt 8\). In interval notation, \(c \in (-\infty, 8)\).
    2. One repeated real solution requires \(D = 0\). Solving \(64 - 8c = 0\) gives \(c = 8\).
    3. No real solutions requires \(D \lt 0\). Solving \(64 - 8c \lt 0\) gives \(c \gt 8\). In interval notation, \(c \in (8, \infty)\).

    MyOpenMath Practice


    Sources

    Several parts of this text use modifications from the following source:

    This source is released under the Creative Commons Attribution-Share-Alike License 4.0.


    This page titled 14.5: The Discriminant was last modified on Mon, 02 Nov 2026 20:18:05 GMT and is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Kristine Woods.