practicecalculus
Derivatives

Chain Rule Practice Problems with Answers and Solutions

12 chain rule practice problems with answers and full step-by-step solutions, from (3x+1)⁵ to nested functions like sin²(4x) and e^(cos x).

Derivatives Updated 3 min read

At a glance

\frac{d}{dx}\,f(g(x)) = f'(g(x))\,g'(x)
Problems
12, with answers and full solutions
Level
Calculus 1 and AP Calculus AB, Unit 3
You need
The power rule and the basic trig, exponential and log derivatives
Main idea
Differentiate the outside, keep the inside, then multiply by the derivative of the inside
Practice with new numbers
Chain rule lessons
On this page
  1. Problems
  2. Answers
  3. Step-by-step solutions
  4. Common mistakes on these problems
  5. Keep practicing

These chain rule practice problems start with a single layer and build up to nested functions and combinations with the product and quotient rules. Try each one before you read the solution. The answers are listed first so you can check quickly, and the full solutions follow.

The rule you need:

\frac{d}{dx}\,f(g(x)) = f'(g(x))\cdot g'(x)

Differentiate the outside function, leave the inside alone, then multiply by the derivative of the inside. For a refresher, read the chain rule page first.

Problems

One layer

  1. y = (3x + 1)^5
  2. y = \sqrt{x^2 + 9}
  3. y = \sin(4x)
  4. y = e^{x^2}
  5. y = \ln(x^3 + 2x)
  6. y = \dfrac{1}{(2x - 5)^3}

Two or more layers

  1. y = \sin^2(4x)
  2. y = e^{\cos x}
  3. y = \tan\!\left(\sqrt{x}\right)

With the product or quotient rule

  1. y = x^2 \sin(3x)
  2. y = x\,e^{-2x}
  3. y = \dfrac{(x+1)^4}{x^2}

Answers

Problem Answer
1 15(3x + 1)^4
2 \dfrac{x}{\sqrt{x^2 + 9}}
3 4\cos(4x)
4 2x\,e^{x^2}
5 \dfrac{3x^2 + 2}{x^3 + 2x}
6 -\dfrac{6}{(2x - 5)^4}
7 8\sin(4x)\cos(4x) = 4\sin(8x)
8 -\sin x\,e^{\cos x}
9 \dfrac{\sec^2\!\left(\sqrt{x}\right)}{2\sqrt{x}}
10 2x\sin(3x) + 3x^2\cos(3x)
11 (1 - 2x)\,e^{-2x}
12 \dfrac{2(x+1)^3(x - 1)}{x^3}

Step-by-step solutions

1. The inside is u = 3x + 1 with u' = 3. The outside is u^5, with derivative 5u^4:

y' = 5(3x+1)^4 \cdot 3 = 15(3x+1)^4

2. Write y = (x^2 + 9)^{1/2}. The inside derivative is 2x:

y' = \frac{1}{2}(x^2+9)^{-1/2}\cdot 2x = \frac{x}{\sqrt{x^2+9}}

3. The outside is \sin u, whose derivative is \cos u, and u' = 4:

y' = \cos(4x)\cdot 4 = 4\cos(4x)

4. The derivative of e^u is e^u \cdot u', and u = x^2:

y' = e^{x^2}\cdot 2x = 2x\,e^{x^2}

5. The derivative of \ln u is \frac{u'}{u} (see the derivative of ln x):

y' = \frac{3x^2 + 2}{x^3 + 2x}

6. Rewrite as y = (2x - 5)^{-3}, then use the power rule on the outside:

y' = -3(2x - 5)^{-4}\cdot 2 = -\frac{6}{(2x-5)^4}

7. There are three layers: a square, a sine and 4x. Work from the outside in:

y' = 2\sin(4x)\cdot\cos(4x)\cdot 4 = 8\sin(4x)\cos(4x)

With the double-angle identity 2\sin\theta\cos\theta = \sin 2\theta, this is 4\sin(8x).

8. The outside is e^u with u = \cos x and u' = -\sin x:

y' = e^{\cos x}\cdot(-\sin x) = -\sin x\,e^{\cos x}

9. The outside is \tan u with derivative \sec^2 u, and u = \sqrt{x} has u' = \frac{1}{2\sqrt{x}}:

y' = \sec^2\!\left(\sqrt{x}\right)\cdot\frac{1}{2\sqrt{x}}

10. Use the product rule, with the chain rule for \sin(3x):

y' = 2x\sin(3x) + x^2\cdot 3\cos(3x)

11. Product rule again. The derivative of e^{-2x} is -2e^{-2x}:

y' = 1\cdot e^{-2x} + x\cdot(-2e^{-2x}) = (1 - 2x)e^{-2x}

12. Use the quotient rule, with the chain rule on the top:

y' = \frac{4(x+1)^3\cdot x^2 - (x+1)^4\cdot 2x}{x^4}

Factor 2x(x+1)^3 out of the top: 2x(x+1)^3\big(2x - (x + 1)\big) = 2x(x+1)^3(x-1). Cancel one x:

y' = \frac{2(x+1)^3(x-1)}{x^3}

Common mistakes on these problems

  • Dropping the inside derivative. In problem 3, \cos(4x) alone is wrong. The factor 4 is the whole point of the chain rule.
  • Changing the inside. The derivative of \sin(4x) is 4\cos(4x), not 4\cos(4) or \cos(4). The inside stays exactly as it was.
  • Missing a layer. Problem 7 has three layers, so the answer has three factors. Count them before you finish.
  • Expanding too early. In problem 1, expanding (3x+1)^5 first is possible but slow and error-prone. The chain rule takes one line.

Keep practicing

These 12 problems use fixed numbers. For unlimited practice with new numbers every time and instant feedback on each step, try the chain rule lessons, then the mixed chain rule practice. For the theory with more examples, read the chain rule guide.

Practice it now

Chain rule: any function

Solve real problems on this topic with instant feedback, hints and a step-by-step walkthrough for every answer. Free, no sign-up needed to start.

Practice this lesson

Frequently asked questions

How do you know when to use the chain rule?

Use it whenever one function sits inside another, such as (x^2+1)^5, \sin(3x) or e^{x^2}. If replacing the inside with plain x would give a function you already know how to differentiate, the chain rule applies.

How do you check a chain rule answer?

Count the layers and make sure each one produced a factor. You can also check a value: pick a number for x, estimate the slope with a small step such as \frac{f(x+0.001)-f(x)}{0.001}, and compare it with your formula.

Can the chain rule be combined with the product rule?

Yes, and it often is. In x^2\sin(3x) you use the product rule for the product and the chain rule to differentiate \sin(3x). Problems 10 and 11 below show this.

Written by the PracticeCalculus team

We build interactive calculus lessons and write every page to be clear and correct. Spotted something off? Tell us and we will fix it.