Chain Rule Calculator

Reviewed by CalcMulti Editorial Team·Last updated: ·Calculus Hub

The chain rule differentiates composite functions — functions within functions. If y = f(g(x)), then dy/dx = f'(g(x)) · g'(x): differentiate the outer function (leaving the inner alone), then multiply by the derivative of the inner function.

Recognizing composition is the key skill. In y = sin(3x²), the outer function is sin(u) and the inner is u = 3x². The chain rule gives: d/dx[sin(3x²)] = cos(3x²) · 6x = 6x·cos(3x²).

The chain rule extends to multiple layers. For y = e^(sin(x²)), apply the rule twice: outer = eᵘ, middle = sin(v), inner = x². Result: e^(sin(x²)) · cos(x²) · 2x.

Chain rule appears constantly in physics (velocity as a function of position as a function of time), neural network backpropagation, and implicit differentiation.

Formula

d/dx[f(g(x))] = f'(g(x)) · g'(x)

f
outer function
g(x)
inner function (argument of f)
f'(g(x))
derivative of outer, evaluated at the inner function

Chain Rule Step-by-Step

Quick examples

Chain Rule Formula

d/dx[f(g(x))] = f'(g(x)) · g'(x)

Differentiate the outer function (substituting the inner), then multiply by the derivative of the inner function.

Disclaimer

This calculator is for educational purposes only and does not constitute professional advice. Results are based on standard mathematical formulas. Always verify critical calculations with a qualified professional before making important decisions.

Frequently Asked Questions