SUNY Geneseo Department of Mathematics

The Chain Rule for Partial Derivatives

Thursday, March 8

Math 223 04
Spring 2018
Prof. Doug Baldwin

Return to Course Outline

Previous Lecture

Questions?

Problem Set

Partial derivatives and tangents, with a little bit from limits.

See the handout for details.

The Chain Rule for Multivariable Functions

Section 4.5.

Example

Find dz/dt given z = sin(2t) ln(t+1)

This looks like a pretty classic product-rule problem from single-variable calculus:

dz/dt via the product rule

So what did it have to do with the chain rule? Another way of thinking about it is that z(t) is really composed of two simpler terms, say x and y, each of which is a function of t:

Now there’s a form of the chain rule that tells you how to find dz/dt:

dz/dt = dz/dx dx/dt + dz/dy dy/dt

Example

Find ∂f/∂u and ∂f/∂v if f(x,y) = x2+y2, x(u,v) = u sinv, y(u,v) = veu.

As above, you could substitute the definitions of x and y into the right hand side of f(x,y) and differentiate directly. Or you could use another form of the chain rule to work with simpler derivatives (albeit a larger number of them). For this latter approach, you first need the derivatives of f, x, and y:

f in terms of x and y; df/dx, df/dy, dx/du, dx/dv, dy/du, dy/dv

Then you can use the chain rule to combine these derivatives to get the final answers:

df/du = df/dx dx/du + df/dy dy/du; df/dv = df/dx dx/dv + df/dy dy/dv

The Generalized Chain Rule

Yesterday we intuitively used the chain rule to find rx(w,h) and ry(w,h) for r(w,h) = √(w2+h2). Can you fit this into the terminology of the chain rule as generalized today and draw a tree diagram for it?

For example, yesterday you found a derivative something like this, using the chain rule intuitively on the expression inside the radical:

r = sqrt(w^2+h^2), df/dw = w/sqrt(w^2+h^2)

So explicitly think of the expression inside the radical as a function, i.e.,

r = sqrt(x(w,h)); x = w^2+h^2

And now the chain rule as we have been talking about it tells you to think of the derivative of r with respect to w as the derivative with respect to x times the derivative of x with respect to w:

dr/dw = dr/dx dx/dw

In tree diagram form, r is a function of a single intermediate variable, which in turn depends on two independent ones:

Line from r to x branching into 2 lines to w and h

The general idea can be paraphrased as finding all derivatives of the dependent variable in terms of intermediate ones, multiplying by all derivatives of those intermediate variables in terms of others, and continuing in that manner until you reach derivatives in terms of the desired independent variable. Add together all the products thus obtained. Tree diagrams give a slightly more formal version of this idea. However you think about it, this idea unifies all forms of the chain rule, including the one for single-variable derivatives, and that unification is probably the most significant thing about the multivariable chain rule.

Key Ideas

The multivariable chain rule and how to use it in calculations.

But the real significance is in providing a unified way to understand differentiating any composition of functions in any combination of single- and multivariable forms.

Next

Directional derivatives.

Read the “Directional Derivatives” subsection of section 4.6.

Next Lecture