Welcome to our discriminant calculator! Use it shamelessly whenever you need to quickly find the discriminant of polynomials with between two and five degrees, i.e., quadratic, cubic, quartic, or quintic polynomials. Do you need to learn what the discriminant is in math? Or what the math formula for the discriminant looks like? Scroll down!
In the sections that follow, we give the math definition of the discriminant and explain how to find the discriminant of a given polynomial. We even dedicate an entire section to the discriminant of a quadratic equation, as we know that they are used a lot! 😉 However, we don't stop at the second degree but discuss all degrees up to five.
What is the discriminant? – discriminant math
Before attacking a formal math definition of the discriminant, let's briefly discuss the general idea.
Assume we have a real polynomial of degree , where :
The discriminant of is a real number that describes various properties of the roots of . You can calculate it from the coefficients of (actually, it's a polynomial function of those coefficients).
Most importantly, the discriminant allows us to quickly check whether has multiple roots without actually calculating these roots: has at least one multiple root if, and only if, the discriminant is equal to zero.
💡 We owe the term discriminant to the English mathematician James Joseph Sylvester, who introduced it in 1851.
What are multiple roots?
We say that a complex number is a root of multiplicity of if you can divide without a remainder by:
but not by:
In other words, it's a root if there exists a polynomial such that:
If , then we say that is a simple root;
If , then we say that is a multiple root; and
In particular, if , then we say that is a double root.
💡 The multiplicity of a root is the number of times that root occurs in the factorization of into linear terms (which is possible due to the fundamental theorem of algebra).
In other words, the multiplicity of is the power to which is risen to when we factorize the polynomial over the field of complex numbers.
The roots of:
are and . You can factorize this polynomial as:
so is the simple root, and is the double root.
How to find the discriminant? Math definition & formula
Once you have a general idea of what a discriminant is in math, let's move on to a formal math definition of discriminants. We will define the discriminant in terms of the roots of a polynomial.
The fundamental theorem of algebra implies that, in the field of complex numbers, a polynomial with real coefficients:
has exactly roots (these roots are not necessarily all unique!). We define the discriminant of as:
is a homogenous polynomial of degree in the coefficients of ; and
is a symmetric function of the roots of , which assures that the value of is independent from the order in which we labeled the roots of .
Equivalently, we can define the discriminant of a polynomial as the determinant of the so-calledof this polynomial and its derivative. Alternatively, we can express the discriminant as the determinant of a certain symmetric matrix, which is defined recursively. We use these approaches when we want to compute the discriminant and don't know the roots of the polynomial we are considering.
🔎 Go to our determinant calculator if you're not yet familiar with this concept.
Properties of the discriminant
From the math formula for discriminants given in the previous sections, we can deduce several essential properties of discriminants.
Let be the discriminant of , as we defined above. As for the values of :
Since is a real polynomial, is always a real number;
if, and only if, has a multiple root; and
if, and only if, the number of non-real roots of is a multiple of four (zero included).
If all the roots are real and simple, then .
As for the invariance of the discriminant, we have:
is invariant under translation:
If , then .
is invariant (up to scaling) under homothety:
If , then .
Discriminant of a quadratic equation formula
Consider the quadratic polynomial . The formula for its discriminant is:
As we all well remember, the square root of this discriminant turns up in the formula for the roots of the quadratic polynomial:
Without computing the roots, we can deduce the following from the sign of the discriminant:
if, and only if, the polynomial has two distinct real roots;
if, and only if, the polynomial has a pair of conjugate complex roots; and
if, and only if, the polynomial has a double root.
Moreover, if the coefficients , , and are rational, then both roots of the polynomial are rational if, and only if, is the square of a rational number.
Geometrically, in terms of the parabola in the real plane, we have
if, and only if, the parabola doesn't intersect the horizontal axis;
if, and only if, the parabola intersects the horizontal axis at two points; and
if, and only if, the parabola touches (is tangent to) the horizontal axis.
Discriminants of higher degree polynomials
As we've seen, the discriminant of a general quadratic has just two terms. However, as the degree of the polynomial increases, the discriminant becomes more and more complicated:
- The discriminant of a general cubic has terms;
- The discriminant of a quartic has terms;
- The discriminant of a quintic has terms;
- The discriminant of a sextic has terms; and
- The discriminant of a septic has terms.
These numbers form the. Go there to see a few subsequent terms.
Discriminant of a cubic polynomial
Consider the cubic polynomial . Its discriminant formula reads:
if, and only if, the roots are three distinct real numbers;
if, and only if, there is one real root and two complex conjugate roots; and
if, and only if, at least two roots are equal (one root of multiplicity or two distinct real roots, one of which is a double root).
Discriminant of a quartic polynomial
Consider the quartic polynomial . The formula for its discriminant reads:
if, and only if, there are four distinct real roots or four distinct non-real roots (two pairs of conjugate complex roots);
if, and only if, there are two distinct real roots and two distinct non-real roots (one pair of conjugate complex roots); and
if, and only if, there are two or more equal roots. There are 6 possibilities:
Three distinct real roots, of which one is double;
Two distinct real roots, both of which are double;
Two distinct real roots, of which one has a multiplicity of three;
One real root with a multiplicity of four;
One real double root and a pair of non-real complex conjugate roots; and
One pair of double non-real complex conjugate roots.
Discriminants of a quintic polynomial
We don't give the formula as it has... 59 terms, and each term is a monomial of degree eight in six variables 🤯
So, you might be wondering how to find the discriminant of a quintic polynomial...
Fortunately, there's our discriminant calculator, which has this formula implemented 😊 Use it whenever you need to consider a quintic polynomial!
After you've done that, apply the following set of rules to deduce the properties of your polynomial:
if, and only if, there are five distinct real roots or one real root and two pairs of non-real complex conjugate roots;
if, and only if, there are three distinct real roots and one pair of non-real complex conjugate roots; and
if, and only if, there are two or more equal roots. There are 4 possibilities:
Six different cases with real roots only.
Two distinct real roots, one of which is double, and one pair of non-real complex conjugate roots.
One real root of multiplicity three and one pair of non-real complex conjugate roots; and
One real single root and one pair of non-real complex conjugate double roots.
How to use this discriminant calculator?
To use the discriminant calculator, follow the steps below:
Start by picking the degree of the polynomial you want to consider. You can choose polynomials with degrees between and , so quadratic (degree two), cubic (degree three), quartic (degree four), or quintic (degree five) polynomials.
For instance, if your task is to determine the discriminant of a quadratic equation, choose second as the degree.
Input all coefficients of your polynomial, including those equal to zero.
Enjoy the result, which our discriminant calculator returns immediately! 😁