In mathematics, the discriminant of a polynomial is an expression in its coefficients that provides information about its roots without explicitly calculating them. For a polynomial with fixed coefficients, its discriminant is a fixed value: unlike the polynomial, it does not vary with the variable x. For the quadratic polynomial f(x)=ax2+bx+c, where a≠0, the discriminant is
Δ=b2−4ac. A root is a value of x for which f(x)=0. If a, b, and c are real numbers, the sign of the discriminant determines the number of distinct real roots and how the graph, a parabola, meets the x-axis:
If Δ>0, the polynomial has two distinct real roots; the parabola crosses the x-axis at two points. If Δ=0, it has one distinct real root, known as a double or repeated root because the two roots coincide. The parabola touches the x-axis at its vertex. If Δ<0, it has no real roots; the parabola does not meet the x-axis. Its two roots are instead distinct non-real complex conjugates. The discriminant appears under the square root in the quadratic formula. More generally, the discriminant is a polynomial function of the coefficients of a polynomial. For a polynomial with coefficients in a field, the discriminant is zero if and only if the polynomial has a multiple root in an algebraically closed extension. For a cubic polynomial with real coefficients, a positive discriminant indicates three distinct real roots; a negative discriminant indicates one real root and two distinct non-real complex conjugate roots. For polynomials of higher degree, the sign alone generally provides less information about the number of real roots. Discriminants are used in polynomial factorization, number theory, and algebraic geometry. Related concepts include the discriminant of an algebraic number field, the discriminant of a quadratic form, and discriminants of homogeneous polynomials and projective hypersurfaces.
Origin The term "discriminant" was coined in 1851 by the British mathematician James Joseph Sylvester.
Definition Let
A(x)=anxn+an−1xn−1+⋯+a1x+a0 be a polynomial of degree n (this means an≠0), such that the coefficients a0,…,an belong to a field, or, more generally, to a commutative ring. The resultant of A with its derivative,
A′(x)=nanxn−1+(n−1)an−1xn−2+⋯+a1, is a polynomial in a0,…,an with integer coefficients, which is the determinant of the Sylvester matrix of A and A′. The nonzero entries of the first column of the Sylvester matrix are an and nan, and the resultant is thus a multiple of an. Hence the discriminant—up to its sign—is defined as the quotient of the resultant of A and A' by an:
Discx(A)=(−1)n(n−1)/2anResx(A,A′) where the resultant is computed with A′ considered of degree n−1, even if it has a lower degree, which occurs when the characteristic divides n. Historically, this sign was chosen so that, for a polynomial with real coefficients, the discriminant is positive when all its roots are real and distinct. The division by an may not be well defined if the ring of the coefficients contains zero divisors. Such a problem may be avoided by replacing an by 1 in the first column of the Sylvester matrix—before computing the determinant. In any case, the discriminant is a polynomial in a0,…,an with integer coefficients.
Expression in terms of the roots When the above polynomial is defined over a field, it has n roots, r1,r2,…,rn, not necessarily all distinct, in any algebraically closed extension of the field. (If the coefficients are real numbers, the roots may be taken in the field of complex numbers, where the fundamental theorem of algebra applies.) In terms of the roots, the discriminant is equal to
Discx(A)=an2n−2∏i<j(ri−rj)2=(−1)n(n−1)/2an2n−2∏i≠j(ri−rj). It is thus the square of the Vandermonde polynomial times an2n−2. This expression for the discriminant is often taken as a definition. It makes clear that if the polynomial has a multiple root, then its discriminant is zero, and that, in the case of real coefficients, if all the roots are real and simple, then the discriminant is positive. Unlike the previous definition, this expression is not obviously a polynomial in the coefficients, but this follows either from the fundamental theorem of Galois theory, or from the fundamental theorem of symmetric polynomials and Vieta's formulas by noting that this expression is a symmetric polynomial in the roots of A.
Low degrees The discriminant of a linear polynomial (degree 1) is rarely considered. If needed, it is commonly defined to be equal to 1 (using the usual conventions for the empty product and considering that one of the two blocks of the Sylvester matrix is empty). There is no common convention for the discriminant of a constant polynomial (i.e., polynomial of degree 0). For small degrees, the discriminant is rather simple (see below), but for higher degrees, it may become unwieldy. For example, the discriminant of a general quartic has 16 terms, that of a quintic has 59 terms, and that of a sextic has 246 terms. This is OEIS sequence A007878.
Degree 2
For the quadratic polynomial f(x)=ax2+bx+c, with real coefficients and a≠0, the derivative is f′(x)=2ax+b, the Sylvester matrix is
(abc2ab002ab) with determinant a(−b2+4ac). The discriminant is Δ=b2−4ac. Its roots are given by the quadratic formula:
x1,2=−b±Δ2a. For real coefficients, the roots are distinct and real if Δ>0, coincide at x=−b/(2a) if Δ=0, and are distinct non-real complex conjugates if Δ<0. Completing the square gives
f(x)=a(x+b2a)2−Δ4a. Thus the vertex of the parabola lies at (−b2a,−Δ4a). This explains geometrically why the sign of the discriminant determines whether the parabola crosses, touches, or misses the x-axis. For example, f(x)=x2−4x+4=(x−2)2 has discriminant Δ=0 and a repeated root at x=2. If the roots are r1 and r2, the discriminant can also be written as Δ=a2(r1−r2)2. If the coefficients are rational numbers, both roots are rational if and only if the discriminant is the square of a rational number.
Degree 3
The cubic polynomial ax3+bx2+cx+d has discriminant
b2c2−4ac3−4b3d−27a2d2+18abcd. In the special case of a depressed cubic polynomial x3+px+q, the discriminant simplifies to
… excerpt ends here. Continue reading the full article.

