The chain rule is the method for differentiating a function nested inside another function. When one quantity depends on a middle step, and that middle step depends on , the total rate of change is the product of the two layer-by-layer changes.
When To Reach For The Chain Rule
Use the chain rule whenever the expression is a composition: an outer function wrapped around an inner expression. If , with differentiable at and differentiable at , then
The reason it works is that a composite changes in two layers. A small change in first changes the inner expression , and that change in then changes the outer value . The rule simply multiplies the outer change by the inner change. You need it for powers of expressions like , trig functions like or , exponentials and logs like or , and implicit differentiation, where several chain-rule steps often stack up at once. You do not need it when there is no composition: requires no extra inner derivative.
The Steps
- Identify the inner function. Find the expression inside the outermost function and give it a temporary name if that clarifies the structure.
- Differentiate the outer function. Differentiate the outside while keeping the inner expression in place.
- Differentiate the inner function. Compute the derivative of the inside expression with respect to .
- Multiply and simplify. Multiply the two derivatives, then substitute the original inner expression back if you used a temporary variable.
A Full Run-Through
Differentiate:
Identify the inner and outer functions:
Differentiate the outer function:
Differentiate the inner function:
Multiply the two derivatives:
Substitute back:
That last factor, the , is the part people most often forget.
Where Each Step Goes Wrong, And How To Check
The first step fails when you misidentify the outer function. In , the outer function is , not the square, so name the inner expression carefully before doing anything else. The second and fourth steps fail when you differentiate the outer function and stop too early; for , writing is only half the derivative. The third step fails when you apply the chain rule to something that is not a composition at all.
There is one fast self-check that catches almost all of these. After differentiating a composite, ask: did the derivative of the inner expression show up somewhere in the answer? If is missing, the chain-rule step is almost certainly incomplete. Run that check on a fresh case: differentiate , naming the inner function first. If your final answer does not contain the derivative of , redo the last step and find where the factor vanished.
Frequently Asked Questions
- When do I use the chain rule?
- Use the chain rule whenever one function is nested inside another, such as powers, trig functions, exponentials, or logs of expressions.
- What is the most common chain rule mistake?
- The most common mistake is differentiating the outer function and forgetting to multiply by the derivative of the inner expression.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →