AP® CALCULUS AB & BC · UNIT 3
The Chain Rule
Find the derivative of a function inside another function. Work through the layers, then use a table and three graphs to see how the slopes multiply.

1. The chain rule and when to use it
The chain rule gives the derivative of a composite function. Suppose is differentiable at and is differentiable at . The input passes through first and then through .
Chain rule for two layers
Evaluate the outer derivative at the inner value. Then multiply by the inner derivative.
Leibniz notation
Let and . The two factors describe the rate of change at each stage.
At a specific input , evaluate the first factor at and the second at .
How to choose the rule
- Find the outer operation and name its input.
- Differentiate the outer function and keep its input in place.
- Multiply by the derivative of the inner function. Repeat for every additional layer.
- Check that the original function and the derivative are defined at the requested input.
2. Five worked examples
For each problem, name the outer and inner functions before differentiating. The outer derivative is written in terms of its own input first.
Example 1
Sine of a linear function
1 · Identify the layers
Differentiate .
Outer . Inner .
2 · Differentiate each layer
3 · Substitute and multiply
The formula uses radians and holds for every real input.
Example 2
Exponential of a square
1 · Identify the layers
Differentiate .
Outer . Inner .
2 · Differentiate each layer
3 · Substitute and multiply
Keep the same exponent in the exponential factor. The derivative is defined for every real input.
Example 3
Square root of a quadratic
1 · Identify the layers
Differentiate .
Outer . Inner .
2 · Differentiate each layer
3 · Substitute and multiply
The radicand is at least , so the derivative is defined for every real input.
Example 4
Logarithm of a linear function
1 · Identify the layers
Differentiate .
Outer . Inner .
2 · Differentiate each layer
3 · Substitute and multiply
The logarithm requires , so the derivative applies for .
Example 5
Tangent of a quadratic
1 · Identify the layers
Differentiate .
Outer . Inner .
2 · Differentiate each layer
3 · Substitute and multiply
Use radians and keep only inputs with .
3. Differentiate three or more layers
For three differentiable layers, evaluate each derivative at the input to its own function. Start at the outermost operation and work inward.
Nested example
Differentiate a power of a shifted sine
1 · Follow the order of the layers
Let . The input is doubled, passed through sine and shifted up by one, then cubed.
2 · Write each factor
The cube contributes . The shifted sine contributes , and doubling the input contributes .
3 · Multiply all three factors
4. Use a table and graphs to find a slope
Let , , and . Find the slope of at input .
| Input | ||||
|---|---|---|---|---|
Graph and table example
Trace the slope through the composition
1 · Read the inner function at the starting input
Use the row for input .
2 · Move to the outer function’s input
The outer function receives . Read its value and slope from the row for input .
3 · Find the composite slope
The composite graph passes through . You can check the slope directly using .
Compare the three tangent slopes
Follow the output of the first graph into the second graph. The third graph shows the result of applying both functions to the original input.
- Function
- Tangent at the marked point
Inner function
Outer function
Composition
5. Combine the chain rule with other rules
The outer operation tells you which rule to start with. Use the chain rule inside a term or factor whenever that part is a composition.
Mixed rules
Differentiate a product with a composite factor
1 · Identify the product
Let . The two factors are and .
2 · Differentiate each factor
3 · Apply the product rule
The exponential factor uses the chain rule before the product rule combines the two contributions.
Mixed rules
Differentiate a quotient with a composite numerator
1 · Identify the quotient
Let . Its domain excludes .
2 · Differentiate the numerator and denominator
3 · Apply the quotient rule
Keep the same exclusion .
Review the product rule and quotient rule for the order of the terms.
6. Common mistakes and how to check your work
- Keep the inner derivative. For , the cosine factor keeps the full angle and the inner derivative contributes .
- Choose the correct input from a table. Read first. Use that value as the argument of , even if the table also lists .
- Check a radical’s derivative domain. A square root can be defined at a zero of its radicand. Check differentiability at such an input separately. For example, has a corner at zero.
- Keep the order of nested operations. In , squaring is the outside operation. In , sine is the outside operation.
Memory cue. Say “outer prime at the inner value, times inner prime.” If several functions are nested, draw one arrow for each step from the original input to the final output.
7. Six practice problems
Differentiate each function. Write both factors and identify any domain restriction before opening the solution.
1. Cosine of a quadratic
Differentiate .
Show solution
Practice 1
Worked solution
1 · Differentiate the layers
Set . The inner derivative is . The outer derivative is .
2 · Evaluate and multiply
Cosine supplies the minus sign. The derivative is defined for all real inputs.
2. Exponential of a cubic
Differentiate .
Show solution
Practice 2
Worked solution
1 · Differentiate the layers
Set . The inner derivative is . The outer derivative is .
2 · Evaluate and multiply
The exponential factor keeps its original exponent. The derivative is defined for all real inputs.
3. Fourth power of a quadratic
Differentiate .
Show solution
Practice 3
Worked solution
1 · Differentiate the layers
Set . The inner derivative is . The outer derivative is .
2 · Evaluate and multiply
The power rule supplies the new exponent. The derivative is defined for all real inputs.
4. Logarithm of a square
Differentiate .
Show solution
Practice 4
Worked solution
1 · Differentiate the layers
Set . The inner derivative is . The outer derivative is .
2 · Evaluate and multiply
The original logarithm requires , so keep after simplifying.
5. Sine of a fourth power
Differentiate .
Show solution
Practice 5
Worked solution
1 · Differentiate the layers
Set . The inner derivative is . The outer derivative is .
2 · Evaluate and multiply
Use radians. The derivative is defined for all real inputs.
6. Square root of a linear function
Differentiate .
Show solution
Practice 6
Worked solution
1 · Differentiate the layers
Set . The inner derivative is . The outer derivative is .
2 · Evaluate and multiply
The function is defined for . The derivative formula applies for . The right-hand difference quotient grows without bound at the endpoint.
8. Quick formula reference
Each formula assumes that is differentiable at the input in question. The last column gives the extra condition on the outer operation.
| Composition | Derivative | Condition |
|---|---|---|
| Integer | ||
| All real inner values | ||
| Radians | ||
| Radians | ||
| Radians and |
It can help to rewrite on its real domain, or when . Keep the domain of the original composition as you simplify.
9. AP-style reasoning and next steps
Write the reasoning an AP-style prompt asks for
For a derivative formula, show the outer derivative at its inner input and the multiplier from the inner derivative. For a numeric slope, write both evaluated factors. If the problem combines rules, show the larger structure first and keep the original domain in view.
Topic 3.2 applies the same rule to a dependent variable. If is differentiable with respect to and is an integer greater than one, a power of contributes the derivative of as an extra factor.