Calc 1 · Derivatives · Practice with answers
Chain rule practice problems with answers
The chain rule is how you take the derivative of a function that sits inside another function. It shows up in almost every derivative after the first few weeks of Calc 1, so it's worth making automatic. This page gives you one method, five worked examples, and twelve problems you can type answers into and check right away.
The rule in plain English
If y = f(g(x)), then
dy/dx = f′(g(x)) · g′(x)
Take the derivative of the outside function and leave the inside alone. Then multiply by the derivative of the inside. If you like Leibniz notation, call the inside u = g(x); then dy/dx = (dy/du) · (du/dx).
Before you differentiate anything, name the two pieces. The outside is the last thing you'd do if you were plugging a number into a calculator. For (3x² + 1) to the power 5, you'd work out 3x² + 1 first and raise it to the 5th power last, so the power is the outside.
| Function | Outside f(u) | Inside u = g(x) | Derivative |
|---|---|---|---|
| (3x² + 1) to the power 5 | u to the power 5 | 3x² + 1 | 5(3x² + 1) to the power 4 · 6x |
| sin(x³) | sin u | x³ | cos(x³) · 3x² |
| e to the power x² | e to the power u | x² | e to the power x² · 2x |
| √(1 + x²) | √u | 1 + x² | 1/(2√(1 + x²)) · 2x |
| ln(cos x) | ln u | cos x | (1/cos x) · (−sin x) |
Warm-up: name the outside and the inside
Pick the outside and inside function for each one. Getting this step right is most of the battle.
A. cos(7x)
Show answer A
Outside: cos u. Inside: 7x. You'd multiply by 7 first, then take the cosine, so cosine is the outside. Derivative: −sin(7x) · 7 = −7 sin(7x).
B. (x³ + 2) to the power 6
Show answer B
Outside: the 6th power, u⁶. Inside: x³ + 2 (the whole thing in the parentheses, not just x³). Derivative: 6(x³ + 2)⁵ · 3x² = 18x²(x³ + 2)⁵.
C. e to the power sin x
Show answer C
Outside: eᵘ. Inside: sin x, the whole exponent. Derivative: e to the power sin x · cos x.
D. ln(x² + 5)
Show answer D
Outside: ln u. Inside: x² + 5. Derivative: (1/(x² + 5)) · 2x = 2x/(x² + 5).
Worked examples
These grow in difficulty. In each one, write the outside derivative first (with the inside copied exactly), then multiply by the inside derivative.
Example 1: a power of a polynomial
d/dx (3x² + 1) to the power 5
- Outside: u to the power 5, so its derivative is 5u to the power 4 = 5(3x² + 1) to the power 4. The inside stays as it was.
- Inside: 3x² + 1, so its derivative is 6x.
- Multiply: 5(3x² + 1) to the power 4 · 6x.
Answer: 30x(3x² + 1) to the power 4
Example 2: trig of a power
d/dx sin(x³)
- Outside: sin u, derivative cos u = cos(x³).
- Inside: x³, derivative 3x².
Answer: 3x² cos(x³)
Example 3: a square root
d/dx √(1 + x²)
- Rewrite the root as a power: (1 + x²) to the power 1/2.
- Outside: (1/2)(1 + x²) to the power −1/2.
- Inside: 1 + x², derivative 2x.
- Multiply: (1/2)(1 + x²) to the power −1/2 · 2x. The 2s cancel.
Answer: x / √(1 + x²)
Example 4: ln of a trig function
d/dx ln(cos x)
- Outside: ln u, derivative 1/u = 1/(cos x).
- Inside: cos x, derivative −sin x.
- Multiply: −sin x / cos x.
Answer: −tan x
Example 5: three layers
d/dx sin²(4x)
sin²(4x) means (sin 4x)². There are three layers here: a square, on the outside of a sine, on the outside of 4x. Peel them one at a time, from the outside in, and multiply everything together.
- Square layer: 2 sin(4x).
- Sine layer: cos(4x).
- Innermost layer, 4x: 4.
- Multiply: 2 sin(4x) · cos(4x) · 4.
Answer: 8 sin(4x) cos(4x), which also equals 4 sin(8x) by the double-angle identity sin 2θ = 2 sin θ cos θ.
Practice problems
Type your derivative and press Check. Your answer doesn't need to be simplified the same way as ours; the checker tests it at several x values. Type powers with ^ and use parentheses for exponents and function inputs, for example 16(2x-7)^7, 5e^(5x), sec(sqrt(x))^2 or ln(x^2+1). You can retry as often as you like, and every problem has full steps.
Level 1: one chain
Show steps 1
Outside: u to the power 8 gives 8(2x − 7) to the power 7. Inside: 2x − 7 gives 2.
8(2x − 7) to the power 7 · 2 = 16(2x − 7) to the power 7
Show steps 2
Outside: e to the power u stays e to the power 5x. Inside: 5x gives 5.
5e to the power 5x
Show steps 3
Outside: cos u gives −sin(x²). Inside: x² gives 2x.
−2x sin(x²)
Show steps 4
Outside: ln u gives 1/(x² + 1). Inside: x² + 1 gives 2x.
2x / (x² + 1)
Level 2: rewrite first, or chain plus another rule
Show steps 5
Rewrite as (x² + 4) to the power −3. Outside: −3(x² + 4) to the power −4. Inside: x² + 4 gives 2x.
−3(x² + 4) to the power −4 · 2x = −6x / (x² + 4) to the power 4
Show steps 6
Outside: tan u gives sec²(√x). Inside: √x = x to the power 1/2 gives (1/2)x to the power −1/2 = 1/(2√x).
sec²(√x) / (2√x)
Show steps 7
Product rule, with the chain rule inside the second factor: d/dx e to the power 3x = 3e to the power 3x.
2x · e to the power 3x + x² · 3e to the power 3x
e to the power 3x(2x + 3x²)
Show steps 8
Three layers. e to the power u layer: e to the power sin 2x. Sine layer: cos(2x). Innermost 2x: 2.
e to the power sin 2x · cos(2x) · 2 = 2 cos(2x) e to the power sin 2x
Level 3: exam style
Show steps 9
Rewrite as (sin x + x³) to the power 1/2. Outside: (1/2)(sin x + x³) to the power −1/2. Inside: cos x + 3x².
(cos x + 3x²) / (2√(sin x + x³))
Show steps 10
Use log rules first: ln√(x² + 9) = (1/2) ln(x² + 9). Then the chain rule: (1/2) · 2x/(x² + 9).
x / (x² + 9)
Show steps 11
h′(1) = f′(g(1)) · g′(1) = f′(3) · 2 = 5 · 2.
h′(1) = 10. Note you need f′ at 3 (the inside value), not at 1.
Show steps 12
Point: y(2) = (4 − 3) to the power 4 = 1. Slope: y′ = 4(2x − 3) to the power 3 · 2 = 8(2x − 3) to the power 3, so y′(2) = 8.
y − 1 = 8(x − 2), so y = 8x − 15.
Answer key
Open all 12 answers
- 16(2x − 7) to the power 7
- 5e to the power 5x
- −2x sin(x²)
- 2x / (x² + 1)
- −6x / (x² + 4) to the power 4
- sec²(√x) / (2√x)
- e to the power 3x(2x + 3x²)
- 2 cos(2x) e to the power sin 2x
- (cos x + 3x²) / (2√(sin x + x³))
- x / (x² + 9)
- h′(1) = 10
- y = 8x − 15
The three mistakes that cost the most points
- Forgetting the inside derivative. d/dx sin(3x) is 3 cos(3x), not cos(3x). If the inside is anything other than plain x, there's a factor to multiply by.
- Changing the inside. The outside derivative keeps the original inside. d/dx (x² + 1) to the power 5 starts with 5(x² + 1) to the power 4, not 5(2x) to the power 4.
- Mixing up sin²x and sin(x²). sin²x means (sin x)², whose derivative is 2 sin x cos x. sin(x²) has derivative 2x cos(x²).
Where the chain rule shows up next
Related rates is the chain rule with time as the variable: when r depends on t, d/dt (πr²) = 2πr · dr/dt. See the related rates guide for that. Going the other way, u-substitution is the chain rule run backwards (try these u-substitution practice problems), and integration by parts problems often need it too; try the integration by parts practice once these feel solid. Studying for the final? The Calculus 1 final exam review mixes all of it together. In Calculus 2, the Calculus 2 final exam review picks up from there. Rusty on limits, the idea every derivative is built on? Try these limits practice problems.
Common questions
When do you use the chain rule?
Any time one function sits inside another: a power of a polynomial, a trig function of something other than plain x, or e or ln of an expression. If you would have to plug x into one function and then feed the result into another, use the chain rule.
What is the chain rule formula?
If y = f(g(x)), then dy/dx = f′(g(x)) · g′(x). In Leibniz notation, with u = g(x), dy/dx = (dy/du)(du/dx).
How do I use the chain rule with the product rule?
Use the product rule for the overall structure, and use the chain rule whenever one of the factors is itself a composite function. In x²e^(3x), the product rule splits the work, and the chain rule gives the derivative of e^(3x) as 3e^(3x).
Is the chain rule the same as u-substitution?
They are the same idea run in opposite directions. The chain rule differentiates a composite function; u-substitution recognizes the pattern f′(g(x)) · g′(x) inside an integral and undoes it.
Keep practicing
Try 3 days free3 days free, no card needed.
Sources and fact checks
Rules and notation checked against these references. The problems and worked numbers were written for this guide, and every answer was checked numerically.