Canadian flagMath101 · Independent Ontario learning libraryCreated and edited by Kamran
Calculus IGrades 9–12University3 min read

Chain Rule

The chain rule differentiates a function inside another by multiplying the outer rate by the inner rate.

Cheat sheet
When one quantity changes through another, their rates multiply.

Composite structure

A composite function has form

$$ y=f(g(x)). $$

The inner function $g$ acts first, and the outer function $f$ acts on its output. Differentiation must account for how fast both layers change.

The rule

The chain rule states

$$ \frac{d}{dx}[f(g(x))]=f'(g(x))g'(x). $$

In Leibniz notation, if $y=f(u)$ and $u=g(x)$,

$$ \frac{dy}{dx}=\frac{dy}{du}\frac{du}{dx}. $$

The notation resembles cancellation and correctly tracks rates through the chain.

Outer-then-inner routine

  1. Identify the outer function and leave its input unchanged.
  2. Differentiate the outer function.
  3. Multiply by the derivative of the inner function.
  4. Repeat if more layers remain.

This avoids expanding expressions that were designed to stay composed.

Worked example: a power of a polynomial

The factor $6x$ is essential; without it, only the outer layer has been differentiated.

Exponential and trigonometric examples

For $y=e^{4x-7}$,

$$ y'=e^{4x-7}\cdot4. $$

For $y=\sin(x^2)$,

$$ y'=\cos(x^2)\cdot2x. $$

The original inner expression remains inside the differentiated outer function.

Nested chains

For

$$ y=\sqrt{1+(2x-3)^4}, $$

there are three layers: square root, sum with a fourth power, and linear inner expression. Write powers:

$$ y=[1+(2x-3)^4]^{1/2}. $$

Then

$$ y'=\frac12[1+(2x-3)^4]^{-1/2}\cdot4(2x-3)^3\cdot2. $$

Each layer contributes one factor.

Chain rule with product or quotient rules

Structure can require several rules. For

$$ y=x^2\cos(3x), $$

use product rule outside and chain rule inside cosine:

$$ y'=2x\cos(3x)-3x^2\sin(3x). $$

Marking the main operation first helps determine the outer rule.

Rate interpretation

Suppose radius $r$ changes with time and area is $A=\pi r^2$. Then

$$ \frac{dA}{dt}=\frac{dA}{dr}\frac{dr}{dt}=2\pi r\frac{dr}{dt}. $$

Area changes through radius, so their rates multiply. Units confirm the chain: area per radius times radius per time gives area per time.

Reverse recognition

The chain rule explains why an expression such as

$$ 2x\cos(x^2) $$

is the derivative of $\sin(x^2)$. Recognizing an inner derivative beside a composite function becomes important in integration.

Common mistakes

Differentiating only the outer function. Multiply by the inner derivative.

Changing the inner expression prematurely. Keep it intact inside $f'$.

Multiplying by the inner function rather than its derivative. Use $g'(x)$.

Missing layers in a nested composite. Trace from outside to inside.

Using chain rule instead of product rule for multiplied functions. Identify the main operation.

Quick self-check

  • What is the outermost operation?
  • What expression serves as its input?
  • Did the differentiated outer function keep that input?
  • Is the inner derivative multiplied afterward?
  • Are there additional product, quotient, or chain layers?
  • Do units or a numerical check support the result?
Check your understanding

Try it yourself

Hints are part of learning. Open one whenever it makes the next step feel possible.

1 practice question
Question 1Differentiate a composite · Gentle

Differentiate y = (3x² − 1)⁵.

End of lesson

Nice work making it this far.

Understanding grows through return visits. Save this lesson, try the practice, or continue when you are ready.

Lesson complete

That one is yours now.

Chain Rule is saved to My Learning. Take the win—you earned it.

1Your Math101 collectionlesson completed
Search 464 published lessons, 123 answer guides, courses, and learning tools.
Your experience

Settings

Ontario math tutoringWork with KamranBook ↗