Skip to content

Mathematics · Ch 8 — Differentials and Partial Derivatives

Function of Function Rule

8.6.1

Function of Function Rule

When the two variables x,yx,y of W(x,y)W(x,y) are themselves each functions of a single variable tt (with the same domain), the composite W(x(t),y(t))W(x(t),y(t)) ultimately depends only on tt — so it should be treatable as an ordinary one-variable function, and its derivative dWdt\dfrac{dW}{dt} should be computable. This is not a coincidence:

Theorem 8.2 (Function of Function Rule). Suppose W(x,y)W(x,y) has partial derivatives ∂W∂x,∂W∂y\dfrac{\partial W}{\partial x},\dfrac{\partial W}{\partial y}. If x,yx,y are both differentiable functions of a single variable tt, then WW is a differentiable function of tt, and

dWdt=∂W∂xdxdt+∂W∂ydydt.(16)\frac{dW}{dt} = \frac{\partial W}{\partial x}\frac{dx}{dt} + \frac{\partial W}{\partial y}\frac{dy}{dt}. \qquad(16)

The tree diagram is the standard visual aid: WW branches down to xx and yy (labelled by ∂W/∂x\partial W/\partial x and ∂W/∂y\partial W/\partial y), and each of x,yx,y branches further down to tt (labelled dx/dtdx/dt and dy/dtdy/dt); multiplying along each full branch and summing over the branches reproduces (16) exactly.

Verifying the theorem directly. For F(x,y)=x2−2y2+2xyF(x,y)=x^2-2y^2+2xy with x(t)=cos⁡t, y(t)=sin⁡tx(t)=\cos t,\,y(t)=\sin t: substituting first gives F=cos⁡2t−2sin⁡2t+2cos⁡tsin⁡tF=\cos^2t-2\sin^2t+2\cos t\sin t, a function of tt alone, whose derivative (by direct differentiation, using ddt(2cos⁡tsin⁡t)=2(cos⁡2t−sin⁡2t)\dfrac{d}{dt}(2\cos t\sin t)=2(\cos^2t-\sin^2t)) works out to −6cos⁡tsin⁡t+2(cos⁡2t−sin⁡2t)-6\cos t\sin t+2(\cos^2t-\sin^2t). Computing instead via (16): Fx=2x+2y, Fy=−4y+2xF_x=2x+2y,\,F_y=-4y+2x, dx/dt=−sin⁡t, dy/dt=cos⁡tdx/dt=-\sin t,\,dy/dt=\cos t, so

∂F∂xdxdt+∂F∂ydydt=(2x+2y)(−sin⁡t)+(2x−4y)(cos⁡t)=2(cos⁡t+sin⁡t)(−sin⁡t)+2(cos⁡t−2sin⁡t)(cos⁡t),\frac{\partial F}{\partial x}\frac{dx}{dt}+\frac{\partial F}{\partial y}\frac{dy}{dt} = (2x+2y)(-\sin t)+(2x-4y)(\cos t) = 2(\cos t+\sin t)(-\sin t)+2(\cos t-2\sin t)(\cos t),

which simplifies to the same −6cos⁡tsin⁡t+2(cos⁡2t−sin⁡2t)-6\cos t\sin t+2(\cos^2t-\sin^2t) — confirming (16). Both routes always agree, so computing both is a genuine self-check; whichever route is algebraically shorter for a given problem is the one to use in practice.

Two-parameter version. Sometimes x=x(s,t)x=x(s,t) and y=y(s,t)y=y(s,t) both depend on two parameters s,t∈Rs,t\in\mathbb R, making WW ultimately a function of s,ts,t as well:

Theorem 8.3 (Chain Rule, two parameters). If W(x,y)W(x,y) has partial derivatives, and x=x(s,t), y=y(s,t)x=x(s,t),\,y=y(s,t) both have partial derivatives with respect to ss and tt, then

∂W∂s=∂W∂x∂x∂s+∂W∂y∂y∂s,∂W∂t=∂W∂x∂x∂t+∂W∂y∂y∂t.(17, 18)\frac{\partial W}{\partial s} = \frac{\partial W}{\partial x}\frac{\partial x}{\partial s} + \frac{\partial W}{\partial y}\frac{\partial y}{\partial s}, \qquad \frac{\partial W}{\partial t} = \frac{\partial W}{\partial x}\frac{\partial x}{\partial t} + \frac{\partial W}{\partial y}\frac{\partial y}{\partial t}. \qquad(17,\,18) …

Figure 8.14Fig 8.14 Tree diagram for the chain rule dW/dt when W=W(x,y) with x=x(t), y=y(t): W branches to x and y via the partial derivatives, then to t via dx/dt and dy/dt
Fig. 8.14 — Fig 8.14 Tree diagram for the chain rule dW/dt when W=W(x,y) with x=x(t), y=y(t): W branches to x and y via the partial derivatives, then to t via dx/dt and dy/dt

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

What this figure shows. Fig 8.14 Tree diagram for the chain rule dW/dt when W=W(x,y) with x=x(t), y=y(t): W branches to x and y via the partial derivatives, then to t via …

Figure 8.15Fig 8.15 Tree diagram for the chain rule when w=w(x,y) with x=x(s,t), y=y(s,t): gives partial w / partial s and partial w / partial t as sums over the two branches
Fig. 8.15 — Fig 8.15 Tree diagram for the chain rule when w=w(x,y) with x=x(s,t), y=y(s,t): gives partial w / partial s and partial w / partial t as sums over the two branches

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

What this figure shows. Fig 8.15 Tree diagram for the chain rule when w=w(x,y) with x=x(s,t), y=y(s,t): gives partial w / partial s and partial w / partial t as sums over t …