Differentiation methods
How to Use the Chain Rule: Steps and Examples
A composite function changes in layers. The outer layer responds to a change in its input, while the inner layer controls how quickly that input changes. The chain rule multiplies those two rates.

Direct answer
Use the chain rule when one differentiable function is evaluated inside another differentiable function.
Chain rule or product rule?
Look at the top-level operation before differentiating. A function evaluated at another function is a composition; two function factors multiplied together form a product.
Ask first 1
Can the expression be written as f(g(x))?
What to do
Use the chain rule: differentiate the outer function at g(x), then multiply by g′(x).
Ask first 2
Are two x-dependent factors multiplied?
What to do
Use the product rule first, then apply the chain rule inside either composite factor.
Ask first 3
Are there three or more nested layers?
What to do
Differentiate one layer at a time from outside to inside and multiply every layer rate.
Worked method: y=(x²+1)³
Name the inner function u=x²+1 and the outer function y=u³. This separation prevents the inner derivative from being lost.
Differentiate the outer function with respect to u: dy/du=3u². Differentiate the inner function with respect to x: du/dx=2x.
Multiply and substitute u back: dy/dx=(3u²)(2x)=6x(x²+1)². This is not the product rule because the original expression is a composition, not a product of two functions.
Worked examples
Cosine is the outer derivative; 2x is the inner derivative.
The exponential remains and the inner derivative contributes 3.
Differentiate the square, then the logarithm, with x>0 in real calculus.
Common mistakes
- • Differentiating only the outer function and forgetting to multiply by the inner derivative.
- • Using the product rule merely because two layers are visible; composition and multiplication are different structures.
- • Replacing the inner expression after differentiating instead of preserving it inside the outer derivative.
Error clinic: preserve the inner expression
Incorrect attempt
Why it fails
Only the outer sine was differentiated; the rate of change of x² is missing.
Correction
Incorrect attempt
Why it fails
The outer power rule is correct, but the inner derivative 2x was omitted.
Correction
Practice one layer at a time
Name the outer and inner functions before revealing the answer. The second problem requires three rates, not two.
Check before solving
Differentiate ln(u), then u=x²+4.
Reveal the reference answer
Reference answer
Check before solving
Keep all three layers visible: sine, cube and quadratic.
Reveal the reference answer
Reference answer
Try the worked examples in the calculator
Each link opens the matching calculator with the expression, variable and required conditions already filled in.
Open the calculator without a preset: Chain rule calculatorReferences
Frequently asked questions
How can I recognize a composite function?+
Try naming an inner expression u. If the rest of the formula becomes a familiar outer function of u, the expression is composite.
Can a problem require both the product rule and chain rule?+
Yes. Apply the rule matching the top-level product first, then use the chain rule inside any composite factor.
Why must the inner expression stay unchanged?+
The outer derivative is evaluated at the original inner input. Only the separate multiplier records how quickly that input changes.
Conclusion
Read a composite derivative by layers. Preserve each inner input, multiply by every inner rate, and use the top-level operation to distinguish the chain rule from the product rule.
Compare usage plans