Chain Rule
Derivative of a composite function.
Variables
- f
- Outer function
- g
- Inner function
Explanation
Differentiate the outside (leaving the inside alone), then multiply by the derivative of the inside.
Example
.
How to use it
- Spot the inner function and the outer function .
- Differentiate the outer function, leaving the inside unchanged: .
- Multiply by the derivative of the inside: .
In Leibniz notation: .
Another worked example
Differentiate . The outer function is and the inner is .
Common patterns
- , so .
- , so .
- .
- .
Several layers
Work from the outside in, multiplying a derivative for each layer. For , which is :
Where it shows up
Related-rates problems are the chain rule with time: if a balloon's radius grows at , its volume grows at . Implicit differentiation and u-substitution in integrals are also the chain rule in disguise.
Common mistakes
- Forgetting to multiply by the inner derivative. This is by far the most common error.
- Changing the inside while differentiating the outside, such as writing as .
Where it's used
- Related rates: how fast a shadow lengthens or a tank's water level rises.
- Physics: a wave has a rate of change with factors and from the chain rule.
- Machine learning: backpropagation, the method that trains neural networks, is the chain rule applied layer by layer.
- Finance: continuous growth changes at rate .
Key takeaways
- Differentiate the outside, keep the inside, multiply by the inside's derivative.
- Work from the outermost layer inward.
- It's behind u-substitution and implicit differentiation.
Try it: Derivative Calculator
Differentiate functions step by step using the power, product, quotient and chain rules. Supports higher-order and partial derivatives.
Practice problems
Try each one first, then open the answer to check your work.
1.Differentiate .
Show answer
.
2.Differentiate .
Show answer
.
3.Differentiate .
Show answer
.
4.Differentiate .
Show answer
.
5.Differentiate .
Show answer
.
Key terms
- Composite function
- A function inside another, .
- Inner function
- The function that is applied first.
- Outer function
- The function applied to the result.
- Implicit differentiation
- Differentiating both sides of an equation, using the chain rule for .
- Related rates
- Rates of change linked through an equation.