The Multivariable Chain Rule and Jacobians
How rates of change pass through functions of several variables, organised as a product of Jacobian matrices.
Needs a step first: 12
If depends on and , and both depend on , then : add the contributions along every path. For a map from variables to , the Jacobian is the matrix of all partial derivatives, the best linear approximation to the map near a point, and the chain rule says the Jacobian of a composition is the product of the Jacobians. Its determinant measures how the map scales area or volume, which is why it appears when changing variables in Multiple Integrals.
Where it shows up: Backpropagation multiplies Jacobians from the loss back to the weights, and Lagrangian mechanics changes coordinates with the same rule.
How to hold it: In your head
Draw the dependency tree and see the chain rule as a sum over its paths, and see the Jacobian as the best linear approximation, so composing maps means multiplying matrices.
What knowing it looks like
- Draw the dependency tree for a composite function and write the chain rule as a sum over its paths.
- Compute the Jacobian matrix of a map such as polar to Cartesian coordinates, and its determinant.
- Explain why the Jacobian of a composition is a matrix product, and check the shapes match.
Test yourself
For , : (a) find the Jacobian matrix and its determinant; (b) for , use the chain rule to find .
Show the worked answer
Needs a step first: 12
Learn it with an AI
Copy this prompt into any AI assistant. It will take you through step by step at your level and finish with the test above.
Be my maths tutor. I'm learning "The Multivariable Chain Rule and Jacobians" (Undergraduate I tier): How rates of change pass through functions of several variables, organised as a product of Jacobian matrices.
I already know: Partial Derivatives and the Gradient, Matrices as Transformations.
Teach it Socratically: first ask what I already know; then explain the core idea with one concrete example and why it's true; then give me three problems, one at a time, easy to hard. Wait for my answer, check every step, and point out mistakes without giving the answer away.
Finish by testing me with this: For $x = r\cos\theta$, $y = r\sin\theta$: (a) find the Jacobian matrix $\frac{\partial(x, y)}{\partial(r, \theta)}$ and its determinant; (b) for $f(x, y) = x^2 + y^2$, use the chain rule to find $\frac{\partial f}{\partial r}$.
Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.Needs first
- Partial Derivatives and the GradientDerivatives of a function of several variables, taken one variable at a time, and the gradient vector that collects them.Undergraduate I · Multivariable & Vector Calculus
- Matrices as TransformationsA matrix is a rule that moves every vector in a straight-line-preserving way; its columns say where the basis vectors land.Core · Linear Algebra
Leads to
- Lagrangian and Hamiltonian MechanicsMechanics rewritten from energies: the path a system takes makes the action stationary, and the Hamiltonian evolves positions and momenta.Undergraduate II · Physics
- BackpropagationComputing the gradient of the loss with respect to every weight by applying the chain rule backwards through the network, layer by layer.Frontier · Machine Learning
On the way to
Recommended
- OpenStax CalculusOpenStax, Rice University · BookA free, peer-reviewed calculus textbook in three volumes, from limits through series to vectors and multiple integrals, with worked examples and answers.
- Khan Academy: Multivariable CalculusKhan Academy · CourseFree, ad-free videos and exercises on partial derivatives, gradients, multiple integrals, divergence, curl and Stokes' theorem, taught largely by Grant Sanderson of 3Blue1Brown.
- Mathematics for Machine LearningDeisenroth, Faisal and Ong (Cambridge University Press) · BookA free book that gathers exactly the linear algebra, vector calculus, probability and optimisation machine learning uses, then applies them to regression, PCA and classification.
- 宋浩老师官方宋浩(山东财经大学) · Videos · 中文Full university courses in calculus, linear algebra and probability by a Shandong University of Finance and Economics lecturer, clear and good-humoured; a new calculus series came out in October 2026.