Lesson 1 of 7 · 16 min
Composite functions and the chain rule
See why a function of a function needs a new rule, split it into inside and outside functions, and differentiate it with .
What you will be able to do
- Recognise a composite function and identify the inside function and the outside function .
- Explain why the chain rule multiplies rates: .
- Differentiate powers of polynomials by substituting u, differentiating twice and multiplying.
You can differentiate by expanding: , so .
Now try to guess the answer with the power rule, treating the bracket like . "Bring the 2 down and drop the power by 1" gives . That is exactly half of the right answer. Something is missing, and it matters even more for , which nobody wants to expand.
Definition
Composite functions
A composite function is a function of a function. In , you first work out (the inside function), then square it, (the outside function).
| Function | Inside, | Outside, |
|---|---|---|
For , which is the inside function ?
Why rates multiply. Picture two gears. The small gear drives a middle gear , which drives a big gear . If turns 3 times as fast as , and turns 2 times as fast as , then turns times as fast as .
Derivatives are rates, and they chain together the same way. For : changes twice as fast as (), and changes times as fast as (). So changes times as fast as . That matches from expanding. The missing factor was the 2 from the inside.
A small change in is multiplied by to give the change in , which is multiplied by to give the change in .
Key idea
The chain rule
If and , then
In words: differentiate the outside function, keeping the inside as it is, then multiply by the derivative of the inside. The rule is on the QCAA formula sheet.
The chain rule by substitution
Name the inside function
Write , so that is a simple power of .
Differentiate both
Find with the power rule, and .
Multiply
.
Replace
Write the answer in terms of only, with the number in front.
Worked example
Differentiate with the chain rule
Use the chain rule to find for .
Step 1: Name the inside function
Let . Then .
The bracket is worked out first and the power 4 is applied last, so the bracket is the inside function.
Step 2: Differentiate the outside and the inside
and .
Step 3: Multiply
Step 4: Write it in terms of
Try it yourself first, then check the working one step at a time.
Answer
Method
Let be the inside function, so is a power of .
Find and .
Multiply, then replace with the expression in .
Watch out for
Writing : the factor is missing.
Writing : the inside is kept as it is in , not differentiated.
Find for .
Here and . Drag the point to , and . The tangent is horizontal at because the outside factor is zero, and at because the inside gradient is zero.
Common mistake
Two ways to lose the mark
- Forgetting . , not .
- Changing the inside. The bracket stays as it is in : , not .
When the inside is just , and the chain rule is the plain power rule. That is why the power rule always worked before.
Find for .
Why the chain rule works
Let change by a small amount . Then changes by , and changes by . As long as , ordinary fractions cancel:
As , too, because changes smoothly. Each fraction becomes a derivative:
The derivatives are not really fractions, but Leibniz notation is designed so that the rule looks like cancelling . A complete proof also handles the case where , which is beyond this course.
Summary
A composite function has an inside function and an outside function .
The chain rule: . Rates of change multiply, like gears.
Differentiate the outside with the inside kept as it is, then multiply by the derivative of the inside.
The most common error is leaving out .
When the inside is just , the chain rule reduces to the power rule.
Finished the lesson?
Try the 3 quick checks above and the lesson completes itself, or mark it complete now.