← All guides

The chain rule, explained with examples

Differentiate composite functions like (3x + 1)⁵, sin(x²) and √(x² + 1) with the chain rule: outside derivative times inside derivative.

Video lesson: The chain rule (free, with subtitles)

d/dx f(g(x)) = f′(g(x)) · g′(x)

In words: derivative of the outside (leave the inside alone) times the derivative of the inside.

Examples

Why multiply?

Rates multiply. If the inside changes 3 times as fast as x, and the outside changes 5 times as fast as the inside, then the outside changes 15 times as fast as x, like gears turning gears.

How to spot it

If there's a function "inside" another (a power of a bracket, a trig of something that isn't just x, e to something that isn't just x), you need the chain rule.

Common mistake

Forgetting the "times the inside" part: the derivative of sin(x²) is not cos(x²).

Practice it free

Watch the full lesson and try questions with new numbers every time, with the worked steps shown if you get one wrong.

Practice: The chain rule All courses