Chain Rule Calculator

Published on: April 20, 2025

Enter u(v(x)), v(x) separated by a comma (e.g., sin(x^2), x^2) to compute the derivative using the chain rule.

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)