The multivariable chain rule, explained with a tree diagram
5 min read
Short answer
If and both and depend on , then Draw a tree from to , multiply the derivatives along each path, and add the paths.
Why every path counts
Changing moves both and , and each of them changes . The total change in is the sum of the two effects: the effect through is and the effect through is . That is the whole rule.
Two inner variables
If and depend on two variables , draw the same tree and use partial derivatives at the last step: The rule is always: one product per path from the top variable to the one you are differentiating by.
Worked example
Let with and . Find and evaluate it at .
The partials are and . The inner derivatives are and . Then At : , , so .
Check by substituting first: , so , the same ✓.
Try it yourself
Let with and . Find at .
Show the answer
. At this is . (Direct check: gives the same derivative.)
Keep going with practice
The chain rule for several variables is part of Vidi's Multivariable & Vector Calculus course, with step-by-step graded practice.