When do you use the chain rule? Nested-function examples
The chain rule comes up when one function is inside another, like an expression raised to a power. Once we identify the inside and outside, the derivative has two connected parts. Let’s work through how to recognize that structure and what each part contributes.
Look for a function inside another function
For , we first calculate , then square the result. The inside function is , and the outside function takes u and squares it.
The chain rule says to differentiate the outside function while leaving the inside in place, then multiply by the derivative of the inside. In function notation, that is
The outside derivative tells us how the output changes as the inside changes. Multiplying by the inside derivative accounts for how the inside changes as x changes.
Example: A linear expression inside a square
Keep the constant factor 3. Differentiating the square brings down a 2 and lowers the exponent to 1; differentiating the inside gives another factor of 2.
Example: A polynomial inside a power
Here the inside is , and the outside is the sixth power. We can write to see those two stages separately.
Now multiply the two derivatives and substitute the inside expression back in.
The factor with the fifth power comes from differentiating the outside. The factor comes from differentiating the inside.
What if the inside is only x?
For a function such as , the ordinary power rule gives . We can view x as an inside function whose derivative is 1, so the chain-rule multiplication would add a factor of 1.
That explains why the plain power rule fits the same pattern. We usually write an extra inside-derivative step when the inside is an expression such as or because its derivative affects the result.
Does the chain rule apply to every integral?
The chain rule is a differentiation rule. It also helps explain substitution in integration: an expression containing an inside function and its derivative can sometimes be integrated by working backward through the chain rule.
Choosing a method for an integral depends on the integrand. The recognition step for a derivative is more direct: identify the composition, differentiate the outside, and multiply by the derivative of the inside.