The Chain Rule
The Chain Rule is the differentiation rule for composite functions: if depends on , and depends on , then . In words: the rate of change of a composition is the product of the rates of change of each link. Where it applies: any nested or "function-inside-a-function" expression in calculus, physics, economics, and machine learning. Who/when: rooted in the work of Leibniz (1670s) and given rigorous form by Cauchy and later analysts in the 19th century.
A composite function is a relay race of dependence. If a small nudge in changes at rate , and a small nudge in changes at rate , then the nudge in ripples through to at the product of those rates. Sensitivities compose by multiplication.
Formal Statement
Given two functions and , the composite function is defined by
Derivation hint: substitute the output of as the input of ; the domain is all where lies in the domain of . Here is the inner function, is the outer function. If we write , then , and depends on through the intermediate variable .
Let be differentiable at and let be differentiable at . Then the composite is differentiable at , and
Derivation hint: differentiate the outer function with the inner left intact, then multiply by the derivative of the inner. In Leibniz notation, with and :
Derivation hint: read each factor as a local rate of change; the 's "cancel" symbolically, though they are not genuine fractions.
Symbols: is the independent variable; is the intermediate quantity; is the final output; and denote derivatives; is evaluated at , while is evaluated at .
The phrase " cancels" is a mnemonic, not a proof. The differentials in and are not ordinary numbers being divided. A correct proof must handle the case where separately from where the difference quotient's denominator could vanish.
Why It Holds / Derivation
We want where . Start from the limit definition.
Step 1. Write the difference quotient for the composite at :
Derivation hint: this is the increment in divided by the increment in , before taking .
Step 2. Let , the change in the inner function. Multiply and divide by (assuming ):
Derivation hint: insert and regroup so each factor is a recognizable difference quotient.
Step 3. As , continuity of forces . The first factor tends to and the second to :
Derivation hint: the limit of a product is the product of the limits when both exist.
Step 4 (the gap). The division by fails if for near . A rigorous proof replaces the first factor by a patched function that equals the difference quotient when and equals when , restoring continuity. This is Carathéodory's clean approach. The conclusion then holds in all cases.
∎Leibniz co-invented calculus and, crucially, designed the notation that makes the Chain Rule look almost self-evident. His differentials , , were conceived as "infinitely small" increments, and within that framework reads as honest fraction cancellation. Though his infinitesimals were later replaced by limits, the notation survived precisely because it encodes the Chain Rule so transparently. The form in equation [3] is sometimes called the Leibniz form of the rule.
Building Intuition
Imagine a chain of gears. Turn the input gear (variable ); it spins a middle gear () which is, say, 3 times faster; that middle gear spins the output gear () which is 2 times faster than the middle one. How fast does spin compared to ? times. Each link multiplies its gear ratio. Equivalently, think of unit conversions. If you travel 60 miles per hour and there are 1.6 kilometres per mile, you travel km/h. The and multiply, with "miles" cancelling — exactly the Chain Rule pattern.
Worked Examples
Given: . Find .
Step 1 — Identify the links. Inner: . Outer: .
Step 2 — Differentiate each.
Derivation hint: apply the power rule to and to term-by-term.
Step 3 — Multiply (Chain Rule).
Derivation hint: substitute back in and combine constants.
Check at : , so .
Given: A spherical balloon's radius grows at . How fast is its volume growing when ? Volume .
Step 1 — Identify the chain. depends on ; depends on . We want .
Step 2 — Differentiate the outer link.
Derivation hint: power rule on .
Step 3 — Chain Rule.
Derivation hint: this is "related rates" — multiply the geometric rate by the time rate.
Step 4 — Substitute numbers. , :
Derivation hint: square the radius, multiply through, keep exact then approximate.
Common Misconceptions
The most frequent error is forgetting the inner derivative. Students differentiate as and stop. The correct answer is . The factor — the " the derivative of the inside" — is exactly what the Chain Rule supplies. If the inside were just , that factor would be and you'd never notice it was missing.
One might guess that alone, as if differentiating the outer function were enough. Take and , so . The true derivative is . But — wrong by a factor of 5. The missing factor is exactly , and ✓. This shows the inner derivative is indispensable, not optional.
Do not confuse the Chain Rule with the Product Rule. The Chain Rule is for compositions — one function fed into another. The Product Rule is for products — two functions multiplied. The expression needs the Product Rule; needs the Chain Rule. Ask: "Is one function inside the other, or are they side by side?"
Connections
The Chain Rule sits at the heart of differentiation's machinery and links to many neighbours. It is essential for Implicit Differentiation, where we treat as a hidden function of and differentiate as . It powers Related Rates problems, as in the balloon example, by chaining a geometric derivative to a time derivative. It underlies the Derivative of Inverse Functions via . Combined with the Fundamental Theorem of Calculus, it produces the technique of Integration by Substitution — substitution is the Chain Rule run backwards. Its multivariable cousin generalizes equation [3] to sums of partial-derivative products.
Real-World Applications
Historical Development
Subtleties & Limits
The Chain Rule as stated requires both functions to be differentiable at the relevant points. Subtleties arise at the edges:
- Non-differentiable inner functions. If has a corner (e.g. at ), the composite may still be differentiable, but the Chain Rule formula does not directly apply — case-by-case analysis is needed.
- The "fake fraction" problem. Equation [3] looks like cancellation but isn't; in multivariable calculus the naïve cancellation breaks entirely, replaced by — a sum of products.
- Higher derivatives. The second derivative of a composite is not simply ; it equals , and the general -th derivative is given by the intricate Faà di Bruno's formula, a still-studied combinatorial object.
- Non-standard analysis. Whether Leibniz's infinitesimals can be rigorously revived (Robinson, 1960s) so that the "cancellation" is literally valid remains a live area of mathematical logic.
See Also
The Derivative · Product Rule · Quotient Rule · Implicit Differentiation · Related Rates · Integration by Substitution · Multivariable Chain Rule · Faà di Bruno's Formula · Derivative of Inverse Functions