Chain Rule Examples: 44 Problems with Answers

Worked examples of Chain Rule to try before you open each solution, then practice problems with answers.

Worked Examples

Example 1

easy
Find the derivative of f(x)=(3x+1)4.
Show solution

Answer

f′(x)=12(3x+1)3

First step

1.
Identify the outer function u4 and the inner function u=3x+1.

Full solution

  1. 2.
    Apply the chain rule: ddx[u4]=4u3⋅dudx.
  2. 3.
    The derivative of the inner function: dudx=3.
  3. 4.
    Combine: f′(x)=4(3x+1)3⋅3=12(3x+1)3.
The chain rule says: differentiate the outer function, keep the inner function, then multiply by the derivative of the inner function. Think of it as peeling layers.

Example 2

medium
Find the derivative of f(x)=(x2+1)5.

Example 3

hard
Find the derivative of f(x)=sin⁡(x3).

Example 4

medium
Differentiate f(x)=sin⁡3x.

Example 5

medium
Differentiate f(x)=ln⁡(cos⁡x).

Example 6

medium
Differentiate f(x)=ex2+3x.

Example 7

medium
Differentiate f(x)=sin⁡(cos⁡x).

Example 8

hard
Differentiate f(x)=esin⁡(2x).

Example 9

hard
If y=tan⁡−1(2x), find dydx.

Example 10

hard
A spherical balloon's radius grows at 2 cm/s. How fast is its volume changing when r=5 cm?

Example 11

challenge
Let f be differentiable with f(1)=2 and f′(1)=3. If g(x)=f(f(x)), find g′(1).

Practice Problems

Try each one, then open the solution to compare your method.

Example 1

easy
Find the derivative of f(x)=(5x−2)3.

Example 2

medium
Find the derivative of f(x)=4x+3.

Example 3

easy
Differentiate f(x)=(x+1)3.

Example 4

easy
Differentiate f(x)=sin⁡(2x).

Example 5

easy
Differentiate f(x)=e3x.

Example 6

easy
Differentiate f(x)=(2x−5)4.

Example 7

easy
Differentiate f(x)=cos⁡(x2).

Example 8

easy
Differentiate f(x)=x2+1.

Example 9

easy
Differentiate f(x)=(x3+1)2.

Example 10

easy
Differentiate f(x)=ex2.

Example 11

medium
Differentiate f(x)=sin⁡2x.

Example 12

medium
Differentiate f(x)=sin⁡(e3x) (two nested layers).

Example 13

medium
Differentiate f(x)=(3x2+2x)5.

Example 14

medium
Differentiate f(x)=ln⁡(x2+1).

Example 15

medium
Differentiate f(x)=tan⁡(3x).

Example 16

medium
Differentiate f(x)=cos⁡3(x).

Example 17

medium
Differentiate f(x)=sin⁡x.

Example 18

challenge
Differentiate f(x)=esin⁡(x2) (three layers).

Example 19

challenge
If h(x)=f(g(x)) with g(2)=5, g′(2)=3, f′(5)=4, find h′(2).

Example 20

challenge
Differentiate f(x)=1(x2+1)3.

Example 21

medium
Differentiate f(x)=e2xcos⁡x (chain and product rules).

Example 22

medium
Differentiate f(x)=sin⁡(cos⁡x).

Example 23

easy
Differentiate f(x)=(3x+7)2.

Example 24

easy
Differentiate f(x)=e5x.

Example 25

easy
Differentiate f(x)=(1−x)7.

Example 26

easy
Differentiate f(x)=(x2+4)1/2.

Example 27

medium
Differentiate f(x)=esin⁡x.

Example 28

medium
Differentiate f(x)=tan⁡(3x2).

Example 29

medium
Differentiate f(x)=sin⁡x.

Example 30

medium
Find dydx if y=(x2+1)10 at x=1.

Example 31

hard
Differentiate f(x)=ln⁡(x+x2+1).

Example 32

hard
Differentiate f(x)=(2x+1)3(x2−1)2.

Example 33

hard
Find dydx for y=(ln⁡(3x2+1))5.

What to focus on

Core idea: The chain rule differentiates a composite f(g(x)) as f′(g(x)) times g′(x), peeling layers from outside in.

Common stuck point: The procedure for chain rule is the easy part; the trap is forgetting the inner-derivative factor g′(x). Asking "Is one function plugged into another, so I must multiply the outer derivative by the inner derivative?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Ask yourself: Is one function plugged into another, so I must multiply the outer derivative by the inner derivative?

Concept recap

The derivative of a composite function f(g(x)) equals f′(g(x))⋅g′(x): the derivative of the outer function evaluated at the inner, times the derivative of the inner.

The chain rule works like converting currency in two steps. If 1 euro buys 1.1 dollars and 1 dollar buys 150 yen, then 1 euro buys 1.1×150=165 yen: the rates multiply. Each layer of a composite is one exchange, with its derivative as the rate. Unlike exchange rates, these rates vary from point to point, so the outer one is read at the inner value.

Read the full lesson on Chain Rule

Common mistakes to watch for

Chain Rule is covered with related ideas in the guide Derivatives Explained: Rules, Interpretation, and Applications.

Background knowledge

These ideas may be useful before you work through the harder examples.

derivativecomposition