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.The Chain Rule tells us how to differentiate a composite function — a function built by plugging one function into another, such as or . Its central claim is that derivatives multiply along the chain of dependence: each layer contributes its own rate of change, and the total rate is the product. This matters because most realistic functions are compositions, so without the Chain Rule the bulk of calculus would be inaccessible. A surprising fact is that the rule extends infinitely — you can compose ten functions and simply multiply ten derivatives — and it is the engine behind backpropagation, the algorithm that trains modern neural networks. The Leibniz notation makes the rule look like the cancellation of fractions, a memorable mnemonic that is almost but not quite the literal truth.
The Core Insight
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
Composite Function
Given two functions and , the composite function is defined by
Here is the inner function, is the outer function. If we write , then , and depends on through the intermediate variable .
The Chain Rule
Let be differentiable at and let be differentiable at . Then the composite is differentiable at , and
In Leibniz notation, with and :
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
Sketch via Difference Quotients
We want where . Start from the limit definition.
Step 1. Write the difference quotient for the composite at :Gottfried Wilhelm Leibniz | 1646–1716
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.
A composite function as a relay: a nudge in x ripples through u to y, with rates multiplying.
Worked Examples
Differentiating a Power of a Polynomial
Given: . Find . Step 1 — Identify the links. Inner: . Outer: . Step 2 — Differentiate each.A Physical Rate: Expanding Balloon
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.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.The Rule Is Not Mere Substitution of Derivatives
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
The Chain Rule appears wherever quantities depend on each other through intermediate variables:
- Neural networks (backpropagation). Training deep networks computes gradients of a loss across dozens of composed layers by repeatedly multiplying local derivatives — a direct, large-scale Chain Rule.
- Population dynamics. If a population depends on food supply , and depends on rainfall over time, chains through and .
- Thermodynamics. Pressure depends on temperature, which depends on time; rates of pressure change in an engine cylinder are computed by chaining.
- Economics — marginal analysis. Cost depends on output, output depends on labour hours; the marginal cost per hour multiplies the two sensitivities.
- Radiometry / inverse-square fields. Light intensity depends on distance, distance depends on time for a moving sensor; uses the Chain Rule.
- Kinematics. A particle's energy depends on speed, speed depends on time — chaining gives instantaneous power.
- Pharmacokinetics. Drug effect depends on blood concentration, which depends on time since dosing; clinicians chain these to model response rates.
Historical Development
- 1676 — Leibniz, in private manuscripts, manipulates differentials , , in ways that effectively use the Chain Rule, though without a formal statement.
- 1684 — Leibniz publishes Nova Methodus, the first calculus paper, establishing the notation that makes the rule transparent.
- 1690s — The Bernoulli brothers (Jacob and Johann) and L'Hôpital apply chained differentials freely to curves and mechanics problems.
- 1734 — Berkeley's The Analyst attacks the logical vagueness of infinitesimals, including the loose "cancellation" justifying the rule, spurring demand for rigor.
- 1755 — Euler systematizes differential calculus in Institutiones Calculi Differentialis, treating composite differentiation as routine.
- 1821 — Cauchy's Cours d'analyse recasts derivatives via limits, providing the conceptual basis for a rigorous Chain Rule proof.
- 1860s–1870s — Weierstrass's epsilon–delta formalism allows fully rigorous statements and proofs of the rule.
- 1880s — Carathéodory's "increment" formulation of the derivative yields the clean, gap-free proof now common in textbooks.
- 1986 — Rumelhart, Hinton, and Williams popularize backpropagation, recasting the Chain Rule as the computational core of modern machine learning.
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.