Skip to content

Mathematics · Ch 5 — Continuity and Differentiability

Derivatives of Composite Functions

5.3.1

Derivatives of Composite Functions

5.3.1 Derivatives of Composite Functions

The Core Idea: Why We Need a Special Rule

For a function like f(x)=(2x+1)3f(x) = (2x+1)^3 you could expand and differentiate term by term, but that is hopeless for (2x+1)100(2x+1)^{100}. The better view is that f(x)=(2x+1)3f(x) = (2x+1)^3 is two functions nested: with g(x)=2x+1g(x) = 2x+1 and h(t)=t3h(t) = t^3, we have f(x)=h(g(x))f(x) = h(g(x)), a composite function (gg applied first, then hh).

Setting t=g(x)=2x+1t = g(x) = 2x+1, so f(x)=h(t)=t3f(x) = h(t) = t^3:

dfdx=6(2x+1)2=3(2x+1)2⋅2=3t2⋅2=dhdt⋅dtdx\frac{df}{dx} = 6(2x+1)^2 = 3(2x+1)^2 \cdot 2 = 3t^2 \cdot 2 = \frac{dh}{dt} \cdot \frac{dt}{dx}

Multiplying the derivative of the outer function (w.r.t. the inner variable) by the derivative of the inner function is the essence of the chain rule.

Theorem 4: The Chain Rule

Statement: Let ff be a composite of two functions uu and vv; i.e., f=v∘uf = v \circ u. Suppose t=u(x)t = u(x) and both dtdx\frac{dt}{dx} and dvdt\frac{dv}{dt} exist. Then:

dfdx=dvdt⋅dtdx\frac{df}{dx} = \frac{dv}{dt} \cdot \frac{dt}{dx}

The proof is omitted: differentiate the outer function vv with respect to its argument tt, then multiply by the derivative of the inner function uu with respect to xx.

Watch out

A common mistake is to forget that dvdt\frac{dv}{dt} must be evaluated at t=u(x)t = u(x), not at xx. Always substitute back after differentiating the outer function.

Extending the Chain Rule to Three Functions

For a composite of three functions, f=(w∘u)∘vf = (w \circ u) \circ v, with t=v(x)t = v(x) and s=u(t)s = u(t): …

Theorem 4

The Chain Rule (Theorem 4)

Statement. Let ff be a real-valued function which is a composite of two functions uu and vv; i.e., f=v∘uf = v \circ u. Suppose t=u(x)t = u(x) and if both dtdx\frac{dt}{dx} and dvdt\frac{dv}{dt} exist, then

dfdx=dvdt⋅dtdx\frac{df}{dx} = \frac{dv}{dt} \cdot \frac{dt}{dx}

The theorem requires three conditions: (i) ff must be expressible as v(u(x))v(u(x)), (ii) uu must be differentiable at xx, and (iii) vv must be differentiable at t=u(x)t = u(x). When these hold, the derivative of the composite function is the product of the derivative of the outer function (evaluated at the inner function) and the derivative of the inner function.

›Proof

Proof. Let f=v∘uf = v \circ u, so that f(x)=v(u(x))f(x) = v(u(x)) for all xx in the domain. Define t=u(x)t = u(x). Then f(x)=v(t)f(x) = v(t).

By definition of the derivative,

dfdx=lim⁡h→0f(x+h)−f(x)h\frac{df}{dx} = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}

Since f(x)=v(u(x))f(x) = v(u(x)) and f(x+h)=v(u(x+h))f(x+h) = v(u(x+h)), we have

dfdx=lim⁡h→0v(u(x+h))−v(u(x))h\frac{df}{dx} = \lim_{h \to 0} \frac{v(u(x+h)) - v(u(x))}{h}

Let Δt=u(x+h)−u(x)\Delta t = u(x+h) - u(x). Then u(x+h)=u(x)+Δt=t+Δtu(x+h) = u(x) + \Delta t = t + \Delta t. The numerator becomes v(t+Δt)−v(t)v(t + \Delta t) - v(t). So

dfdx=lim⁡h→0v(t+Δt)−v(t)h\frac{df}{dx} = \lim_{h \to 0} \frac{v(t + \Delta t) - v(t)}{h}

Multiply and divide by Δt\Delta t (provided Δt≠0\Delta t \neq 0 for hh sufficiently small — the case Δt=0\Delta t = 0 is handled separately by a standard argument):

dfdx=lim⁡h→0v(t+Δt)−v(t)Δt⋅Δth\frac{df}{dx} = \lim_{h \to 0} \frac{v(t + \Delta t) - v(t)}{\Delta t} \cdot \frac{\Delta t}{h}

Now Δth=u(x+h)−u(x)h\frac{\Delta t}{h} = \frac{u(x+h) - u(x)}{h}, so as h→0h \to 0, Δth→dudx=dtdx\frac{\Delta t}{h} \to \frac{du}{dx} = \frac{dt}{dx} (since t=u(x)t = u(x)). Also, as h→0h \to 0, Δt→0\Delta t \to 0 because uu is continuous (differentiability implies continuity). Hence

lim⁡h→0v(t+Δt)−v(t)Δt=dvdt\lim_{h \to 0} \frac{v(t + \Delta t) - v(t)}{\Delta t} = \frac{dv}{dt}

Therefore,

dfdx=dvdt⋅dtdx\frac{df}{dx} = \frac{dv}{dt} \cdot \frac{dt}{dx}

This completes the proof. …