Apply the chain rule and the product/quotient rules correctly in combination when both are necessary
Recognize the chain rule for a composition of three or more functions
Describe the proof of the chain rule
The Chain and Power Rules Combined
We can now apply the chain rule to composite functions, but note that we often need to use it with other rules. For example, to find derivatives of functions of the form [latex]h(x)=(g(x))^n[/latex], we need to use the chain rule combined with the power rule. To do so, we can think of [latex]h(x)=(g(x))^n[/latex] as [latex]f(g(x))[/latex] where [latex]f(x)=x^n[/latex]. Then [latex]f^{\prime}(x)=nx^{n-1}[/latex]. Thus, [latex]f^{\prime}(g(x))=n(g(x))^{n-1}[/latex]. This leads us to the derivative of a power function using the chain rule,
Use the previous example with [latex]g(x)=2x^3+2x-1[/latex]
Watch the following video to see the worked solution to the above Try It.
Closed Captioning and Transcript Information for Video
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
Example: Using the Chain and Power Rules with a Trigonometric Function
Find the derivative of [latex]h(x)=\sin^3 x[/latex]
Show Solution
First recall that [latex]\sin^3 x=(\sin x)^3[/latex], so we can rewrite [latex]h(x)= \sin^3 x[/latex] as [latex]h(x)=(\sin x)^3[/latex].
Applying the power rule with [latex]g(x)= \sin x[/latex], we obtain
[latex]h^{\prime}(x)=3(\sin x)^2 \cos x=3 \sin^2 x \cos x[/latex].
Example: Finding the Equation of a Tangent Line
Find the equation of a line tangent to the graph of [latex]h(x)=\dfrac{1}{(3x-5)^2}[/latex] at [latex]x=2[/latex].
Show Solution
Because we are finding an equation of a line, we need a point. The [latex]x[/latex]-coordinate of the point is 2. To find the [latex]y[/latex]-coordinate, substitute 2 into [latex]h(x)[/latex]. Since [latex]h(2)=\frac{1}{(3(2)-5)^2}=1[/latex], the point is [latex](2,1)[/latex].
For the slope, we need [latex]h^{\prime}(2)[/latex]. To find [latex]h^{\prime}(x)[/latex], first we rewrite [latex]h(x)=(3x-5)^{-2}[/latex] and apply the power rule to obtain
By substituting, we have [latex]h^{\prime}(2)=-6(3(2)-5)^{-3}=-6[/latex]. Therefore, the line has equation [latex]y-1=-6(x-2)[/latex]. Rewriting, the equation of the line is [latex]y=-6x+13[/latex].
Watch the following video to see the worked solution to Example: Finding the Equation of a Tangent Line.
Closed Captioning and Transcript Information for Video
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
Find the equation of the line tangent to the graph of [latex]f(x)=(x^2-2)^3[/latex] at [latex]x=-2[/latex].
Show Solution
[latex]y=-48x-88[/latex]
Hint
Use the preceding example as a guide.
Try It
The Chain and Trigonometric Functions Combined
Now that we can combine the chain rule and the power rule, we examine how to combine the chain rule with the other rules we have learned. In particular, we can use it with the formulas for the derivatives of trigonometric functions or with the product rule.
Example: Using the Chain Rule on a General Cosine Function
Find the derivative of [latex]h(x)= \cos (g(x))[/latex].
Show Solution
Think of [latex]h(x)= \cos (g(x))[/latex] as [latex]f(g(x))[/latex] where [latex]f(x)= \cos x[/latex]. Since [latex]f^{\prime}(x)=−\sin x[/latex] we have [latex]f^{\prime}(g(x))=−\sin (g(x))[/latex]. Then we do the following calculation.
Thus, the derivative of [latex]h(x)= \cos (g(x))[/latex] is given by [latex]h^{\prime}(x)=−\sin (g(x))g^{\prime}(x)[/latex].
In the following example we apply the rule that we have just derived.
Example: Using the Chain Rule on a Cosine Function
Find the derivative of [latex]h(x)= \cos (5x^2)[/latex].
Show Solution
Let [latex]g(x)=5x^2[/latex]. Then [latex]g^{\prime}(x)=10x[/latex].
Using the result from the previous example, [latex]\begin{array}{ll}h^{\prime}(x) & =-\sin (5x^2) \cdot 10x \\ & =-10x \sin (5x^2) \end{array}[/latex]
Example: Using the Chain Rule on Another Trigonometric Function
Find the derivative of [latex]h(x)= \sec (4x^5+2x)[/latex].
Show Solution
Apply the chain rule to [latex]h(x)= \sec (g(x))[/latex] to obtain
Watch the following video to see the worked solution to Example: Using the Chain Rule on Another Trigonometric Function.
Closed Captioning and Transcript Information for Video
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
Find the derivative of [latex]h(x)= \sin (7x+2)[/latex].
Hint
Apply the chain rule to [latex]h(x)= \sin g(x)[/latex] first and then use [latex]g(x)=7x+2[/latex].
Show Solution
[latex]h^{\prime}(x)=7 \cos (7x+2)[/latex]
At this point we provide a list of derivative formulas that may be obtained by applying the chain rule in conjunction with the formulas for derivatives of trigonometric functions. Their derivations are similar to those used in the last three examples. For convenience, formulas are also given in Leibniz’s notation, which some students find easier to remember. (We discuss the chain rule using Leibniz’s notation at the end of this section.) It is not absolutely necessary to memorize these as separate formulas as they are all applications of the chain rule to previously learned formulas.
Using the Chain Rule with Trigonometric Functions
For all values of [latex]x[/latex] for which the derivative is defined,
Watch the following video to see the worked solution to Example: Combining the Chain Rule with the Product Rule.
Closed Captioning and Transcript Information for Video
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
We can now combine the chain rule with other rules for differentiating functions, but when we are differentiating the composition of three or more functions, we need to apply the chain rule more than once. If we look at this situation in general terms, we can generate a formula, but we do not need to remember it, as we can simply apply the chain rule multiple times.
In other words, we are applying the chain rule twice.
Notice that the derivative of the composition of three functions has three parts. (Similarly, the derivative of the composition of four functions has four parts, and so on.) Also, remember, we always work from the outside in, taking one derivative at a time.
Example: Differentiating a Composite of Three Functions
Find the derivative of [latex]k(x)=\cos^4 (7x^2+1)[/latex]
Don’t forget that [latex]{\cos }^{n}t[/latex] is a commonly used shorthand notation for [latex]{\left(\cos \left(t\right)\right)}^{n}[/latex]. When we write it without the shorthand notation, we can clearly see why the chain rule is necessary in these situations.
Try It
Find the derivative of [latex]h(x)=\sin^6 (x^3)[/latex]
Hint
Rewrite [latex]h(x)=\sin^6 (x^3)=(\sin(x^3))^6[/latex] and use the previous example as a guide.
Example: Using the Chain Rule in a Velocity Problem
A particle moves along a coordinate axis. Its position at time [latex]t[/latex] is given by [latex]s(t)= \sin (2t)+ \cos (3t)[/latex]. What is the velocity of the particle at time [latex]t=\frac{\pi}{6}[/latex]?
Show Solution
To find [latex]v(t)[/latex], the velocity of the particle at time [latex]t[/latex], we must differentiate [latex]s(t)[/latex]. Thus,
Substituting [latex]t=\frac{\pi}{6}[/latex] into [latex]v(t)[/latex], we obtain [latex]v(\frac{\pi}{6})=-2[/latex].
Watch the following video to see the worked solution to Example: Using the Chain Rule in a Velocity Problem.
Closed Captioning and Transcript Information for Video
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
A particle moves along a coordinate axis. Its position at time [latex]t[/latex] is given by [latex]s(t)= \sin (4t)[/latex]. Find its acceleration at time [latex]t[/latex].
Hint
Acceleration is the second derivative of position.
Show Solution
[latex]a(t)=-16 \sin (4t)[/latex]
Proof of the Chain Rule
At this point, we present a very informal proof of the chain rule. For simplicity’s sake we ignore certain issues: For example, we assume that [latex]g(x)\ne g(a)[/latex] for [latex]x\ne a[/latex] in some open interval containing [latex]a[/latex]. We begin by applying the limit definition of the derivative to the function [latex]h(x)[/latex] to obtain [latex]h^{\prime}(a)[/latex]:
To see that this is true, first recall that since [latex]g[/latex] is differentiable at [latex]a, \, g[/latex] is also continuous at [latex]a[/latex]. Thus,
[latex]\underset{x\to a}{\lim}g(x)=g(a)[/latex].
Next, make the substitution [latex]y=g(x)[/latex] and [latex]b=g(a)[/latex] and use change of variables in the limit to obtain
Watch the following video to see the worked solution to Example: Using the Chain Rule with Functional Values.
Closed Captioning and Transcript Information for Video
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
Let [latex]h(x)=f(g(x))[/latex]. If [latex]g(2)=-3, \, g^{\prime}(2)=4[/latex], and [latex]f^{\prime}(-3)=7[/latex], find [latex]h^{\prime}(2)[/latex].
Show Solution
28
Hint
Follow the example of using the chain rule in a velocity problem.
Candela Citations
CC licensed content, Original
3.6 The Chain Rule. Authored by: Ryan Melton. License: CC BY: Attribution
Hint
Use the previous example with [latex]g(x)=2x^3+2x-1[/latex]