Chain Rule
The rule
The chain rule differentiates a composite function, one function applied to the output of another. If y=f(g(x)), then
dxdy=f′(g(x))⋅g′(x)In words: differentiate the outer function (leaving the inner function alone), then multiply by the derivative of the inner function.
1. Derivative of sin(ln(x))
Find the derivative of f(x)=sin(ln(x)).
Solution: The outer function is sin(u), the inner function is u=ln(x). Since dudsin(u)=cos(u) and dxdln(x)=x1,
f′(x)=cos(ln(x))⋅x1=xcos(ln(x))2. Derivative of sec(tan(√x))
Find the derivative of sec(tan(x)) with respect to x. This nests three functions, so the chain rule is applied twice.
Solution: Let u=x, v=tan(u), and differentiate sec(v) from the outside in:
dxdu=2x1,dudv=sec2(u),dvdsec(v)=sec(v)tan(v)Multiplying the three pieces together (the chain rule again):
2x1⋅sec(tan(x))⋅tan(tan(x))⋅sec2(x)Continue learning
Many definite integrals are solved by spotting a chain-rule pattern in reverse, so the two techniques are worth learning back to back.