Makini Learning

The Chain Rule Breaks Here (Find Your Break)

By Christine

Math Teacher, AP Calculus

Published Aug 15

You know the formula. Derivative of the outside, times derivative of the inside. You've written it a hundred times on practice sets. And then you see ddxsin(3x2+1)\frac{d}{dx}\sin(3x^2 + 1) and something goes wrong.

You freeze. You don't know where to start. Or you start in the wrong place. Or you differentiate everything at once and the whole thing collapses.

Here's what's actually happening: you're trying to apply a rule to something you can't see clearly. The chain rule isn't hard. But you're not seeing the layers, and without the layers, the rule looks like chaos.

The Layers Are Everything

The chain rule is an algorithm for peeling an onion. Every nested function — a function inside another function — is a layer.

Look at sin(3x2+1)\sin(3x^2 + 1). How many layers are there?

  • Outermost layer: sine
  • Middle layer: 3x2+13x^2 + 1

That's two layers. The chain rule says: differentiate the outside, leave the inside alone, then multiply by the derivative of the inside.

ddxsin(3x2+1)=cos(3x2+1)ddx(3x2+1)\frac{d}{dx}\sin(3x^2 + 1) = \cos(3x^2 + 1) \cdot \frac{d}{dx}(3x^2 + 1)

See what happened? We took the derivative of sine (which is cosine), kept the inside untouched (that's the (3x2+1)(3x^2 + 1) part), and then multiplied by what the inside becomes when you differentiate it (6x6x).

=cos(3x2+1)6x= \cos(3x^2 + 1) \cdot 6x

Done. The order matters. The layers matter.

Three Examples That Show Where It Breaks

Example 1: The Easy One (You Probably Get This)

f(x)=(3x+5)2f(x) = (3x + 5)^2

Layers:

  • Outside: something squared
  • Inside: 3x+53x + 5

Apply the chain rule:

  1. Derivative of the outside (power rule): 2(3x+5)12(3x + 5)^1
  2. Leave the inside: (3x+5)(3x + 5)
  3. Multiply by the derivative of the inside: 3\cdot 3
f(x)=2(3x+5)3=6(3x+5)f'(x) = 2(3x + 5) \cdot 3 = 6(3x + 5)

This one clicks for most students because the layers are obvious. Square is outside. Linear is inside.

Example 2: The Middle One (Where Most Miss Up)

f(x)=sin(x3)f(x) = \sin(x^3)

Layers:

  • Outside: sine
  • Inside: x3x^3

Chain rule:

  1. Derivative of sine: cos\cos
  2. Leave the inside: (x3)(x^3)
  3. Multiply by derivative of the inside: 3x23x^2
f(x)=cos(x3)3x2f'(x) = \cos(x^3) \cdot 3x^2

Now watch what happens when students mess this up. Many of them try:

f(x)=cos(x3)sin(x3)3x2f'(x) = \cos(x^3) \cdot \sin(x^3) \cdot 3x^2

What are they doing? They're differentiating everything in sight. They see sine and cosine and x3x^3 and they panic and try to use all of it.

The mistake is treating the problem as if you have three separate functions to differentiate, instead of seeing it as two layers where one is nested inside the other.

The fix: Label the layers with different colors or different variable names. Write:

u=x3u = x^3 f(x)=sin(u)f(x) = \sin(u)

Now it's obvious: the outer function depends on uu, not on xx directly. So you get:

dfdx=dfdududx=cos(u)3x2=cos(x3)3x2\frac{df}{dx} = \frac{df}{du} \cdot \frac{du}{dx} = \cos(u) \cdot 3x^2 = \cos(x^3) \cdot 3x^2

This is the chain rule. The uu-substitution isn't a separate technique. It's just a way to see the layers clearly.

Example 3: The One That Usually Crashes Everything

f(x)=cos(x2)f(x) = \sqrt{\cos(x^2)}

Layers:

  • Outermost: square root (or power 12\frac{1}{2})
  • Middle: cosine
  • Innermost: x2x^2

That's three layers. Let me use uu and vv to make them obvious:

u=x2u = x^2 v=cos(u)v = \cos(u) f=v=v1/2f = \sqrt{v} = v^{1/2}

Now apply the chain rule from outside to inside:

dfdx=dfdvdvdududx\frac{df}{dx} = \frac{df}{dv} \cdot \frac{dv}{du} \cdot \frac{du}{dx} =12v1/2(sin(u))2x= \frac{1}{2}v^{-1/2} \cdot (-\sin(u)) \cdot 2x

Substitute back:

=12(cos(x2))1/2(sin(x2))2x= \frac{1}{2}(\cos(x^2))^{-1/2} \cdot (-\sin(x^2)) \cdot 2x =sin(x2)cos(x2)= \frac{-\sin(x^2)}{\sqrt{\cos(x^2)}}

This is where the panic usually sets in. Too many layers. But notice what we did: we peeled them off from outside to inside, one at a time. That's it.

Where the Real Break Usually Is

Here's the honest thing I see in tutoring: most students don't fail because they don't know the chain rule. They fail because they try to memorize it before they can see it.

The rule is mechanical once the layers are clear. But if you try to memorize "derivative of the outside times derivative of the inside" without actually seeing what "outside" and "inside" mean, it's just words.

The fix is always the same: slow down and label the layers. Use a substitution like u=insideu = \text{inside}. Write it out. Make it visual. Then the algorithm becomes obvious.

Most textbooks rush through this. They show the formula and expect you to apply it instantly. That's backward. The formula is just shorthand. The real tool is seeing the nesting.

How to Practice

  1. Start with easy ones(3x+5)4(3x + 5)^4, (2x21)7(2x^2 - 1)^7. Three functions squared or to a power. Get comfortable peeling one layer.

  2. Then add trigsin(3x)\sin(3x), cos(x2)\cos(x^2), tan(4x1)\tan(4x - 1). Trig wrapping polynomial. Still two layers.

  3. Then combinesin(x3)\sin(x^3), e2xe^{2x} — now you're nesting different types of functions, and the layers become less obvious visually.

  4. Finally, three layerssin(3x)\sqrt{\sin(3x)}, sin(cos(x))\sin(\cos(x)), ex2+xe^{x^2 + x}. The place where things fall apart.

At each stage, label the layers. Write u=u = \ldots, v=v = \ldots. Don't skip this step to save time. It's the step that saves time later because then you actually understand what you're doing.

Why Your Last Tutor Maybe Didn't Explain This

The chain rule is usually taught as a theorem to prove, not a tool to see. Proof is important. But proof comes after you can see it working.

If your calculus teacher went straight to the dudx\frac{du}{dx} notation and started proving why it works, they were teaching the precision before the intuition. That's backward for how people actually learn.

What I do is the reverse: I start by drawing the layers. I show you why the algorithm works visually. Then the formal proof makes sense because you know what it's proving.

Once you see the layers, the chain rule stops being a rule you memorize and becomes a tool you use because it obviously works.


More on Calculus Concepts

Want to work through this with a tutor who explains it this way?

Request a tutoring session