The discriminant

This online calculator calculates the discriminant of the quadratic polynomial, as well as higher degree polynomials

This page exists due to the efforts of the following people:

Timur

Timur

Karen Luckhurst

Anton

Created: 2019-05-02 17:05:21, Last updated: 2020-11-09 15:22:00

In algebra, the discriminant of a polynomial is a polynomial function of its coefficients, which allows deducing some properties of the roots without computing them.1

You are probably aware of the well-known formula of the discriminant for the quadratic polynomial ax^2+bx+c, which is b^2-4ac, and use this formula to compute the roots.

However, the discriminant actually allows us to deduce some properties of the roots without computing them. In the case of a quadratic polynomial, it is zero if – and only if – the polynomial has a double root. It is positive if the polynomial has two real roots, and it is negative if roots are complex.

The calculator below computes the discriminant, and you can find a bit more theory on discriminants immediately underneath it.

PLANETCALC, The discriminant of the quadratic polynomial

The discriminant of the quadratic polynomial

Quadratic polynomial
 
Discriminant
 
Polynomial roots
 

Discriminant

The discriminant for a polynomial of degree n: A(x)=a_{n}x^{n}+a_{n-1}x^{n-1}+\cdots +a_{1}x+a_{0} can be defined either in terms of the quotient of the resultant or in terms of the roots.

In terms of the roots, the discriminant is equal to
{Disc}_{x}(A)={a_n}^{2n-2}\prod_{i < j}(r_{i}-r_{j})^{2}=(-1)^{{\frac{1}{2}}n(n-1)}{a_n}^{2n-2}\prod_{i\neq j}(r_{i}-r_{j})

Technically, one can derive the formula for the quadratic equation without knowing anything about the discriminant. Then, if you plug derived expressions for the roots into the definition above, you will end up with the b^2-4ac.

In terms of the quotient of the resultant, the discriminant is equal to
{Disc} _{x}(A)={\frac {(-1)^{\frac {n(n-1)}{2}}}{a_{n}}}\operatorname {Res} _{x}(A,A')
where Res is the resultant of A and the first derivation of A'. The resultant, in short, is the determinant of the Sylvester matrix of A and A'.

In the case of a quadratic polynomial, the A is ax^2+bx+c and the A' is 2ax+b. If you write down the Sylvester matrix for these two polynomials and derive the determinant, you will again end up with the b^2-4ac.

Higher degree discriminant computation

Using the second definition, you can derive formulas for a polynomial of higher degrees (the link below has formulas for degree 3 and degree 4), but they are quite complex.
OEIS sequence A007878 lists 5 terms for polynomials of a degree of 3; 16 terms for a degree of 4; 59 terms for a degree of 5; and finally 3,815,311 terms for polynomials of a degree of 12.
The calculator below computes the discriminant of a higher degree polynomial from the resultant of a polynomial and its derivative

PLANETCALC, Discriminant

Discriminant

The polynomial coefficients, space separated, in order from higher term degree to lower
Discriminant
 
Input polynomial
 
Derivative polynomial
 

URL copied to clipboard
PLANETCALC, The discriminant

Comments