Example 1
General power rule
Outer: u⁵, inner: u = 3x² + 1 with u′ = 6x.
Answer
Enter a composite function such as sin(x²) or (3x² + 1)⁵ to see the chain rule applied layer by layer. Each step names the outer function, the inner function and the derivative it multiplies by.
Try an example
The chain rule differentiates a composition: a function applied to the output of another function, such as sin(x²), where sin is applied to x². You differentiate the outer function while leaving the inside untouched, then multiply by the derivative of the inside.
In Leibniz notation, if y depends on u and u depends on x, the rates multiply: if y changes 3 times as fast as u, and u changes 2 times as fast as x, then y changes 6 times as fast as x.
Most chain rule problems are one of these patterns, sometimes nested inside each other.
For powers and roots of an expression, such as (3x + 1)⁴ or √(x² + 1).
e to any power is unchanged, then multiplied by the derivative of the exponent.
The derivative of the inside, divided by the inside.
The same pattern holds for cos, tan and the others.
Work from the outside in, one layer at a time, multiplying as you go.
The calculator reads your expression as a tree and works from the outermost operation inward. Whenever a function is applied to something other than the plain variable, it applies the chain rule and records the step, naming the inner function u.
The derivative of the inner function becomes its own step, so nested chains appear as a sequence of layers, indented to show the nesting. Products and quotients that contain compositions show the product or quotient rule first, with the chain rule steps inside.
For the full details, including how answers are verified, see how the solver works.
Work through these by hand first, then enter them above to compare each step.
Example 1
Outer: u⁵, inner: u = 3x² + 1 with u′ = 6x.
Answer
Example 2
Outer: eᵘ, inner: u = sin x with u′ = cos x.
Answer
Example 3
Rewrite as (x³ + 2x)^(1/2). Outer: u^(1/2), inner u′ = 3x² + 2.
Answer
Example 4
sin³(2x) means (sin(2x))³. Outermost: u³, giving 3 sin²(2x).
Next layer: sin(v) with v = 2x, giving cos(2x)·2.
Answer
Example 5
Product rule first; the chain rule gives (cos 3x)′ = −3 sin 3x.
Answer
Example 6
Outer: tan u with derivative sec²u; inner: u = eˣ with u′ = eˣ.
Answer
d/dx[(3x² + 1)⁵] is not 5(3x² + 1)⁴. The factor 6x from the inside is what makes it the chain rule.
d/dx[sin(x²)] is cos(x²)·2x, not cos(2x). The outer derivative keeps the original inside.
In sin³(2x) there are three layers: the cube, the sine and the 2x. Each contributes a factor.
sin²x = (sin x)² has outer function u², while sin(x²) has outer function sin u. Their derivatives are completely different.
Whenever a function is applied to something other than plain x: sin(3x), e^(x²), (x² + 1)⁵, ln(cos x). If the input to a function is itself an expression, you need the chain rule.
d/dx f(g(x)) = f′(g(x))·g′(x). In Leibniz form, dy/dx = dy/du·du/dx, where u is the inner function.
Work from the outside in. Differentiate the outermost function, keep everything inside it unchanged, multiply by the derivative of the next layer, and repeat until you reach x.
No. The product rule is for two functions multiplied together, like x²·sin x. The chain rule is for one function inside another, like sin(x²). Many problems need both.
Pick one of the worked examples, solve it on paper, then enter it in the calculator and compare your steps with each rule shown. Spotting where your work differs is the fastest way to improve.
Back to the calculator