Calculus · Lesson 4 of 4
The Chain Rule
To differentiate a function inside a function, differentiate the outside, keep the inside, then multiply by the derivative of the inside.
- Advanced
- Updated
What you will learn
- Spot the inner and outer function.
- Differentiate composite functions.
- Apply the rule to powers of brackets.
Before you start: you should know the power rule and composite functions. See Derivatives.
The idea
The basic rules handle or , but what about or ? These are composite functions: one function applied to the output of another. The chain rule tells you how to differentiate them.
Rates multiply
Imagine three gears. Gear A turns gear B twice as fast, and gear B turns gear C three times as fast. How fast does C turn compared with A? Six times. Rates of change chain together by multiplication.
In symbols, if depends on and depends on :
It looks as if the ‘s cancel. They don’t literally, but it is a helpful memory aid.
Inner and outer
For :
- the inner function is ;
- the outer function is .
The chain rule says: differentiate the outer function (leaving the inner one alone), then multiply by the derivative of the inner function.
Worked examples
Example 1: A power of a bracket
Differentiate .
- Let , so .
- and .
- Multiply: .
- Substitute back: .
Answer:
Example 2: A square root
Differentiate and find the gradient at .
- Rewrite as a power: .
- Outer: . Inner derivative: .
- Multiply: .
- At : .
Answer: ; gradient at .
Example 3: Exponential growth
A population is modelled by . Find the rate of growth when .
- Inner function has derivative .
- .
- At : .
Answer: about individuals per unit time.
Example 4: A chain of three
Differentiate , which means .
- Outermost: the square, giving .
- Middle: , whose derivative is .
- Innermost: , with derivative .
- Multiply all three: .
Answer:
The most common mistake is forgetting the final “times the derivative of the inside”. If the inside is anything more than plain , the chain rule applies.
Why it matters
Real-world quantities are rarely simple functions of one variable; they are layered. The area of a ripple depends on its radius, which depends on time, so how fast is the area growing? The chain rule answers “related rates” questions like this. It is also the engine behind backpropagation, the algorithm that trains neural networks by passing derivatives back through layer after layer of composite functions.
Practice
Your turn. Type or choose an answer, then press Check. Getting one wrong is fine, that is what practice is for. You can try as many times as you like.