Chain Rule Derivative Calculator

Enter a composite function like sin(x²) or (3x+1)⁵ and the Chain Rule Derivative Calculator breaks down the differentiation step by step. Specify your function f(x), choose the differentiation order, and get the derivative, outer function, inner function, and a clear step-by-step breakdown — all shown together so you can follow the chain rule logic from start to finish.

Select a composite function to differentiate using the chain rule.

How many times to differentiate the function.

Results

Derivative f′(x)

--

Outer Function g(u)

--

Inner Function u = h(x)

--

Derivative of Outer g′(u)

--

Derivative of Inner h′(x)

--

Chain Rule Applied: f′(x) = g′(h(x)) · h′(x)

--

Chain Rule Components

Results Table

Frequently Asked Questions

What is the chain rule in calculus?

The chain rule is a differentiation rule used to find the derivative of a composite function — a function of a function. If f(x) = g(h(x)), then f′(x) = g′(h(x)) · h′(x). You differentiate the outer function (leaving the inner function intact), then multiply by the derivative of the inner function.

What is a composite function?

A composite function is one where you evaluate a function inside another function. For example, f(x) = sin(x²) is composite because you first compute x², then apply sin to the result. The chain rule is the correct differentiation technique for any such function.

What are the steps for using the chain rule?

First, identify the outer function g(u) and the inner function u = h(x). Second, differentiate the outer function with respect to u, giving g′(u). Third, differentiate the inner function with respect to x, giving h′(x). Finally, multiply: f′(x) = g′(h(x)) · h′(x), substituting h(x) back in for u.

Can I apply the chain rule more than once?

Yes. When a composite function is nested multiple levels deep — such as sin(cos(x²)) — you apply the chain rule repeatedly, working from the outermost layer inward. This calculator supports first and second-order differentiation for common composite forms.

How does the chain rule differ from the product rule?

The chain rule applies when one function is composed inside another, f(g(x)). The product rule applies when two separate functions are multiplied together, f(x)·g(x). Many expressions require both rules at once, but for pure composite functions, the chain rule alone is sufficient.

What are common applications of the chain rule?

The chain rule is used throughout physics, engineering, economics, and machine learning. Key applications include differentiating trigonometric, exponential, and logarithmic functions with non-trivial arguments, computing gradients in neural networks (backpropagation), and solving related rates problems in physics and geometry.

What is the partial derivative chain rule?

For multivariable functions, the partial derivative chain rule extends the single-variable rule. If z = f(x, y) and both x and y depend on a parameter t, then dz/dt = (∂f/∂x)(dx/dt) + (∂f/∂y)(dy/dt). This is critical in thermodynamics, fluid dynamics, and optimization.

Why is learning the chain rule important?

The chain rule is one of the most frequently used rules in calculus. Almost every real-world function is composite in nature, so mastering the chain rule unlocks the ability to differentiate a vast range of functions. It is foundational for studying integrals via substitution, differential equations, and multivariable calculus.

More Math Tools