In this explainer, we will learn how to find the discriminant of a quadratic equation and use it to determine the number and type of its roots (solution) without solving it.
We recall that a general quadratic equation takes the form
where , , and are real numbers and is the variable to be found. For this equation to be a quadratic, we require that , but we do not enforce the same restriction on or . This equation is βsolvedβ when a value of is found such that equation (1) is true. For a quadratic equation, there might be a maximum of two real solutions to equation (1), as opposed to the single real solution of a linear equation. To be more specific, for any quadratic equation with real coefficients, there will either be 0, 1, or 2 real solutions.
It is well known that the solution of a quadratic equation is given by the quadratic root formula,
with the two possible solutions represented by the sign. The validity of either of these two solutions can be checked algebraically by substituting either expression in equation (2) into equation (1).
The quadratic root formula alludes to the fact that there might be either 0, 1, or 2 real solutions to the general quadratic equation because the symbol suggests that there are two possible calculations to find . If the expression inside the square root term is positive, then there is no problem with finding the solution. However, if the expression inside the square root term is negative, then we will be attempting to take the square root of a negative number, for which there are no solutions in the real numbers. Finally, if the expression inside the root symbol is zero, then both calculations will be equal, so we will only have one root. Hence, the number of real solutions is determined by the sign of the expression , which is known as the discriminant.
Definition: The Discriminant of a Quadratic
Consider a quadratic equation where , , and are real numbers and . Then, the βdiscriminantβ of the quadratic is denoted
If is positive, then there are two real solutions to the quadratic equation. If , then there is one (repeated) real solution. And if is negative, then there are no real solutions.
Having now made this definition, we can see how it is possible to write the quadratic root formula in terms of the discriminant as which further clarifies the connection to the number of solutions of the quadratic. We will demonstrate this idea by way of example, by considering the quadratic equation . It will be a useful paradigm to think instead in terms of the function and then ask for the values of that give . In other words, we are then trying to find the roots of the function . We begin by plotting the function, as shown below, that reveals that there are two roots, with one being negative and the other being positive.
We will now confirm this by referring to our definition of the discriminant. To solve the equation , we should first note that this is a quadratic equation in with coefficients , , and . The discriminant is then calculated as
Therefore, we have , which, according to the definition above, means that there are two real solutions. This was also suggested by the graph that we plotted above. We can then use the quadratic to directly calculate these roots as follows:
We can check that these two real solutions correspond numerically to those shown in the plot above.
Letβs consider another example, this time for the quadratic , meaning that we set which is a quadratic function where , , and . Compared to the function , the function will have exactly the same shape after a translation by two units in the positive vertical direction. The graph of this function is as follows:
It appears as though there is only one real solution to this equation at , which we will show is exactly the case by use of the discriminant. We calculate the discriminant as follows:
The fact that means that there is one real (repeated) root, as appears to be the case from the graph plotted above. Then, the quadratic formula is used to calculate the solutions as
In this case, the term is irrelevant because adding zero is the same as subtracting zero. Unlike the previous scenario, there is no need to complete further calculations in order to the find the (repeated) real root.
The final example that we shall give will be for a quadratic equation where there are no real solutions. We will take the previous example and modify it slightly to give the quadratic equation . To aid in our process, we will define the function which is a quadratic function with , , and . This graph of is the same as the graph of translated two units in the positive vertical direction, the result of which is shown below.
It appears from this graph that there are no real solutions to the quadratic equation, which we can show by calculating the discriminant, as follows:
This shows that , which means that there are no real solutions, thereby confirming our prediction from having plotted the graph. Attempting to use the quadratic root formula will give the following working:
This working shows that we are trying to calculate the square root of a negative number, which does not give a result that is a real number. This means that there are no real solutions to the original quadratic equation, as predicted by the value of the discriminant. In this situation, understanding the solutions will require an understanding of imaginary and complex numbers, which are outside the scope of this explainer.
Now letβs see some examples of how the discriminant is used to determine the number of real roots of a quadratic equation.
Example 1: Using the Sign of the Discriminant to Determine the Number of Complex Roots of a Quadratic Equation
How many nonreal roots will a quadratic equation have if its discriminant is negative?
Answer
We recall that if we have the quadratic equation , where , , and are real numbers and , then we know that the quadratic root formula is which gives us the roots of the quadratic. The discriminant is defined as , which allows the quadratic root formula to instead be written as
If the discriminant is negative, then we will be attempting to calculate the square root of a negative number, which has no solutions in the real numbers. This means that there are zero real solutions to the given quadratic equation, which means that there must be two nonreal roots.
Example 2: Using the Sign of the Discriminant to Determine the Number of Complex Roots of a Quadratic Equation
Which is the correct condition for the quadratic equation with real coefficients to have no nonreal roots?
- The discriminant is positive.
- The discriminant is equal to zero.
- The discriminant is negative.
- The discriminant is nonnegative.
- The discriminant is an integer.
Answer
When working with a quadratic, we recall that the sign of the discriminant tells us the number of real roots. There are three possibilities for the number of real roots:
- Two real roots, when
- One real (repeated) root, when
- No real roots, when
We are told that we are looking for there to be no nonreal roots to the given quadratic. This means that there must be at least one real solution to the quadratic equation, with the maximum being two. For there to be one real solution, we require that the discriminant be equal to zero, and for there to be two real solutions, we require that the discriminant be positive. For either of these conditions to be satisfied, we require that the discriminant be greater than or equal to zero. This corresponds to option D from the list above, meaning that the discriminant must be nonnegative.
The two examples above demonstrate how the number of roots can be classified simply using the discriminant. When trying to find the precise roots of a quadratic equation, a useful preemptive step is therefore to calculate the discriminant and then use this to understand the number of roots before we calculate them. For example, if the discriminant of a quadratic is negative, then there are no real roots and hence, there is no need to employ the quadratic formula to find these. We will give an example of this in the next question.
Example 3: Finding the Discriminant of a Quadratic Equation and Using It to Determine the Number of Real Roots
- Find the discriminant of the quadratic equation .
- How many real roots does the equation have?
- Hence, decide how many times the graph of will cross the -axis.
Answer
Part 1
We will begin by noting that the above quadratic equation can be classified in the normal way by writing the coefficients as , , and . We recall that the discriminant of a quadratic is , which we can calculate for this quadratic as follows:
Part 2
We recall that the sign of the discriminant of a quadratic tells us the number of real roots that the quadratic has. In particular, if its sign is negative, then there are no real roots. Given that , this means that there are no real roots to the given quadratic equation, so the answer is zero real roots.
Part 3
A function has a root when the graph of that function crosses the -axis. Given that this function has no real roots, this implies that the graph of the function does not cross the -axis. This can be confirmed graphically using the plot below of the function .
We see that the graph of the function will never cross the -axis, as predicted.
We have already seen that the quadratic root formula can be phrased in terms of the discriminant as
Before calculating the roots of a quadratic, we will need to calculate the square root of the discriminant . This means that if is a square number, then the square root will return an integer. Providing that and are both rational, in this particular case, the values of will therefore be rational. However, it will generally be the case that is not a square number, which means that the square root of this value will be an irrational number. When this is the case, it will imply that the values of will be irrational, since they will be the combination of an irrational number and two rational numbers using addition and division. Note that this property only holds under the assumption that and are both rational. If they are not both rational, then we will need to consider the question slightly more delicately, as we will see in the following example.
Example 4: Determining Whether the Roots of a Quadratic Equation Are Rational or Not by Using the Discriminant
Determine whether the roots of the equation are rational or not without solving it.
Answer
We set the coefficients of this quadratic equation in the standard way, by fixing , , and . We recall that the discriminant of a quadratic is , and the quadratic formula tells us the roots of this quadratic are
We can then calculate the discriminant of the quadratic as follows:
We know that since this is positive, there are two real roots. We can also see that, in the quadratic formula, is rational and is also rational. However, is irrational; hence, the roots will be irrational.
In our next example, we will investigate the behavior of quadratics by considering the coefficient to be a parameter.
Example 5: Finding the Interval to Which a Variable in a Quadratic Equation Belongs given the Type of Its Roots
Given that the roots of the equation are real and different, find the interval that contains .
Answer
We begin by treating this quadratic in the normal fashion. We label the parameters as , , and . We recall that the sign of the discriminant of a quadratic gives us the number of roots of the quadratic. In this question, we want two distinct real roots, which occurs when the discriminant is positive. We calculate the discriminant as follows:
The question asked us to find all possible values of that ensure that the roots of the quadratic are real and different. In other words, we are asked to find the possible values of such that there are two real roots, meaning that By looking at the factored expression in the equation above, we deduce that if . Rearranging this gives . Note that, we cannot allow the situation , as this will suggest that there is a single (repeated) real root. Given that we require , we can alternatively express this as .
Key Points
- A quadratic equation in the variable is defined as , where , , and are all real numbers and .
- The roots of a quadratic equation are given by the quadratic root formula as follows:
- The discriminant of the quadratic is given by . The sign of tells us the number of real roots, as follows:
- If , then there are two distinct real solutions.
- If , then there is one repeated real solution.
- If , then there are no real solutions.
- It can be helpful to rephrase the quadratic root formula as
- Assuming that , , and are all rational, then the values of will be rational if, and only if, is a square number.