Change of Variables and the Jacobian

How does the area of a disc of radius rr become πr2\pi r^2 once you switch to polar coordinates? Why does a factor of rr suddenly appear inside the integral? Every student who computes ∬e−(x2+y2) dx dy\iint e^{-(x^2+y^2)}\,dx\,dy by switching to polar coordinates meets this mysterious extra factor. Every student who computes a triple integral in spherical coordinates meets its cousin ρ2sin⁡ϕ\rho^2\sin\phi. These factors are not bookkeeping tricks. They measure how a coordinate change distorts area and volume, point by point. The Jacobian determinant is precisely the local magnification factor of a smooth map. The Change of Variables Theorem says that to integrate correctly after a substitution, you must multiply by the absolute value of this factor. This is the multivariable descendant of the one-variable substitution rule ∫abf(g(x))g′(x) dx=∫g(a)g(b)f(u) du\int_a^b f(g(x))g'(x)\,dx = \int_{g(a)}^{g(b)} f(u)\,du. In one dimension, g′(x)g'(x) measures how gg stretches or compresses infinitesimal intervals near xx. In nn dimensions, the Jacobian determinant measures how a map stretches or compresses infinitesimal nn-dimensional volume. The sign of g′(x)g'(x) told us whether orientation flips (hence the absolute value when we drop the requirement a<ba<b). The sign of the Jacobian determinant plays the same role in higher dimensions. But since we care about unsigned volume, we again take absolute values. The result sits at the crossroads of several ideas already in hand: integrals over general regions, the Inverse Function Theorem (which guarantees a change of variables is locally invertible with controlled distortion), and Fubini's Theorem (which lets us evaluate the transformed integral iteratively). It is also a genuinely geometric theorem. Proving it rigorously means proving that linear maps scale volume by their determinant. We then bootstrap this local linear fact up to a global nonlinear statement, via a covering and approximation argument. This article states the transformation formula with full hypotheses, and proves it carefully. This includes the linear algebra fact about determinants and volume that underlies everything. It works out polar and spherical coordinates as the two indispensable special cases. It closes by connecting the Jacobian idea forward to parametrized surfaces and the Divergence Theorem. There, the same "local linear distortion factor" idea reappears in one dimension higher.

Key takeaways
  • The Jacobian matrix DgDg of a smooth map g:Rn→Rng:\mathbb{R}^n\to\mathbb{R}^n collects all first partial derivatives; its determinant det⁡Dg\det Dg measures local volume scaling.
  • The Change of Variables Theorem: ∫g(U)f dV=∫U(f∘g) ∣det⁡Dg∣ dV\int_{g(U)} f\,dV = \int_U (f\circ g)\,|\det Dg|\,dV, for gg a C1C^1 diffeomorphism onto its image.
  • The absolute value matters: orientation-reversing maps have negative Jacobian determinant, but volume is never negative.
  • Polar coordinates (r,θ)↦(rcos⁡θ,rsin⁡θ)(r,\theta)\mapsto(r\cos\theta, r\sin\theta) have Jacobian rr; spherical coordinates have Jacobian ρ2sin⁡ϕ\rho^2\sin\phi.
  • The proof reduces to linear algebra (linear maps scale volume by ∣det⁡∣|\det|) plus a limiting argument using differentiability and compactness.
  • Key idea: integration transforms correctly only after multiplying by the absolute Jacobian determinant, the exact local volume-distortion factor of the substitution.

Where this lives today

The Change of Variables Theorem is the engine behind evaluating almost every nontrivial multiple integral encountered in physics and engineering: moments of inertia, centers of mass, electric/gravitational potentials, and fluid flow computations routinely switch to polar, cylindrical, or spherical coordinates to exploit symmetry, exactly using the Jacobian factors rr and ρ2sin⁡ϕ\rho^2\sin\phi derived above. In probability and statistics, the same theorem underlies the transformation-of-random-variables formula: if Y=g(X)Y = g(X) for a diffeomorphism gg, the density of YY is obtained from the density of XX by multiplying by ∣det⁡Dg−1∣|\det Dg^{-1}|, the key computational tool for deriving distributions like the chi-squared, Rayleigh, or multivariate Gaussian marginals. In numerical analysis and computer graphics, Jacobians measure mesh distortion in finite-element methods and control texture-mapping and rendering transformations. In differential geometry and the theory that follows this article — Surface Integrals and Parametrized Surfaces and the Divergence Theorem — the Jacobian idea generalizes to the "area element" ∣∂ur×∂vr∣|\partial_u \mathbf{r} \times \partial_v \mathbf{r}| of a parametrized surface and to the volume-flux computations that make Stokes-type theorems work. In cryptography and coding theory, Jacobian determinants of algebraic curves (a more sophisticated relative of the concept) underlie elliptic-curve cryptosystems.

Ask the tutor: Can you walk through why the Jacobian for cylindrical coordinates is just rr (not r2r^2 or something involving zz), using the same "small box distortion" reasoning as for spherical coordinates?

DefinitionJacobian matrix, Jacobian determinant, and admissible change of variables

Let U⊆RnU \subseteq \mathbb{R}^n be open and let

g=(g1,…,gn):U→Rng = (g_1, \dots, g_n) : U \to \mathbb{R}^n

be a function whose component functions gig_i have continuous partial derivatives on UU (write g∈C1(U)g \in C^1(U)). The Jacobian matrix of gg at x∈Ux \in U is the n×nn\times n matrix of first partial derivatives,

Dg(x)=[∂gi∂xj(x)]1≤i,j≤n,Dg(x) = \left[ \frac{\partial g_i}{\partial x_j}(x) \right]_{1 \le i,j \le n},

and the Jacobian determinant is the scalar

Jg(x):=det⁡Dg(x).J_g(x) := \det Dg(x).

A map g:U→Vg : U \to V (with U,V⊆RnU, V \subseteq \mathbb{R}^n open) is called a C1C^1 diffeomorphism if gg is a bijection, g∈C1(U)g \in C^1(U), g−1∈C1(V)g^{-1}\in C^1(V), and Jg(x)≠0J_g(x) \ne 0 for every x∈Ux \in U. In this setting we call gg an admissible change of variables. For a bounded set UU with (Jordan-measurable, i.e. boundary of measure zero) and a bounded integrable function ff on g(U)g(U), the substitution x=g(u)x = g(u) is governed by the transformation formula stated in the theorem below.

Intuition

Think first in one variable. If g:[a,b]→Rg:[a,b]\to\mathbb{R} is a smooth increasing bijection, an infinitesimal interval [u,u+du][u, u+du] near a point uu is stretched by gg into an interval of length approximately g′(u) dug'(u)\,du. Summing (integrating) these stretched pieces is exactly the substitution rule. The derivative g′(u)g'(u) is a 1-by-1 "Jacobian," and its absolute value is the local length-scaling factor. Now go to Rn\mathbb{R}^n. A linear map T:Rn→RnT:\mathbb{R}^n \to \mathbb{R}^n sends the unit cube to a parallelepiped whose volume is exactly ∣det⁡T∣|\det T| — this is a basic fact of linear algebra, proved below as a lemma. A general C1C^1 map gg is, near a point u0u_0, well approximated by the affine map

x≈g(u0)+Dg(u0)(u−u0),x \approx g(u_0) + Dg(u_0)(u - u_0),

by definition of differentiability. So a tiny cube of volume dudu near u0u_0 gets mapped to a region whose volume is approximately ∣det⁡Dg(u0)∣ du|\det Dg(u_0)|\,du. The Change of Variables Theorem is the rigorous, global version of "add up all these tiny distortions." For polar coordinates g(r,θ)=(rcos⁡θ,rsin⁡θ)g(r,\theta) = (r\cos\theta, r\sin\theta), a small rectangle [r,r+dr]×[θ,θ+dθ][r, r+dr]\times[\theta,\theta+d\theta] in (r,θ)(r,\theta)-space maps to a small "curved rectangle" (an annular sector) in (x,y)(x,y)-space with radial thickness drdr and arc length r dθr\,d\theta, hence area approximately r dr dθr\,dr\,d\theta — matching Jg=rJ_g = r exactly.

Figure
A small (r,θ)(r,\theta)-rectangle maps to a curved patch of area ≈r dr dθ\approx r\,dr\,d\theta
θ r r dr dθ (r,θ) plane g(r,θ) O arc ≈ r dθ dr (x,y) plane

Theorem

TheoremChange of Variables for Multiple Integrals

Let U⊆RnU \subseteq \mathbb{R}^n be a bounded open set whose boundary ∂U\partial U has nn-dimensional Lebesgue (or Jordan) measure zero, and let

g:U‾→Rng : \overline{U} \to \mathbb{R}^n

be injective and continuous on U‾\overline U, with g∈C1(U)g \in C^1(U) and Jg(u)=det⁡Dg(u)≠0J_g(u) = \det Dg(u) \ne 0 for every u∈Uu \in U. Set V:=g(U)V := g(U). If f:V‾→Rf : \overline V \to \mathbb{R} is bounded and continuous except possibly on a set of measure zero (so that ff is Riemann integrable on VV), then f∘g⋅∣Jg∣f\circ g \cdot |J_g| is integrable on UU, and

∫Vf(x) dx=∫Uf(g(u)) ∣Jg(u)∣ du.\int_{V} f(x)\, dx = \int_{U} f(g(u))\, |J_g(u)|\, du.
LemmaVolume scaling under linear maps

Let T:Rn→RnT : \mathbb{R}^n \to \mathbb{R}^n be linear, and let E⊆RnE \subseteq \mathbb{R}^n be a bounded Jordan-measurable set. Then T(E)T(E) is Jordan-measurable and

vol⁡(T(E))=∣det⁡T∣⋅vol⁡(E).\operatorname{vol}(T(E)) = |\det T| \cdot \operatorname{vol}(E).
Proof

Technique: reduction to elementary matrices, then a covering/approximation argument for the nonlinear case.

Step 1: The linear lemma. Every invertible linear map TT is a product of finitely many elementary linear maps of three types: (a) permuting two coordinates, (b) scaling one coordinate by a nonzero constant cc, (c) adding a multiple of one coordinate to another (a shear). This is exactly the statement that Gaussian elimination reduces any invertible matrix to the identity using row operations, each corresponding to one of these elementary maps (or their inverses, which are of the same types). If TT is singular, T(Rn)T(\mathbb{R}^n) lies in a proper subspace, hence has volume zero, matching ∣det⁡T∣⋅vol⁡(E)=0|\det T| \cdot \operatorname{vol}(E) = 0; so assume TT invertible. It suffices to verify the volume-scaling formula for a box E=∏i=1n[ai,bi]E = \prod_{i=1}^n [a_i,b_i] under each elementary map, since (i) vol⁡(T1T2(E))\operatorname{vol}(T_1T_2(E)) for a composition follows once the formula is known for T1T_1 and T2T_2 separately (apply it twice, using det⁡(T1T2)=det⁡T1det⁡T2\det(T_1T_2)=\det T_1\det T_2), and (ii) volume of a general Jordan-measurable set is, by definition, approximated to arbitrary precision by finite unions of boxes from above and below, and each elementary map sends boxes to boxes (types (a), (b)) or to parallelepipeds of the same base-times-height computation (type (c)), preserving these approximating sums in the limit.

  • Permutation (a): sends EE to a box with the same side lengths in different order; volume unchanged, and det⁡=±1\det = \pm 1, so ∣det⁡∣⋅vol⁡(E)=vol⁡(E)|\det|\cdot \operatorname{vol}(E) = \operatorname{vol}(E). ✓.
  • Scaling (b): the image is a box with ii-th side length multiplied by ∣c∣|c|; volume multiplies by ∣c∣|c|, and det⁡=c\det = c. ✓.
  • Shear (c): say T(x)i=xi+λxjT(x)_i = x_i + \lambda x_j (j≠ij\ne i), other coordinates fixed. The image of the box EE is a parallelepiped which, by Cavalieri's principle (slicing perpendicular to the xjx_j-axis, each slice a translate of an (n−1)(n-1)-dimensional box of the same (n−1)(n-1)-volume), has the same total volume as EE. And det⁡=1\det = 1 for a shear. ✓.

Hence the formula vol⁡(T(E))=∣det⁡T∣vol⁡(E)\operatorname{vol}(T(E)) = |\det T|\operatorname{vol}(E) holds for boxes, therefore (by the finite-union approximation in (ii)) for all Jordan-measurable EE, and therefore (by composing elementary maps) for arbitrary invertible TT. This proves the lemma.

Step 2: Local linearization. Now let gg be as in the theorem's hypotheses, and fix u0∈Uu_0 \in U. By definition of differentiability,

g(u0+h)=g(u0)+Dg(u0)h+r(h),where ∣r(h)∣∣h∣→0 as h→0.g(u_0 + h) = g(u_0) + Dg(u_0) h + r(h), \qquad \text{where } \frac{|r(h)|}{|h|} \to 0 \text{ as } h \to 0.

Since Dg(u0)Dg(u_0) is invertible (Jg(u0)≠0J_g(u_0)\ne 0), the Inverse Function Theorem gives an open neighborhood U0⊆UU_0 \subseteq U of u0u_0 on which gg restricts to a C1C^1 diffeomorphism onto an open set g(U0)g(U_0).

Step 3: Volume distortion on small cubes. Let QQ be a small cube centered at u0u_0 with side length 2δ2\delta, contained in U0U_0. We claim

vol⁡(g(Q))=∣Jg(u0)∣vol⁡(Q) (1+ε(δ)),ε(δ)→0 as δ→0.\operatorname{vol}(g(Q)) = |J_g(u_0)| \operatorname{vol}(Q) \,(1 + \varepsilon(\delta)), \qquad \varepsilon(\delta) \to 0 \text{ as } \delta \to 0.

Write T=Dg(u0)T = Dg(u_0). For u∈Qu \in Q, g(u)=g(u0)+T(u−u0)+r(u−u0)g(u) = g(u_0) + T(u - u_0) + r(u-u_0) with ∣r(u−u0)∣=o(δ)|r(u-u_0)| = o(\delta) uniformly as δ→0\delta\to 0 (using that g∈C1g \in C^1, so the differentiability is uniform on a compact neighborhood of u0u_0 — this uses continuity of DgDg). Thus g(Q)g(Q) is sandwiched between g(u0)+T(Q−)g(u_0) + T(Q_{-}) and g(u0)+T(Q+)g(u_0) + T(Q_{+}) where Q±Q_\pm are cubes centered at u0u_0 of side length 2δ(1±η(δ))2\delta(1 \pm \eta(\delta)) with η(δ)→0\eta(\delta)\to 0 (the error term rr perturbs the cube by an amount that is o(δ)o(\delta), hence negligible relative to δ\delta after rescaling). Applying Step 1 to the linear map TT:

vol⁡(T(Q±))=∣det⁡T∣vol⁡(Q±)=∣Jg(u0)∣ (2δ)n(1±η(δ))n,\operatorname{vol}(T(Q_\pm)) = |\det T|\operatorname{vol}(Q_\pm) = |J_g(u_0)|\,(2\delta)^n (1\pm \eta(\delta))^n,

and translating by g(u0)g(u_0) does not change volume. Since vol⁡(Q)=(2δ)n\operatorname{vol}(Q) = (2\delta)^n, squeezing gives the claimed estimate with ε(δ)→0\varepsilon(\delta) \to 0.

Step 4: Partition and sum (the case f≡1f \equiv 1, UU itself a finite union of small cubes). Fix ε>0\varepsilon > 0. Cover U‾\overline U by finitely many small cubes Q1,…,QNQ_1, \dots, Q_N (from a fine grid) with disjoint interiors, each small enough (by uniform continuity of DgDg on the compact set U‾\overline U, using compactness) that Step 3's estimate holds with error less than ε\varepsilon, and such that the total volume of cubes meeting ∂U\partial U is less than ε\varepsilon (possible since ∂U\partial U has measure zero). On each interior cube QiQ_i with center uiu_i,

vol⁡(g(Qi))=∣Jg(ui)∣vol⁡(Qi)(1+O(ε)).\operatorname{vol}(g(Q_i)) = |J_g(u_i)|\operatorname{vol}(Q_i)(1 + O(\varepsilon)).

Because the sets g(Qi)g(Q_i) have pairwise-disjoint interiors (as gg is injective and each QiQ_i has disjoint interior from the others) and their union covers g(U)g(U) up to a set of volume O(ε)O(\varepsilon) (the images of boundary-touching cubes), summing over ii gives

vol⁡(g(U))=∑i∣Jg(ui)∣vol⁡(Qi)+O(ε).\operatorname{vol}(g(U)) = \sum_i |J_g(u_i)| \operatorname{vol}(Q_i) + O(\varepsilon).

The right side is a Riemann sum for ∫U∣Jg(u)∣ du\int_U |J_g(u)|\,du (which exists since JgJ_g is continuous, hence Riemann integrable, on U‾\overline U by Integrals over General Regions). Letting the mesh →0\to 0 (equivalently ε→0\varepsilon \to 0) gives

vol⁡(V)=vol⁡(g(U))=∫U∣Jg(u)∣ du,\operatorname{vol}(V) = \operatorname{vol}(g(U)) = \int_U |J_g(u)|\, du,

which is the theorem's formula for f≡1f \equiv 1.

Step 5: General ff. For general bounded, a.e.-continuous ff on VV, apply Step 4 not to all of UU but to the sub-region g−1({x∈V:f(x)≥t})g^{-1}(\{x \in V : f(x) \ge t\}) for each level tt — or more directly, redo Steps 3–4 with volumes replaced by Riemann sums of ff: partition UU into small cubes QiQ_i as before, and note

∫g(Qi)f(x) dx≈f(g(ui))vol⁡(g(Qi))≈f(g(ui)) ∣Jg(ui)∣ vol⁡(Qi),\int_{g(Q_i)} f(x)\,dx \approx f(g(u_i)) \operatorname{vol}(g(Q_i)) \approx f(g(u_i))\,|J_g(u_i)|\,\operatorname{vol}(Q_i),

where the first approximation uses continuity of ff at g(ui)g(u_i) (valid except on a measure-zero set, which contributes a negligible error by boundedness of ff) and the second uses Step 3. Summing over ii, the left side telescopes (by finite additivity of the integral over VV, since the g(Qi)g(Q_i) tile VV up to measure zero) to ∫Vf dx\int_V f\,dx, while the right side is a Riemann sum for ∫Uf(g(u))∣Jg(u)∣ du\int_U f(g(u))|J_g(u)|\,du. Both sides exist as genuine Riemann integrals: f∘gf\circ g is bounded and continuous except on a measure-zero set (the preimage under the diffeomorphism gg of the measure-zero discontinuity set of ff, which remains measure zero since gg is C1C^1 hence locally Lipschitz on compact subsets, and Lipschitz maps send measure-zero sets to measure-zero sets), and JgJ_g is continuous. Passing to the limit as mesh →0\to 0 gives

∫Vf(x) dx=∫Uf(g(u)) ∣Jg(u)∣ du,\int_V f(x)\,dx = \int_U f(g(u))\,|J_g(u)|\,du,

completing the proof. ■\blacksquare

∎

Worked examples

Example 1 (an asymmetric planar region and a genuinely nonlinear substitution). Compute

I=∬R(x−y)2sin⁡2(x+y) dx dy,I = \iint_R (x - y)^2 \sin^2(x+y)\, dx\,dy,

where RR is the parallelogram with vertices (0,0),(2,0),(3,1),(1,1)(0,0), (2,0), (3,1), (1,1) — i.e., R={(x,y):0≤y≤1, y≤x−2y⋅0, }R = \{(x,y): 0 \le y \le 1,\ y \le x - 2y \cdot 0 ,\ \}; more precisely, RR is bounded by y=0y=0, y=1y=1, x−y=x - y = between 00 and 22. Let's set this up via the natural substitution suggested by the integrand: let

u=x+y,v=x−y.u = x + y, \qquad v = x - y.

Check the vertices: (0,0)↦(u,v)=(0,0)(0,0)\mapsto(u,v)=(0,0); (2,0)↦(2,2)(2,0)\mapsto(2,2); (3,1)↦(4,2)(3,1)\mapsto(4,2); (1,1)↦(2,0)(1,1)\mapsto(2,0). So in (u,v)(u,v)-coordinates the region is the rectangle [0,4]×[0,2][0,4]\times[0,2]... let's double check by finding which edges map to which. Edge from (0,0)(0,0) to (2,0)(2,0): y=0y=0, x∈[0,2]x\in[0,2], so u=x,v=xu=x, v=x, giving u=vu=v from (0,0)(0,0) to (2,2)(2,2). Edge from (2,0)(2,0) to (3,1)(3,1): this is x−2y=2x - 2y = 2 i.e. x=2+2yx = 2+2y... check: at y=0y=0, x=2x=2 ✓; at y=1y=1, x=4≠3x=4\ne 3. Let's recompute: the segment from (2,0)(2,0) to (3,1)(3,1) has direction (1,1)(1,1), so x−yx - y is constant =2=2 along it. Indeed v=x−y=2v = x-y = 2 at both endpoints. Good — so this edge maps to v=2v=2, uu from 22 to 44. Edge from (3,1)(3,1) to (1,1)(1,1): y=1y=1, xx from 33 to 11, so u=x+1∈[2,4]u = x+1 \in[2,4], v=x−1∈[0,2]v = x - 1\in[0,2], with u−v=2u - v = 2 constant — this is the segment u−v=2u-v=2. Edge from (1,1)(1,1) to (0,0)(0,0): direction (1,1)(1,1) so v=x−yv=x-y constant =0=0, uu from 00 to 22. So RR in (u,v)(u,v)-coordinates is the parallelogram with vertices (0,0),(2,2),(4,2),(2,0)(0,0),(2,2),(4,2),(2,0) bounded by v=0v=0 (below-ish), v=2v=2, u−v=0u - v = 0, and u−v=2u-v=2. This is exactly the image of the square S={(v,w):0≤v≤2, 0≤w≤2}S = \{(v,w): 0\le v \le 2,\ 0 \le w \le 2\} under u=v+w, v=vu = v + w,\ v=v... Let's instead directly change variables a second time to make Fubini trivial: set w=u−vw = u - v so that RR corresponds exactly to {(v,w):0≤v≤2,0≤w≤2}\{(v,w): 0\le v\le 2, 0 \le w \le 2\} with u=v+wu = v+w. But it is cleaner to just directly integrate over the parallelogram in (u,v)(u,v) using Fubini with vv from 00 to 22 and, for fixed vv, uu ranging over [v,v+2][v, v+2] (checking: at v=0v=0, u∈[0,2]u\in[0,2] ✓ matches vertex range; at v=2v=2, u∈[2,4]u \in [2,4] ✓). Now compute the Jacobian of (x,y)↦(u,v)(x,y)\mapsto(u,v): u=x+y, v=x−yu=x+y,\ v=x-y, so

∂(u,v)∂(x,y)=(111−1),det⁡=−1−1=−2.\frac{\partial(u,v)}{\partial(x,y)} = \begin{pmatrix} 1 & 1 \\ 1 & -1\end{pmatrix}, \quad \det = -1-1 = -2.

We want ∂(x,y)/∂(u,v)\partial(x,y)/\partial(u,v), the reciprocal Jacobian (valid since the map is a linear bijection): det⁡∂(x,y)∂(u,v)=1/(−2)=−12\det \dfrac{\partial(x,y)}{\partial(u,v)} = 1/(-2) = -\tfrac12, so ∣J∣=12|J| = \tfrac12. (Directly: x=u+v2,y=u−v2x = \tfrac{u+v}{2}, y=\tfrac{u-v}{2}, Jacobian matrix (1/21/21/2−1/2)\begin{pmatrix}1/2 & 1/2\\ 1/2 & -1/2\end{pmatrix}, determinant −1/2-1/2.) By the Change of Variables Theorem,

I=∫02∫vv+2v2sin⁡2(u)⋅12 du dv.I = \int_0^2\int_{v}^{v+2} v^2 \sin^2(u) \cdot \tfrac12\, du\,dv.

Inner integral: ∫vv+2sin⁡2u du=∫vv+21−cos⁡2u2 du=1−sin⁡(2v+4)−sin⁡(2v)4\int_v^{v+2} \sin^2 u\, du = \int_v^{v+2} \frac{1-\cos 2u}{2}\,du = 1 - \frac{\sin(2v+4) - \sin(2v)}{4}. So

I=12∫02v2(1−sin⁡(2v+4)−sin⁡(2v)4)dv=12∫02v2 dv−18∫02v2(sin⁡(2v+4)−sin⁡(2v)) dv.I = \frac12 \int_0^2 v^2 \left(1 - \frac{\sin(2v+4)-\sin(2v)}{4}\right) dv = \frac12\int_0^2 v^2\,dv - \frac18 \int_0^2 v^2\big(\sin(2v+4) - \sin(2v)\big)\,dv.

The first piece: 12⋅83=43\frac12 \cdot \frac{8}{3} = \frac{4}{3}. For the second, use ∫v2sin⁡(av+b) dv=−v2acos⁡(av+b)+2va2sin⁡(av+b)+2a3cos⁡(av+b)+C\int v^2 \sin(av+b)\,dv = -\frac{v^2}{a}\cos(av+b) + \frac{2v}{a^2}\sin(av+b) + \frac{2}{a^3}\cos(av+b) + C (standard integration by parts twice), with a=2a=2. For sin⁡(2v+4)\sin(2v+4) (b=4b=4), antiderivative F1(v)=−v22cos⁡(2v+4)+v2sin⁡(2v+4)+14cos⁡(2v+4)F_1(v) = -\frac{v^2}{2}\cos(2v+4) + \frac{v}{2}\sin(2v+4) + \frac14 \cos(2v+4). For sin⁡(2v)\sin(2v) (b=0b=0), antiderivative F2(v)=−v22cos⁡(2v)+v2sin⁡(2v)+14cos⁡(2v)F_2(v) = -\frac{v^2}{2}\cos(2v) + \frac{v}{2}\sin(2v) + \frac14\cos(2v). Numerically (radians): cos⁡4≈−0.653644\cos 4 \approx -0.653644, sin⁡4≈−0.756802\sin 4\approx -0.756802, cos⁡8≈−0.145500\cos 8 \approx -0.145500, sin⁡8≈0.989358\sin 8 \approx 0.989358, cos⁡0=1, sin⁡0=0\cos 0 = 1,\ \sin 0 = 0. F1(2)=−2cos⁡8+sin⁡8+14cos⁡8=−2(−0.1455)+0.989358+0.25(−0.1455)=0.2910+0.989358−0.036375=1.243983F_1(2) = -2\cos 8 + \sin 8 + \tfrac14\cos 8 = -2(-0.1455) + 0.989358 + 0.25(-0.1455) = 0.2910 + 0.989358 - 0.036375 = 1.243983. F1(0)=0+0+14cos⁡4=0.25(−0.653644)=−0.163411F_1(0) = 0 + 0 + \tfrac14\cos4 = 0.25(-0.653644) = -0.163411. ∫02v2sin⁡(2v+4) dv=F1(2)−F1(0)=1.243983+0.163411=1.407394\int_0^2 v^2\sin(2v+4)\,dv = F_1(2)-F_1(0) = 1.243983 + 0.163411 = 1.407394. F2(2)=−2cos⁡4+sin⁡4+14cos⁡4=−2(−0.653644)+(−0.756802)+0.25(−0.653644)=1.307288−0.756802−0.163411=0.387075F_2(2) = -2\cos4 + \sin4 + \tfrac14\cos4 = -2(-0.653644) + (-0.756802) + 0.25(-0.653644) = 1.307288 - 0.756802 -0.163411 = 0.387075. F2(0)=0+0+14(1)=0.25F_2(0) = 0+0+\tfrac14(1) = 0.25. ∫02v2sin⁡(2v) dv=F2(2)−F2(0)=0.387075−0.25=0.137075\int_0^2 v^2 \sin(2v)\,dv = F_2(2) - F_2(0) = 0.387075 - 0.25 = 0.137075. So ∫02v2(sin⁡(2v+4)−sin⁡(2v)) dv≈1.407394−0.137075=1.270319\int_0^2 v^2(\sin(2v+4)-\sin(2v))\,dv \approx 1.407394 - 0.137075 = 1.270319. Then I≈43−18(1.270319)=1.333333−0.158790=1.174544I \approx \frac{4}{3} - \frac18(1.270319) = 1.333333 - 0.158790 = 1.174544. So I≈1.1745I \approx 1.1745, exactly

I=43−18[(−2cos⁡8+sin⁡8+14cos⁡8)−(−2cos⁡4+sin⁡4+14cos⁡4)−14+14cos⁡4⋅0]I = \frac{4}{3} - \frac{1}{8}\left[\left(-2\cos8+\sin8+\tfrac14\cos8\right) - \left(-2\cos4+\sin4+\tfrac14\cos4\right) - \tfrac14 + \tfrac14\cos 4 \cdot 0\right]

— the point of the example is the mechanism (linear change of variables turning a skew parallelogram into a rectangle, with constant Jacobian 12\tfrac12), not the closed form of the trigonometric antiderivative; the numerical value I≈1.1745I\approx 1.1745 is the answer.

Example 2 (spherical coordinates on an asymmetric solid: mass of a "truncated wedge"). A solid EE occupies the spherical wedge 1≤ρ≤31 \le \rho \le 3, 0≤ϕ≤π/30\le \phi \le \pi/3 (colatitude from the north pole), 0≤θ≤π/20\le\theta\le \pi/2 (a quarter turn in azimuth), with mass density δ(x,y,z)=z=ρcos⁡ϕ\delta(x,y,z) = z = \rho\cos\phi. Find the total mass

M=∭Ez dV.M = \iiint_E z\, dV.

Recall the spherical coordinate map

g(ρ,ϕ,θ)=(ρsin⁡ϕcos⁡θ, ρsin⁡ϕsin⁡θ, ρcos⁡ϕ),g(\rho,\phi,\theta) = (\rho\sin\phi\cos\theta,\ \rho\sin\phi\sin\theta,\ \rho\cos\phi),

with Jacobian determinant Jg=ρ2sin⁡ϕJ_g = \rho^2 \sin\phi (derived in the Intuition/Scope discussion and standard; we recompute it here for completeness).

Dg=(sin⁡ϕcos⁡θρcos⁡ϕcos⁡θ−ρsin⁡ϕsin⁡θsin⁡ϕsin⁡θρcos⁡ϕsin⁡θρsin⁡ϕcos⁡θcos⁡ϕ−ρsin⁡ϕ0).Dg = \begin{pmatrix} \sin\phi\cos\theta & \rho\cos\phi\cos\theta & -\rho\sin\phi\sin\theta\\ \sin\phi\sin\theta & \rho\cos\phi\sin\theta & \rho\sin\phi\cos\theta \\ \cos\phi & -\rho\sin\phi & 0 \end{pmatrix}.

Expanding along the bottom row: det⁡=cos⁡ϕ⋅M31−(−ρsin⁡ϕ)⋅M32+0\det = \cos\phi \cdot M_{31} - (-\rho\sin\phi)\cdot M_{32} + 0, where

M31=det⁡(ρcos⁡ϕcos⁡θ−ρsin⁡ϕsin⁡θρcos⁡ϕsin⁡θρsin⁡ϕcos⁡θ)=ρ2cos⁡ϕsin⁡ϕcos⁡2θ+ρ2cos⁡ϕsin⁡ϕsin⁡2θ=ρ2sin⁡ϕcos⁡ϕ,M_{31} = \det\begin{pmatrix}\rho\cos\phi\cos\theta & -\rho\sin\phi\sin\theta\\ \rho\cos\phi\sin\theta & \rho\sin\phi\cos\theta\end{pmatrix} = \rho^2\cos\phi\sin\phi\cos^2\theta + \rho^2\cos\phi\sin\phi\sin^2\theta = \rho^2\sin\phi\cos\phi,
M32=det⁡(sin⁡ϕcos⁡θ−ρsin⁡ϕsin⁡θsin⁡ϕsin⁡θρsin⁡ϕcos⁡θ)=ρsin⁡2ϕcos⁡2θ+ρsin⁡2ϕsin⁡2θ=ρsin⁡2ϕ.M_{32} = \det\begin{pmatrix}\sin\phi\cos\theta & -\rho\sin\phi\sin\theta \\ \sin\phi\sin\theta & \rho\sin\phi\cos\theta\end{pmatrix} = \rho\sin^2\phi\cos^2\theta + \rho\sin^2\phi\sin^2\theta = \rho\sin^2\phi.

So

det⁡=cos⁡ϕ(ρ2sin⁡ϕcos⁡ϕ)+ρsin⁡ϕ⋅ρsin⁡2ϕ=ρ2sin⁡ϕcos⁡2ϕ+ρ2sin⁡3ϕ=ρ2sin⁡ϕ(cos⁡2ϕ+sin⁡2ϕ)=ρ2sin⁡ϕ.\det = \cos\phi(\rho^2\sin\phi\cos\phi) + \rho\sin\phi\cdot \rho\sin^2\phi = \rho^2\sin\phi\cos^2\phi + \rho^2\sin^3\phi = \rho^2\sin\phi(\cos^2\phi+\sin^2\phi) = \rho^2\sin\phi.

Good, confirmed: Jg=ρ2sin⁡ϕ≥0J_g = \rho^2\sin\phi \ge 0 on 0≤ϕ≤π0\le\phi\le\pi, so ∣Jg∣=ρ2sin⁡ϕ|J_g| = \rho^2\sin\phi. Now apply the theorem:

M=∫0π/2∫0π/3∫13(ρcos⁡ϕ)⋅ρ2sin⁡ϕ  dρ dϕ dθ=∫0π/2dθ∫0π/3cos⁡ϕsin⁡ϕ dϕ∫13ρ3 dρ,M = \int_0^{\pi/2}\int_0^{\pi/3}\int_1^3 (\rho\cos\phi)\cdot \rho^2\sin\phi \; d\rho\, d\phi\, d\theta = \int_0^{\pi/2}d\theta \int_0^{\pi/3}\cos\phi\sin\phi\,d\phi\int_1^3 \rho^3\,d\rho,

using Fubini's Theorem to split the integral since the integrand factors and the region is a box in (ρ,ϕ,θ)(\rho,\phi,\theta). Compute each factor:

∫0π/2dθ=π2,∫13ρ3 dρ=81−14=20,\int_0^{\pi/2} d\theta = \frac{\pi}{2}, \qquad \int_1^3 \rho^3\,d\rho = \frac{81-1}{4} = 20,
∫0π/3cos⁡ϕsin⁡ϕ dϕ=12∫0π/3sin⁡(2ϕ) dϕ=12[−cos⁡2ϕ2]0π/3=14(1−cos⁡2π3)=14(1−(−12))=14⋅32=38.\int_0^{\pi/3}\cos\phi\sin\phi\,d\phi = \frac12\int_0^{\pi/3}\sin(2\phi)\,d\phi = \frac12\left[-\frac{\cos 2\phi}{2}\right]_0^{\pi/3} = \frac14\left(1 - \cos\frac{2\pi}{3}\right) = \frac14\left(1-\left(-\frac12\right)\right) = \frac14\cdot\frac32 = \frac{3}{8}.

So

M=π2⋅38⋅20=π2⋅608=π2⋅152=15π4.M = \frac{\pi}{2}\cdot\frac{3}{8}\cdot 20 = \frac{\pi}{2}\cdot \frac{60}{8} = \frac{\pi}{2}\cdot\frac{15}{2} = \frac{15\pi}{4}.

So M=15π4≈11.781M = \dfrac{15\pi}{4} \approx 11.781.

Figure
Polar-coordinate Jacobian: area of the annular sector matches r dr dθr\,dr\,d\theta
x y θ=0 r ≈ 80 dθ≈17° area(patch) ≈ r · dr · dθ (here r≈80, giving Jacobian J = r)
CounterexampleDropping injectivity: the transformation formula fails

The theorem requires gg to be injective on UU (so that g(U)g(U) is genuinely "covered once"). Drop this hypothesis and the formula can fail dramatically. Let U=(0,4π)×(0,1)⊆R2U = (0, 4\pi)\times(0,1) \subseteq \mathbb{R}^2 with coordinates (r,θ)(r,\theta)... actually to keep the standard polar map, instead take U={(r,θ):0<r<1, 0<θ<4π}U = \{(r,\theta) : 0 < r < 1,\ 0 < \theta < 4\pi\}, and let g(r,θ)=(rcos⁡θ,rsin⁡θ)g(r,\theta) = (r\cos\theta, r\sin\theta), the usual polar map, but now with θ\theta ranging over an interval of length 4π4\pi instead of the usual 2π2\pi. Here g∈C1(U)g \in C^1(U) and Jg(r,θ)=r≠0J_g(r,\theta) = r \ne 0 for r∈(0,1)r\in(0,1), so the only hypothesis violated is injectivity: every point of the punctured unit disc V={(x,y):0<x2+y2<1}V = \{(x,y): 0<x^2+y^2<1\} is hit twice by gg as θ\theta ranges over (0,4π)(0,4\pi) (once for θ∈(0,2π)\theta\in(0,2\pi), once for θ∈(2π,4π)\theta \in (2\pi,4\pi)), while g(U)=Vg(U) = V. Take f≡1f \equiv 1 on VV. The theorem's right-hand side (computed formally, ignoring injectivity) gives

∫U1⋅∣Jg∣ dr dθ=∫04π∫01r dr dθ=4π⋅12=2π,\int_U 1\cdot |J_g|\,dr\,d\theta = \int_0^{4\pi}\int_0^1 r\,dr\,d\theta = 4\pi \cdot \frac12 = 2\pi,

but the left-hand side is the actual area,

∫V1 dx dy=area⁡(V)=π(12)=π.\int_V 1\,dx\,dy = \operatorname{area}(V) = \pi(1^2) = \pi.

Indeed 2π≠π2\pi \ne \pi: the "answer" computed by blindly applying the formula is exactly double the true area, because gg double-covers VV. This is precisely why the theorem demands injectivity (equivalently, that gg be a genuine diffeomorphism onto its image) — without it, the right-hand side counts the region's contribution once for every sheet of the covering, while the left-hand side counts it only once.

Scope, edge cases & common traps

SituationWhat to do
gg fails to be injective on a measure-zero set (e.g. polar coordinates at r=0r=0, or spherical coordinates at ϕ=0,π\phi=0,\pi or ρ=0\rho=0)Still fine: these "degenerate" sets have measure zero and don't affect the integral.
JgJ_g vanishes at isolated points but gg is still injective nearbyFormula still holds; only need Jg≠0J_g \ne 0 a.e. for the change-of-variables identity to carry the full information, though the clean hypothesis in the theorem is Jg≠0J_g\ne 0 everywhere on the open set UU.
Region UU has boundary with positive measure (e.g. a fractal boundary)Hypotheses fail; Riemann integral over UU may not even be defined. Use Lebesgue theory instead.
Composing two substitutionsJacobians multiply: Jg∘h=(Jg∘h)⋅JhJ_{g\circ h} = (J_g\circ h)\cdot J_h, by the chain rule for determinants of composed linear maps.
Sign of JgJ_gIrrelevant to the final formula (absolute value is taken), but its sign encodes orientation-preservation, relevant later for Surface Integrals and Parametrized Surfaces and the Divergence Theorem.

The mathematician behind it

Origins · 1 minCarl Gustav Jacob Jacobi and how this was discovered
CG
Carl Gustav Jacob Jacobi
1804–1851 · Prussia (Berlin, Königsberg)

Jacobi was a towering figure of 19th-century analysis and algebra, known for foundational work on elliptic functions, partial differential equations, and determinants. The Jacobian determinant — introduced systematically in his 1841 memoir De determinantibus functionalibus — arose from his study of how systems of functions transform under substitution, unifying earlier scattered uses of such determinants (including work by Cauchy) into a coherent theory with the multiplication and chain-rule properties still taught today.

History
- 1815 — Cauchy studies determinants of Jacobian-like functional arrays in the context of changes of variable in multiple integrals.
- 1829 — Jacobi begins publishing on functional determinants in connection with differential equations and mechanics.
- 1841 — Jacobi's memoir De determinantibus functionalibus systematically develops the theory of the functional (Jacobian) determinant, proving the multiplicative composition rule.
- 1880s — Rigorous foundations of multiple Riemann integration (Jordan, Peano) make the change-of-variables theorem precise via Jordan measure.
- 20th century — Lebesgue-theoretic and measure-theoretic proofs (via the Inverse Function Theorem and covering arguments) become standard in real analysis texts.
Why is there an absolute value around the Jacobian determinant in the formula?

Volume (or area) is inherently non-negative, but the Jacobian determinant can be negative when the map gg reverses orientation — for instance, swapping two coordinates has Jacobian determinant −1-1 even though it clearly does not shrink or expand regions at all. In the one-variable substitution rule, this issue is usually hidden by writing ∫g(a)g(b)\int_{g(a)}^{g(b)} with the endpoints in the order induced by gg, which secretly absorbs the sign of g′g'. In higher dimensions there is no natural "signed" analogue of a region's volume in ordinary (unsigned) integration, so we strip out the sign by taking ∣Jg∣|J_g|, exactly analogous to how ∫ab∣g′(x)∣ dx\int_a^b |g'(x)|\,dx would be the correct "total variation" version of the 1-D substitution if orientation weren't tracked separately.

Do I need to verify gg is a diffeomorphism every time before using polar or spherical coordinates?

In practice, no — polar, cylindrical, and spherical coordinate changes are standard, pre-verified diffeomorphisms (away from a measure-zero degenerate set such as the origin or the poles), so their Jacobians are simply quoted: rr for polar, rr for cylindrical, and ρ2sin⁡ϕ\rho^2\sin\phi for spherical. You only need to re-derive or re-verify the hypotheses when using a custom substitution invented for a specific problem (as in Example 1's linear change of variables), where injectivity and non-vanishing Jacobian on the relevant region should be checked explicitly, at least in a rigorous course.

What exactly goes wrong in the proof if Dg(u)Dg(u) is singular somewhere in UU?

If Jg(u0)=0J_g(u_0) = 0 at some point, the Inverse Function Theorem no longer guarantees local invertibility there, so Step 2 of the proof (getting a local diffeomorphism on a neighborhood of u0u_0) can fail; gg might collapse a whole neighborhood onto a lower-dimensional set (e.g. g(u,v)=(u,0)g(u,v) = (u, 0) has Jg≡0J_g \equiv 0 and collapses the plane onto a line, which has area zero — consistent with the formula, since ∣Jg∣=0|J_g|=0 there, but the local diffeomorphism structure used in the proof breaks down). The theorem's hypothesis Jg≠0J_g \ne 0 everywhere on UU is what lets the covering-by-small-cubes argument in Step 4 work uniformly; isolated zero points can often still be handled by excluding a measure-zero set, but this requires separate justification beyond the theorem as stated.

How does this theorem relate to the Inverse Function Theorem?

The Inverse Function Theorem supplies the local structure the proof needs: it guarantees that near any point where Jg≠0J_g \ne 0, the map gg is a bijection from a small open set onto an open image, with a C1C^1 inverse. This is exactly what allows the proof to zoom into a tiny cube around each point and treat gg there as "linear plus a small, controllable error," which is the heart of Step 2–3 of the proof. Without the Inverse Function Theorem, one could not even be sure that gg maps small neighborhoods to well-behaved open regions rather than folding or collapsing them unpredictably.

Is there a version of this theorem for Lebesgue integrals instead of Riemann integrals?

Yes, and it is essentially the same formula, ∫g(U)f dλ=∫U(f∘g)∣Jg∣ dλ\int_{g(U)} f\,d\lambda = \int_U (f\circ g)|J_g|\,d\lambda, but proved using measure theory (e.g. via the Radon–Nikodym derivative of the pushforward measure, or via approximation by simple functions) rather than Riemann sums over cubes. The Lebesgue version applies to a much larger class of sets UU (any Lebesgue measurable set, not just ones with measure-zero boundary) and functions ff (any Lebesgue measurable, not necessarily a.e.-continuous), which is one reason measure theory subsumes and extends the Riemann-integral treatment given here.

Why does the Jacobian for spherical coordinates not depend on θ\theta, but does depend on both ρ\rho and ϕ\phi?

Geometrically, Jg=ρ2sin⁡ϕJ_g = \rho^2\sin\phi measures how a small box dρ dϕ dθd\rho\,d\phi\,d\theta distorts into a small curved "box" in (x,y,z)(x,y,z)-space with dimensions approximately dρd\rho (radial thickness), ρ dϕ\rho\,d\phi (arc length along a meridian), and ρsin⁡ϕ dθ\rho\sin\phi\,d\theta (arc length along a circle of latitude, whose radius is ρsin⁡ϕ\rho\sin\phi). Multiplying these three approximate side lengths gives ρ dρ⋅ρ dϕ⋅sin⁡ϕ dθ\rho\,d\rho \cdot \rho\,d\phi\cdot\sin\phi\, d\theta's coefficient ρ2sin⁡ϕ\rho^2\sin\phi. Rotating in θ\theta (spinning around the zz-axis) doesn't change any of these three lengths by symmetry, which is why θ\theta never appears in the Jacobian, while both ρ\rho (overall scale) and ϕ\phi (how far from the poles, where latitude circles shrink to a point) directly control the size of the patch.

Before this