The chain rule is the derivative rule for nested functions. It answers the question: what happens when one function is placed inside another? Many derivative errors happen because students see a familiar outer function and forget that its input is not just \(x\). The chain rule keeps track of both layers.
The rule
If \(y=f(g(x))\), then \(y'=f'(g(x))g'(x)\). In words, differentiate the outside function while leaving the inside unchanged, then multiply by the derivative of the inside function.
Worked example 1: power of an inside function
Differentiate \((x^2+1)^5\). The outside function is the fifth power, and the inside function is \(x^2+1\). Differentiate the outside: \(5(x^2+1)^4\). Multiply by the inside derivative \(2x\). The result is \(10x(x^2+1)^4\).
Worked example 2: trigonometric nesting
Differentiate \(\sin(3x^2)\). The outside derivative of sine is cosine, so write \(\cos(3x^2)\). The inside derivative of \(3x^2\) is \(6x\). The final answer is \(6x\cos(3x^2)\).
Worked example 3: exponential nesting
Differentiate \(e^{x^3-x}\). The derivative of \(e^u\) is \(e^u\), then multiply by \(u'\). Here \(u=x^3-x\) and \(u'=3x^2-1\). The derivative is \(e^{x^3-x}(3x^2-1)\).
How to recognize nesting
Look for parentheses, powers on groups, functions inside functions, and expressions in exponents. If replacing a whole expression with a single symbol would simplify the view, the chain rule is probably involved.
Common mistakes
The most common mistake is missing the inside derivative. Another mistake is applying the product rule to a nested expression. For example, \(\sin(x^2)\) is not a product of \(\sin x\) and \(x^2\); it is sine applied to \(x^2\).
Calculator support
Use the Derivative Calculator to check answers. For mixed structures, compare with product and quotient rules in the broader derivative guide.
Manual practice set
Take one outside function and change the inside. For example, differentiate \(\sin x\), \(\sin(2x)\), \(\sin(x^2)\), and \(\sin(x^2+1)\). This progression shows exactly where the extra inside derivative appears.
Then take one inside expression and change the outside function. Use \(x^2+1\) inside a power, sine, exponential, and logarithm. The inside derivative stays \(2x\), while the outside derivative changes. This is a strong way to separate the two layers.
How to mark structure
Before differentiating, draw mental parentheses around the inside expression. Say the outside function out loud: fifth power, sine, exponential, logarithm, square root. Then write the derivative in two parts: outside derivative first, inside derivative second. This prevents accidental product-rule use.
Human review checklist
Check whether the expression is nested, multiplied, divided, or a combination. If it is nested, identify inner and outer functions. If it is also multiplied by another function, product rule may be needed in addition to chain rule. Many advanced derivative problems require more than one rule.
Internal study path
Use the Derivative Calculator to compare steps. For integrals that reverse this logic, read U-Substitution Guide, because substitution is the integral counterpart of the chain rule.
Classroom-style activity
Ask students to circle the inside expression in every chain-rule problem before differentiating. Then ask them to box the outside function. This visual habit works well for powers, radicals, trig functions, exponentials, and logarithms. It also reveals when a problem needs more than one rule.
Use a mixed example such as \((x^2+1)e^{3x}\). The outer structure is a product, and one factor also needs chain-rule thinking. Students should name the product rule first, then apply the chain rule inside the derivative of \(e^{3x}\). This prevents rule blending.
For human review, compare the final derivative with a quick reasonableness check. If the original expression has a nested \(3x\) or \(x^2+1\), the answer should usually contain an extra factor from the inside derivative. Missing that factor is the signature chain-rule error.
Editorial quality gate
This guide is designed to be used with a human check, not as a blind answer source. Before relying on any result, review the notation, the variable, the assumptions, and the final answer type. If a formula contains a bound, a domain restriction, an absolute value, or a convergence condition, that detail should appear in the written reasoning, not only in the final line.
For independent verification, use at least one manual test. Differentiate antiderivatives, substitute endpoints in definite integrals, compare signs with a quick graph estimate, or test a limit by direct substitution before using a special rule. When a calculator result disagrees with handwritten work, first check whether the input was interpreted correctly. Parentheses, variables, and bounds can change the entire problem.
The related calculator link is included for practice and comparison. A productive study workflow is to try the setup on paper, read the guide section that matches the method, run the calculator, and then explain any difference in your own words. That final explanation step is what turns a solved example into durable calculus understanding.
Before you move on
Close the guide by writing one original problem, one method clue, and one verification step. For example, the clue might be an inside derivative, an indeterminate form, a repeated factor, a variable bound, or a physical unit. The verification step might be differentiation, substitution, estimation, graph behavior, or comparison with a known formula. This short habit helps the article become active practice rather than passive reading.
For best results, revisit the examples after a break and solve them without looking at the steps. If the method still feels clear, the guide has done its job.