# Lesson Explainer: Graphing Factorized Cubic Functions Mathematics

In this explainer, we will learn how to graph cubic functions written in factored form and identify where they cross the axes.

A cubic function is one of the form , where , , , and are real numbers and is nonzero. In order to sketch the graph of , we first recall that the coordinates of any point on the graph of this curve will have coordinates in the form . In other words, the -coordinate tells us the input value of the function and the -coordinate tells us the corresponding output.

It is difficult to sketch the graph of cubic functions in general since they can have many shapes. For example, consider the following graphs of and .

These graphs have similar shapes; however, in the first graph, as the values of increase, the outputs of the function are increasing without bound, so the curve keeps increasing upward. In the second graph, as the values of increase, the outputs of the function are decreasing without bound, so the curve keeps decreasing downward.

The description of the curve as the values of increase (or decrease) without bound is called the end behavior of the graphs. We sometimes refer to this in terms of approaching positive (or negative) infinity. Therefore, by looking at the graph of , we can say that as the values of approach infinity, the outputs also approach infinity. However, when the values of approach negative infinity, the outputs also approach negative infinity.

This is not the only difference we can find in the shapes of different cubic functions. Consider the following graph of .

The end behavior of this graph is the same as ; however, the shape is different. We can see that there are three distinct -intercepts and the curve turns twice.

We can find the coordinates of the -intercepts by noting that the -coordinates of these points must be 0. Therefore, the function outputs 0 at these points; they are the roots of the function.

In general, finding the -intercepts of a cubic graph means solving the corresponding equation to find the roots, which is not something we have covered yet. However, in the case of factored cubic equations, we can determine the roots of a factored polynomial by noting that for a product to be equal to 0, one of the factors must be equal to 0. For example, the roots of the cubic will be the solutions to the equation

We see that either , , or . Solving each equation gives us , , or 0. We can then see that these are the -intercepts of the graph of this function.

### Property: 𝑥-Intercepts of a Factored Cubic Polynomial

The -intercepts of the graph of are at , , and .

In general, all cubic polynomials have at most three real roots, so their graphs have at most three -intercepts.

When becomes very large, all the factors , , and will be positive, so their product will be positive. Consequently, if is positive too, then will be positive for large values of . On the other hand, if is negative, then will be negative for large values of .

Similarly, if we consider large negative values of , we can see that all factors , , and will be negative, so their product will be negative too. Thus, if is positive, then will be negative for large negative values of , and if is negative, then will be positive.

We note that this observation also applies to the nonfactored form of a cubic function. That is, the leading coefficient (i.e., the in ) will determine the end behavior of the graph. This line of reasoning leads us to the following property.

### Property: End Behavior of the Graphs of Cubic Functions

The end behavior of the graphs of cubic functions is determined by the sign of their leading coefficients.

If the leading coefficient is positive, then as increases without bound, the outputs increase without bound. Similarly, as decreases without bound, the outputs decrease without bound.

If the leading coefficient is negative, then this behavior is reversed; as increases without bound, the outputs decrease without bound, and as decreases without bound, the outputs increase without bound.

Cubic graphs with positive leading coefficients have the same end behavior as .

Cubic graphs with negative leading coefficients have the same end behavior as .

One final piece of information we can use to sketch the graph of a cubic function is the location of the -intercept. Recall that the -intercept is where the curve intersects the , which happens when . This is straightforward for us to calculate since we just need to substitute into the function (which can be done regardless of whether the function is in factored form).

We sketch the graph of a cubic polynomial by factoring, finding its - and -intercepts, and then checking the sign of its leading coefficient to determine the end behavior.

Let’s now see an example of using this method to sketch the graph of a cubic function.

### Example 1: Identifying the Graph of a Factored Cubic Function

Which of the following is the graph of ?

The easiest way to answer this question is to eliminate options. We can do this by recalling that the -intercepts occur when the function outputs 0. This means that we can find the -intercepts by solving the equation . This gives us

For a product to be equal to 0, one of the factors must be 0. We can set each factor equal to 0 and solve to determine the -intercepts. We have

Therefore, there are three -intercepts of the curve at , , and 3. We can see that only options C and D have these -intercepts, so these are the only possible correct graphs.

There are now two possible ways we can determine the correct graph.

We can determine the -intercept by substituting into the function. This gives us

We see that the graph in option C has a positive -intercept, so this cannot be the correct graph. This only leaves the graph in option D.

Alternatively, we can note that the leading coefficient is 1, and since this is positive, the end behavior of the graph will be the same as . This means that the graph of the function should approach infinity as approaches infinity. We can see that the graph in option C does not have this end behavior. So, the answer must be option D.

It is worth noting that in the above example, we actually found enough information to sketch the graph of the function ourselves. To do this, we start by marking the three -intercepts and -intercepts as shown.

We then note that the end behavior of the graph is the same as , so we can connect the points with a cubic curve that goes to infinity as approaches infinity to get the following graph.

In our next example, we will identify the correct equation of a cubic function from its graph.

### Example 2: Identifying a Factored Cubic Function from Its Graph

Which equation matches the graph?

We first note that all five of the given choices are factored cubic functions. We can recall that the -intercepts occur when the function outputs 0, and for a factored function, they occur when each factor is equal to 0. We can note that we can read off the -intercepts from the graph; they are at , , and .

We can use these values to determine the possible linear factors of the function. Since the function outputs 0 at these values and the function is a product of factors, one of the factors must be equal to 0 at each -intercept. This means that we have factors of , , and .

This tells us that our function must be of the form , where is some real value. In order to determine the value of , we can examine the value of at a nonzero point, such as the -intercept.

The -intercept can be read off the graph by seeing where it intercepts the , which is at . This means that . Substituting into our expression for gives us

Dividing through by then gives us

This gives us the equation , which is option B.

Before we move on to our next example, there is one final possibility we need to consider, that is, what happens when we have repeated roots. For example, imagine we wanted to sketch the graph of the cubic function .

We can see that the function only has two roots, so there are only two -intercepts of its graph. These are at and . We can find its -intercept by evaluating . We have

We could then plot points to get an idea of the shape of the graph. If we did, we would get the following.

We can see that there appears to be two points where the graph turns and that the end behavior of the graph matches that of . We can also notice that the graph only touches the at the point rather than intersecting it since there is no other intercept close to this point.

In general, if we have a cubic function , where , then the graph will only touch the at the point .

There is one final possibility, which is that the same root is repeated three times. For example, the function . In this case, we just have a single -intercept at , and the end behavior is determined by the sign of the leading coefficient. In cases with three repeated roots, the shape of the curve is similar to (since this also has three repeated roots).

Let’s now see an example of using this process to identify the correct graph of a cubic function with a repeated factor.

### Example 3: Identifying the Graph of a Factored Cubic Function with a Repeated Factor

Which of the following graphs represents ?

We note that we are asked to determine the correct graph of a factored cubic polynomial. We can start by finding the -intercepts and -intercepts. Let’s start with the -intercepts. These occur when the outputs of the function are 0. This function is the product of factors, so one of the factors must be equal to 0 at the -intercepts. We have

We can find the -intercept by substituting into the function. We calculate

At this point, we can see that only option A has a -intercept of , so it is the only possible correct graph of the function. However, it is always good practice to find all the information so that we can sketch our own graph of the function.

We can also see that the function has a repeated factor of . This means that the function will only touch the at this point. Finally, we can note that the leading coefficient is negative, so the end behavior of the graph will be the same as that of .

We can add the -intercepts and -intercepts to a graph and note the end behavior.

Sketching a cubic-shaped curve through these points making sure to only touch the point gives us the following.

We see that this sketch matches the graph in option A.

In our next example, we will find the values of three missing constants from a cubic function by using its graph.

### Example 4: Finding the Unknown Variables in a Cubic Function given Its Graph

The following graph represents the function . Find the values of , , and .

We are given the graph of a cubic function and are asked to determine the values of three constants from the function. We can do this by recalling the relationships between properties of the graph and the structure of the function.

First, we recall that the -intercepts of a factored cubic function occur when each factor is equal to 0. In particular, if is a factor, the graph will have an -intercept at . We can see in the diagram that the graph has two -intercepts: and 2. This means that and are factors of the cubic function.

In order to find which factor is repeated (i.e., has a square), we recall that repeated factors result in an -intercept of the graph that only touches the at a point. Since this occurs at , this means that the factor of must be a repeated factor. This gives us

Thus, and .

To determine the value of , we can use the -intercept of the graph. From the diagram, we can see that the -intercept is at 4. This means that . We can substitute into our function to get

Since ,this tells us that . Thus,

This gives us

Hence, , , and .

In general, it is very difficult to factor a cubic polynomial. Factoring cubics often requires advanced methods; however, there are examples of easier ways to factor cubics. For example, if all the terms in the cubic share a factor of , then we can take out this factor, leaving us with a quadratic. We can then apply our tools for factoring quadratics.

In our next example, we will factor a cubic polynomial to help us determine the correct sketch of its curve.

### Example 5: Factoring and Identifying the Graph of a Cubic Function

1. Factor the cubic polynomial .
2. Determine which of the following is the correct sketch of the curve .

Part 1

We want to factor the cubic polynomial . We can do this by noting that both terms share a factor of . Taking out the shared factor of gives us

We can then note that is a difference between two squares. This means that we can factor this as .

Substituting this into the function gives us

Part 2

We can determine the -intercepts of the graph of this function by setting each factor equal to 0 and solving for . We find that the -intercepts are at , , and . This means that choices A, B, and E cannot be correct since they do not have these -intercepts.

We can find the -intercept of the curve by substituting into the function. This yields

So, the -intercept is at 0, which is consistent with the fact that is an -intercept.

Finally, we can determine the end behavior of the curve by noting that the leading coefficient of the polynomial is positive. This means that the end behavior will be the same as . In particular, as the values of increase without bound, the outputs of the function should increase without bound. This is not true in choice C, so the correct answer must be choice D.

In our final example, we will factor a cubic polynomial to help us determine the sketch of a graph.

### Example 6: Factoring and Identifying the Graph of a Cubic Function

1. Factor the cubic polynomial .
2. Determine which of the following is the correct sketch of the curve .

Part 1

We want to factor the cubic polynomial . We can do this by noting that all the terms share a factor of . Taking out the shared factor of gives us

To factor the quadratic, we need to find two numbers whose product is and that add to 1. We can find that and that . This allows us to factor the quadratic as follows:

Substituting this into the cubic polynomial gives

Part 2

We note that we are asked to determine the correct graph of a factored cubic polynomial. We can start by finding the -intercepts and -intercepts. Let’s start with the -intercepts. These occur when the output of the function is 0. As we have factored the function, we can find the -intercepts by setting each of the factors to be zero in turn. We have

Thus, our graph has three distinct -intercepts at , 0, and 1. As one of the -intercepts is at , this also gives us the -intercept of the graph. We can see that only choices B and C have these -intercepts, so it must be one of these graphs.

Finally, we can note that the leading coefficient is positive, so the end behavior of the graph will be the same as that of .

We can add the -intercepts and -intercepts onto a graph and note the end behavior.

Sketching a cubic-shaped curve through these points with the correct end behavior gives us the following.

We can see that this sketch matches the graph given in choice B.

Let’s finish by recapping some of the important points from this explainer.

### Key Points

• The -intercepts of the graph of are at , , and .
• All cubic polynomials have at most three real roots, so their graphs have at most three -intercepts.
• The end behavior of the graphs of cubic functions is determined by the sign of their leading coefficients. If the leading coefficient is positive, then the cubic function has the same end behavior as . If the leading coefficient is negative, then the cubic function has the same end behavior as .
• If there is a repeated root, such as , then the graph only touches the at .