AP Calculus AB and BC
Chain Rule Cheat Sheet: Outside-Inside Patterns
The chain rule says the derivative of f(g(x)) is f'(g(x)) times g'(x): differentiate the outside function with the inside left unchanged, then multiply by the derivative of the inside. Every basic derivative has a chain version, such as the derivative of sin(u) being cos(u) times u'.
The rule in both notations
- Find the outside function: the last operation you would perform when evaluating at a number.
- Differentiate the outside function and leave the inside exactly as it is.
- Multiply by the derivative of the inside. If the inside is itself a composition, repeat.
The full explanation of how to spot a composition is in the chain rule guide, and the chain rule trainer gives practice on naming the layers. This sheet lists the patterns. In every table, is a function of and is its derivative.
Outside-inside pattern for each function family
| Outside function | Derivative | Example |
|---|---|---|
The unchained versions of these derivatives are in the derivative rules reference table.
More than one layer, and chains inside other rules
Each layer contributes one factor. Work from the outside in and do not change an inside while differentiating the layer around it.
| Function | Structure, outside in | Derivative |
|---|---|---|
| exponential, sine, | ||
| cube, cosine, | ||
| natural log, cosine | ||
| square root, , | ||
| product, with a chain in the second factor | ||
| cube, with a quotient inside |
Notation check
means , so the outside function is the cube. has cosine on the outside. Read the notation before choosing the outside function.
Implicit differentiation: the chain rule on y
When is a function of , every expression in is a composition with on the inside, so its derivative carries a factor of . In related rates the variable is and every quantity carries its own rate.
| Term | Derivative with respect to | Rule used |
|---|---|---|
| Chain | ||
| Chain | ||
| Product, then chain | ||
| Product, then chain | ||
| Chain | ||
| Chain | ||
| Chain | ||
| Chain, with a product inside |
| Term | Derivative with respect to | Where it shows up |
|---|---|---|
| Pythagorean related rates | ||
| Sphere volume | ||
| Cylinder or cone volume with both changing | ||
| Angle of elevation |
Full methods are in implicit differentiation and related rates.
Inverse functions and table problems
If , then . Differentiating both sides with the chain rule gives , which is the inverse function formula (Topic 3.3), valid when :
| Given | Asked for | Compute |
|---|---|---|
| and a table of values | . Look up at , not at . | |
| for a constant | ||
| and |
The inverse trig derivatives come from this same formula. See inverse function derivatives.
Common slips
- Stopping after the outside derivative. The derivative of is , and alone is missing the factor .
- Differentiating the inside in place. The derivative of keeps inside the fourth power. It is not .
- Missing the chain rule on a constant multiple of . The derivative of is and the derivative of is .
- Evaluating at the wrong input in a table problem. In , the outside derivative is evaluated at .
- Leaving off on a term in an implicit equation, or forgetting that needs the product rule.
- Applying the chain rule where there is no composition. The derivative of needs the product rule only.
Worked examples
Worked example
Three layers
Differentiate .
- Name the layers from the outside in: natural log, then sine, then .
- Outside layer: the derivative of is , giving with the inside unchanged.
- Middle layer: the derivative of is , giving .
- Inside layer: the derivative of is .
- Multiply the three factors: .
Worked example
Implicit differentiation at a point
Find at the point on the curve .
- Confirm the point is on the curve: .
- Differentiate each term with respect to . The term needs the product rule and needs the chain rule: .
- Collect the terms: , so .
- Substitute and : .
at
Worked example
Chain rule from a table of values
Suppose , , and . Let and . Find and .
- For , the chain rule gives .
- Since , the outside derivative is . So .
- For , the outside function is squaring: .
- Substitute: .
and
Frequently asked questions
How do I know which function is the outside function?
Imagine evaluating the expression at a number and note the last operation you would perform. That operation is the outside function. For the last step is the square root, so the square root is outside and is inside.
Why does differentiate to in implicit differentiation?
Because stands for a function of , so is a composition with squaring on the outside and on the inside. The chain rule gives the outside derivative times the inside derivative . A plain gives only because the derivative of with respect to is .
Do I need the chain rule when the inside is just a constant times x?
Yes. The inside has derivative , and that factor must appear. The derivative of is , and the derivative of is .