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 calculus courses.
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 tests these are mostly no-calculator skills (the AP no-calculator section, IB AA Paper 1), 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 any test.
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.
Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
All angles in this homework are in radians. Identify the layers you differentiate, and retain any real-domain restrictions.
H1. (Foundations) Differentiate y=(4x−3)6. Name the inside and outside functions and show the inside derivative.
H2. (Foundations) Differentiate A(x)=2x2+5 and B(x)=3/(x2+4)2. Rewrite the second expression as a negative power rather than using the quotient rule.
H3. (Core) Differentiate both sin(2x2) and sin2(2x). Explain why these are different compositions.
H4. (Core) Differentiate e1−3x, 2x2+1, and ln(9−x2). State the real domain and derivative domain of the logarithmic expression.
H5. (Core) Use the table to find H′(2) for H(x)=f(g(x)) and K′(2) for K(x)=g(f(x)). Show which row supplies each outer derivative.
x
f(x)
f′(x)
g(x)
g′(x)
2
4
3
4
−2
4
2
−1
2
5
H6. (Core) A model for water depth at a dock is D(t)=5+0.8cos(πt/4) metres, where t is hours after midnight. Find D′(2) exactly and to three decimal places. Interpret its sign and units.
H7. (Challenge) Differentiate F(x)=ln(1+cos2(3x)). Show every layer, simplify your answer, and explain why the function is real and differentiable at every real input.
H8. (Challenge) Find the tangent line to y=x1+3x2 at x=1. Explain which rule handles the overall expression and which handles the square-root factor.
H9. (Challenge) Find all horizontal-tangent points of Q(x)=x2+1ln(x2+1). Factor the derivative so that you do not lose zeros supplied by an inside derivative.
H10. (Challenge) Let R(x)=f(f(f(x))) and S(x)=eR(x). Use the table to find R(0), R′(0), and the tangent to S at 0. Trace the inputs through all three layers before multiplying slopes.