4.4.7 · D1Multivariable Calculus

Foundations — Chain rule for multivariable functions — all cases

3,204 words15 min readBack to topic

Before you can read the parent note, you need a small toolbox. This page builds every symbol it uses, starting from nothing. Read top to bottom — each item leans on the one before it.


0. What is a function of one input? ()

Figure s01 — what to look at: a literal box with a knob labelled on the left and a dial labelled on the right. Turn the input knob and the output dial swings. The box carries the name — the machine's name.

Figure — Chain rule for multivariable functions — all cases

The letter is just a name for the machine. If we had a second machine we might call it . The parent note uses for the main output machine and for an input machine.


1. Rate of change: the ordinary derivative

Now: how fast does the output move when you nudge the input? That is the whole point of calculus.

Figure s02 — what to look at: the blue curve is ; the orange straight line just kisses it at the red point. The little green right-triangle shows a tiny run along the bottom and the tiny rise up the side. The slope of the orange line is divided by .

Figure — Chain rule for multivariable functions — all cases

Why the topic needs it. The chain rule multiplies rates of change "link by link". Each link is exactly one of these ratios. If you cannot read as "how much output per unit input", nothing downstream makes sense.

See Single-variable Chain Rule for the one-input version of the whole idea.


2. Functions of two inputs:

Real machines often have two knobs. Write : two inputs and , one output .

Figure s03 — what to look at: instead of a flat curve we now have a whole surface hovering over the floor. Any point on the floor is named by two numbers (east and north); the height of the surface straight above it is . The red dot and its grey drop-line show one such point .

Figure — Chain rule for multivariable functions — all cases

Why the topic needs it. The parent note says an output "has two doors" and . Those doors are exactly the two input slots. A wiggle can come in either door.


3. Partial derivative — the slanted-d

With two knobs, "the" slope is ambiguous — slope in which direction? So we ask a narrower question: freeze one knob, wiggle the other.

Figure s04 — what to look at: we pick one fixed value of and slice the surface with a wall running in the -direction. The orange curve is the exposed edge of that slice — a one-input curve again. The red tangent line's slope on this slice is exactly . On this surface at the marked point the slice climbs to the left of the crest, so the slope shown is positive (uphill in the direction).

Figure — Chain rule for multivariable functions — all cases

Why the topic needs it. Every "link" in a multivariable chain that starts at is a partial derivative: and are the two rates one per door.

Full detail lives in Partial Derivatives.


3b. When to use and when to use — reconciled

This trips everyone, so read slowly. The choice depends on how many variables the thing on top ultimately depends on, counting all the way down the chain.


4. The total differential — combining both doors

Now nudge both knobs a tiny bit at once. How much does change in total?

Figure s05 — what to look at: the blue curved surface with its flat orange tangent plane resting on it at the red point. The green step east lifts you by ; the green step north lifts you by ; together the plane lifts you by their sum . The tiny gap between the plane and the true surface as you step away is the error that vanishes faster than the step.

Figure — Chain rule for multivariable functions — all cases

From the total differential to the chain rule — the limit written out. Suppose the two knobs are driven by a single deeper variable (a deep cause such as time; its tiny nudge is and its measurable nudge is ). Start from the exact change from the differentiability box and divide every term by the measurable step :

Why this is legal: dividing a sum by divides each piece separately. Now let . Because and move continuously with , the steps too, which forces . Meanwhile the ratios stay finite: and . So the last two terms are (something ) (something finite) and drop out entirely:

That is the whole chain rule for one deep variable, and now you have watched the error term die instead of taking it on faith. Note finally depends on the single variable , so the straight is correct in (§3b). See Total Differential.


5. Composition: inputs that depend on deeper things

Here is the twist that makes it multivariable chain rule and not just partials.

The dependency tree is a picture of this "who-feeds-whom": the output sits on top, and arrows point downward to whatever each thing depends on. The map below is that same tree for this whole page — read it as a story of how each foundation feeds the next.

How to read the map: start at the top box y = f(x) — the simplest machine. The arrow to dy/dx says "to understand one input you first need its rate of change". That feeds into the two-input surface z = f(x,y), which needs the partial derivative (freeze one knob), which lets us write the total differential (nudge both, add). Divide that by a deep variable and you reach composition, and finally the Multivariable Chain Rule box at the bottom. Two side-boxes — the summation sign and the Jacobian — feed straight into that final box because the general chain rule needs both. Follow any arrow and read it as "you need the box behind the arrow before the box in front of it".

function y = f(x): one input one output

ordinary derivative dy by dx: slope of tangent

function z = f(x,y): two inputs a surface

partial derivative dz by dx: freeze the other knob

total differential: nudge both and add

composition: x and y depend on deeper t

Multivariable Chain Rule: sum paths multiply links

summation sign and index notation

gradient and Jacobian matrix

Why the topic needs it. Without nesting there is no chain to follow. The parent's cookie story (rain → flour & sugar → cookies) is exactly this: is rain, are flour and sugar, is cookies.


6. The summation sign and the index

When there are many inputs the parent note packs the sum into one symbol.

Why the topic needs it. Writing every term out is exhausting when there are doors; says the same in tiny space, and this is the exact form the parent's general rule uses.


7. Gradient and Jacobian — the compact packaging

Collect the partial derivatives into a single object so the whole chain rule becomes one multiplication.

You only need to recognise these for the parent's "matrix form" remark. Deep dive: Gradient and Jacobian. They also power the Directional Derivative and Implicit Differentiation (multivariable) connections the parent lists.


Equipment checklist

Test yourself — cover the right side. If any answer is a blank, reread that section before the parent note.

What does mean in ?
A named machine turning one input into one output .
What does measure, and what is it on a graph?
Tiny output change per tiny input change; the slope of the tangent line.
What is the difference between and ?
is a measurable change; is that change shrunk to the limit (infinitely tiny).
What is the picture of ?
A surface / landscape whose height sits above each floor-point .
What does mean?
Freeze , wiggle only , measure how fast changes — slope of an east–west slice.
What is shorthand for?
— the partial derivative of with respect to .
When do you use versus in a derivative?
when the top ultimately depends on one variable; when several companions remain.
Why does the lone differential wear a straight even though ?
Because is not a derivative (no "with respect to" underneath) — the rule only governs derivatives.
Write the total differential of .
.
What condition guarantees the total differential / chain rule holds?
is differentiable — sufficient: the partial derivatives exist and are continuous near the point.
Why do the two terms of ADD?
For tiny nudges the surface is its flat tangent plane, so the two independent height changes simply sum.
Show the limit step that turns into the chain rule.
Divide the exact change by , let ; the error terms vanish (0 × finite), leaving .
What does mean, and its chain-rule form?
; the chain rule is .
What is the gradient of ?
The row of partials .

Connections