Chain Rule Gears: Differentiating Composite Functions
When one function is nested inside another, their rates of change multiply — just like meshed gears.
Functions inside functions
The expression (3x + 1)⁵ is not a plain power of x — it is a plain power applied to the quantity 3x + 1. That is a composite: an inner function g(x) = 3x + 1 feeds into an outer function that raises its input to the fifth power. The power rule alone cannot handle it, because the base is moving.
We need a rule that accounts for two rates of change at once: how fast the outer function responds to its input, and how fast that input is itself changing.
Gears that mesh
Think of a train of gears. Turn the input shaft and it drives a middle gear u; the middle gear drives the output gear y. If y changes 3 units for each unit of u, and u changes 2 units for each unit of x, then y changes 3 × 2 = 6 units for each unit of x. The overall rate is the product of the individual rates. That product is the chain rule.
Peeling the layers
To differentiate f(g(x)), name the layers. The outer function is whatever you would do last when evaluating; the inner is what sits in its place. For sin(x²): the last thing you do is take the sine, so sine is outer and x² is inner. Differentiate the sine (getting cosine of the same inside), then multiply by the derivative of x².
- Outer function: fifth power. Inner function: \( g(x) = 3x^2 + 1 \).
- Outer derivative, inner left alone: \( 5(3x^2 + 1)^4 \).
- Inner derivative: \( g'(x) = 6x \).
- Multiply: \( 5(3x^2 + 1)^4 \cdot 6x \).
- Outer function: sine. Inner function: \( x^2 \).
- Derivative of sine is cosine of the same inside: \( \cos(x^2) \).
- Inner derivative: \( 2x \).
- Multiply: \( \cos(x^2)\cdot 2x \).
- Rewrite as a power: \( (x^2 + 1)^{1/2} \). Outer: the 1/2 power. Inner: \( x^2 + 1 \).
- Outer derivative: \( \tfrac{1}{2}(x^2 + 1)^{-1/2} \).
- Inner derivative: \( 2x \).
- Multiply and simplify: \( \tfrac{1}{2}(x^2+1)^{-1/2}\cdot 2x = \dfrac{x}{\sqrt{x^2+1}} \).
Check your understanding
- A composite function nests an inner function inside an outer one, like sin(x²) or (3x+1)⁵.
- Chain rule: d/dx f(g(x)) = f′(g(x)) · g′(x) — differentiate the outside at the inside, then times the inside's derivative.
- In Leibniz form dy/dx = dy/du · du/dx, the intermediate rate appears to cancel, which is why rates multiply.
- Identify the outer function as the last operation you would perform when evaluating.
- Never forget the inner derivative — that omitted factor is the number-one chain-rule mistake.
- The rule extends to any number of nested layers: each layer contributes one multiplied factor.