AP® Calculus AB · Unit 3 · Topic 3.1
The Chain Rule with Repeated Composition
When a function is built from several functions nested inside each other, you differentiate by peeling off one layer at a time from the outside in, multiplying by the derivative of each layer as you go.
A composite function like √(cos(4x)) is really three functions stacked: take 4x, feed it into cosine, then feed that result into a square root. The chain rule says the derivative of a composition is the product of the derivatives of each layer, evaluated at the right stage. Nest three functions and you get three factors multiplied together, not because of some rule about counting, but because each layer scales the rate of change of the one inside it. If the inner layer wiggles, it shakes the middle layer, which shakes the outer layer. Each shake gets multiplied through.
To peel a triple composition apart, work from the outside toward the inside. Differentiate the outermost function first, leaving everything inside it untouched. Then multiply by the derivative of the next layer in, again leaving its inside untouched. Keep going until you hit the innermost piece, usually something simple like 4x, and multiply by its derivative too. Stop only when every layer has contributed a factor.
This matters because later topics in the unit, like implicit differentiation, lean on the exact same layering idea: you differentiate an expression containing y as if y were the inner function of some composition, then multiply by dy/dx. Getting comfortable with peeling layers here makes implicit differentiation feel like the same move in a new disguise, rather than a brand new rule.
Key terms
- Composite function
- A function built by plugging one function into another, like f(g(x)).
- Chain rule
- The rule that the derivative of a composition is the product of the derivatives of its layers.
- Outer layer
- The function applied last when evaluating a composition, differentiated first in the chain rule.
- Inner layer
- The function applied first when evaluating a composition, differentiated last in the chain rule.
Watch it explained
- How it worksHow do you peel a triple composition apart from the outside in?
- Worked exampleWalk me through differentiating √(cos(4x)) one layer at a time.
- Worked exampleFind the derivative of ln(sin(x2)) by applying the chain rule twice.
- Common mistakeWhy isn't differentiating only the outermost layer enough?
Check yourself
End of topic.