Change of variables and the Jacobian
Statement
Let \(U, V \subseteq \mathbb{R}^n\) be open sets and let \(\varphi : U \to V\) be a bijection of class \(C^1\) whose inverse \(\varphi^{-1} : V \to U\) is also \(C^1\) (i.e. \(\varphi\) is a \(C^1\)-diffeomorphism). Write \(D\varphi(u)\) for the Jacobian matrix of \(\varphi\) at \(u \in U\) and \(J_\varphi(u) = \det D\varphi(u)\) for its Jacobian determinant, and suppose \(J_\varphi(u) \neq 0\) for every \(u \in U\). Then for every Lebesgue-measurable set \(E \subseteq U\) and every function \(f : \varphi(E) \to \mathbb{R}\) that is either non-negative measurable or Lebesgue-integrable on \(\varphi(E)\), \[ \int_{\varphi(E)} f(x)\,dx \;=\; \int_{E} f(\varphi(u))\,\lvert J_\varphi(u) \rvert\,du . \] In particular, taking \(f \equiv 1\), the \(n\)-dimensional volume of \(\varphi(E)\) is \(\operatorname{vol}(\varphi(E)) = \int_E \lvert J_\varphi(u)\rvert\,du\).
Why it matters
Integrals that are intractable in Cartesian coordinates — over disks, balls, ellipsoids, or regions bounded by curved surfaces — become elementary once transported to polar, cylindrical, spherical, or problem-adapted coordinates. The change-of-variables theorem is the rigorous engine behind every such substitution: it tells you exactly what correction factor (the Jacobian) compensates for the fact that a smooth map stretches and rotates infinitesimal volume elements non-uniformly.
Beyond computation, the theorem is the bridge between the naive calculus notion of "\(dx\,dy \to r\,dr\,d\theta\)" and the measure-theoretic fact that pushing forward Lebesgue measure by a diffeomorphism yields another measure absolutely continuous with respect to Lebesgue measure, with density \(\lvert J_\varphi\rvert\). This is the finite-dimensional shadow of ideas that reappear in probability (change of variables for densities), differential geometry (pullback of volume forms), and physics (Jacobians in statistical mechanics and general relativity).
Hypotheses
Proof
Result
Reading. To integrate over a region \(\varphi(E)\) described awkwardly in \(x\)-coordinates, pull everything back to the \(u\)-coordinates where \(E\) may be a box or other simple shape: replace \(x\) by \(\varphi(u)\), and replace the volume element \(dx\) by \(\lvert J_\varphi(u)\rvert\,du\) — the local volume-scaling factor of the coordinate change.
Scope. Applies to any \(C^1\)-diffeomorphism between open subsets of \(\mathbb{R}^n\) (any finite \(n \ge 1\); for \(n=1\) it reduces to ordinary \(u\)-substitution with \(\lvert J_\varphi\rvert = \lvert \varphi'\rvert\)). Does not by itself apply to maps that fail to be injective, fail to be \(C^1\), or degenerate (\(J_\varphi = 0\)) somewhere on the domain of integration; such cases require decomposing the domain first (see Fails without).
Corollaries & converses
- Polar/cylindrical/spherical coordinates are the standard corollaries: e.g. for \(\varphi(r,\theta)=(r\cos\theta,r\sin\theta)\) on \((0,\infty)\times(0,2\pi)\), \(J_\varphi = r\), recovering \(dx\,dy = r\,dr\,d\theta\).
- Composability: if \(\varphi = \psi \circ \chi\) is a composite diffeomorphism, the chain rule \(D\varphi = D\psi \cdot D\chi\) and multiplicativity of \(\det\) give \(J_\varphi(u) = J_\psi(\chi(u))\,J_\chi(u)\), so the theorem is consistent with performing a change of variables in stages.
- Invariance of measure zero: \(C^1\)-diffeomorphisms map Lebesgue-null sets to Lebesgue-null sets (immediate from the volume identity with \(\operatorname{vol}(E)=0\)), which is why "almost everywhere" statements transport across smooth coordinate changes.
- Converse (does it hold)? If a bijection \(\varphi:U\to V\) merely satisfies \(\operatorname{vol}(\varphi(E)) = \int_E g(u)\,du\) for some function \(g\) and all measurable \(E\), it does not follow that \(\varphi\) is differentiable with \(g = \lvert J_\varphi\rvert\); e.g. exotic measure-preserving bijections (not even continuous) exist with \(g\equiv 1\). The theorem is a one-way implication: smoothness \(\Rightarrow\) the Jacobian formula, not the reverse.
Fails without
- Drop injectivity: \(\varphi(u) = u^2\) on \(U=(-1,1) \to V=[0,1)\) is \(2\)-to-\(1\) except at \(0\). Naively computing \(\int_{-1}^{1} f(u^2)\,\lvert 2u\rvert\,du\) does not equal \(\int_0^1 f(x)\,dx\); it equals \(2\int_0^1 f(x)\,dx\), double-counting because each \(x \gt 0\) has two preimages.
- Drop \(J_\varphi \neq 0\) everywhere: the polar map \(\varphi(r,\theta) = (r\cos\theta, r\sin\theta)\) has \(J_\varphi(0,\theta) = 0\) along \(r=0\); this set has measure zero so causes no error there, but a genuinely bad example is \(\varphi(u,v) = (u, uv)\) on \(\mathbb{R}^2\), which collapses the line \(u=0\) to the single point \((0,0)\) — the map fails to be injective near \(u=0\) and the "inverse" is not \(C^1\) there, so the formula cannot be applied across \(u=0\) without splitting the domain.
- Drop \(C^1\) regularity: the Cantor function (devil's staircase) extended to a homeomorphism of \([0,1]\) is monotonic and continuous with derivative \(0\) almost everywhere, yet maps the Cantor set (measure \(0\)) onto a set of positive structure in the range in a way that breaks the naive "integrate the derivative" heuristic; more simply, without \(C^1\) the Jacobian may not exist on a large set and the area formula requires the weaker Rademacher/Lipschitz machinery instead of pointwise Riemann-sum reasoning used above.
Common errors
- Forgetting the absolute value: writing \(dx = J_\varphi\,du\) instead of \(\lvert J_\varphi\rvert\,du\), which can silently introduce a wrong overall sign when \(J_\varphi \lt 0\) (e.g. an orientation-reversing map).
- Computing the Jacobian of \(\varphi\) but evaluating it at \(x\) instead of at \(u = \varphi^{-1}(x)\), or conflating \(J_\varphi\) with \(J_{\varphi^{-1}} = 1/J_\varphi\) (mixing up which coordinates the determinant is taken with respect to).
- Applying the polar/spherical Jacobian formula over a \(\theta\)-range wider than \(2\pi\) (or a \(\varphi\)-range in spherical coordinates outside \([0,\pi]\)), silently violating injectivity and over-counting volume.
- Forgetting to transform the region \(E\) itself, e.g. keeping Cartesian inequality bounds on \(x,y\) while integrating in \(r,\theta\), instead of re-deriving the bounds for \(E = \varphi^{-1}(\text{region})\).
- Treating the formula as valid at isolated critical points where \(J_\varphi=0\) (e.g. the origin in polar coordinates) as if special care were needed there, when in fact a measure-zero set of such points is harmless and can simply be included in the domain without altering any integral.
Discussion
The change-of-variables formula is often first met as a one-dimensional "trick" (\(u\)-substitution), but its structural content is genuinely multivariable: it says that a smooth invertible map's local volume-distortion factor is exactly \(\lvert \det D\varphi\rvert\), the absolute value of the determinant of its derivative. This is the same determinant that measures how a linear map scales areas/volumes and orientation, so the theorem can be read as "linearise, apply linear algebra, then take a limit" — precisely the strategy used in the proof above via Steps 3–6.
Historically, Jacobi's determinant (1830s–40s) arose from exactly this question of transforming multiple integrals, generalising Euler's and Lagrange's earlier work on double integrals in curvilinear coordinates. The rigorous measure-theoretic version proved above (via cube-covering Riemann sums bootstrapped to Lebesgue integrals) is essentially the 19th-century argument made precise with 20th-century measure theory; a fully general version — the area formula — extends the theorem to merely Lipschitz (not necessarily \(C^1\), not necessarily injective, using multiplicity) maps between rectifiable sets, at the cost of replacing \(D\varphi\) by an almost-everywhere-defined derivative guaranteed by Rademacher's theorem.
In differential-geometric language, the theorem is the statement that pullback of the standard volume form \(dx_1 \wedge \cdots \wedge dx_n\) under a diffeomorphism \(\varphi\) equals \(J_\varphi(u)\,du_1\wedge\cdots\wedge du_n\) — i.e. \(\varphi^*(dx) = J_\varphi\,du\) as differential \(n\)-forms, with the sign of \(J_\varphi\) tracking whether \(\varphi\) preserves or reverses orientation, while the integral of the unsigned volume form uses \(\lvert J_\varphi\rvert\). This reformulation is what generalises the theorem from open subsets of \(\mathbb{R}^n\) to integration over smooth manifolds, where there is no global coordinate system and one must patch together such local Jacobian factors via a partition of unity.
Common misconception: students often believe the Jacobian "measures how the function \(f\) changes"; in fact \(J_\varphi\) depends only on the coordinate map \(\varphi\), never on the integrand \(f\) — it is a purely geometric correction for how the coordinate grid itself is stretched, applied uniformly regardless of what is being integrated.
Worked examples
Reading. Squaring the 1-D Gaussian integral produces exactly the 2-D integral computed here (by Fubini and separability of \(e^{-x^2-y^2}=e^{-x^2}e^{-y^2}\)), so \(\left(\int e^{-x^2}dx\right)^2 = \pi\), giving the celebrated value \(\sqrt{\pi}\).
Reading. The ellipsoid's volume is the ball's volume scaled by the product of the three semi-axis lengths — exactly what the constant Jacobian \(abc\) of the diagonal stretching map predicts.
Problems
- Use the change of variables \(x=u+v,\ y=u-v\) to evaluate \(\iint_R (x^2-y^2)\,e^{xy}\,\text{—} \) more precisely, evaluate \(\iint_R (x+y)\,dx\,dy\) where \(R\) is the square with vertices \((0,0),(1,1),(2,0),(1,-1)\).
Solution
The square \(R\) is exactly the image under \(\varphi(u,v)=(u+v,u-v)\) of the unit square \(U=[0,1]\times[0,1]\) in \((u,v)\) — check the four vertices: \((0,0)\mapsto(0,0)\), \((1,0)\mapsto(1,1)\), \((1,1)\mapsto(2,0)\), \((0,1)\mapsto(1,-1)\), matching \(R\)'s vertices in order. \(\varphi\) is linear with \(J_\varphi = \det\begin{pmatrix}1&1\\1&-1\end{pmatrix} = -2\), so \(\lvert J_\varphi\rvert = 2\), constant and nonzero — the hypotheses hold. Then \(x+y = 2u\), so \[ \iint_R (x+y)\,dx\,dy = \int_0^1\!\!\int_0^1 2u \cdot 2\,du\,dv = 4\int_0^1 u\,du \int_0^1 dv = 4\cdot\tfrac12\cdot 1 = 2. \] - Explain precisely why applying \(\varphi(r,\theta)=(r\cos\theta,r\sin\theta)\) with \(\theta\) ranging over \((0,4\pi)\) instead of \((0,2\pi)\) to compute the area of the unit disk gives \(2\pi\) instead of \(\pi\), citing which hypothesis of the theorem fails.
Solution
The theorem requires \(\varphi\) to be a bijection \(U \to V\). On \(U = (0,1)\times(0,4\pi)\), the map \(\varphi(r,\theta)=(r\cos\theta,r\sin\theta)\) is exactly \(2\)-to-\(1\) onto the punctured disk \(V\), since \(\theta\) and \(\theta+2\pi\) give the same point. Injectivity fails, so the theorem's hypotheses are not met, and the formula \(\operatorname{vol}(\varphi(E)) = \int_E \lvert J_\varphi\rvert\) is invalid as stated. Computing anyway, \(\int_0^{4\pi}\int_0^1 r\,dr\,d\theta = 4\pi \cdot \tfrac12 = 2\pi\), double the correct area \(\pi\) of the unit disk, because every point of the disk (except the centre and one ray) is counted with multiplicity \(2\) — consistent with the "Fails without injectivity" counterexample discussed above. - Let \(\varphi(u,v) = (u^2 - v^2, 2uv)\) (the complex map \(z \mapsto z^2\) in real coordinates) restricted to \(U = \{(u,v): u \gt 0\}\). Show \(\varphi\) satisfies the hypotheses of the theorem on \(U\), compute \(J_\varphi\), and use it to find the area of the image of the quarter-disk \(Q=\{u^2+v^2\le 1, u\gt 0, v\gt 0\}\).
Solution
\(D\varphi = \begin{pmatrix}2u & -2v\\ 2v & 2u\end{pmatrix}\), so \(J_\varphi = 4u^2+4v^2 = 4(u^2+v^2)\), which is nonzero everywhere on \(U\) (since \(u\gt0\) forces \((u,v)\neq(0,0)\)); \(\varphi\) is \(C^1\) and, in complex notation \(z=u+iv\), \(\varphi\) is \(z\mapsto z^2\) which is injective on the right half-plane \(\{\operatorname{Re}(z)\gt 0\}\) because \(z^2=w^2 \Rightarrow z=\pm w\) and only one of \(\pm w\) lies in the right half-plane; its inverse (principal square root) is \(C^1\) there since \(J_\varphi \neq 0\). All hypotheses hold. For \(Q\) (a quarter of the unit disk, \(u,v\gt0\)), by the theorem, \[ \operatorname{Area}(\varphi(Q)) = \int_Q 4(u^2+v^2)\,du\,dv = 4\int_0^{\pi/2}\!\!\int_0^1 r^2\cdot r\,dr\,d\theta = 4\cdot\frac{\pi}{2}\cdot\frac{1}{4} = \frac{\pi}{2}, \] using polar coordinates for the inner integral (itself a second, nested application of the change-of-variables theorem). - A student claims: "since \(J_\varphi(0,0)=0\) for the polar coordinate map at the origin, the change-of-variables formula cannot be used to compute the area of the full unit disk \(\{x^2+y^2 \le 1\}\)." Is the student correct? Justify your answer carefully using the theorem's hypotheses.
Solution
The student is incorrect, though the concern is reasonable at first glance. The theorem requires \(J_\varphi \neq 0\) on the open set \(U\), but the origin \(r=0\) is not actually part of the open parameter domain \(U=(0,1)\times(0,2\pi)\) used to parametrise the disk minus one radius; \(r=0\) is a boundary point of \(U\), not an interior point where the map needs to be a diffeomorphism. The single missing radius (\(\theta=0\)) and the origin together form a set of Lebesgue measure zero in the target, and removing a measure-zero set from a region does not change its integral or its volume. So one applies the theorem rigorously on the open set \(U=(0,1)\times(0,2\pi)\) (where all hypotheses genuinely hold), obtaining \(\int_U r\,dr\,d\theta = \pi\), and this equals the area of the full closed disk because the discarded boundary (the segment \(\theta=0\) together with the point \(r=0\)) has measure zero. So the formula is used correctly, just on a slightly smaller open set than the full disk, with no loss of information about the area. - Let \(\varphi:\mathbb{R}^n\to\mathbb{R}^n\) be linear and invertible, \(\varphi(u)=Au\) for an invertible matrix \(A\). Using the change-of-variables theorem, prove that for the standard multivariate Gaussian density transform, if \(X\) has density \(p(x) = \frac{1}{(2\pi)^{n/2}}e^{-\lvert x\rvert^2/2}\) on \(\mathbb{R}^n\) and \(Y=AX\), then \(Y\) has density \(q(y) = \frac{1}{\lvert\det A\rvert(2\pi)^{n/2}}e^{-\lvert A^{-1}y\rvert^2/2}\).
Solution
For any measurable set \(E \subseteq \mathbb{R}^n\), \(\mathbb{P}(Y \in E) = \mathbb{P}(AX\in E) = \mathbb{P}(X \in A^{-1}E) = \int_{A^{-1}E} p(x)\,dx\). Apply the change-of-variables theorem with \(\varphi(u) = Au\) (linear, hence \(C^1\), bijective since \(A\) is invertible, with constant nonzero Jacobian \(J_\varphi = \det A\)) and the set \(A^{-1}E\), so that \(\varphi(A^{-1}E) = E\); precisely, take \(E' = A^{-1}E\) as the "u-domain" set and note \(\int_{E'} p(u)\,du = \int_{\varphi(E')} p(\varphi^{-1}(y))\,\lvert J_{\varphi^{-1}}(y)\rvert\,dy\) by applying the theorem to \(\varphi^{-1}\) (also linear, invertible, \(C^1\), Jacobian \(\det A^{-1} = 1/\det A\)) mapping \(E=\varphi(E')\) back to \(E'\). This gives \[ \mathbb{P}(Y\in E) = \int_{A^{-1}E} p(x)\,dx = \int_E p(A^{-1}y)\,\frac{1}{\lvert \det A\rvert}\,dy. \] Since this holds for every measurable \(E\), the integrand \(q(y) = \frac{1}{\lvert\det A\rvert} p(A^{-1}y) = \frac{1}{\lvert\det A\rvert(2\pi)^{n/2}} e^{-\lvert A^{-1}y\rvert^2/2}\) is exactly the density of \(Y\), as claimed.