IntermediateUpdated 2026-09-22

Chain Rule

The chain rule differentiates a composite function — one function plugged into another. It is the single most-used differentiation rule, since most functions you meet are compositions.

Statement

For a composite function :

In words: differentiate the outer function (leaving the inner function alone), then multiply by the derivative of the inner function.

Leibniz notation

If and , the chain rule reads

This form makes the rule easy to remember: it looks like the 's cancel, even though and are not literally fractions.

Worked examples

Example 1. . Let , so :

Example 2. . Let , so :

Example 3. . Let , so :

Chaining more than twice

The rule extends to any number of nested functions — differentiate from the outside in, multiplying by each layer's derivative in turn. For :

Special case: the generalized power rule

Applying the chain rule to gives a shortcut worth memorizing on its own:

Practice

  1. 1.
    If , what is ?
  2. 2.
    If , what is ?
  3. 3.
    If , what is ?