Chain Rule Formula

The derivative of a composite function f(g(x)) equals f'(g(x)) · g'(x): the derivative of the outer function evaluated at the inner, times the derivative of the inner.

The Formula

(f∘g)′(x)=f′(g(x))⋅g′(x)

Ask yourself: Is one function plugged into another, so I must multiply the outer derivative by the inner derivative?

Quick example

ddx(sin⁡(x2))=cos⁡(x2)⋅2x Outside: sin⁡. Inside: x2.

Notation

In Leibniz notation: dydx=dydu⋅dudx where y=f(u) and u=g(x).

What this formula means

The derivative of a composite function f(g(x)) equals f′(g(x))⋅g′(x): the derivative of the outer function evaluated at the inner, times the derivative of the inner.

The chain rule works like converting currency in two steps. If 1 euro buys 1.1 dollars and 1 dollar buys 150 yen, then 1 euro buys 1.1×150=165 yen: the rates multiply. Each layer of a composite is one exchange, with its derivative as the rate. Unlike exchange rates, these rates vary from point to point, so the outer one is read at the inner value.

Formal view

If g is differentiable at x and f is differentiable at g(x), then (f∘g)′(x)=f′(g(x))⋅g′(x).

Worked examples

Example 1

easy
Find the derivative of f(x)=(3x+1)4.
Show solution

Answer

f′(x)=12(3x+1)3

First step

1.
Identify the outer function u4 and the inner function u=3x+1.

Full solution

  1. 2.
    Apply the chain rule: ddx[u4]=4u3⋅dudx.
  2. 3.
    The derivative of the inner function: dudx=3.
  3. 4.
    Combine: f′(x)=4(3x+1)3⋅3=12(3x+1)3.
The chain rule says: differentiate the outer function, keep the inner function, then multiply by the derivative of the inner function. Think of it as peeling layers.

Example 2

medium
Find the derivative of f(x)=(x2+1)5.

Example 3

hard
Find the derivative of f(x)=sin⁡(x3).

Common mistakes

  • Forgetting the inner-derivative factor g′(x) — every composite contributes a multiply-by-the-inside step.
  • Evaluating the outer derivative at x instead of at g(x) — f′ must be applied to the inner function, e.g. cos⁡(x2) not cos⁡x.
  • Confusing nesting with multiplication — sin⁡(x2) is composite (chain rule) while x2sin⁡x is a product (product rule).

Common mistakes guide

If this formula keeps breaking in real problems, read the most common errors before you practice again.

Why this formula matters

Most functions that model real things are built in layers: a balloon's volume depends on its radius, which depends on time; a sound wave is the sine of something that keeps changing. The chain rule lets you differentiate any such stack one layer at a time. Without it, (3x+1)5 means expanding a fifth power by hand, and sin⁡(x2) cannot be done with the other rules at all.

Frequently asked questions

What is the Chain Rule formula?

The derivative of a composite function f(g(x)) equals f′(g(x))⋅g′(x): the derivative of the outer function evaluated at the inner, times the derivative of the inner.

How do you use the Chain Rule formula?

Use the chain rule when you can see an inside and an outside: a bracket raised to a power, (x2+1)3; a function applied to something other than plain x, such as sin⁡(3x) or e−x2; a square root of an expression. In word problems, look for a quantity that depends on another quantity that is itself changing over time. If two functions are multiplied side by side, use the product rule; if the base is plain x, the power rule alone is enough.

What do the symbols mean in the Chain Rule formula?

In Leibniz notation: dydx=dydu⋅dudx where y=f(u) and u=g(x).

Why is the Chain Rule formula important in Math?

Most functions that model real things are built in layers: a balloon's volume depends on its radius, which depends on time; a sound wave is the sine of something that keeps changing. The chain rule lets you differentiate any such stack one layer at a time. Without it, (3x+1)5 means expanding a fifth power by hand, and sin⁡(x2) cannot be done with the other rules at all.

What do students get wrong about Chain Rule?

The procedure for chain rule is the easy part; the trap is forgetting the inner-derivative factor g′(x). Asking "Is one function plugged into another, so I must multiply the outer derivative by the inner derivative?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Chain Rule formula?

Before studying the Chain Rule formula, you should understand: derivative, composition.

The full guide

This formula is covered in depth in Derivatives Explained: Rules, Interpretation, and Applications.