Chain Rule
What is the Chain Rule?
The chain rule differentiates composite functions — functions inside other functions. If y depends on u, and u in turn depends on x, the chain rule links all three derivatives together: differentiate the outer function first (treating the inner function as a single block), then multiply by the derivative of that inner function.
To recognize when the chain rule is needed, ask: "is there a function inside another function?" sin(3x), (x²+1)⁶, and e^(x²) are all composite — each is one function applied to the output of another.
What Each Variable Means
When to Use It
- Differentiating any composite function — a function nested inside another
- Combined with the product and quotient rules for more complex expressions
- Anywhere a rate of change depends on an intermediate variable, like related-rates problems
Step-by-Step Examples
Example 1: A power of a linear expression
Problem: Differentiate y = (3x + 2)⁵
Outer: u⁵ → 5u⁴. Inner: u = 3x + 2 → 3.
d/du[u⁵] = 5u⁴, du/dx = 3Substitute u back in and multiply.
dy/dx = 5(3x+2)⁴ × 3Example 2: A trig function of a power
Problem: Differentiate y = sin(x²)
Outer: sin(u) → cos(u). Inner: u = x² → 2x.
d/du[sin u] = cos u, du/dx = 2xSubstitute u back in.
dy/dx = cos(x²) × 2xCommon Mistakes
Mistake: Differentiating only the outer function and forgetting to multiply by the inner function's derivative.
Fix: d/dx[(3x+2)⁵] is not 5(3x+2)⁴ alone — you must also multiply by du/dx = 3, giving 15(3x+2)⁴.
Mistake: Missing that a function is composite in the first place.
Fix: Ask whether there's a function inside another function. If the argument of sin, cos, a power, or e isn't just "x" by itself, the chain rule is needed.
Practice Questions
Differentiate y = (x² + 1)⁴.
Hint: Outer: u⁴ → 4u³. Inner: x² + 1 → 2x.
Differentiate y = cos(5x).
Related Formulas
Power Rule
The most fundamental differentiation rule — multiply by the exponent, then reduce the exponent by one.
Learn more →Product Rule
Differentiates a product of two functions — you cannot simply multiply their individual derivatives.
Learn more →Quotient Rule
Differentiates a ratio of two functions — remembered by the mnemonic "low d-high minus high d-low, over low squared."
Learn more →