Mistake Master
Student view — seeing the site as a student does
Mistake Master · AP Calculus · Unit 3 · Step-Through Animation

The Chain Rule

One Factor Per Layer

You'll learnwhy the derivative of sin(3x) is cos(3x) times 3, and how to spot the factor most students drop.

y = sin(3x) is two machines in series: triple x, then take the sine. Nudge x, and how fast does y move at the far end? Twelve short steps; press Next for each one.

12 STEPS · 6 QUICK CHECKS · RATES MULTIPLY · ONE FACTOR PER LAYER · THE DROPPED FACTOR · v2

one factor per layer · dy/dx = f′(g(x)) · g′(x)
Before you start
What you're looking at
Two machines in a row. x goes into the first, its output u goes into the second, and y comes out the far end.
The question
If the inside runs three times as fast as x, how fast does y move?
Step 1 / 12

Read all 12 steps as text
Step 1

Two machines in series

y = sin(3x) is two machines in a row: x goes in, the first triples it to u, and the second takes the sine.

Step 2

The inside runs three times as fast

Move x one unit and u moves three, because the inner machine triples every motion.

Step 3

Rates along a chain multiply

If the outer machine doubles whatever reaches it, y moves six units: the two rates multiply, \(\dfrac{dy}{dx} = \dfrac{dy}{du}\cdot\dfrac{du}{dx} = 2 \cdot 3 = 6\).

Step 4

Put the formula back

For y = sin(3x) the outer rate is \(\cos u\) and the inner rate is 3, so \(\dfrac{dy}{dx} = \cos(3x)\cdot 3\).

Step 5

Peel from the outside in

For \((x^2+1)^5\) the fifth power is the outer layer, so differentiate it with the inside left as it stands, then multiply by the inside's own derivative: \(5(x^2+1)^4 \cdot 2x\).

Step 6

Where the outer derivative is read

With a table, find g(1) first and read f′ at that number: \(h'(1) = f'(g(1))\cdot g'(1) = f'(4)\cdot 2 = -6\), not \(f'(1)\cdot 2\).

Step 7

Three machines, three factors

y = sin²(3x) is square, then sine, then triple, so it pays out three factors: \(2\sin(3x)\cdot\cos(3x)\cdot 3\). Stopping at two is the usual slip.

Step 8

A composition is not a product

Two things multiplied is a product; one thing fed into another is a composition, and \(x^2\sin(3x)\) is a product whose second factor is a composition.

Step 9

Drop the inner factor and the tangent misses

Take y = sin(x²/2) at x = 2.5. Writing only the outer derivative, \(\cos(x^2/2)\), claims a slope of −1.00; the true slope is \(\cos(x^2/2)\cdot x = -2.50\), and the dashed line is visibly not a tangent.

Step 10

The gap is the dropped factor

−2.50 divided by −1.00 is 2.50, which is exactly the inner derivative x at x = 2.5: the two answers differ by precisely the factor that was left out.

Step 11

Why the slip survives

Plot the true derivative and the outer-only answer together: they touch at x = 1, where the inner derivative is 1 and the dropped factor changes nothing, and disagree everywhere else.

Step 12

The rule

The chain rule in one line: \(\dfrac{d}{dx}f(g(x)) = f'(g(x))\cdot g'(x)\). Name the layers, write one factor for each, and multiply.