Processing math: 100%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

14.4: The Chain Rule

( \newcommand{\kernel}{\mathrm{null}\,}\)

Consider the surface z=x2y+xy2, and suppose that x=2+t4 and y=1t3. We can think of the latter two equations as describing how x and y change relative to, say, time. Then

z=x2y+xy2=(2+t4)2(1t3)+(2+t4)(1t3)2

tells us explicitly how the z coordinate of the corresponding point on the surface depends on t. If we want to know dz/dt we can compute it more or less directly---it's actually a bit simpler to use the chain rule:

dzdt=x2y+2xxy+x2yy+xy2=(2xy+y2)x+(x2+2xy)y=(2(2+t4)(1t3)+(1t3)2)(4t3)+((2+t4)2+2(2+t4)(1t3))(3t2)

If we look carefully at the middle step, dz/dt=(2xy+y2)x+(x2+2xy)y, we notice that 2xy+y2 is z/x, and x2+2xy is z/y. This turns out to be true in general, and gives us a new chain rule:

Theorem 14.4.1

Suppose that z=f(x,y), f is differentiable, x=g(t), and y=h(t). Assuming that the relevant derivatives exist,

dzdt=zxdxdt+zydydt.

Proof

If f is differentiable, then

Δz=fx(x0,y0)Δx+fy(x0,y0)Δy+ϵ1Δx+ϵ2Δy,

where ϵ1 and ϵ2 approach 0 as (x,y) approaches (x0,y0). Then

ΔzΔt=fxΔxΔt+fyΔyΔt+ϵ1ΔxΔt+ϵ2ΔyΔt.

As Δt approaches 0, (x,y) approaches (x0,y0) and so

limΔt0ΔzΔt=dzdtlimΔt0ϵ1ΔxΔt=0dxdtlimΔt0ϵ2ΔyΔt=0dydt

and so taking the limit of (14.4.1) as Δt goes to 0 gives

dzdt=fxdxdt+fydydt,

as desired.

We can write the chain rule in way that is somewhat closer to the single variable chain rule:

dfdt=fx,fyx,y,

or (roughly) the derivatives of the outside function "times'' the derivatives of the inside functions. Not surprisingly, essentially the same chain rule works for functions of more than two variables, for example, given a function of three variables f(x,y,z), where each of x, y and z is a function of t,

dfdt=fx,fy,fzx,y,z.

We can even extend the idea further. Suppose that f(x,y) is a function and x=g(s,t) and y=h(s,t) are functions of two variables s and t. Then f is "really'' a function of s and t as well, and

fs=fxgs+fyhsft=fxgt+fyht.

The natural extension of this to f(x,y,z) works as well.

Recall that we used the ordinary chain rule to do implicit differentiation. We can do the same with the new chain rule.

Example 14.4.2

x2+y2+z2=4 defines a sphere, which is not a function of x and y, though it can be thought of as two functions, the top and bottom hemispheres. We can think of z as one of these two functions, so really z=z(x,y), and we can think of x and y as particularly simple functions of x and y, and let f(x,y,z)=x2+y2+z2. Since f(x,y,z)=4, f/x=0, but using the chain rule:

0=fx=fxxx+fyyx+fzzx=(2x)(1)+(2y)(0)+(2z)zx,

noting that since y is temporarily held constant its derivative y/x=0. Now we can solve for z/x:

zx=2x2z=xz.

In a similar manner we can compute z/y.

Contributors


This page titled 14.4: The Chain Rule is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by David Guichard via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?