In this explainer, we will learn how to graph a quadratic function of the form , in order to solve the equation .
When working with any particular quadratic function, it can be helpful to remind ourselves of some basic properties that these functions hold, as well as the key features that can be used to classify or describe them. Consider the general quadratic function where , , and are real numbers and . When plotting this function, there will be two basic shapes that we will see, depending on the sign of the parameter . If is positive, then the plot of the function will have a “u” shape, and if is negative, then the plot of the function will have an “n” shape. We demonstrate this on the graphs below, where the left-hand graph is the plot of a quadratic function where is positive, and the right-hand graph is the plot of a quadratic function where is negative. We have deliberately omitted the -axis, as well as the gridlines.
The values of the other two parameters, and , will of course affect the graph when plotting a quadratic function, and one way that this is understood is by classifying how all parameters influence the roots of the function, which we will focus on later. However, the main focus of this explainer will be to understand how roots of a quadratic function can be found by plotting the graph. This actually splits the problem into three distinct categories, each of which we will give a short example of. Before doing so, we will give a definition of the so-called solution set of a quadratic, as follows.
Definition: The Solution Set of a Quadratic Function
Consider the quadratic function where , , and are real numbers and . Then the solution set of the function consists of all possible roots of . In other words, is the set of all values of such that , which is where the graph intersects the . There are three distinct possibilities for the solution set:
- There are two real roots of , when and , where . In this case, the solution set has two elements and is written .
- There is one real root of , when . In this case, the solution set has one element and is written .
- There are no real roots of , meaning that the solution set is empty. In this case, we say that is equal to the “empty set” which is denoted .
Consider the quadratic function . One excellent way of understanding the behavior of this function (or any function) is to plot a graph or a high-quality sketch. We can begin doing this by plotting a table of values and then converting this information to coordinates in the -plane. For the quadratic function , we currently have no knowledge of how this behaves and therefore we do not have any information as to where interesting behavior might occur (such as the location of the roots). With no better guess at hand, we will create a table of values for the few points near to the . In particular, we will create a table of values for , which in this case gives the following.
Now that we have this information about the function, we can plot seven coordinates to better gain an understanding of its behavior. We would begin with the coordinate , then with and so on until we had obtained the plot below.
This information alone offers a much better understanding of how the function behaves. Either from the table of values above, or from the plotted coordinates, we can see that there are two points where the function meets with the . It is perhaps clearer to first plot the full quadratic function in this region, which we have done below.
In the graph above, we have marked the points where the function crosses the in red crosses. This appears to occur in two locations: when and . Equally, we could say that the coordinates of the roots are and . Finally, we could use the language of the solution set as described in the definition above, and we would say the solution set is . If we wished to, we could check that these were the correct roots by factoring , which in this case would return . The roots of the function occur when , which is precisely when or when ; that is, when or .
Now, we will give an example of a quadratic function where there is only one root, and we will see how this invokes a curious property that will appear several times again in this explainer. Suppose that we now had the quadratic function . A superb first step toward understanding this function is with the following table of values.
Unlike the previous example, every value of is zero or positive, which might hint that there is a fundamentally different behavior occurring. In the graph below, we have plotted the table of values as well as the quadratic function within this region. We have had to scale the axis in order to properly demonstrate the behavior around the , which is where any roots will occur.
There is clearly one root when , which is marked with a red cross. Alternatively, we could say that the single root has the coordinate , or that the solution set is . Notice how the single root is also the minimum point of the quadratic function. This is an instance of a more general result: when the solution set has one element, the vertex maximum or minimum is also the only root of the function. Had we chosen to factor the quadratic then, we would have found that and then occurs only when .
For our final example, we will consider the quadratic function , which produces the table of values below. We should note that all given values of are negative and, crucially, there are none that are zero, which is a clue that the behavior is different from the previous example.
We have plotted this function below and can see immediately that there are no points where the function intersects the , meaning that there are no roots of the function. Given this, we would write the solution set as . Had we attempted to factor this quadratic, either by completing the square or through other means, then we would have found that this was not possible as, at some point, we would have been attempting to take the square root of a negative number. We will comment more on this later in the explainer.
Now we have seen an example of solution set with two elements, a solution set with one element, and a solution set with zero elements. There are various relationships between parameters that can be established which determine critical behaviors of quadratic functions. We will allude to several such examples throughout the rest of this explainer, but briefly we will reconsider the function plotted immediately above. Notice that the vertex (the maximum point) is below the . Given that the plot of this quadratic is an “n” shape, this means that there cannot be any points where the function intersects the because, by definition, a function cannot ever exceed its maximum value. It is possible to argue such results with total algebraic rigor, which we will leave as an exercise for the interest of the reader.
We could also be asked a question where we are required to plot the graph of a quadratic and then use this to estimate its roots (and therefore the solution set). As ever, it is generally good practice to plot or sketch the graph of any function, no matter what the intended purpose of working with this function actually is. Often, this will give a strong indication as to the behavior of the function and the nature of any specific features (such as roots and turning points).
Let us consider the function in the interval to for integer values of . By plotting the graph of the function, we can then use this to estimate the solutions to equation . We create the following table of values for the function.
We can use this to plot the graph as follows.
In order to best demonstrate the features around the line , we can scale the axes accordingly. As we can see, this graph seems to strongly indicate that the the roots of are found when and , which would imply that the solution set can be written as . In fact, in this case, it is obvious from the table of values, since we clearly see that .
In our first formal example, we will enjoy the luxury of having the graph preplotted for our convenience. This will not always be the case, and in real life we would often have to plot such a curve manually or, even better, use an online graph platform to gain a more precise (and speedier) understanding.
Example 1: Finding the Solution Set of a Quadratic Equation Graphically
The diagram shows the graph of . What is the solution set of the equation ?
Recall that the solutions to the equation correspond to the -values of the points on the graph of where the curve intersects the . This is because at these points.
In the graph, we can see that this happens at exactly one point, at , which is also the location of the minimum point of the function. Hence, the only solution is at . As a set, this is .
Although it was not stated in the previous example, the quadratic function was actually . Since we know that the root of this function is when , we can create a table of values in this region.
On the graph below, we have plotted these particular points and have marked the single root in red. The has also been highlighted in red and we can see that this intersects the function precisely at the point .
This case of a quadratic function only having a single solution is not the most typical one, however. In the following example, we will consider what happens when the parabola crosses the at two distinct points.
Example 2: Finding the Solution Set of a Quadratic Equation Graphically
The diagram shows the graph of . What is the solution set of the equation ?
Recall that to find the solutions to , we can find the points on the graph of where the curve intersects the .
We can see that the curve crosses the at two points, and . This means that the two solutions are and 1. As a solution set, we can write this as .
Both examples so far have been of quadratics where the parabola has a “u” shape, but they can also have “n” shapes. In the next example, we will demonstrate that the method is exactly the same for these instances.
Example 3: Finding the Solution Sets of Quadratic Equations from Their Graphs
The graph shows the curve with equation . What is the solution set of the equation ?
We recall that is satisfied at the points where the graph of crosses or touches the .
Examining the graph, this happens at the two points , and . This means that and 2 are solutions to . As a set, this is .
Let us look at one more example of examining a graph to find solutions, although this time we will consider the case where the graph does not intersect the at all.
Example 4: Identifying the Solution Set of a Quadratic given Its Graph
The graph shows the function . What is the solution set of ?
In order to find the solutions to an equation of the form , recall that we can identify the points where the graph of intersects the .
However, if we examine the graph, we can see that there is no point where this occurs. In fact, the minimum point of the graph is at . Therefore, there are no solutions to . In set form, we can write this as the empty set .
Although the question does not require us to demonstrate that has no solutions, we will give a quick explanation. Suppose that we tried to find the roots of by completing the square. Then, we can write as follows:
If we were trying to find the points where , then we would be attempting to solve the equation
This is equivalent to requiring that and it is at this point that it is clear why there are no real values of that allow this. If we were to try solving the above equation for , then we would first have to eliminate the squared term on the left-hand side by taking the square root of both sides. However, this is not possible given that the right-hand side is negative and we cannot take the square root of a negative number. For this reason, there are no real values of that solve the above equation and hence there are no solutions to the equation . Stated slightly differently, there are no roots of and hence the associated solution set is empty.
In the examples above, we were given the graph of different quadratic functions , which allowed us to visually identify the points where these graphs crossed the . This information allowed us to write these roots of the function in terms of the associated solution set , which could have either two distinct elements, one single element, or no elements at all. In the case of there only being a single element, the location of the root would be common with the only vertex of the function.
Even though we were provided with the graphs of the quadratic functions, this information is not necessary if we are only interested in writing the solution set. Helpful information in determining the solution set can be as follows: the precise coordinates of the roots; the sign of the leading coefficients (which determines whether the graph is a “u” shape or an “n” shape); and the location of the vertex. It is important to note that knowing this information is not the same as knowing each of the coefficients , , or for a quadratic . To clarify, just because we know the solution set of a quadratic function, it does not mean that we know what the function is. This is because two or more quadratic functions can have the same solution set, meaning that complete knowledge of the solution set is not enough to know the quadratic function itself (although, it does tell us most of the information that we would require).
As an example, consider the two quadratic functions
These two functions are plotted below, with being plotted in red and plotted in blue. We can see that they both have the solution set due to the roots which are marked at and respectively. Not only are these functions clearly different, but they have a fundamentally different shape, which is due to the different sign on the leading coefficient of each function. Actually, the two functions are related by the formula , which explains why these two functions share a solution set, since the roots that populate this set must solve the equation . More generally, any two quadratics will have an identical solution set for any constant . This reiterates the earlier statement that knowledge of the solution set is not enough to fully describe the quadratic function itself.
We can better understand this situation by recalling how the roots of a quadratic correspond to its factors. Assume that there is a quadratic function with the solution set , where . In this case, it is clear that the function has the given solution set , since . It is also the case that any function will have the solution set for any , since this new function is just a scaling of the original function .
If the solution set consists of one element , then the only root will be common with the vertex of the function. In this case, the function will have the given solution set, since by definition. As with the previous situation, we can multiply the original function by a nonzero constant, meaning that the new function will have the same solution set.
We can actually make a more inclusive statement regarding quadratic functions that share the solution set . We can say that all quadratic functions that cannot be factored share the same solution set with each other. This means that if a quadratic has no roots, there is very little we can say about it graphically, other than that it cannot intersect the . It is worth stating however, that a consequence of this is that the entirety of the curve has to be either above or below the . So, if we are given that the vertex is below the , then the rest of the curve must be as well, and it is the same above the .
In the following examples, we will attempt to answer the questions in a fairly brisk manner, but we will at points reiterate this point above by demonstrating a range of quadratic functions that hold the desired properties.
Example 5: Finding the Solution Set of a Quadratic Function Based on a Description of a Graph
If the graph of the quadratic function cuts the at the points and , what is the solution set of in ?
To answer this question, we just need to recall that the solutions to a quadratic function are the -coordinates of the points where the curve intersects the .
Although we do not have the actual graph, we have been told that this happens at and , so and are the roots of the function. As a set, this is .
Note that, in the previous question, we did not have to concern ourselves with the location of the vertex of the curve, although since parabolas are symmetric, we can say that it must be halfway between the two roots (i.e., at ).
In the next example, we will demonstrate how in certain cases the vertex will allow us to determine the solutions to a quadratic.
Example 6: Finding the Solution Set of a Quadratic Function given the Vertex
If the point is the vertex of the graph of the quadratic function , what is the solution set of the equation ?
Recall that the solution set of the equation is the set of points where the graph intersects the . In this example, we have only been told one point where this intersection occurs, which is at the vertex (we know this point intersects the since the -coordinate is zero).
However, since this point is a vertex, we know that this must be the only point where the graph intersects the . This is because the shape of a quadratic graph means the vertex is either the minimum or the maximum point of the curve, and so all other points on the curve must be either above or below the vertex. We demonstrate one example of such a quadratic below.
Thus, the only solution is , leading to the set .
For our final example, let us see another instance of how the vertex of a quadratic function can tell us information about the solutions.
Example 7: Understanding the Geometry of a Quadratic Function and Using This to Determine Its Solution Set
True or False: If the point is the vertex of the graph of the quadratic function where is a negative number, then the solution set of the equation is .
We first recall that the solution set of is if the graph of the function does not intersect the at any point. We have not been explicitly told whether this is the case, but we do know the location of the vertex. Furthermore, we have been told that is negative, which means that the quadratic equation will have an “n” shape as opposed to the “u” shape that is found when is positive.
This means that the vertex is the maximum point of the graph, and all other points will be below this point. Since the -value of the vertex is , this means for all values of . We illustrate what this graph might look like below (but note that there are an infinite number of possible graphs).
Thus, it is impossible for to ever be zero, which means that the solution set is indeed empty. So, the answer is “True.”
Let us finish by considering the key points we have learned during this explainer.
- A quadratic can be graphed using a table of values and this can be used to approximate the points at which the graph intersects the . These points are known as the “roots” of the quadratic.
- There are three cases to consider when solving quadratic equations using the graph of :
- If the curve crosses the twice, has two solutions.
- If the curve touches the at a single point, has one solution.
- If the curve never intersects the , has no solutions.
- When the solution set only has one element, the graph of touches the once at the vertex (either a minimum or maximum point).