Chain rule
Differentiates a function of a function: outside derivative times inside derivative.
Calculator
The live calculator needs JavaScript. The worked example below shows the same steps it would.
See it move
- At x = 1: f(x) = 27, slope f′(x) = 54 (coral tangent). Dashed: the derivative f′.
What the symbols mean
- the value of at the chosen x
- in the calculator, the coefficient of x inside
- the constant inside the bracket
- the outer power
- the point
- the inside function
- the whole function, written in terms of u
When to use it
Use it whenever something more complicated than x sits inside a power, root, trig, exponential or log: , , , . Identify the inside u, differentiate the outside as if u were x, then multiply by .
Worked example
Differentiate y = (2x + 1)³ and find the slope at x = 1 (a = 2, b = 1, n = 3).
Chain rule: derivative of the outside (leaving the inside alone) times derivative of the inside.
Inside: , so . Outside: , so .
Evaluate the inside at x:
Derivative of the outside at that u:
Multiply by the derivative of the inside:
Answer dy/dx = 54 at x = 1
Why it works
A small change in x changes u by about times as much, and that change in u changes y by about times as much. Rates of change multiply along the chain.
Common mistakes
- Forgetting to multiply by the derivative of the inside: differentiates to , not .
- Changing the inside when differentiating the outside: keep as it is.
- Expanding big brackets instead; the chain rule is far quicker and less error-prone.