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.
d/dx[f(g(x))] = f'(g(x)) · g'(x)
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.
General differentiation with all rules
Product Rule Calculatord/dx[f·g] — combined with chain rule often
Implicit Differentiation CalculatorUses chain rule for equations in x and y
Differentiation Rules GuideAll rules: power, product, quotient, chain
All Calculus CalculatorsFull calculus toolkit
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.