Chain rule
If you want the derivative of a function like , you could expand it and use the power rule term-by-term, or rewrite it as a product of three identical factors and use the product rule. Both approaches work, but they get tedious quickly (especially with larger exponents, more complicated polynomials, or fractional powers).
A faster method is designed specifically for composite functions - functions built by plugging one function into another. That method is the chain rule.
Here’s the idea in words:
- Differentiate the outer function, keeping the inner function intact.
- Then multiply by the derivative of the inner function.
Another common way to write the chain rule uses Leibniz notation:
Examples
1. 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:
Differentiate the outer function (power rule), keeping the inner function intact:
So
Differentiate the inner function:
Multiply the results (chain rule):
Let’s try one with the natural logarithm. Recall from section 2.5 that .
2. Differentiate
Solution
is a composite function with:
For clarity:
- Outer function:
- Inner function:
Differentiate the outer function, keeping the inner function intact:
So
Differentiate the inner function:
Multiply the results (chain rule):
Similarly, recall that for exponential functions,
and
Let’s do 2 examples that use the chain rule.
3. Differentiate:
a)
b)
Solutions
a)
- Outer function:
- Inner function:
Differentiate the outer function:
So
Differentiate the inner function:
Multiply:
b)
- Outer function:
- Inner function:
Differentiate the outer function:
So
Differentiate the inner function:
Multiply:
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 next problem uses the product rule first, and then uses the chain rule while differentiating one of the factors.
3. 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. Here, it’s most natural to use the power rule (with the chain rule) first, and then use the product rule when differentiating the inner function.
4. Differentiate
Solution
is a composite function with
Differentiate the outer function:
Differentiate the inner function:
The inner function is a product, so apply the product rule:
Multiply:
5. Differentiate
Solution
For easier algebra, pull out the constant factor :
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 rewrite a quotient as a product and then use the product rule, if that feels faster. Using the same function as above,
5b. First turn
into a product of two functions:
and then find the derivative using the product rule.
Solution
As before, keep the constant multiple out in front:
The remaining part is a product of:
Use the product rule. Since is composite, use the chain rule to find .
| Function | Expression |
|---|---|
Now apply the product rule:
Some questions ask you to apply derivative rules using only a table of values:
6. and their derivatives have the following values shown in the table:
Evaluate the first derivative of the function
at .
Solution
Because is a composite function, apply the chain rule:
Now evaluate at :
Challenge problems
1. Differentiate .
Solution
Rewrite the square root as a power:
The composite function is:
- Outer:
- Inner:
Differentiate the outer function:
So
Differentiate the inner function:
( is a constant, so its derivative is . The derivative of is )
Multiply:
2. Differentiate
Solution
Instead of using the quotient rule, rewrite the expression using :
- Outer:
- Inner:
Differentiate the outer:
So
Differentiate the inner:
Multiply:
This can also be written as
3. Differentiate .
Solution
First, rewrite as :
This function has multiple layers of composition and requires two applications of the chain rule:
- Outer:
- Middle:
- Inner:
Differentiate the outer:
Differentiate the middle:
Differentiate the inner:
Apply the chain rule layer by layer: