AP Calculus AB and BC
Chain Rule Step Trainer: You Pick the Decomposition
The chain rule's hard part is decomposition: naming the outer and inner function before you differentiate. Use the last-operation test: whatever you compute last is the outer function, everything inside it is the inner. Differentiate the outer with the inside untouched, then multiply by the inner's derivative.
Step 1: which is the outer function? (Take the inner function to be everything inside the last operation.)
The chain rule itself is one line. The step that actually decides whether you get the derivative right is decomposition: splitting a composite function like into an outer function and an inner function before you differentiate anything. This trainer makes you commit to that split from a set of choices, then assembles the derivative one step at a time so you can see how your pick drives every factor. That is the exact skill AP Calculus Topic 3.1 is built around: skill 1.C, choosing a procedure based on how an expression is put together rather than memorizing a formula.
Read the formula as a recipe with three slots: the derivative of the outer function evaluated at the untouched inside, then multiplied by the derivative of the inside. Every slot depends on naming and correctly first, which is why the trainer asks you to choose the outer and inner function before it will build anything. To find them, use the last-operation test: imagine plugging in a number and running the arithmetic. Whatever you would do last is the outer function; everything you did before that is the inner function.
The last-operation test
For you would compute first and take the square root last, so the outer function is the square root and the inner is . For you would compute first and exponentiate last, so the outer function is and the inner is . Say the split out loud before you differentiate.
Once the split is named, the single habit that keeps chain-rule work clean is leaving the inside untouched while you differentiate the outside. The derivative of keeps intact as ; only afterward do you multiply by the inner derivative . The trainer enforces this order, so a wrong pick shows up immediately as a factor that does not belong, which is the fastest way to feel the difference between the two candidate functions.
| Expression | Outer function (last step) | Inner function |
|---|---|---|
| raise to the 4th power, | ||
| sine, | ||
| exponential, | ||
| square root, | ||
| square, |
The last row is the classic trap: means , so squaring is the outer function and is the inner, which is the opposite decomposition from . Working several of these in the trainer trains your eye to read the notation before you commit. Aim to name the outer and inner function correctly on sight; the assembly that follows is mechanical once the split is right, and getting it solid here pays off in implicit differentiation (Topic 3.2), related rates (Topic 4.4), and -substitution, all of which are the chain rule wearing a different hat.
Worked example
Decompose, then assemble a square-root composition
Differentiate .
- Rewrite the root as a power so the outer function is easy to name: . This is the same rewrite the trainer prompts before you choose, because a radical hides the fact that the last operation is a power.
- Run the last-operation test. Evaluating at a number, you would compute first and raise it to the power last. So the outer function is and the inner function is , giving .
- Differentiate the outer function, leaving the inside untouched. Since , we have , so . Notice the inside stays exactly .
- Differentiate the inner function on its own: .
- Multiply the two pieces per the chain rule: .
- Simplify. The and the combine to , and the negative exponent moves the factor into a denominator: .
Frequently asked questions
How do I decide which function is the outer and which is the inner?
Use the last-operation test. Imagine evaluating the expression at a number and watch the order of operations: whatever you would do last is the outer function, and everything you computed before that is the inner function. For you subtract inside first and take cosine last, so cosine is outer and is inner.
What happens if I pick the outer and inner functions backwards?
You differentiate the wrong function and the factors come out mismatched. If you treated as though squaring were the outer step (as in ), you would differentiate and get , instead of the correct derivative , which is a different function entirely. The trainer surfaces this right away so you can see why the split has to come first.
Do I need to rewrite roots and reciprocals before decomposing?
Yes, and it makes the outer function obvious. Rewrite as and as so the last operation reads as a power. Then or is the outer function and the power rule handles , with the chain rule multiplying by the inner derivative.