Math101Chain Rule in Several Variables
A rigorous, example-driven guide to chain rule in several variables, including hypotheses, method choice, verification, and practice.
The central idea
If $f:\mathbb R^m\to\mathbb R^p$ is differentiable at $g(a)$ and $g:\mathbb R^n\to\mathbb R^m$ is differentiable at $a$, then $D(f\circ g)(a)=Df(g(a))Dg(a)$, a $p\times n$ matrix. For scalar $z=f(x(t),y(t))$, this becomes $dz/dt=f_xx'+f_yy'$.
Definitions, hypotheses, and notation
Differentiability, not merely existence of partial derivatives, is the correct hypothesis for the multivariable chain rule. Continuous partial derivatives near the point are a common sufficient condition. In coordinate changes, the Jacobian maps small input displacements to small output displacements; its determinant instead measures local signed volume scaling when square.
For a scalar outer function, $Df$ is a row matrix under one convention while the gradient is a column vector. The formula $d(f\circ g)/dt=\nabla f(g(t))\cdot g'(t)$ avoids ambiguity, but matrix products must retain a consistent convention.
Conceptual meaning
The derivative is a linear map, and composing functions composes their best local linear maps in reverse reading order. Matrix dimensions enforce which variables depend on which; a dependency tree is the scalar version of the same multiplication.
A dependable method and decision rule
- List intermediate and independent variables with their dimensions.
- Evaluate outer partial derivatives at the current intermediate point.
- Compute derivatives of each intermediate variable.
- Sum over every dependency path or multiply Jacobians in compatible order.
- Check the final derivative shape matches output dimension by input dimension.
