# Discriminant

In algebra, the discriminant of a polynomial is a certain expression in the coefficients of the polynomial which equals zero if and only if the polynomial has multiple roots in the complex numbers. For example, the discriminant of the quadratic polynomial

${\displaystyle ax^{2}+bx+c}$       is       ${\displaystyle b^{2}-4ac}$.

The discriminant of the cubic polynomial

${\displaystyle ax^{3}+bx^{2}+cx+d}$       is       ${\displaystyle b^{2}c^{2}-4ac^{3}-4b^{3}d-27a^{2}d^{2}+18abcd}$.

This concept also applies if the polynomial has coefficients in a field which is not contained in the complex numbers. In this case, the discriminant vanishes if and only if the polynomial has no multiple roots in its splitting field.

The concept of discriminant has been generalized to other algebraic structures besides polynomials, including conic sections, quadratic forms, and algebraic number fields. Discriminants in algebraic number theory are closely related, and contain information about ramification. In fact, the more geometric types of ramification are also related to more abstract types of discriminant, making this a central algebraic idea in many applications.

## Formulas for the discriminant

${\displaystyle ax^{2}+bx+c}$       has discriminant       ${\displaystyle b^{2}-4ac}$.

The cubic polynomial

${\displaystyle ax^{3}+bx^{2}+cx+d}$       has discriminant       ${\displaystyle b^{2}c^{2}-4ac^{3}-4b^{3}d-27a^{2}d^{2}+18abcd}$.

Simpler polynomials have simpler expressions for their discriminants. For example the monic quadratic polynomial

${\displaystyle x^{2}+bx+c}$       has discriminant       ${\displaystyle b^{2}-4c}$.

The monic cubic polynomial

${\displaystyle x^{3}+bx^{2}+cx+d}$       has discriminant       ${\displaystyle b^{2}c^{2}-4c^{3}-4b^{3}d-27d^{2}+18bcd}$.

The monic cubic without quadratic term

${\displaystyle x^{3}+cx+d}$       has discriminant       ${\displaystyle -4c^{3}-27d^{2}}$.

## The discriminant in the quadratic formula

The quadratic polynomial P(x) = ax2 + bx + c has discriminant D = b2 − 4ac, which is the quantity under the square root sign in the quadratic formula. For real numbers a, b, c, one has:

• When D > 0 , P(x) has two distinct real roots ${\displaystyle x_{1,2}={\frac {-b\pm {\sqrt {b^{2}-4ac}}}{2a}}}$, and its graph crosses the x-axis twice.
• When D = 0, P(x) has two coincident real roots ${\displaystyle x_{1}=x_{2}=-{\frac {b}{2a}}}$, and its graph is tangent to the x-axis.
• When D < 0 , P(x) has no real roots, and its graph lies strictly above or below the x-axis. In this case, P(x) has two distinct complex roots.

## Discriminant of a polynomial

The discriminant of the general polynomial

${\displaystyle p(x)=a_{n}x^{n}+a_{n-1}x^{n-1}+a_{n-2}x^{n-2}+\ldots +a_{1}x+a_{0}}$

is, up to a factor, equal to the determinant of the (2n − 1)×(2n − 1) matrix (see Sylvester matrix)

${\displaystyle \left({\begin{matrix}&a_{n}&a_{n-1}&a_{n-2}&\ldots &a_{0}&0&\ldots &\ldots &0\\&0&a_{n}&a_{n-1}&a_{n-2}&\ldots &a_{0}&0&\ldots &0\\&\vdots \ &&&&&&&&\vdots \\&0&0&\ldots \ &0&a_{n}&a_{n-1}&a_{n-2}&\ldots &a_{0}\\&na_{n}&(n-1)a_{n-1}&(n-2)a_{n-2}&\ldots \ &1a_{1}&0&\ldots &\ldots &0\\&0&na_{n}&(n-1)a_{n-1}&(n-2)a_{n-2}&\ldots \ &1a_{1}&0&\ldots &0\\&\vdots \ &&&&&&&&\vdots \\&0&0&\ldots &0&na_{n}&(n-1)a_{n-1}&(n-2)a_{n-2}&\ldots \ &1a_{1}\\\end{matrix}}\right)}$

The determinant of this matrix is known as the resultant of ${\displaystyle p(x)}$ and ${\displaystyle p'(x)}$, notation ${\displaystyle R(p,p')}$. The discriminant ${\displaystyle D(p)}$ of ${\displaystyle p(x)}$ is now given by the formula

${\displaystyle D(p)=(-1)^{{\frac {1}{2}}n(n-1)}{\frac {1}{a_{n}}}R(p,p')\,}$.

For example, in the case n = 4, the above determinant is

${\displaystyle {\begin{vmatrix}&a_{4}&a_{3}&a_{2}&a_{1}&a_{0}&0&0\\&0&a_{4}&a_{3}&a_{2}&a_{1}&a_{0}&0\\&0&0&a_{4}&a_{3}&a_{2}&a_{1}&a_{0}\\&4a_{4}&3a_{3}&2a_{2}&1a_{1}&0&0&0\\&0&4a_{4}&3a_{3}&2a_{2}&1a_{1}&0&0\\&0&0&4a_{4}&3a_{3}&2a_{2}&1a_{1}&0\\&0&0&0&4a_{4}&3a_{3}&2a_{2}&1a_{1}\\\end{vmatrix}}}$

The discriminant of the degree 4 polynomial is then obtained from this determinant upon dividing by ${\displaystyle a_{4}}$.

Equivalently, the discriminant is equal to

${\displaystyle a_{n}^{2n-2}\prod _{i

where r1, ..., rn are the complex roots (counting multiplicity) of the polynomial p(x):

${\displaystyle {\begin{matrix}p(x)&=&a_{n}x^{n}+a_{n-1}x^{n-1}+\ldots +a_{1}x+a_{0}\\&=&a_{n}(x-r_{1})(x-r_{2})\ldots (x-r_{n})\end{matrix}}}$

This second expression makes it clear that, p has a multiple root if and only if the discriminant is zero. (This multiple root can be complex.)

The discriminant can be defined for polynomials over arbitrary fields, in exactly the same fashion as above. The product formula involving the roots ri remains valid; the roots have to be taken in some splitting field of the polynomial.

## Discriminant of a conic section

For a conic section defined by the real polynomial:

ax2 + bxy + cy2 + dx + ey + f= 0,

the discriminant is equal to

b2 − 4ac,

and determines the shape of the conic section. If the discriminant is less than 0, the equation is of an ellipse or a circle. If the discriminant equals 0, the equation is that of a parabola. If the discriminant is greater than 0, the equation is that of a hyperbola. This formula will not work for degenerate cases (when the polynomial factorizes).

## Discriminant of a quadratic form

There is a substantive generalization to quadratic forms Q over any field K of characteristic ≠ 2. These can be written as a sum of terms

aiLi2

where the Li are linear forms and 1 ≤ in where n is the number of variables. Then the discriminant is the product of the ai, taken in K/K2, and is then well defined (i.e., up to squares). A more invariant way to say this is as (the class of) the determinant of a symmetric matrix for Q.

## Discriminant of an algebraic number field

See main article, Discriminant of an algebraic number field.