Lessons › math · taught by Ada
Chain rule explained: function inside another
Learn how to differentiate nested functions by taking the outside derivative and multiplying by the inside derivative.
Learn this with Ada, freeA voiced lesson with a live whiteboard, quizzes and a tutor you can call, at tutelage.appA function inside another
The chain rule is for a function wrapped inside another function.
Think: inside first, then outside.
Big idea: outside times inside
If y = f(g(x)), then differentiate the outside first, and multiply by the derivative of the inside.
You do not just take one derivative. You do the outside part, then multiply by the inside part.
That little multiply is the whole chain rule.
Predict the next move
If y = (3x + 1)^5, what do you do first?
- Differentiate 5 as if it were the whole answer
- Bring down 5 and keep the inside the same
- Expand everything first
Show answer
Bring down 5 and keep the inside the same: Yes. The outside is the power 5, so bring down 5 first.
Worked example: y = (3x+1)^5
Let’s build it one step at a time.
First, the outside power drops down to 5, and the power goes down by one.
Now multiply by the derivative of the inside. The derivative of 3x plus 1 is 3.
So the final answer is 15 times three x plus one to the fourth.
Quick check: what comes next?
After differentiating (2x - 7)^4 as 4(2x - 7)^3, what should you do next?
- Multiply by 2
- Add 2 to the exponent
- Expand the parentheses
Show answer
Multiply by 2: Right. The inside derivative is 2, so you multiply by 2.
Why the inside matters
The inside changes how fast the outside changes.
That is why we multiply by the inside derivative every time.
Chain rule formula
A useful memory line is: derivative of outside, times derivative of inside.
For nested functions, this is the rule to trust.
Your turn
Find dy/dx for y = (x^2 + 4)^3.
- 3(x^2 + 4)^2 · 2x
- (x^2 + 4)^2
- 6x(x^2 + 4)^3
Show answer
3(x^2 + 4)^2 · 2x: Good. Outside first gives 3(x squared plus 4) squared, then multiply by 2x.
Watch out for the missing factor
The most common mistake is forgetting the extra factor from the inside.
If you remember outside first, then inside, you stay on track.
Chain rule recap
Use this checklist every time you see parentheses raised to a power, or a function inside another function.
Inside function. Outside derivative. Multiply by inside derivative. Then simplify.