You already know how to differentiate x4, sinx, ex, and lnx. But what about (3x2−5)4, sin(5x2), or e−3x? These are composite functions: one function sitting inside another. The chain rule tells you how to differentiate them, and it’s the rule you’ll use more than any other in calculus. All trig on this page is in radians, as in all of AP Calculus.
A composite function f(g(x)) has an outside functionf and an inside functiong. To spot them, ask: “If I were evaluating this on a calculator, what would I do last?” The last step is the outside.
This form shows why the rule works: if y changes 3 times as fast as u, and u changes 2 times as fast as x, then y changes 3×2=6 times as fast as x. Rates of change multiply along the chain. (The du‘s look like they cancel. They aren’t really fractions, but it’s a handy memory aid.)
For more than two layers, keep going: work from the outside in, multiplying by the derivative of each layer. For example, sin3(2x) has three layers (cube, sine, 2x):
Real functions often need several rules at once (CED 3.5). Look at the overall structure first:
Is the whole thing a product or quotient of two pieces? Start with the product rule or quotient rule, and use the chain rule on any piece that’s composite.
Is the whole thing one function of another? Start with the chain rule.
Rewrite first when it makes life easier: x2+9=(x2+9)1/2, and (x2+1)34=4(x2+1)−3 needs only the chain rule, not the quotient rule.
On the AP exam, these are mostly no-calculator skills, so practise until they’re automatic.
Forgetting to multiply by the inside derivative.dxdsin(3x) is 3cos(3x), not cos(3x). Even when the inside is something simple like 3x or −x, its derivative still counts.
Changing the inside when differentiating the outside.dxdcos(x2)=−sin(x2)⋅2x. A common wrong answer is −sin(2x), which differentiates the inside inside the cosine. The inside stays exactly as it was; its derivative goes out front.
Using the wrong values from a table. For h(x)=f(g(x)), h′(a)=f′(g(a))⋅g′(a). Students often write f′(a)⋅g′(a) or f′(g′(a)). Always find g(a) first, then look up f′ there.
Confusing sin²x with sin(x²).sin2x=(sinx)2 has outside u2, so its derivative is 2sinxcosx. But sin(x2) has outside sinu, so its derivative is 2xcos(x2).
Dropping the inside derivative with ln.dxdln(x2+1)=x2+12x, not x2+11. Remember the pattern “derivative of the inside over the inside”.
Using degrees. Calculus derivative rules like dxdsinx=cosx only work in radians. Make sure your calculator is in radian mode on the AP exam.
4. (Core) Let y=u3−2u and u=x2+1. Use dxdy=dudy⋅dxdu to find dxdy when x=1.
Solution
dudy=3u2−2 and dxdu=2x.
When x=1, u=12+1=2, so
dxdy=(3(2)2−2)(2⋅1)=10⋅2=20
5. (Core) Use the table.
x
f(x)
f′(x)
g(x)
g′(x)
0
2
3
5
−1
2
0
−4
1
6
(a) If h(x)=g(f(x)), find h′(0).
(b) If k(x)=f(f(x)), find k′(2).
(c) If m(x)=eg(x), find m′(2).
Solution
(a) h′(0)=g′(f(0))⋅f′(0)=g′(2)⋅3=6⋅3=18
(b) k′(2)=f′(f(2))⋅f′(2)=f′(0)⋅(−4)=3(−4)=−12
(c) m′(x)=eg(x)⋅g′(x), so m′(2)=eg(2)⋅g′(2)=e1⋅6=6e
6. (Core) Differentiate y=(x2+1)34 without using the quotient rule.
Solution
Rewrite as y=4(x2+1)−3:
dxdy=4⋅(−3)(x2+1)−4⋅2x=−(x2+1)424x
7. (Core) The depth of water at a dock is D(t)=3+1.5sin(6πt) metres, t hours after midnight. How fast is the depth changing at t=2? Give an exact answer and a decimal to three places, with units.