Chain Rule Calculator

Published on: April 20, 2025

This Chain Rule Calculator helps you differentiate composite functions and shows each step clearly. It applies the chain rule to expressions where one function is inside another by differentiating the outer function, differentiating the inner function, and then multiplying the results correctly. This makes it useful for checking answers, understanding how the rule works, and practising calculus step by step.

Step-by-step method

  1. Set up the problem.
  2. Differentiate the outer and inner parts.
  3. Multiply u'(v(x)) by v'(x).

Formula:

Formula

d
dx
u(v(x)) = u'(v(x))·v'(x)

Example 1: u(v(x)) = sin(x^2), v(x) = x^2

Step 1 - Set up the problem.

In this problem: Identify the outer u and inner v, then use the chain rule structure.

u(v(x))=sin(x2), v(x)=x2

Step 2 - Differentiate the outer and inner parts.

In this problem: Compute u'(v(x)) and v'(x).

u(u)=sin(u), u'(u)=cos(u), u'(v(x))=cos(x2), v'(x)=2x

Step 3 - Apply the chain rule.

In this problem: Multiply u'(v(x)) by v'(x).

f'(x)=cos(x2)·2x=2xcos(x2)

Final answer: f'(x) = 2xcos(x^2)

Example 2: u(v(x)) = log(3x + 1), v(x) = 3x + 1

Step 1 - Set up the problem.

In this problem: Identify the outer u and inner v, then use the chain rule structure.

u(v(x))=ln(3x + 1), v(x)=3x + 1

Step 2 - Differentiate the outer and inner parts.

In this problem: Compute u'(v(x)) and v'(x).

u(u)=ln(u), u'(u)=u-1, u'(v(x))=(3x + 1)-1, v'(x)=3

Step 3 - Apply the chain rule.

In this problem: Multiply u'(v(x)) by v'(x).

f'(x)=(3x + 1)-1·3=3(3x + 1)-1

Final answer: f'(x) = 3/(3x + 1)