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 multiple roots in its splitting field. The discriminant is given by
where is the leading coefficient and are the roots (counting multiplicity) of the polynomial in some 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.
Simpler polynomials have simpler expressions for their discriminants. For example,
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:
The discriminant of the general polynomial
& vdots &&&&&&&&vdots& 0 & ldots & 0 & a_n & a_{n-1} & a_{n-2} & ldots & a_1 & 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 and , notation . The discriminant of is now given by the formula
For example, in the case n = 4, the above determinant is
& 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_1end{vmatrix}.
The discriminant of the degree 4 polynomial is then obtained from this determinant upon dividing by . Equivalently, the discriminant is equal to
where r1, ..., rn 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 ri remains valid; the roots have to be taken in some splitting field of the polynomial.
For a conic section defined by the real polynomial:
the discriminant is equal to
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 factors).
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
where the Li are linear forms and 1 ≤ i ≤ n 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.