Chain rule
To find the derivative of a function like , expanding and then applying the power rule is correct but inefficient.
Instead, a faster method called the chain rule is used to differentiate composite functions - functions built by nesting one function into another.
In other words,
- Differentiate the outer function, keeping the inner function intact.
- Multiply it by the derivative of the inner function.
Another common way to write the chain rule uses Leibniz notation:
Examples
- Differentiate
Solution
is a composite function, so we identify the inner and outer parts. Below, the inner function is boxed:
For clarity,
- Outer function:
- Inner function:
Apply the Chain Rule: differentiate the outer function (using the power rule) while leaving the inner function untouched, then multiply by the derivative of the inner function.
Let’s try one with the natural logarithm. Recall from section 2.5 that .
- Differentiate
Solution
is a composite function with:
For clarity,
- Outer function:
- Inner function:
Applying the chain rule, differentiate the outer function while keeping the inner function intact, then multiply by the derivative of the inner function:
Similarly, recall that for exponential functions,
and
- Differentiate:
a)
b)
Solutions
a)
is a composite function, where
- Outer function:
- Inner function:
Applying the chain rule,
b)
consists of
- Outer function:
- Inner function:
Combining rules
The chain rule often appears together with other derivative rules. The main thing to watch is order: decide which overall structure you have first (product, quotient, or composition), then apply the needed rules inside that structure.
For example, the following problem uses the product rule first, and then uses the chain rule while differentiating one of the factors.
- Differentiate
Solution
is a product of two functions:
Notice that is composite, so the chain rule is needed to find .
| Function | Expression |
|---|---|
Putting these into the product rule:
To simplify, factor out the common factors and :
Contrast that with the next problem, which uses the power rule first, and then the product rule when applying the chain rule and differentiating the inner function.
- Differentiate
Solution
is a composite function, where:
-
Outer function:
-
Inner function:
Applying the chain rule,
To differentiate , apply the product rule
Then
- Differentiate
Solution
For easier algebra, pull out the constant multiple :
Now is a quotient of two functions:
Use the quotient rule. Note that is composite, so the chain rule is needed for .
| Function | Expression |
|---|---|
Putting the pieces into the quotient rule:
You can also reach the same answer by rewriting
and applying the product rule while using the chain rule on .
Using tables
Some questions ask you to apply derivative rules using only a table of values:
and their derivatives have the following values shown in the table:
Find given
Solution
Because is a composite function, apply the chain rule:
Now evaluate at :
Challenge problems
- Differentiate
Solution
Rewrite the square root as a power:
Then consists of
- Outer:
- Inner:
Applying the chain rule (remembering that is a constant),
- Differentiate
Solution
Instead of using the quotient rule, rewrite the expression using :
Then consists of
- Outer:
- Inner:
Applying the chain rule,
- Differentiate
Solution
First, rewrite as
This function has multiple layers of composition and requires two applications of the chain rule:
- Outer:
- Middle:
- Inner:
Apply the chain rule by “unfolding” each layer: