Chain Rule with Three or More Variables
What you'll learn: How to apply the chain rule when a function depends on three or more variables, each of which depends on other variables.
The Core Idea
You've seen the chain rule work for functions along curves and for two-variable compositions. Now we extend it to handle situations where a function depends on three or more intermediate variables, each potentially depending on multiple independent variables.
If w = f(x, y, z) and each of x, y, and z depends on independent variables like s and t, then:
∂w/∂s = (∂f/∂x)(∂x/∂s) + (∂f/∂y)(∂y/∂s) + (∂f/∂z)(∂z/∂s)
∂w/∂t = (∂f/∂x)(∂x/∂t) + (∂f/∂y)(∂y/∂t) + (∂f/∂z)(∂z/∂t)
Each partial derivative with respect to an independent variable requires summing contributions from all intermediate variables.
How It Works
Think of this like a network of influences: changing s affects x, y, and z simultaneously, and each of those affects w. The total rate of change of w with respect to s is the sum of all these indirect pathways.
The tree diagram approach still applies: draw branches from w to each intermediate variable (x, y, z), then from each of those to the independent variables (s, t). For any path from w to an independent variable, multiply the partial derivatives along that path, then sum all paths.
For even more variables—say w = f(x, y, z, u) where all four depend on s—just add another term: + (∂f/∂u)(∂u/∂s).
Key Takeaway: The chain rule for three or more variables sums the contribution from each intermediate variable, multiplying the partial derivatives along each pathway from the dependent variable to the independent variable.