Learning Outcomes
- Apply the chain rule together with the power rule
- 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 h(x)=(g(x))nh(x)=(g(x))n, we need to use the chain rule combined with the power rule. To do so, we can think of h(x)=(g(x))nh(x)=(g(x))n as f(g(x))f(g(x)) where f(x)=xnf(x)=xn. Then f′(x)=nxn−1f′(x)=nxn−1. Thus, f′(g(x))=n(g(x))n−1f′(g(x))=n(g(x))n−1. This leads us to the derivative of a power function using the chain rule,
Power Rule for Composition of Functions
For all values of xx for which the derivative is defined, if
Then
Example: Using the Chain and Power Rules
Find the derivative of h(x)=1(3x2+1)2h(x)=1(3x2+1)2
Try It
Find the derivative of h(x)=(2x3+2x−1)4h(x)=(2x3+2x−1)4
Watch the following video to see the worked solution to the above Try It.
Example: Using the Chain and Power Rules with a Trigonometric Function
Find the derivative of h(x)=sin3xh(x)=sin3x
Example: Finding the Equation of a Tangent Line
Find the equation of a line tangent to the graph of h(x)=1(3x−5)2h(x)=1(3x−5)2 at x=2x=2.
Watch the following video to see the worked solution to Example: Finding the Equation of a Tangent Line.
Try It
Find the equation of the line tangent to the graph of f(x)=(x2−2)3f(x)=(x2−2)3 at x=−2x=−2.
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 h(x)=cos(g(x))h(x)=cos(g(x)).
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 h(x)=cos(5x2)h(x)=cos(5x2).
Example: Using the Chain Rule on Another Trigonometric Function
Find the derivative of h(x)=sec(4x5+2x)h(x)=sec(4x5+2x).
Watch the following video to see the worked solution to Example: Using the Chain Rule on Another Trigonometric Function.
Try It
Find the derivative of h(x)=sin(7x+2)h(x)=sin(7x+2).
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 x for which the derivative is defined,
The Chain and Product Rules Combined
Example: Combining the Chain Rule with the Product Rule
Find the derivative of h(x)=(2x+1)5(3x−2)7
Watch the following video to see the worked solution to Example: Combining the Chain Rule with the Product Rule.
Try It
Find the derivative of h(x)=x(2x+3)3
Try It
Applying the Chain Rule Multiple Times
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 general terms, first we let
Then, applying the chain rule once we obtain
Applying the chain rule again, we obtain
Chain Rule for a Composition of Three Functions
For all values of x for which the function is differentiable, if
then
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 k(x)=cos4(7x2+1)
Try It
Find the derivative of h(x)=sin6(x3)
Try It
Example: Using the Chain Rule in a Velocity Problem
A particle moves along a coordinate axis. Its position at time t is given by s(t)=sin(2t)+cos(3t). What is the velocity of the particle at time t=π6?
Watch the following video to see the worked solution to Example: Using the Chain Rule in a Velocity Problem.
Try It
A particle moves along a coordinate axis. Its position at time t is given by s(t)=sin(4t). Find its acceleration at time t.
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 g(x)≠g(a) for x≠a in some open interval containing a. We begin by applying the limit definition of the derivative to the function h(x) to obtain h′(a):
Rewriting, we obtain
Although it is clear that
it is not obvious that
To see that this is true, first recall that since g is differentiable at a,g is also continuous at a. Thus,
Next, make the substitution y=g(x) and b=g(a) and use change of variables in the limit to obtain
Finally,
Example: Using the Chain Rule with Functional Values
Let h(x)=f(g(x)). If g(1)=4,g′(1)=3, and f′(4)=7, find h′(1).
Watch the following video to see the worked solution to Example: Using the Chain Rule with Functional Values.
Try It
Let h(x)=f(g(x)). If g(2)=−3,g′(2)=4, and f′(−3)=7, find h′(2).
Candela Citations
- 3.6 The Chain Rule. Authored by: Ryan Melton. License: CC BY: Attribution
- Calculus Volume 1. Authored by: Gilbert Strang, Edwin (Jed) Herman. Provided by: OpenStax. Located at: https://openstax.org/details/books/calculus-volume-1. License: CC BY-NC-SA: Attribution-NonCommercial-ShareAlike. License Terms: Access for free at https://openstax.org/books/calculus-volume-1/pages/1-introduction
Hint
Use the previous example with g(x)=2x3+2x−1g(x)=2x3+2x−1