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.
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.
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
Watch an animation of the chain rule.
begin by identifying
and
and evaluate it at
to obtain
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.
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,
For all values of x for which the derivative is defined, if
Then
Find the derivative of
First, rewrite
Applying the power rule with
we have
Rewriting back to the original form gives us
Find the derivative of
First recall that
so we can rewrite
as
Applying the power rule with
we obtain
Find the equation of a line tangent to the graph of
at
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
Find the equation of the line tangent to the graph of
at
Use the preceding example as a guide.
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.
Find the derivative of
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.
Find the derivative of
Let
Then
Using the result from the previous example,
Find the derivative of
Apply the chain rule to
to obtain
In this problem,
so we have
Therefore, we obtain
Find the derivative of
Apply the chain rule to
first and then use
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 [link] and [link]. 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.
For all values of
for which the derivative is defined,
Find the derivative of
First apply the product rule, then apply the chain rule to each term of the product.
Find the derivative of
Start out by applying the quotient rule. Remember to use the chain rule to differentiate the denominator.
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
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.
Find the derivative of
First, rewrite
as
Then apply the chain rule several times.
A particle moves along a coordinate axis. Its position at time t is given by
What is the velocity of the particle at time
To find
the velocity of the particle at time
we must differentiate
Thus,
Substituting
into
we obtain
A particle moves along a coordinate axis. Its position at time
is given by
Find its acceleration at time
Acceleration is the second derivative of position.
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,
□
Let
If
and
find
Use the chain rule, then substitute.
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,
If
is a function of
and
is a function of
then
Find the derivative of
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.
Find the derivative of
First, let
Then
Next, find
and
Finally, we put it all together.
Use Leibniz’s notation to find the derivative of
Make sure that the final answer is expressed entirely in terms of the variable
Let
In Leibniz’s notation this rule takes the form
then
For the following exercises, given
and
find
by using Leibniz’s notation for the chain rule:
For each of the following exercises,
and
and
as a function of
a.
b.
a.
b.
a.
b.
a.
b.
For the following exercises, find
for each function.
Let
and suppose that
and
for
Find
Let
and suppose that
and
when
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.
Find the
-coordinates at which the tangent line to
is horizontal.
[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
| {: valign=”top”}|———- | 0 | 2 | 5 | 0 | 2 | {: valign=”top”}| 1 | 1 | −2 | 3 | 0 | {: valign=”top”}| 2 | 4 | 4 | 1 | −1 | {: valign=”top”}| 3 | 3 | −3 | 2 | 3 | {: valign=”top”}{: .unnumbered summary=”This table has five rows and five columns. The first row is a header row and it labels each column. The column headers from left to right are x, f(x), f’(x), g(x), and g’(x). Under the first column are the values 0, 1, 2, and 3. Under the second column are the values 2, 1, 4, and 3. Under the third column are the values 5, −2, 4, and −3. Under the fourth column are the values 0, 3, 1, and 2. Under the fifth column are g’(x) are the values 2, 0, −1, and 3.” data-label=””}
10
[T] The position function of a freight train is given by
with
in meters and
in seconds. At time
s, find the train’s
a.
m/s, b.
m/s2, c. The train is slowing down since velocity and acceleration have opposite signs.
[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:
s.
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.
to find the rate with respect to time
that the cost is changing.
weeks. Include units with the answer.
a.
b.
c. Approximately $90,300 per week
[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.
where
is time in seconds. Use the chain rule
to find the rate at which the area is expanding.
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.
where
is time in minutes. Use the chain rule
to find the rate at which the snowball is melting.
min.
a.
b. The volume is decreasing at a rate of
ft3/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.
ft/hr
You can also download for free at http://cnx.org/contents/9a1df55a-b167-4736-b5ad-15d996704270@5.1
Attribution: