14.138 min read
Two Underlying Variables
Another key special case: depends on two scalar variables, and is scalar output. Here , .
The Jacobian of is a matrix. The chain rule gives the Jacobian of :
In coordinates: and . These are the two components of the gradient of with respect to .
Formal View
Theorem 14.8 — Chain Rule: Two Underlying Variables
For with and :
where partial derivatives of are evaluated at .
Why This Matters
The two-underlying-variable case is the core of partial differentiation for composed functions.
- Temperature in a medium: depends on position, which depends on parameters
- Reparametrization: rewriting a function in different coordinates
- Automatic differentiation with two parameters (e.g., bivariate polynomial fitting)
Quiz
Question 1
For , the partial derivative is:
Question 2
For , the gradient is the column vector of partial derivatives and .
Common Mistakes
- Forgetting to compute both and — the chain rule gives a gradient, not just one partial.
- Misidentifying the partial derivatives of inner functions when they depend on both and .