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.
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,
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.
In the following example we apply the rule that we have just derived.
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.
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
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.
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,
□
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,
Key Concepts
- The chain rule allows us to differentiate compositions of two or more functions. It states that for
Key Equations
| The chain rule | |
| The power rule for functions |