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 crosses the -axis. 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 -axis. In particular, we will create a table of values for , which in this case gives the following.

0 | 1 | 2 | 3 | ||||

10 | 4 | 0 | 0 | 4 |

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 -axis. 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 -axis 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 curios 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.

2 | 3 | 4 | 5 | 6 | 7 | 8 | |

16 | 4 | 0 | 4 | 16 | 36 | 64 |

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 -axis, 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 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.

0 | 1 | 2 | 3 | ||||

We have plotted this function below and can see immediately that there are no points where the function crosses the -axis, 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 -axis. Given that the plot of this quadratic is an βnβ shape, this means that there cannot be any points where the function crosses the -axis 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.

0 | 1 | 2 | 3 | 4 | |||||

42 | 18 | 0 | 0 | 18 |

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 ?

### Answer

From this graph, we can see that there is only one root of this quadratic, which occurs when . The coordinate of this root is , which is also the location of the minimum point of the function. The solution set 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.

0 | 1 | ||||||

9 | 4 | 1 | 0 | 1 | 4 | 9 |

On the graph below, we have plotted these particular points and have marked the single root in red. The -axis has also been highlighted in red and we can see that this intersects the function precisely at the point .

### 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 ?

### Answer

The graph appears to cross the -axis when and , or alternatively at the points and . This means that the solution set has two elements, being written in full as .

### Example 3: Finding the Solution Sets of Quadratic Equations from Their Graphs

Consider the following graph of . What is the solution set of the equation ?

### Answer

This quadratic function clearly has two roots that appear to be when and , or alternatively at the coordinates and . The solution set therefore has two elements and is written as .

### Example 4: Identifying the Solution Set of a Quadratic given Its Graph

The graph shows the function . What is the solution set of ?

### Answer

There are no points where the graph crosses the -axis, meaning that there are no roots of . Therefore, the solution set is .

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 not 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 -axis. 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.

Although it is above the level of this explainer, it can be helpful to be mindful of the following classification method for the solution set. For the general quadratic function, the roots can be written in terms of the (mathematically) famous quadratic root formula:

The values of , , and will not only affect the values of
the roots, but also decide the *number* of roots that the quadratic function has (and hence the type
of solution set). In the quadratic root formula above, we have the expression .
If it is the case that , then the term within the square root function is negative,
meaning that we are trying to take the square root of a negative number. This is not possible when working only with
the real numbers, meaning that a general quadratic may not have any roots. If it is the case that
, then we will be taking the square root of zero and hence the sign
will be irrelevant, meaning that there is a single root when . In the case that
, we will be taking the square root of a positive number, which will return two
possible solutions from the operator. Although outside the scope of this explainer, it can be
helpful to use the quadratic root formula to classify these.

### Definition: The Solution Set of a Quadratic Function, Giving Reference to the Quadratic Equation

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 . The solution set can therefore be classified as follows:

- ; then ;
- ; then ;
- ; then .

The symbol represents the set with no elements, known usually as the βempty set.β

A less precise but simpler way of understanding this is as follows. 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 . For a general quadratic function , where , , and are real numbers and , we argued earlier using the quadratic root formula that there would be not real roots of if . This is because we would be attempting to take the square root of a negative number, which is not allowed for real numbers. In this situation, the solution set is always the empty set . Therefore, we can state that any quadratic where will share a solution set.

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: Understanding Zeros of Quadratic Functions

If the graph of the quadratic function cuts the -axis at the points and , what is the solution set of in ?

### Answer

There are two points where the graph cuts the -axis: at and . These are called the roots of the function and this implies that the solution set is written as . This solution set will be common to any quadratic of the form , where , since will have a solution when and .

### Example 6: Finding the Solution Set of a Quadratic Equation given the Vertex Point of the Related Quadratic Function

If the point is the vertex of the graph of the quadratic function , what is the solution set of the equation ?

### Answer

Here, the case is that the vertex of is also the only root, since it occurs at the point . This means that the solution set only has one element and is written as follows: . This solution set will be common to any quadratic function of the form , where .

### 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 .

### Answer

Given that , the quadratic function will have an βnβ shape as opposed to the βuβ shape that is found when . This means that the vertex is the maximum point of the function , so the function cannot be above this point. Alternatively, we could say that , hence being bound above by the -coordinate of the maximum point. Given that for all values of , it can never be the case that , meaning that there are no roots of the function. This means that the solution set is empty, and this is being represented as .

### Key Points

- A quadratic can be graphed using a table of values and this can be used to approximate the points at which the graph crosses the -axis. These points are known as the βrootsβ of the quadratic.
- Consider the quadratic function , where ,
, and are real numbers and . Then, the solution set
of the function is the set consisting of values of
such that . In other words,
- ; then and the function can be written as , where ;
- ; then and the function can be written as , where ;
- ; then .

- When the solution set only has one element, the graph of crosses the -axis exactly once, at the vertex (either a minimum or maximum point).