When we change variables in an integral, the little pieces of area change size. The Jacobian is the correction factor that keeps track of this.
In one sentence: the Jacobian determinant tells us how much a mapping stretches or shrinks area (or volume) near a point.
Two words, two meanings
- Jacobian matrix \(J\): the matrix of all first-order partial derivatives of the mapping. It is the multivariable version of the derivative \(f'(x)\), the best local linear approximation.
- Jacobian determinant \(\det J\): a single number from that matrix. It is the factor by which area (or volume) is scaled. A negative sign means the orientation is flipped, so we use the absolute value \(|\det J|\).
The 2D recipe
Suppose old coordinates \((x, y)\) are written in terms of new ones \((u, v)\). The Jacobian matrix is
\[ J = \begin{bmatrix} \dfrac{\partial x}{\partial u} & \dfrac{\partial x}{\partial v} \\[2ex] \dfrac{\partial y}{\partial u} & \dfrac{\partial y}{\partial v} \end{bmatrix} \]
and a tiny cell of area \(du\,dv\) becomes a cell of area \(|\det J|\,du\,dv\). This is the change-of-variables rule for integrals:
\[ \iint g(x, y)\, dx\, dy = \iint g\big(x(u,v),\, y(u,v)\big)\, |\det J|\, du\, dv \]
The same idea works in any dimension: \(n\) variables give an \(n \times n\) matrix.
Example 1: A linear map
Let
\[ x = 2u + v, \qquad y = u + 3v \]
Because the formulas are linear, the Jacobian is the same everywhere:
\[ J = \begin{bmatrix} 2 & 1 \\ 1 & 3 \end{bmatrix}, \qquad \det J = (2)(3) - (1)(1) = 5 \]
So the unit square with corners \((0,0)\), \((1,0)\), \((0,1)\) and \((1,1)\) becomes a parallelogram with corners \((0,0)\), \((2,1)\), \((1,3)\) and \((3,4)\). Its area is exactly \(5\) times larger, as the figure at the top shows.
We can let the computer do the determinant:
J <- matrix(c(2, 1,
1, 3), nrow = 2, byrow = TRUE)
det(J)[1] 5What it means for probability
Suppose \((U, V)\) has joint density \(f_{U,V}\), and we define \((X, Y)\) by the map above. The map makes the plane \(5\) times bigger, so the same probability is spread over \(5\) times the area. The density must therefore be divided by \(5\):
\[ f_{X,Y}(x, y) = \frac{1}{5}\, f_{U,V}\big(u(x,y),\, v(x,y)\big) \]
Dividing keeps the total probability equal to \(1\).
Example 2: Polar coordinates
Now take the map from polar to Cartesian coordinates:
\[ x = r\cos\theta, \qquad y = r\sin\theta \]
The four partial derivatives give
\[ J = \begin{bmatrix} \cos\theta & -r\sin\theta \\ \sin\theta & r\cos\theta \end{bmatrix} \]
and the determinant is
\[ \det J = r\cos^2\theta + r\sin^2\theta = r \]
So \(dx\,dy = r\,dr\,d\theta\). The factor \(r\) makes sense: a small patch with sides \(\Delta r\) and \(\Delta\theta\) is wider the farther it is from the origin, so its area is about \(r\,\Delta r\,\Delta\theta\).
This is exactly the factor we needed to prove that \(\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}\). Without the extra \(r\), the radial integral could not be solved. See the Gaussian integral and why \(\pi\) appears in the normal distribution.
Summary
- The Jacobian matrix collects all first partial derivatives of a mapping.
- Its determinant is the local area (volume) scaling factor.
- In integrals, multiply by \(|\det J|\) when changing variables.
- In probability, when a map stretches area by \(|\det J|\), the density is divided by \(|\det J|\) (as in Example 1).
- Polar coordinates have \(|\det J| = r\).
References
- Wikipedia, Jacobian matrix and determinant.