Foundations to Frontier
Tests
A. Mathematical Foundations › A3 Calculus and Analysis › Multivariable calculus

The Jacobian Matrix and Determinant

For maps with many inputs and many outputs, the derivative is a matrix, the Jacobian. It is the best linear approximation, its determinant measures how areas and volumes stretch, and it powers Newton's method for systems, robot velocity control and singularity analysis, and normalizing flows.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

A stretchy sheet

Draw a grid of little squares on a rubber sheet, then stretch and twist the sheet. Each tiny square becomes a tiny tilted parallelogram. A table of four numbers describes how one tiny square changes: how much it stretches along each direction and how it tilts. That table is the Jacobian.

One number from it, the determinant, says how much the little square’s area grew or shrank. If it’s 0, the square got squashed completely flat.

The Jacobian: how a map stretches a tiny square
→ F →
J = [[0.000, -1.100], [1.000, 0.000]] · det J = 1.1000 → small areas scale by |det J| = 1.100
Orange = a small square and its true image; dashed green = the parallelogram predicted by J. They match closely: that is what "J is the best linear approximation" means. det J = r: patches far from the origin get stretched more. Hence dA = r dr dθ.
Why engineers care

A robot arm’s Jacobian converts joint speeds into hand speed. At certain poses its determinant becomes zero, for example when the arm is fully stretched out. There the hand can’t move in some direction at all, however fast the motors turn. Robot controllers watch the Jacobian to avoid these “singularities”.

📝 Quick check (Level 0)
0/3 answered
  1. 1. A map doubles every length. The area of a small square grows by…
  2. 2. A map squashes the sheet onto a line. The area factor is…
  3. 3. A pure rotation changes area by a factor of…

Level 1: Beginner

★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.

Definition

For F:Rn→RmF:\mathbb R^n\to\mathbb R^m with components F1,…,FmF_1,\ldots,F_m:

JF=(∂F1∂x1⋯∂F1∂xn⋮⋮∂Fm∂x1⋯∂Fm∂xn)∈Rm×nJ_F = \begin{pmatrix}\frac{\partial F_1}{\partial x_1}&\cdots&\frac{\partial F_1}{\partial x_n}\\\vdots&&\vdots\\\frac{\partial F_m}{\partial x_1}&\cdots&\frac{\partial F_m}{\partial x_n}\end{pmatrix}\in\mathbb R^{m\times n}

Row ii is the gradient of FiF_i. Column jj is how all outputs respond to input jj.

Example. F(x,y)=(x2y, 5x+sin⁡y)F(x,y) = (x^2y,\ 5x + \sin y):

JF=(2xyx25cos⁡y)J_F = \begin{pmatrix}2xy&x^2\\5&\cos y\end{pmatrix}

Polar coordinates. (r,θ)↦(rcos⁡θ,rsin⁡θ)(r,\theta)\mapsto(r\cos\theta, r\sin\theta) has J=(cos⁡θ−rsin⁡θsin⁡θrcos⁡θ)J = \begin{pmatrix}\cos\theta&-r\sin\theta\\\sin\theta&r\cos\theta\end{pmatrix} and det⁡J=r\det J = r.

📝 Quick check (Level 1)
0/3 answered
  1. 1. det J of F = (2x + 3y, x − y)?
  2. 2. The Jacobian of F: ℝ³ → ℝ² has how many entries?
  3. 3. det J of the polar map at r = 3?

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.

What the Jacobian tells you

Fact Formula Meaning
linearization F(x+h)≈F(x)+JhF(\mathbf x + \mathbf h)\approx F(\mathbf x) + J\mathbf h locally, every smooth map is a matrix
area/volume scale ∣det⁡J∣\lvert\det J\rvert a tiny region’s size gets multiplied by this (A2.2-2)
orientation sign⁡det⁡J\operatorname{sign}\det J negative means mirror-flipped
singular det⁡J=0\det J = 0 some direction is crushed, and there’s no local inverse
chain rule JF∘G=JF JGJ_{F\circ G} = J_F\,J_G derivatives of compositions multiply

Newton’s method for systems

To solve F(x)=0F(\mathbf x) = \mathbf 0, replace FF by its linearization and solve that:

xk+1=xk−JF(xk)−1F(xk)\mathbf x_{k+1} = \mathbf x_k - J_F(\mathbf x_k)^{-1}F(\mathbf x_k)

Near a root with invertible JJ, the number of correct digits roughly doubles each step. This is used to solve kinematic constraints, power-flow equations, implicit ODE steps and equilibria. Newton’s method fails or slows down where JJ is nearly singular.

🐍 Exercise 1: numerical Jacobians and Newton's method for systems
Build a finite-difference Jacobian. Use Newton to intersect the circle x² + y² = 4 with the line x − y = 1, and observe quadratic convergence.
📝 Quick check (Level 2)
0/3 answered
  1. 1. A patch of area 0.01 maps through det J = 3. The new area is…
  2. 2. For a 2-link arm, det J = l₁l₂ sin θ₂. At θ₂ = 0 it is…
  3. 3. det J < 0 means the map…

Level 3: Advanced

★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.

Why |det J| measures local area

A tiny square with sides he1h\mathbf e_1 and he2h\mathbf e_2 maps, to first order, to the parallelogram with sides hJe1hJ\mathbf e_1 and hJe2hJ\mathbf e_2, the columns of JJ scaled by hh. Its area is h2∣det⁡J∣h^2\lvert\det J\rvert (A2.2-2). The curved image differs only by o(h2)o(h^2). Summing over many tiny squares gives the change-of-variables formula for integrals (A3.2-8).

The inverse function theorem

Theorem

If FF is C1C^1 near p\mathbf p and det⁡JF(p)≠0\det J_F(\mathbf p)\ne0, then FF has a C1C^1 inverse near F(p)F(\mathbf p), and JF−1(F(p))=JF(p)−1J_{F^{-1}}(F(\mathbf p)) = J_F(\mathbf p)^{-1}.

Proof sketch. Newton-like iteration x↦x−JF(p)−1(F(x)−w)\mathbf x\mapsto\mathbf x - J_F(\mathbf p)^{-1}(F(\mathbf x) - \mathbf w) is a contraction near p\mathbf p (because JFJ_F is continuous), so it has a unique fixed point (Banach, A3.1-4). The derivative formula follows from the chain rule applied to F−1(F(x))=xF^{-1}(F(\mathbf x)) = \mathbf x. ∎ This is local only: (r,θ)↦(r,\theta)\mapsto polar is locally invertible for r>0r>0, but not globally, since θ\theta and θ+2π\theta + 2\pi give the same point.

Determinants of compositions

det⁡JF∘G=det⁡(JFJG)=det⁡JF⋅det⁡JG\det J_{F\circ G} = \det(J_FJ_G) = \det J_F\cdot\det J_G. Volume factors multiply through a chain of maps, and log-volume factors add (Practice Code 5).

Exercise 3.1: Compute the Jacobian determinant of spherical coordinates

(r,φ,θ)↦(rsin⁡φcos⁡θ, rsin⁡φsin⁡θ, rcos⁡φ)(r,\varphi,\theta)\mapsto(r\sin\varphi\cos\theta,\ r\sin\varphi\sin\theta,\ r\cos\varphi) has det⁡J=r2sin⁡φ\det J = r^2\sin\varphi. That’s the familiar volume element dV=r2sin⁡φ dr dφ dθdV = r^2\sin\varphi\,dr\,d\varphi\,d\theta.

📝 Quick check (Level 3)
0/3 answered
  1. 1. J_F(p) = diag(2, 4). The (2, 2) entry of J of F⁻¹ at F(p)?
  2. 2. det J_F = 2 and det J_G = −3, so det J_{F∘G} = ?
  3. 3. The inverse function theorem gives an inverse that is…

Level 4: Expert

★★★★★ Expert⏱ 45 minResearchers: original papers and open problems.

Manipulability and singularities

For a robot arm, p˙=J(θ)θ˙\dot{\mathbf p} = J(\boldsymbol\theta)\dot{\boldsymbol\theta}. Yoshikawa’s manipulability w=det⁡(JJ⊤)w = \sqrt{\det(JJ^\top)} (1985) measures how freely the hand can move in all directions. For a planar 2-link arm, w=l1l2∣sin⁡θ2∣w = l_1l_2\lvert\sin\theta_2\rvert. It is largest with the elbow at 90° and zero when the arm is straight or folded. Motion planners maximize ww (or the smallest singular value of JJ, A2.3-5) to stay away from singularities, where inverse kinematics blows up (A2.3-7).

🐍 Exercise 2 (research): manipulability and Newton IK near a singularity
Compute a 2-link arm's Jacobian and manipulability over all elbow angles (peak at 90°, zero at 0° and 180°). Compare Newton IK iterations for a comfortable target and an almost-straight-arm target.

Jacobians across research

  • Normalizing flows (Rezende and Mohamed, 2015; Dinh et al., 2017; Papamakarios et al., 2021) transform a Gaussian through invertible layers. The density follows log⁡p(x)=log⁡p(z)−∑klog⁡∣det⁡Jk∣\log p(\mathbf x) = \log p(\mathbf z) - \sum_k\log\lvert\det J_k\rvert, so layers are designed (coupling, triangular, autoregressive) to make det⁡J\det J cheap.
  • Robustness and stability. Penalizing the input–output Jacobian norm makes classifiers less sensitive to perturbations (Hoffman, Roberts and Yaida, 2019). The eigenvalues of the Jacobian of a dynamical system at an equilibrium decide its stability (A2.3-1).
  • Jacobian-vector products (A3.3) let autodiff use JJ without ever forming it, in forward mode (JVP) or reverse mode (VJP).
  • Visual servoing. The “image Jacobian” maps camera or robot motion to how image features move, so robots steer by what they see (Hutchinson, Hager and Corke, 1996).

References

  1. C. G. J. Jacobi (1841). “De determinantibus functionalibus.” Journal für die reine und angewandte Mathematik, 22.
  2. T. Yoshikawa (1985). “Manipulability of robotic mechanisms.” International Journal of Robotics Research, 4(2).
  3. S. Hutchinson, G. Hager, P. Corke (1996). “A tutorial on visual servo control.” IEEE Transactions on Robotics and Automation, 12(5).
  4. D. Rezende, S. Mohamed (2015). “Variational inference with normalizing flows.” ICML.
  5. L. Dinh, J. Sohl-Dickstein, S. Bengio (2017). “Density estimation using Real NVP.” ICLR.
  6. J. Hoffman, D. Roberts, S. Yaida (2019). “Robust learning with Jacobian regularization.” arXiv:1908.02729.
  7. G. Papamakarios, E. Nalisnick, D. Rezende, S. Mohamed, B. Lakshminarayanan (2021). “Normalizing flows for probabilistic modeling and inference.” JMLR, 22.
  8. K. Lynch, F. Park (2017). Modern Robotics. Cambridge University Press. Chapter 5.