Skip to content

Mathematics and Statistics · Ch 9 — Differentiation

The Chain Rule (Composite Functions)

5

The Chain Rule (Composite Functions)

A composite function is a "function of a function", such as (3x2+5)4(3x^2+5)^4 or sin⁡(x2)\sin(x^2) or log⁡e(1+x2)\log_e(1+x^2) — an outer function applied to an inner expression. The chain rule differentiates it.

If yy is a function of uu, and uu is a function of xx, then

dydx=dydu×dudx.\frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx}.

In words: differentiate the outer function (keeping the inside unchanged), then multiply by the derivative of the inside.

Worked illustration — y=(3x2+5)4y = (3x^2+5)^4. Put u=3x2+5u = 3x^2+5, so y=u4y = u^4. Then dydu=4u3\dfrac{dy}{du} = 4u^3 and dudx=6x\dfrac{du}{dx} = 6x. Therefore

dydx=4u3×6x=4(3x2+5)3×6x=24x (3x2+5)3.\frac{dy}{dx} = 4u^3 \times 6x = 4(3x^2+5)^3 \times 6x = 24x\,(3x^2+5)^3.

With practice the substitution uu is done mentally: "bring down the power 44, reduce it to 33, keep the bracket, then multiply by the bracket's derivative 6x6x."

Combining with standard functions: ddx eg(x)=eg(x) g′(x)\dfrac{d}{dx}\,e^{g(x)} = e^{g(x)}\,g'(x),  ddx sin⁡(g(x))=cos⁡(g(x)) g′(x)\ \dfrac{d}{dx}\,\sin(g(x)) = \cos(g(x))\,g'(x),  ddx log⁡e(g(x))=g′(x)g(x)\ \dfrac{d}{dx}\,\log_e(g(x)) = \dfrac{g'(x)}{g(x)} — in each case, the standard derivative of the outer function, times the derivative of the inside.

Note

Never Forget the "Times the Derivative of the Inside" …

Definition 13Composite function

A function of a function, e.g. y=(3x2+5)4y=(3x^2+5)^4: an outer function (u4u^4) applied to an inner expres …

Definition 14Chain rule

If y=y(u)y=y(u) and u=u(x)u=u(x) then dydx=dydu⋅dudx\frac{dy}{dx}=\frac{dy}{du}\cdot\frac{du}{dx}: differentiate the outer function keeping the inside fixed, then multiply by t …