Differentiating composite functions using the chain rule.
The chain rule is used to differentiate composite functions — where one function is applied inside another. Whenever you see a “function of a function”, you need the chain rule.
Use the chain rule when differentiating expressions like:
If y=f(g(x)), let u=g(x) so that y=f(u). Then:
dxdy=dudy⋅dxdu
In function notation: dxd[f(g(x))]=f′(g(x))⋅g′(x)
Differentiate y=(2x+3)4
Let u=2x+3, so y=u4
dxdu=2,dudy=4u3
dxdy=4u3⋅2=8(2x+3)3
Differentiate y=sin(x2)
Let u=x2, so y=sinu
dxdu=2x,dudy=cosu
dxdy=cos(x2)⋅2x=2xcos(x2)
Differentiate y=e3x+1
Let u=3x+1, so y=eu
dxdu=3,dudy=eu
dxdy=3e3x+1
Differentiate y=ln(x2+1)
Let u=x2+1, so y=lnu
dxdu=2x,dudy=u1
dxdy=x2+12x
Differentiate y=esin(2x)
Apply the chain rule twice. Outer: e(⋅), Middle: sin(⋅), Inner: 2x
dxdy=esin(2x)⋅cos(2x)⋅2=2cos(2x)esin(2x)
These results follow directly from the chain rule and are worth memorising:
| y | dxdy |
|---|---|
| (ax+b)n | an(ax+b)n−1 |
| sin(ax+b) | acos(ax+b) |
| cos(ax+b) | −asin(ax+b) |
| eax+b | aeax+b |
| ln(ax+b) | ax+ba |
First principles, differentiating x^n, gradient functions, rates of change.
Derivatives of sin x, cos x, tan x and their compositions.
Derivatives of e^x, a^x, ln x and their compositions.
Differentiating implicitly defined functions, finding tangents to implicit curves.
Using the chain rule to connect rates of change in applied contexts.
Using substitution to integrate composite functions, reversing the chain rule.