The chain rule

Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.

About this lesson

Calculus BC (AP-aligned) › Differentiation rules

To save a PDF, choose “Save as PDF” in the print dialog.

Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits

The chain rule

Differentiation rules.

Warm-up

Three quick questions from earlier lessons.

  1. f(x)=x3sin⁡xf(x) = x^{ 3 }\sin x. Find f′(x)f'(x).
  2. f(x)=(x+3)exf(x) = (x + 3)e^x. Find f′(x)f'(x).
  3. f(2)=4f(2) = 4, f′(2)=4f'(2) = 4, g(2)=−4g(2) = -4 and g′(2)=−1g'(2) = -1. Find (fg)′(2)(fg)'(2).

Discover

The violet curve is y=sin⁡xy = \sin x; the blue one is y=sin⁡(kx)y = \sin(kx). Increase kk.

The curves y = sin x and y = sin(kx). With k = 2 the blue curve oscillates twice as fast, and its steepest slope is 2 instead of 1.

At k=2k = 2 the blue curve goes twice as fast. At x=0x = 0, what is the slope of y=sin⁡(2x)y = \sin(2x)?

  1. 2
  2. 1

Key idea

For a function inside a function: differentiate the outside, keep the inside, multiply by the derivative of the inside.

Chain rule: (f(g(x)))′=f′(g(x))⋅g′(x)\big(f(g(x))\big)' = f'(g(x)) \cdot g'(x).

Worked example

h(x)=(x2+1)5h(x) = (x^2 + 1)^5. Find h′(x)h'(x).

f(u)=u5f(u) = u^5, g(x)=x2+1g(x) = x^2 + 1
Outside u⁵, inside u = x² + 1.
h′(x)=5(x2+1)4⋅2xh'(x) = 5(x^2 + 1)^4 \cdot 2x
f'(u) = 5u⁴ with the inside kept; g'(x) = 2x.
h′(x)=10x(x2+1)4h'(x) = 10x(x^2 + 1)^4
Tidy.

Your turn, guided

Your turn: h(x)=e3xh(x) = e^{3x}.

h′(x)=3e3xh'(x) = 3e^{3x}
Outside eᵘ, inside 3x: eᵘ times 3.

Practice ★

  1. f(x)=(3x+6)2f(x) = (3x + 6)^{ 2 }. Find f′(x)f'(x).
  2. f(x)=(8x+7)4f(x) = (8x + 7)^{ 4 }. Find f′(x)f'(x).
  3. f(x)=(2x+6)2f(x) = (2x + 6)^{ 2 }. Find f′(x)f'(x).

Watch out!

Practice ★★

  1. f(x)=sin⁡(3x2)f(x) = \sin(3x^2). Find f′(x)f'(x).
  2. f(x)=sin⁡(50x2)f(x) = \sin(50x^2). Find f′(x)f'(x).
  1. f(x)=e3x2f(x) = e^{ 3x^2}. Find f′(x)f'(x).
  2. f(x)=e11x2f(x) = e^{ 11x^2}. Find f′(x)f'(x).

Exit ticket

Three questions to check you have got it.

  1. f(x)=(3x+6)2f(x) = (3x + 6)^{ 2 }. Find f′(x)f'(x).
  2. f(x)=(8x+7)4f(x) = (8x + 7)^{ 4 }. Find f′(x)f'(x).
  3. f(x)=(2x+6)2f(x) = (2x + 6)^{ 2 }. Find f′(x)f'(x).

Summary card

Chain rule

(f(g(x)))′=f′(g(x)) g′(x)\big(f(g(x))\big)' = f'(g(x))\,g'(x): outside's derivative (inside kept) times inside's derivative.

Watch out: do not forget the factor g′(x)g'(x).

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. f(x)=(x2+1)2f(x) = (x^2 + 1)^{ 2 }. Find f′(1)f'(1).
Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits