The chain rule for several variables
Find how fast the height of the hill changes along a path by combining the two slopes with the walker's two speeds, draw the tree diagram that records the rule, and extend it to two parameters and more variables.
It opens on
A hiker stands at (2, 0) on the hill and sets off northeast, one unit east and one unit north every minute. At that instant is she climbing or descending, and how fast?
Why it matters
Quantities in science depend on position, and position depends on time or on other inputs; the chain rule is how a rate through several variables is found without first substituting everything.
Good to know first
- Tangent planes and linear approximation: for small steps the height changes by dz = fx dx + fy dy, the rise of the tangent plane
- The chain rule in Calculus I: differentiate the outside function and multiply by the derivative of the inside
Step by step
Slope times speed, added
Compute the rate dz/dt of the height along a straight path at the start, as the east slope times the east speed plus the north slope times the north speed, and check by substitution.
On the hill at the start, dz/dt = (−4)(1) + (2)(1) = −2, so the hiker descends 2 per minute.
A common mix-up
Only the east term counts, dz/dt = fx dx/dt.
In fact: The north step also changes her height: −4 alone is wrong, the answer is −2.
Routes in a tree and where she is now
Draw the tree diagram of the rule, and evaluate the rule at a later time, reading fx, fy, dx/dt and dy/dt at the position at that time.
At t = 1 her position on the bending path is (3, 1) and her speeds are dx/dt = 1, dy/dt = 2t = 2.
A common mix-up
The slopes can be taken at the start for the whole walk.
In fact: At (3, 1) they are −5 and −1; the rate is −7, not 0.
Two parameters and more variables
Write ∂z/∂s and ∂z/∂t for z = f(x, y) with x and y depending on two parameters, and extend the rule to three variables.
At (s, t) = (0, 0) the hiker is at (2, 0) on the hill, so fx = −4 and fy = 2; xs = 1, ys = 1, xt = 1, yt = −1.
A common mix-up
∂z/∂s and ∂z/∂t can share one formula.
In fact: Each has its own routes: with xt = 1, yt = −1 the answers are −2 and −6.
Try it
Find dz/dt at t = 0 for z = x² + y², x = 1 + t, y = 2t.Answer
2
Hint: zx = 2x = 2, zy = 2y = 0 at (1, 0)
For z = xy with x = t², y = 3t + 1, find dz/dt at t = 1.Answer
11
Hint: zx = y = 4, zy = x = 1, dx/dt = 2, dy/dt = 3 at t = 1
For z = x² + y with x = s + t, y = st, find ∂z/∂s at (s, t) = (1, 2).Answer
8
Hint: zx = 2x = 6, zy = 1, xs = 1, ys = t = 2
At (2, 0) the hill falls 4 per unit east and rises 2 per unit north. Walking one unit east and one north, climbing or descending?Answer
It depends on the sum, both effects occur.
What would the starting slopes −4 and 2 give at t = 1, and why is that wrong?Answer
0; she is no longer at the start.
