Skip to content
Calculus

The Chain Rule Explained (With 6 Worked Examples)

How to spot a composite function, the outside-inside method, and the chain rule combined with the product and quotient rules.

By Jasmine Devis · · 7 min read

The chain rule is how you differentiate a function inside another function — a composite function like or .

The rule

In words: differentiate the outside, keep the inside the same, then multiply by the derivative of the inside.

How to spot it

Ask: "If I plugged in a number, what would I calculate last?" That is the outside function. For you would square first and take the sine last, so sine is the outside.

Worked examples

1.

2.

3.

4.

5.

6. Three layers.

Each layer adds one more factor.

With the product rule

Use the product rule for the multiplication and the chain rule inside .

Common mistakes

  • Forgetting the inside derivative: , not .
  • Changing the inside: the derivative of keeps , not .
  • Stopping after one layer when there are two or three.

Leibniz form

If and , then . The 's "cancel", which is an easy way to remember it.

Check your derivatives step by step with the Derivative Calculator, and see the chain rule formula page.

Practice problems

Try each one first, then open the answer to check your work.

  1. 1.Differentiate .

    Show answer

    .

  2. 2.Differentiate .

    Show answer

    .

  3. 3.Differentiate .

    Show answer

    .

  4. 4.Differentiate .

    Show answer

    .

  5. 5.Differentiate .

    Show answer

    .

Key terms

Composite function
A function of a function.
Inner function
The part applied first.
Outer function
The part applied last.
Leibniz notation
Writing derivatives as .
Related rates
Rates linked through the chain rule.

Frequently asked questions

How do I know which function is "outside"?

Ask what you'd calculate last if you plugged in a number. For , you square first and take the sine last, so sine is the outside.

Do I need the chain rule for $\sin(2x)$?

Yes. The inside is , so you multiply by 2: the derivative is .

Can I use the chain rule with the quotient rule?

Yes. Use the quotient rule for the overall structure and the chain rule whenever a part has an inner function.

What is the chain rule in Leibniz notation?

, where is the inner function.

How is the chain rule used in real life?

Whenever one rate depends on another. If a balloon's radius grows at 2 cm/s, its volume grows at cm³/s, which is the chain rule.

What's the most common chain rule mistake?

Forgetting to multiply by the derivative of the inner function, such as writing instead of .
#chain rule#derivatives#calculus

Keep reading

Practice what you just learned

Solve your own problems step by step and ask the AI tutor about anything that's unclear.