# 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

- is .

The discriminant of the cubic polynomial

- is .

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.

## Contents

## Formulas for the discriminant

The quadratic polynomial

- has discriminant .

The cubic polynomial

- has discriminant .

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

- has discriminant .

The monic cubic polynomial

- has discriminant .

The monic cubic without quadratic term

- has discriminant .

## The discriminant in the quadratic formula

The quadratic polynomial *P*(*x*) = *ax*^{2} + *bx* + *c* has discriminant *D* = *b*^{2} − 4*ac*, 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 , and its graph crosses the*x*-axis twice. - When
*D*= 0,*P*(*x*) has two coincident real roots , 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

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

The determinant of this matrix is known as the resultant of and , notation . The discriminant of is now given by the formula

- .

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

The discriminant of the degree 4 polynomial is then obtained from this determinant upon dividing by .

Equivalently, the discriminant is equal to

where *r*_{1}, ..., *r*_{n} are the complex roots (counting multiplicity) of the polynomial *p(x)*:

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 *r*_{i} 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:

*ax*^{2}+*bxy*+*cy*^{2}+*dx*+*ey*+*f*= 0,

the discriminant is equal to

*b*^{2}− 4*ac*,

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

*a*_{i}*L*_{i}^{2}

where the *L*_{i} are linear forms and 1 ≤ *i* ≤ *n* where *n* is the number of variables. Then the **discriminant** is the product of the *a*_{i}, taken in *K*/*K*^{2}, 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.