Lesson Video: Graphing Using Derivatives | Nagwa Lesson Video: Graphing Using Derivatives | Nagwa

Lesson Video: Graphing Using Derivatives Mathematics

In this video, we will learn how to use derivatives to graph a function.

14:33

Video Transcript

In this video, weโ€™ll learn how finding the derivative can make graphing a function much more simple. Up to this stage, itโ€™s likely weโ€™ll have focused on particular aspects of curve sketching, such as limits, continuity, and concavity. Itโ€™s now time to combine all of this information to help us sketch graphs that reveal the full extent of the features of the various functions.

The given checklist is intended to be used like a set of guidelines when curve sketching. We wonโ€™t need to use every single point every single time. But itโ€™s a good idea to begin by considering each of these features in turn.

The first is domain and range. It can be useful to consider the domain of the function. In other words, the set of values of ๐‘ฅ, for which the function is defined. And from this, we might consider the range, the complete set of resulting function values, though this usually develops through the other steps.

The second is intercepts. We look for both ๐‘ฆ- and ๐‘ฅ-intercepts. Remember, the ๐‘ฆ-intercept is obtained by letting ๐‘ฅ equal to zero and solving for ๐‘ฆ, whereas the ๐‘ฅ-intercepts are obtained by setting ๐‘ฆ equal to zero and solving for ๐‘ฅ. We look for symmetry. Are the functions even? In other words, does ๐‘“ of negative ๐‘ฅ equal ๐‘“ of ๐‘ฅ? Are they odd? Does ๐‘“ of negative ๐‘ฅ equal negative ๐‘“ of ๐‘ฅ? Or neither. And then we might consider asymptotes.

Remember, if the limit as ๐‘ฅ tends to either positive or negative infinity of the function is equal to some value ๐ฟ, then the line ๐‘ฆ equals ๐ฟ is a horizontal asymptote of the curve. If it turns out that the limit as ๐‘ฅ tends to infinity of the function is either positive or negative infinity, then we donโ€™t have an asymptote. But this fact is still useful for sketching the curve.

We also recall that the line ๐‘ฅ equals ๐‘Ž is a vertical asymptote if at least one of the following is true. The limit as ๐‘ฅ tends to ๐‘Ž from the right of the function is either positive or negative infinity. Or the limit as ๐‘ฅ approaches ๐‘Ž from the left of the function is either positive or negative infinity. The fifth point is intervals of increase or decrease.

We recall that a function is increasing when its derivative is greater than zero and decreasing when its derivative is less than zero. This tells us the shape of the graph over various intervals. We also look for local extrema. Remember, critical values occur when the derivative is equal to zero or does not exist. Then the first derivative test can tell us the nature of these critical points.

We can consider concavity and points of inflection. And this time, we evaluate the second derivative. If itโ€™s greater than zero over some interval, then the curve is concave upward. And if itโ€™s less than zero over some interval, the curve is concave downward. When the concavity changes, we know we have a point of inflection. Finally, we might consider the end behavior of the function. And this we usually come about as a result of the other work weโ€™ve done.

This is, of course, a hugely extensive list. And thereโ€™ll be times where many of the features can be predicted by using a graphing calculator. But one of these will not always be accessible. Weโ€™ll now consider a number of examples which require consideration of these features.

Consider the function ๐‘“ of ๐‘ฅ equals ๐‘ฅ minus one squared times ๐‘ฅ plus two. Find ๐‘“ prime of ๐‘ฅ. Find and classify the critical points of ๐‘“. Find the intervals of increase and decrease for ๐‘“. Find the limit as ๐‘ฅ approaches infinity of ๐‘“ of ๐‘ฅ.

And then thereโ€™s one more part of this question, which asks us to identify the correct graph for our function. So weโ€™ll look at our options when weโ€™ve completed the first four parts. So how are we going to evaluate ๐‘“ prime of ๐‘ฅ?

Thatโ€™s the first derivative of our function with respect to ๐‘ฅ. Well, taking a look at our function, there are a number of ways we can do this. We could distribute our parentheses and differentiate term by term. Alternatively, notice that we have a product of two functions, one of which is a composite function. So we could use the product rule alongside the general power rule.

The product rule says that the derivative of the product of two differentiable functions ๐‘ข and ๐‘ฃ is ๐‘ข times d๐‘ฃ by d๐‘ฅ plus ๐‘ฃ times d๐‘ข by d๐‘ฅ. So letโ€™s let ๐‘ข be equal to ๐‘ฅ minus one all squared and ๐‘ฃ be equal to ๐‘ฅ plus two. Weโ€™ll need to use the general power rule to find the derivative of ๐‘ฅ minus one all squared. This is a special case of the chain rule. And it says we can multiply the entire function by the exponent, reduce the exponent by one, and then multiply all of this by the derivative of the inner function.

Well, the derivative of ๐‘ฅ minus one is just one. So d๐‘ข by d๐‘ฅ is two times ๐‘ฅ minus one to the power of two minus one times one. And that simplifies to two times ๐‘ฅ minus one. d๐‘ฃ by d๐‘ฅ is much more straightforward. Itโ€™s simply one. So we substitute what we have into the product rule. Itโ€™s ๐‘ข times d๐‘ฃ by d๐‘ฅ โ€” thatโ€™s ๐‘ฅ minus one all squared times one โ€” plus ๐‘ฃ times d๐‘ข by d๐‘ฅ. Distributing our parentheses, and the first derivative of our function simplifies really nicely to three ๐‘ฅ squared minus three.

In the second part of this question, we need to find and classify the critical points of our function. Remember, these occur when our first derivative is either equal to zero or does not exist. Well, we actually know that polynomial functions are all differentiable. So weโ€™re just going to consider the case for which our first derivative is equal to zero. That is, three ๐‘ฅ squared minus three is equal to zero.

Letโ€™s solve for ๐‘ฅ. We divide through by one. And then we use the difference of two squares to factor ๐‘ฅ squared minus one. Itโ€™s ๐‘ฅ plus one times ๐‘ฅ minus one. Now for the product of these two terms to be equal to zero, either ๐‘ฅ plus one has to be equal to zero or ๐‘ฅ minus one has to be equal to zero. And solving each equation for ๐‘ฅ, we obtain ๐‘ฅ must be either negative one or ๐‘ฅ equals one. So we have critical points where ๐‘ฅ is either equal to positive or negative one.

Our next job is to classify these. We can perform the first derivative test and evaluate the first derivative just before and just after each critical point. Letโ€™s add a table. We know that the first derivative is equal to zero when ๐‘ฅ is equal to negative one or positive one. The first derivative evaluated at ๐‘ฅ equals negative two is three times negative two squared minus three, which is nine. The first derivative evaluated when ๐‘ฅ is equal to zero is three times zero squared minus three, which is negative three. And the first derivative evaluated at ๐‘ฅ equals two is also nine. The function is increasing before ๐‘ฅ equals negative one and decreasing after. So the critical point ๐‘ฅ equals negative one is a local maximum. The opposite is true when ๐‘ฅ equals one. So that must be our local minimum.

In the third part of this question, weโ€™re looking to find the intervals of increase and decrease for our function. Letโ€™s clear some space. Now this might seem awfully similar to what we just did. But at that point, we were simply considering the nature of the function at specific points. We now want to know over what intervals the function is increasing or decreasing. So weโ€™re going to work out when the first derivative is less than zero, decreasing, or greater than zero, increasing.

We know the graph of ๐‘ฆ equals three ๐‘ฅ squared minus three looks a little something like this. We can see that the graph of the first derivative is greater than zero here and here. In other words, when ๐‘ฅ is less than negative one or greater than one. The first derivative is less than zero here. Thatโ€™s when ๐‘ฅ is greater than negative one or less than one. So the intervals of increase are the open intervals from negative infinity to negative one and one to infinity. And the interval of decrease is the open interval from negative one to one.

And finally, we need to find the limit as ๐‘ฅ approaches infinity of the function. We can do this by direct substitution. We see that as ๐‘ฅ approaches infinity, the function itself also grows larger and larger. So the function also approaches infinity. Letโ€™s now combine everything weโ€™ve done to identify the graph of our function.

Which of the following is the graph of ๐‘“? If we were to distribute the parentheses of our function, weโ€™d see we have a cubic graph with a positive leading coefficient. In other words, the coefficient of ๐‘ฅ cubed is positive. That tells us the shape of the graph will be a little something like this. We know it has critical points ๐‘ฅ equals negative one and one and a maximum and minimum in those locations, respectively.

We can work out the value of our function at these points by substituting negative one and one in. And when we do, we see that ๐‘“ of negative one is four and ๐‘“ of one is zero. So we know the graph has a maximum at negative one, four and a minimum at one, zero. We also saw that it had intervals of increase over the open interval negative infinity to negative one and one to infinity and decrease over the open interval negative one to one. The only graph that satisfies all of these conditions is A. In fact, we could have very quickly spotted they could not have been D or E as these are graphs of quadratic functions. C is a cubic graph which has a negative coefficient of ๐‘ฅ cubed. So we really only had two options.

Notice that we didnโ€™t worry about evaluating the limits of our functions to look for asymptotes. As we know, a cubic graph doesnโ€™t have any.

In our next example, we will consider a graph which has at least one asymptote.

Sketch the graph of ๐‘“ of ๐‘ฅ equals three ๐‘ฅ squared over ๐‘ฅ squared minus four.

Letโ€™s begin by considering the domain and range of our function. We know that a function which is a quotient wonโ€™t exist at points where the denominator of the quotient is zero. So we set ๐‘ฅ squared minus four equals zero and solve for ๐‘ฅ to find the domain of our function. We can add four to both sides of this equation. Then we take the square root of both sides of our equation, remembering to take both the positive and negative square root of four. And we obtain that when ๐‘ฅ squared minus four is equal to zero, ๐‘ฅ is equal to positive or negative two. So the domain of our function is all real values, except ๐‘ฅ is equal to positive or negative two. Now the range itself is a set of possible outputs on the function. And we can infer this through the graphing process.

Next, weโ€™ll work out whether there are any intercepts. By setting ๐‘ฅ equal to zero and solving for ๐‘ฆ, weโ€™ll find the ๐‘ฆ-intercept. When we do, we obtain ๐‘ฆ to be equal to three times zero squared over zero squared minus four, which is zero. So thereโ€™s a ๐‘ฆ-intercept at ๐‘ฆ equals zero. Next, we set ๐‘ฆ or ๐‘“ of ๐‘ฅ equal to zero and solve for ๐‘ฅ. That is, zero equals three ๐‘ฅ squared over ๐‘ฅ squared minus four.

Now for this to be true, we know that the numerator of this fraction must itself be equal to zero. And for three ๐‘ฅ squared to be equal to zero, ๐‘ฅ must be equal to zero. So we actually only have one intercept altogether. And thatโ€™s at the origin: zero, zero. Next, we can check for symmetry. An even function is one for which ๐‘“ of negative ๐‘ฅ equals ๐‘“ of ๐‘ฅ, whereas an odd function is one for which ๐‘“ of negative ๐‘ฅ equals negative ๐‘“ of ๐‘ฅ. Well, ๐‘“ of negative ๐‘ฅ is three times negative ๐‘ฅ squared over negative ๐‘ฅ squared minus four, which is equal to ๐‘“ of ๐‘ฅ. So our function is even. And that means itโ€™s going to be symmetrical about the ๐‘ฆ-axis.

Next, weโ€™ll look for asymptotes. Weโ€™ll look for horizontal asymptotes by considering what happens to our function as ๐‘ฅ approaches either positive or negative infinity. We canโ€™t use direct substitution as when we substitute in ๐‘ฅ equals either positive or negative infinity, we end up with infinity over infinity, which is undefined. So instead, we divide both the numerator and the denominator of our expression by ๐‘ฅ squared. That gives us three over one minus four over ๐‘ฅ squared.

And now we can use direct substitution. As ๐‘ฅ approaches either positive or negative infinity, four over ๐‘ฅ squared approaches zero. So the limit of our function is three over one, which is just three. And we see that the line ๐‘ฆ equals three must be a horizontal asymptote.

Remember, we said that when ๐‘ฅ is equal to positive or negative two, the denominator is zero. So we find the following limits. The limit as ๐‘ฅ approaches two from the right of our function is infinity. And the limit as ๐‘ฅ approaches two from the left of the function is negative infinity. And the limit as ๐‘ฅ approaches negative two from the right of the function is negative infinity. And as it approaches negative two from the left, itโ€™s positive infinity. So we obtain ๐‘ฅ equals positive or negative two to be vertical asymptotes.

Letโ€™s clear some space and look for intervals of increase and decrease. Weโ€™ll begin by using the quotient rule to find the first derivative of our function. By letting ๐‘ข be equal to three ๐‘ฅ squared and ๐‘ฃ be equal to ๐‘ฅ squared minus four, we obtain expressions for d๐‘ข by d๐‘ฅ and d๐‘ฃ by d๐‘ฅ. And so the first derivative of our function is ๐‘ฃ times d๐‘ข by d๐‘ฅ minus ๐‘ข times d๐‘ฃ by d๐‘ฅ over ๐‘ฃ squared. And distributing our parentheses, we find the first derivative to be negative 24๐‘ฅ over ๐‘ฅ squared minus four all squared.

Now since ๐‘ฅ squared minus four all squared must be greater than zero for all ๐‘ฅ, this means the first derivative of our function must be less than zero when ๐‘ฅ is greater than zero. So for values of ๐‘ฅ greater than zero, we get negative 24 multiplied by a positive, which gives us a negative value. And so for ๐‘ฅ greater than zero, the first derivative is less than zero. The opposite is true. When ๐‘ฅ is less than zero, the first derivative is greater than zero. Since we know the function doesnโ€™t exist when ๐‘ฅ is equal to negative two, we can say that its intervals of increase are negative infinity to negative two and negative two to zero. And it has open intervals of decrease over zero to two and two to infinity.

Now, actually, if we look carefully, we also see that the first derivative is equal to zero when ๐‘ฅ is equal to zero. So thereโ€™s a critical point at the point zero, zero. Coincidently, thatโ€™s also the point where our curves cross the axes.

We now have everything we need to complete our sketch. We know that thereโ€™s a horizontal asymptote at ๐‘ฆ equals three and vertical asymptotes at ๐‘ฅ equals negative two and ๐‘ฅ equals two. Thereโ€™s a critical point and an intercept at zero, zero. And thatโ€™s important because we see that the curve wonโ€™t be able to cross the ๐‘ฅ-axis here or here. That helps us decide where these two parts of the curve go. The curve is increasing over the open interval negative infinity to negative two and decreasing over the open interval two to infinity. And of course, we have these asymptotes. The function is also even and symmetrical about the ๐‘ฆ-axis. So this confirms weโ€™re probably on the right track. We then use the remaining pieces of information to sketch the final part of our curve. And weโ€™ve successfully sketched the graph of ๐‘“ of ๐‘ฅ equals three ๐‘ฅ squared over ๐‘ฅ squared minus four.

In this video, weโ€™ve seen that using derivatives can help us to graph complicated functions. We have a rather extensive set of guidelines, including finding the domain or range, the intercepts, the symmetry of the curve. We look for asymptotes, intervals of increase or decrease, any local extrema, concavity, or inflection points. And we also consider the end behavior of our function. And of course, this list is extremely extensive. But we wonโ€™t need to use every single point every single time.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy