Skip to content

Mathematics · Ch 5 — Continuity and Differentiability

Chain Rule

3

Chain Rule

Many functions that arise in practice are not simple polynomials or single trigonometric

expressions, but composite functions -- a function applied to the output of another

function, such as y=sin⁡(3x2+2x)y=\sin(3x^2+2x) or y=(2x3−5x+1)6y=(2x^3-5x+1)^6. Differentiating a composite function

needs a rule of its own: the chain rule.

Statement. Let y=f(u)y=f(u) where u=g(x)u=g(x), and suppose gg is differentiable at xx and ff is

differentiable at u=g(x)u=g(x). Then the composite function y=f(g(x))y=f(g(x)) is differentiable at xx, and

dydx=dydu⋅dudx=f′(g(x))⋅g′(x).\frac{dy}{dx} = \frac{dy}{du}\cdot\frac{du}{dx} = f'\big(g(x)\big)\cdot g'(x).

Why it works. Write the increment form: if xx changes by a small amount Δx\Delta x, this

produces a corresponding change Δu\Delta u in u=g(x)u=g(x), which in turn produces a change Δy\Delta y

in y=f(u)y=f(u). Provided Δu≠0\Delta u\neq0,

ΔyΔx=ΔyΔu⋅ΔuΔx.\frac{\Delta y}{\Delta x} = \frac{\Delta y}{\Delta u}\cdot\frac{\Delta u}{\Delta x}.

As Δx→0\Delta x\to0, differentiability of gg at xx (Section 2) makes gg continuous there, so

Δu→0\Delta u\to0 as well; then Δy/Δu→dy/du\Delta y/\Delta u\to dy/du (since ff is differentiable at uu) and

Δu/Δx→du/dx\Delta u/\Delta x\to du/dx (since gg is differentiable at xx), giving dy/dx=(dy/du)(du/dx)dy/dx=(dy/du)(du/dx)

in the limit. (A fully rigorous proof must separately handle the case Δu=0\Delta u=0 for some

values of Δx\Delta x arbitrarily close to 00; this technical point is set aside at this level,

and the chain rule is used exactly as stated above.)

Practical recipe. To differentiate y=f(g(x))y=f(g(x)): (i) differentiate the outer function ff

with respect to its own argument, leaving the inner function g(x)g(x) untouched inside; (ii)

multiply by the derivative of the inner function g(x)g(x). Symbolically,

ddx[f(g(x))]=f′(g(x))⋅g′(x).\frac{d}{dx}\big[f(g(x))\big] = f'(g(x))\cdot g'(x).

Chains of more than two functions. The rule extends to any number of nested functions: if

y=f(u)y=f(u), u=g(v)u=g(v), v=h(x)v=h(x), then

dydx=dydu⋅dudv⋅dvdx.\frac{dy}{dx} = \frac{dy}{du}\cdot\frac{du}{dv}\cdot\frac{dv}{dx}.

This is used, for instance, to differentiate y=sin⁡(x2+1)y=\sin\big(\sqrt{x^2+1}\big), where the outer

function is sin⁡\sin, the middle function is a square root, and the inner function is x2+1x^2+1.

The chain rule underlies almost every later section of this chapter: the derivatives of the

inverse trigonometric functions (Section 4), of ef(x)e^{f(x)} and ln⁡f(x)\ln f(x) (Section 7), and the …