4.4.7 · D2Multivariable Calculus

Visual walkthrough — Chain rule for multivariable functions — all cases

1,930 words9 min readBack to topic

Before line one, three plain words:


Step 1 — One walker, one clock

WHAT. Instead of standing still on the landscape, imagine a walker whose position moves as time ticks. Their east coordinate is a function and their north coordinate is . As changes, the point traces a path across the ground, and the height under their feet rises and falls.

WHY. This is the entire question of Case 1: how fast does the height change as the clock ticks? We want one number, — an ordinary derivative (, not ), because in the end depends on the single variable .

PICTURE. The curve below is the walker's trail on the map. The height is the color of the ground. The whole rest of the page zooms into ONE tiny green segment of this trail.

Figure — Chain rule for multivariable functions — all cases
  • ::: the clock; the only truly independent variable in Case 1.
  • ::: the walker's position — both coordinates move as moves.

Step 2 — Take one tiny step in time

WHAT. Advance the clock by a small amount, written (the symbol , capital Greek "D", means "a small change in"). The walker moves. Their east coordinate changes by , their north coordinate by , and the height changes by .

WHY. Derivatives are born from tiny changes. If we understand how one small produces , we can divide and shrink to get the exact rate. This is the same idea as the Single-variable Chain Rule, just with two coordinates moving at once.

PICTURE. Zoom into the green box from Step 1. The step in time splits into a horizontal nudge and a vertical nudge on the map.

Figure — Chain rule for multivariable functions — all cases
  • ::: tiny tick of the clock (the cause).
  • ::: the east and north nudges it produces (the two "doors").
  • ::: the resulting change in height (the effect we want).

Step 3 — How height responds to a nudge: the two ramps

WHAT. Freeze time for a moment and ask: given the nudges and , how much does the height change? Because is differentiable, near our point the curved ground looks flat — a tilted plane. On a plane the height change is just:

WHY THIS TOOL. Why a plane, and why do the two effects add? Because "differentiable" is precisely the promise that up close the surface is well-approximated by a flat tilted sheet — this sheet is the Total Differential. On a flat sheet, moving east then north changes height by (east-steepness × east-distance) plus (north-steepness × north-distance). Independent directions contribute independently, so we sum. This is why the chain rule adds — the addition is inherited from the flatness of the local plane.

PICTURE. The tilted plane over the point. Walking east climbs one ramp; walking north climbs the other; the total rise is the sum of the two ramp-rises.

Figure — Chain rule for multivariable functions — all cases
  • ::: rise from the east door = (east steepness) × (east nudge).
  • ::: rise from the north door = (north steepness) × (north nudge).

Step 4 — The honest version: name the leftover error

WHAT. The hides a small lie: the ground is not exactly a plane. Differentiability lets us write the truth exactly by adding leftover terms:

where (Greek "epsilon", meaning "a vanishingly small number") both shrink to as the nudges shrink to .

WHY. We must not cheat. Keeping the error terms explicitly means our final rule will be exact, not approximate. The whole trick will be to show these leftovers die in the limit.

PICTURE. The gap between the true curved surface and the flat plane is the leftover. As the step shrinks, the gap shrinks faster than the step.

Figure — Chain rule for multivariable functions — all cases
  • ::: the curvature error per unit nudge — both as .

Step 5 — Divide by the clock tick

WHAT. We want a rate per unit time, so divide every term of the exact equation by :

WHY. literally means "change in per change in ." So we measure everything per tick . Notice = "east-speed of the walker" and = "north-speed."

PICTURE. Each nudge becomes a speed: divide the map nudges by the same clock tick.

Figure — Chain rule for multivariable functions — all cases
  • ::: how fast the walker goes east.
  • ::: how fast the walker goes north.

Step 6 — Shrink the tick: the leftovers vanish, the rule appears

WHAT. Now let . As the tick shrinks, the nudges too (the walker's path is continuous), so . Meanwhile stays finite. So the two leftover terms are (something ) × (something finite) and die:

WHY the limit. The limit is what turns the approximate plane into the exact rate — the curvature error only mattered at finite step size, and it evaporates faster than .

PICTURE. Two supply-roads flow into the output. Each road is a multiplication (steepness × speed); the meeting point is the sum.

Figure — Chain rule for multivariable functions — all cases

Step 7 — Edge cases: don't get caught out

Every scenario the reader could hit:

(a) A frozen coordinate. If the walker moves only east, then and the north path contributes nothing — we recover the Single-variable Chain Rule . The formula contains the 1-D case; it never contradicts it.

(b) Zero steepness but moving fast. If you walk along a level contour (height constant in that direction), the matching steepness is , so that path adds no matter how fast you go. Speed alone doesn't change height — only speed times steepness does.

(c) Two ultimate variables → use (Case 2). If and , then ends up depending on two variables . Freeze , wiggle : this is exactly Step 6 applied to a slice, so We now write (not ) because a companion variable survives.

(d) The sneaky direct path (implicit reappearance). If and depend on , there is a third road straight to : The tree literally shows three branches — miss the direct one and your answer is wrong. This is the engine behind Implicit Differentiation (multivariable).

PICTURE. Four mini-trees, one per case, showing which branches survive.

Figure — Chain rule for multivariable functions — all cases

The one-picture summary

The whole derivation on a single map: a tiny wiggle splits into two nudges, each nudge climbs its own ramp, the two rises add, we divide by , shrink, and the error washes out — leaving the boxed rule. In matrix language this compresses to a Jacobian product (see Gradient and Jacobian).

Figure — Chain rule for multivariable functions — all cases
Recall Feynman retelling of the whole walkthrough

You're hiking on a hilly landscape, but you don't control where you stand directly — a clock does. Each tick, the clock pushes you a little east and a little north at once. To find how fast your altitude changes per tick: figure out how steep the hill is toward the east and multiply by your eastward speed — that's how much the east-move lifts you. Do the same for north. The hill isn't perfectly flat, so there's a tiny curvature fudge, but when the tick gets small the fudge shrinks away to nothing. Add the two lifts and you have your altitude's rate of change. More doors (more intermediate variables) → more roads to add; if the clock also changes the landscape itself, add one more straight road. That's the entire multivariable chain rule: sum the paths, multiply the links.

Recall Quick self-check

Why do the error terms vanish? ::: Because as the step shrinks while stays finite; zero times finite is zero. In Case 2 why is it , not ? ::: Because a second ultimate variable still exists, so depends on more than one variable. Ex-check: for , , , what is ? ::: — the chain rule matches the direct answer .


Connections