differential calculus
Chain Rule
You should know: derivative
Overview
The chain rule tells you how to differentiate a composition of functions — a function inside another function. It's the single most-used differentiation rule in practice, because most real functions you'll differentiate are compositions (sin(x²), e^(3x), √(x+1), etc.).
Intuition
Imagine three gears meshed together: gear A turns gear B, which turns gear C. If gear A speeds up, how fast does gear C speed up? You multiply the two individual speed-up ratios (A-to-B and B-to-C) together. The chain rule works the same way for rates of change: if y depends on u, and u depends on x, then the rate y changes with respect to x is the product of how y changes with u and how u changes with x.
Interactive Graph
Formal Definition
For a composite function y = f(g(x)):
Leibniz form: y depends on u, u depends on x
Notation
| Notation | Meaning |
|---|---|
| Lagrange form of the chain rule | |
| Leibniz form, treating the derivatives like fractions that cancel du |
Derivation
Differentiating y = sin(x²) using the chain rule, identifying the outer function f(u)=sin(u) and inner function u=g(x)=x²:
Derivative of the outer function, evaluated at the inner function
Derivative of the inner function
Multiply the two pieces together
Properties
Generalizes to any depth of composition
Applications
Worked Examples
Outer function: u⁵, inner function: u = 3x+1.
Multiply and substitute back u = 3x+1.
Answer: 15(3x+1)⁴
Practice Problems
Differentiate y = √(x² + 1).
A spherical balloon's radius grows at dr/dt = 2 cm/s. Using V = (4/3)πr³ and the chain rule, how fast is the volume increasing when r = 5 cm?
A cooling body has temperature T(t) = 20 + 40e^(−0.1t). Use the chain rule to find the rate of cooling dT/dt at t = 0.
Common Mistakes
Forgetting to multiply by the derivative of the inner function.
d/dx[sin(x²)] is NOT cos(x²) — you must also multiply by the inner derivative 2x, giving 2x·cos(x²).
Quiz
Flashcards
Historical Background
Leibniz used an early form of the chain rule as early as 1676, expressed in his differential notation, though the first explicit general statement is often credited to Leibniz's later correspondence and to Guillaume de l'Hôpital's 1696 calculus textbook, the first ever published on the subject.
- 1676
Leibniz applies chain-rule reasoning implicitly in unpublished notes
Gottfried Wilhelm Leibniz
- 1696
L'Hôpital's Analyse des Infiniment Petits, the first calculus textbook, includes chain-rule-style computations
Guillaume de l'Hôpital
Summary
- The chain rule differentiates a composition f(g(x)): multiply the outer derivative (evaluated at the inner function) by the inner derivative.
- Leibniz form: dy/dx = dy/du · du/dx.
- Extends to any depth of nested composition — multiply all the layers together.
- Backpropagation in deep learning is the chain rule applied layer by layer through a network.
References
- WebsiteWikipedia — Chain rule
Mathematics