The Multivariable Chain Rule
A curve supplies inputs to a scalar response. How fast does the response change along the curve? This chapter composes derivative maps and checks matrix sizes and evaluation points.
- Multivariable chain rule: The derivative of a composition is the composition of derivatives, represented by ordered Jacobian multiplication.
Follow a response around a circle
Reuse and . Direct substitution gives
By the chain rule this same derivative is . At zero, the gradient is and velocity is , giving rate .
Compose the linear approximations
If is differentiable at and is differentiable on an open neighborhood at , then
The left matrix factor has size if has outputs; the right factor is . The result is . Matrix action starts on the right, matching function composition.
To see why, write . A linear bound on gives . Insert this increment into the outer approximation. Both the inner remainder and the outer remainder become , leaving the product of derivatives.
Keep a variable-dependence map
If with and , then
The derivatives of are evaluated at the current . Partial notation is only meaningful after specifying which variables are held fixed. A dependency diagram can help, but the matrix formula supplies the complete ordering.
Basic practice
Prepare
Reuse Q and the unit circle. Keep radians and column-vector conventions.
Record assumed inputs, predictions, and exact calculations separately. If you use software, label rounded outputs; no physical measurement is implied.
Predict
At t = 0, is the rate determined by the gradient at (1, 1) or at r(0)?
Execute
- Differentiate Q(r(t)) by direct substitution.
- Multiply DQ(r(t)) by r′(t) and compare.
- Evaluate both routes at t = 0 and t = π/4, checking the intermediate points.
Observe and record
| Case or quantity | Prediction | Exact result or argument | Error or software check |
|---|---|---|---|
| Direct formula | |||
| Matrix chain rule | |||
| t = 0 and π/4 |
Check after working: Both routes give cos(2t), hence rates 1 and 0. At t = 0 the evaluation point is (1, 0), not the recurring point (1, 1).
Optional extension
Use the vector map F from the previous chapter as the outer map and calculate D(F ∘ r).
Keep and continue
Keep the product order and evaluation-point labels. Next, differentiate once more to capture curvature.
Previous: The Jacobian and Total Derivative