Plans

The best way to get a 5 on your AP exam.

Personalized study sets, mock tests, interactive modules and an AI tutor.

Contents

BlogAP Calculus AB

The Chain Rule Explained by a Caveman (AP Calculus AB)

6 min read

Watercolor still life: a sandstone slab painted in cave-art style with ripples spreading from a drop and three linked rings, beside a pebble and a knotted rope.
Illustration: AP Rush

Why does the area speed up?

If a circle's radius grows at a steady 2 centimeters per second, why does its area grow faster and faster?

First you get the chain rule the way a caveman would explain it. Then you get the reasoning and notation the AP exam expects.

The caveman version

Me want beads for beard. Me have shells. Me tribe have good deal. Me give one shell, get two nuts.

Me take nuts to bead hut. Me give one nut, get three beads. Me bring both nuts from one shell. Me get six beads. Beard look grand.

Me find one more shell. Me know what come next. Two more nuts, three more beads for each nut. Six more beads for beard. Me need more beard.

What the caveman meant

The shell count is the input. The first trade is the inner function, which turns a shell count into a nut count. If you start with one more shell, you have two more nuts to take to the bead hut.

The second trade is the outer function. It takes the nut count as its input and gives you a bead count. Together the two trades form a composition. The output of the first function is the input to the second.

Each deal gives a rate of change. Two nuts per shell times three beads per nut gives six beads per shell. The chain rule uses that same multiplication to find how fast the final output changes with the original input.

The trades come in whole pieces and the deals stay fixed. A derivative describes an instantaneous rate. That rate can depend on where you are, so you need to know the current input to each function.

The inner output feeds the outer function

You can trace the circle the same way you traced the trades. Pick a time t. The inner function r(t) tells you the radius at that time. Feed that radius into the outer function A(r) = πr² to get the area. Written as a single expression, the area at time t is π[r(t)]².

To spot the layers in an expression, imagine calculating its value for a friend. For (3x + 1)⁴, you'd tell your friend to multiply x by 3 and add 1. Then you'd say to raise that entire result to the fourth power. The quantity 3x + 1 is what the two instructions pass between them.

Multiplying the rates gives area change per second

Once you know which quantity passes between the functions, track its units. The radius changes with time at dr/dt, measured in cm/s. The area changes with radius at dA/dr, measured in cm²/cm. That second rate tells you how sensitive the area is to a small change in radius at its current size.

Multiplying the units in the order you followed the change gives (cm/s) · (cm²/cm) = cm²/s. A centimeter of radius appears once on top and once on the bottom, so it cancels. You now have square centimeters of area per second, the units of dA/dt. To get its value, multiply the two rates at the same instant.

Evaluate the outer derivative at the inner output

The same reasoning gives a rule for differentiable layers. If g is the inner function and f is the outer function, [f(g(x))]′ = f′(g(x)) · g′(x). Read the first factor carefully. By the time a change reaches f, its input is g(x). You need the slope of f at that value. The second factor tells you how fast g changes at x.

For (3x + 1)⁴, call the inner output u = 3x + 1. The power rule gives 4u³ as the derivative of u⁴ with respect to u. Put 3x + 1 back in to get 4(3x + 1)³. Since the derivative of 3x + 1 is 3, the full calculation is [(3x + 1)⁴]′ = 4(3x + 1)³ · 3 = 12(3x + 1)³.

Differentiate nested layers from the outside in

The inner function can itself have layers. Take y = sin((x² + 1)³), with the sine input in radians. To compute y, you'd find x² + 1, cube it, then take the sine. To write the derivative, start with that last operation. Sine becomes cosine, and its whole input stays in place, giving the first factor cos((x² + 1)³).

Move inward to the cube. Its derivative with respect to its input is three times that input squared, giving the next factor 3(x² + 1)². Finally, the derivative of x² + 1 is 2x. Putting the three factors together gives y′ = cos((x² + 1)³) · 3(x² + 1)² · 2x. Each factor accounts for one layer.

The outermost operation determines which rule comes first

Looking at the outside first also helps you recognize a product. In x² cos(3x), the last operation you'd perform is multiplication. Both factors change with x. The product rule accounts for the change in each factor by multiplying its derivative by the other factor, then adding the two contributions.

Differentiating x² gives the first contribution, 2x cos(3x). For the second, keep x² and differentiate cos(3x). The outer cosine gives −sin(3x), and the inner 3x contributes a factor of 3. The full derivative is 2x cos(3x) − 3x² sin(3x). Here the product rule gives you two terms, and the chain rule does its work inside the second one.

Common mistakes

Stopping at 4(3x + 1)³ gives the slope with respect to the quantity inside the parentheses. The question asks for the slope with respect to x. The inside changes three times as fast as x, so multiply by 3.

Writing cos(x) · 2x for the derivative of sin(x²) evaluates the outer slope at the wrong input. Sine receives x², so cosine must receive x² too. The derivative is cos(x²) · 2x.

It's easy to read x² sin x as sin(x²). Check what goes into sine. In the product, sine takes x, and its output is multiplied by x². Its derivative is 2x sin x + x² cos x. In the composition, the square goes inside sine, so the two derivative factors multiply.

Try one

Let h(x) = f(g(x)). You know g(2) = 3, g′(2) = −4, f′(2) = 7 and f′(3) = 5. Find h′(2) and identify which given value is a trap. Explain why.

Start with h′(2) = f′(g(2)) · g′(2). Since g(2) = 3, the outer function receives 3. Its slope there is f′(3) = 5. Multiply by the inner slope to get h′(2) = 5 · (−4) = −20. The trap is f′(2) = 7 because 2 is the input to g, while f receives 3.

The question tests whether you can use an inner value to locate a slope and an inner derivative to scale that slope.

Back to the opening question

For the circle, dA/dr = 2πr gets bigger as r grows. The radius still gains 2 centimeters each second, but each small increase in radius adds a strip around a longer edge.

Putting the rates together gives dA/dt = (dA/dr)(dr/dt) = 2πr · 2. At r = 5 cm, the area grows at 20π cm²/s. At r = 10 cm, it grows at 40π cm²/s. Doubling the radius doubles the area gained per second at that instant.

Questions

How do I find the inner function in a chain rule problem?

Ask what quantity goes into the final operation. In (3x + 1)⁴, the fourth power acts on 3x + 1, so g(x) = 3x + 1 is the inner function.

Why does the inside stay the same when I differentiate sin(x²)?

The outer slope is cosine evaluated at whatever goes into sine. That gives cos(x²), and differentiating the inside supplies the separate factor 2x.

Can I use the chain rule more than once?

Yes. When the inside is another composition, work inward until you've included a derivative factor for every layer.

When do I plug a number into the chain rule?

Write the derivative relationship first. To find a slope at x = a, use g(a) to locate the outer slope f′(g(a)), then multiply by g′(a).

Secure your 5 on the AP exam today.

Get started for free

Free to start, with 3 keys a week.

Sign in