4.4.7 · D3Multivariable Calculus

Worked examples — Chain rule for multivariable functions — all cases

2,754 words13 min readBack to topic

Before anything, one promise: we never write a symbol without saying what it means.

  • means a machine that eats two numbers and spits out one number .
  • (read "partial dee z by dee x") is the rate changes when you nudge only and freeze . See Partial Derivatives.
  • (round-free ) is the rate when ultimately depends on the single variable .

We introduce more symbols ( for the Jacobian matrix, for summation) later, at the exact moment we first use them.


The scenario matrix

Every problem this topic throws lives in one of these cells:

# Cell (what makes it tricky) Which example
A Case 1: one independent variable, clean Ex 1
B Case 2: two independent variables (polar) Ex 2
C Sign / quadrant trap (a component goes negative) Ex 3
D Zero input: a link derivative is at a point Ex 4
E Degenerate: two inputs collapse to the same variable Ex 5
F Explicit reappearance: appears directly and through Ex 6
G Limiting behaviour: rate as a special value Ex 7
H Real-world word problem (units matter) Ex 8
I Exam twist: Jacobian / matrix form Ex 9

We hit every cell below.


Cell A — one independent variable, clean

Before we compute, look at the dependency tree for this problem. It shows the two roads from the deep variable up to the output : one road passes through , the other through . That is the picture behind "two paths".

Figure — Chain rule for multivariable functions — all cases

Cell B — two independent variables (polar), with a figure

The next figure does two jobs at once. On the left is the polar dependency tree: the output reaches each ultimate variable and through both doors and — that is why every polar chain-rule sum has two terms. On the right is the geometric picture: the point on a ray at angle , and the red radial arrow showing the direction you move when you increase . Increasing slides the point straight out along that arrow, which is exactly why turns out to be the Directional Derivative of in the radial direction.

Figure — Chain rule for multivariable functions — all cases

Cell C — sign / quadrant trap

The figure below plants the point at on the unit circle: it lives in quadrant II, where the horizontal coordinate is negative (red, pointing left) but the vertical coordinate is positive (mint, pointing up). Keeping these signs straight is the whole game.

Figure — Chain rule for multivariable functions — all cases

Cell D — a zero input


Cell E — degenerate (inputs collapse to the same variable)


Cell F — explicit reappearance ( direct and through )


Cell G — limiting behaviour


Cell H — real-world word problem (units)


Cell I — exam twist: Jacobian / matrix form

First, two pieces of notation, each defined before use.

The summation symbol . The sign is shorthand for "add up the terms as the counter runs from to ": it just means . We use it because the chain-rule "add over all paths" is exactly such a running sum, one term per intermediate variable .

The Jacobian matrix . A Jacobian matrix is a table that collects all the first partials of a vector-valued map into a grid: row is "the -th output", column is "with respect to the -th input". We write it . For a map ,

The deep fact (proved in the parent note): composing two maps chains their Jacobians by matrix multiplication, . And matrix multiplication is exactly "sum over paths": entry of the product is — the sum, over every intermediate variable , of "outer rate through " times "inner rate to ". That sum-over- is the tree's paths added up. The figure shows this: the inner map pushes an input change into the intermediate slots, and the outer map's rows gather those pushes.


Recap

Recall Which cell was hardest, and why?

Cell E (degenerate) and Cell F (explicit reappearance) trip most people. The number of paths in the tree never shrinks just because two inputs equal the same variable ::: true — sum all paths regardless In with depending on , how many terms? ::: three — two indirect plus one explicit


Connections