Learning Objectives
- 3.6.1 State the chain rule for the composition of two functions.
- 3.6.2 Apply the chain rule together with the power rule.
- 3.6.3 Apply the chain rule and the product/quotient rules correctly in combination when both are necessary.
- 3.6.4 Recognize the chain rule for a composition of three or more functions.
- 3.6.5 Describe the proof of the chain rule.
We have seen the techniques for differentiating basic functions as well as sums, differences, products, quotients, and constant multiples of these functions. However, these techniques do not allow us to differentiate compositions of functions, such as or In this section, we study the rule for finding the derivative of the composition of two or more functions.
Deriving the Chain Rule
When we have a function that is a composition of two or more functions, we could use all of the techniques we have already learned to differentiate it. However, using all of those techniques to break down a function into simpler parts that we are able to differentiate can get cumbersome. Instead, we use the chain rule, which states that the derivative of a composite function is the derivative of the outer function evaluated at the inner function times the derivative of the inner function.
To put this rule into context, let’s take a look at an example: We can think of the derivative of this function with respect to x as the rate of change of relative to the change in Consequently, we want to know how changes as changes. We can think of this event as a chain reaction: As changes, changes, which leads to a change in This chain reaction gives us hints as to what is involved in computing the derivative of First of all, a change in forcing a change in suggests that somehow the derivative of is involved. In addition, the change in forcing a change in suggests that the derivative of with respect to where is also part of the final derivative.
We can take a more formal look at the derivative of by setting up the limit that would give us the derivative at a specific value in the domain of
This expression does not seem particularly helpful; however, we can modify it by multiplying and dividing by the expression to obtain
From the definition of the derivative, we can see that the second factor is the derivative of at That is,
However, it might be a little more challenging to recognize that the first term is also a derivative. We can see this by letting and observing that as
Thus,
In other words, if then Thus, if we think of as the composition where sin and then the derivative of is the product of the derivative of and the derivative of the function evaluated at the function At this point, we anticipate that for it is quite likely that As we determined above, this is the case for
Now that we have derived a special case of the chain rule, we state the general case and then apply it in a general form to other composite functions. An informal proof is provided at the end of the section.
Rule: The Chain Rule
Let and be functions. For all x in the domain of for which is differentiable at x and is differentiable at the derivative of the composite function
is given by
Alternatively, if is a function of and is a function of then
Media
Watch an animation of the chain rule.
Problem-Solving Strategy
Applying the Chain Rule
- To differentiate begin by identifying and
- Find and evaluate it at to obtain
- Find
- Write
Note: When applying the chain rule to the composition of two or more functions, keep in mind that we work our way from the outside function in. It is also useful to remember that the derivative of the composition of two functions can be thought of as having two parts; the derivative of the composition of three functions has three parts; and so on. Also, remember that we never evaluate a derivative at a derivative.
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 we need to use the chain rule combined with the power rule. To do so, we can think of as where Then Thus, This leads us to the derivative of a power function using the chain rule,
Rule: Power Rule for Composition of Functions
For all values of x for which the derivative is defined, if
Then
Example 3.48
Using the Chain and Power Rules
Find the derivative of
Solution
First, rewrite
Applying the power rule with we have
Rewriting back to the original form gives us
Checkpoint 3.34
Find the derivative of
Example 3.49
Using the Chain and Power Rules with a Trigonometric Function
Find the derivative of
Solution
First recall that so we can rewrite as
Applying the power rule with we obtain
Example 3.50
Finding the Equation of a Tangent Line
Find the equation of a line tangent to the graph of at
Solution
Because we are finding an equation of a line, we need a point. The x-coordinate of the point is 2. To find the y-coordinate, substitute 2 into Since the point is
For the slope, we need To find first we rewrite and apply the power rule to obtain
By substituting, we have Therefore, the line has equation Rewriting, the equation of the line is
Checkpoint 3.35
Find the equation of the line tangent to the graph of at
Combining the Chain Rule with Other Rules
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 3.51
Using the Chain Rule on a General Cosine Function
Find the derivative of
Solution
Think of as where Since we have Then we do the following calculation.
Thus, the derivative of is given by
In the following example we apply the rule that we have just derived.
Example 3.52
Using the Chain Rule on a Cosine Function
Find the derivative of
Solution
Let Then Using the result from the previous example,
Example 3.53
Using the Chain Rule on Another Trigonometric Function
Find the derivative of
Solution
Apply the chain rule to to obtain
In this problem, so we have Therefore, we obtain
Checkpoint 3.36
Find the derivative of
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 Example 3.51 and Example 3.53. 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.
Theorem 3.10
Using the Chain Rule with Trigonometric Functions
For all values of for which the derivative is defined,
Example 3.54
Combining the Chain Rule with the Product Rule
Find the derivative of
Solution
First apply the product rule, then apply the chain rule to each term of the product.
Checkpoint 3.37
Find the derivative of
Composites of Three or More Functions
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
Rule: 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 can always work from the outside in, taking one derivative at a time.
Example 3.55
Differentiating a Composite of Three Functions
Find the derivative of
Solution
First, rewrite as
Then apply the power rule several times.
Checkpoint 3.38
Find the derivative of
Example 3.56
Using the Chain Rule in a Velocity Problem
A particle moves along a coordinate axis. Its position at time t is given by What is the velocity of the particle at time
Solution
To find the velocity of the particle at time we must differentiate Thus,
Substituting into we obtain
Checkpoint 3.39
A particle moves along a coordinate axis. Its position at time is given by Find its acceleration at time
Proof
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 for in some open interval containing We begin by applying the limit definition of the derivative to the function to obtain
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 is also continuous at Thus,
Next, make the substitution and and use change of variables in the limit to obtain
Finally,
□
Example 3.57
Using the Chain Rule with Functional Values
Let If and find
Solution
Use the chain rule, then substitute.
Checkpoint 3.40
Given If and find
The Chain Rule Using Leibniz’s Notation
As with other derivatives that we have seen, we can express the chain rule using Leibniz’s notation. This notation for the chain rule is used heavily in physics applications.
let and Thus,
Consequently,
Rule: Chain Rule Using Leibniz’s Notation
If is a function of and is a function of then
Example 3.58
Taking a Derivative Using Leibniz’s Notation, Example 1
Find the derivative of
Solution
First, let Thus, Next, find and Using the quotient rule,
and
Finally, we put it all together.
It is important to remember that, when using the Leibniz form of the chain rule, the final answer must be expressed entirely in terms of the original variable given in the problem.
Example 3.59
Taking a Derivative Using Leibniz’s Notation, Example 2
Find the derivative of
Solution
First, let Then Next, find and
Finally, we put it all together.
Checkpoint 3.41
Use Leibniz’s notation to find the derivative of Make sure that the final answer is expressed entirely in terms of the variable
Section 3.6 Exercises
For the following exercises, given and find by using Leibniz’s notation for the chain rule:
For each of the following exercises,
- decompose each function in the form and and
- find as a function of
For the following exercises, find for each function.
Let and suppose that and for Find
Let and If and when find
[T] Find the equation of the tangent line to at the origin. Use a calculator to graph the function and the tangent line together.
[T] Find the equation of the tangent line to at the point Use a calculator to graph the function and the tangent line together.
[T] Find an equation of the line that is normal to at the point Use a calculator to graph the function and the normal line together.
For the following exercises, use the information in the following table to find at the given value for
0 | 2 | 5 | 0 | 2 |
1 | 1 | −2 | 3 | 0 |
2 | 4 | 4 | 1 | −1 |
3 | 3 | −3 | 2 | 3 |
[T] The position function of a freight train is given by with in meters and in seconds. At time s, find the train’s
- velocity and
- acceleration.
- Using a. and b. is the train speeding up or slowing down?
[T] A mass hanging from a vertical spring is in simple harmonic motion as given by the following position function, where is measured in seconds and is in inches:
- Determine the position of the spring at s.
- Find the velocity of the spring at s.
[T] The total cost to produce boxes of Thin Mint Girl Scout cookies is dollars, where In weeks production is estimated to be boxes.
- Find the marginal cost
- Use Leibniz’s notation for the chain rule, to find the rate with respect to time that the cost is changing.
- Use b. to determine how fast costs are increasing when weeks. Include units with the answer.
[T] The formula for the area of a circle is where is the radius of the circle. Suppose a circle is expanding, meaning that both the area and the radius (in inches) are expanding.
- Suppose where is time in seconds. Use the chain rule to find the rate at which the area is expanding.
- Use a. to find the rate at which the area is expanding at s.
[T] The formula for the volume of a sphere is where (in feet) is the radius of the sphere. Suppose a spherical snowball is melting in the sun.
- Suppose where is time in minutes. Use the chain rule to find the rate at which the snowball is melting.
- Use a. to find the rate at which the volume is changing at min.
[T] The daily temperature in degrees Fahrenheit of Phoenix in the summer can be modeled by the function where is hours after midnight. Find the rate at which the temperature is changing at 4 p.m.
[T] The depth (in feet) of water at a dock changes with the rise and fall of tides. The depth is modeled by the function where is the number of hours after midnight. Find the rate at which the depth is changing at 6 a.m.