The Chain Rule
Subtopic: Differentiation
The chain rule differentiates compositions: if depends on and depends on , how does depend on ? Multiply the rates. This simple principle handles nested functions, implicit differentiation, and related rates. It's essential whenever functions are built from other functions.
Introduction
You're driving. Your speed depends on the gear, and the gear depends on time. How does speed depend on time? Combine the effects: (change in speed per gear) (change in gear per time).
The chain rule makes this precise: the derivative of a composition is the product of the derivatives.
The Formula
If , then:
In words: differentiate the outer function (leaving the inner alone), then multiply by the derivative of the inner.
Leibniz notation makes it memorable: the "cancel" (though this is just mnemonic, not rigorous).
Why It Works
Small changes propagate through compositions. If changes by :
changes by approximately .
changes by approximately .
The rates multiply.
Worked Example 1
Differentiate .
Let , so .
, and .
Multiple Compositions
For , apply chain rule multiple times:
Peel off layers one at a time, multiplying derivatives.
Common Patterns
These follow directly from the chain rule:
Implicit Differentiation
The chain rule powers implicit differentiation. If is a function of , then:
The factor appears because we're differentiating a function of with respect to .
Related Rates
In related rates problems, quantities change with time. The chain rule connects their rates:
If you know how volume depends on radius and how radius changes with time, you can find how volume changes with time.
Applications
In neural networks, back propagation applies the chain rule to compute gradients through many layers.
In physics, the chain rule relates velocities and accelerations in different coordinate systems.
In economics, it computes how changes in input prices affect output costs through intermediate goods.
Summary
The chain rule differentiates compositions: . In Leibniz notation: . Apply it from outside in: differentiate the outer function, then multiply by the derivative of the inner function. For multiple compositions, apply the rule repeatedly. The chain rule underlies implicit differentiation, related rates, and backpropagation.