Chain Rule Calculator

Calculate the derivative of composite functions g(f(x)) using the chain rule: d/dx g(f(x)) = g'(f(x))·f'(x). Supports nested triple chains, parametric dy/dx, and common composition presets.

dg/dx = g'(f(x))·f'(x)
g'(f(x))
f'(x)
g(f(x)) value
Extended More scenarios, charts & detailed breakdown
d/dx g(f(x))
Step: g'(u)·f'(x)
Professional Full parameters & maximum detail

Chain Rule

Chain rule d/dx g(f(x))

Parametric Derivative

Parametric dy/dx = (dy/dt)/(dx/dt)

Multivariable

Multivariable note

How to Use This Calculator

  1. Enter the outer function g(u) using u as the variable (e.g. sin(u), u^2, exp(u)).
  2. Enter the inner function f(x) using x (e.g. x^2, 2*x+1).
  3. Enter the point x.
  4. Get g'(f(x)), f'(x), their product, and g(f(x)).
  5. Use Common Compositions for sin(x²), e^(2x), ln(x²+1) presets with worked steps.

Formula

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

Triple: d/dx h(g(f(x))) = h'(g(f(x))) · g'(f(x)) · f'(x)

Example

g(u)=sin(u), f(x)=x², x=1: f(1)=1, g'(1)=cos(1)≈0.5403, f'(1)=2; result = 0.5403×2 ≈ 1.0806.

Frequently Asked Questions

  • The chain rule states that if y = g(f(x)), then dy/dx = g'(f(x))·f'(x). The derivative of the outer function evaluated at the inner function, multiplied by the derivative of the inner function.
  • Let g(u) = sin(u) and f(x) = x². Then g'(u) = cos(u) and f'(x) = 2x. So d/dx sin(x²) = cos(x²)·2x = 2x·cos(x²).
  • For h(g(f(x))): d/dx = h'(g(f(x)))·g'(f(x))·f'(x). Each derivative is evaluated at the output of the function inside it.
  • For a parametric curve x(t), y(t): dy/dx = (dy/dt)/(dx/dt), where both numerator and denominator are computed using the chain rule with respect to t.
  • For z=f(x,y) with x=x(t), y=y(t): dz/dt = (∂f/∂x)(dx/dt) + (∂f/∂y)(dy/dt). The total derivative is the sum of partial derivatives times rates of change.

Related Calculators

Sources & References (5)
  1. Chain Rule — Paul's Online Math Notes — Lamar University
  2. MIT OCW 18.01 — Chain Rule — MIT OpenCourseWare
  3. Stewart's Calculus — Chain Rule — Cengage / Stewart
  4. Chain Rule — Khan Academy — Khan Academy
  5. OpenStax Calculus Vol. 1 — Ch. 3.6 — OpenStax