Change of Variables and the Jacobian
How does the area of a disc of radius become once you switch to polar coordinates? Why does a factor of suddenly appear inside the integral? Every student who computes by switching to polar coordinates meets this mysterious extra factor. Every student who computes a triple integral in spherical coordinates meets its cousin . 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 . In one dimension, measures how stretches or compresses infinitesimal intervals near . In dimensions, the Jacobian determinant measures how a map stretches or compresses infinitesimal -dimensional volume. The sign of told us whether orientation flips (hence the absolute value when we drop the requirement ). 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.
- The Jacobian matrix of a smooth map collects all first partial derivatives; its determinant measures local volume scaling.
- The Change of Variables Theorem: , for a diffeomorphism onto its image.
- The absolute value matters: orientation-reversing maps have negative Jacobian determinant, but volume is never negative.
- Polar coordinates have Jacobian ; spherical coordinates have Jacobian .
- The proof reduces to linear algebra (linear maps scale volume by ) 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 and derived above. In probability and statistics, the same theorem underlies the transformation-of-random-variables formula: if for a diffeomorphism , the density of is obtained from the density of by multiplying by , 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" 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 (not or something involving ), using the same "small box distortion" reasoning as for spherical coordinates?
Let be open and let
be a function whose component functions have continuous partial derivatives on (write ). The Jacobian matrix of at is the matrix of first partial derivatives,
and the Jacobian determinant is the scalar
A map (with open) is called a diffeomorphism if is a bijection, , , and for every . In this setting we call an admissible change of variables. For a bounded set with (Jordan-measurable, i.e. boundary of measure zero) and a bounded integrable function on , the substitution is governed by the transformation formula stated in the theorem below.
Intuition
Think first in one variable. If is a smooth increasing bijection, an infinitesimal interval near a point is stretched by into an interval of length approximately . Summing (integrating) these stretched pieces is exactly the substitution rule. The derivative is a 1-by-1 "Jacobian," and its absolute value is the local length-scaling factor. Now go to . A linear map sends the unit cube to a parallelepiped whose volume is exactly — this is a basic fact of linear algebra, proved below as a lemma. A general map is, near a point , well approximated by the affine map
by definition of differentiability. So a tiny cube of volume near gets mapped to a region whose volume is approximately . The Change of Variables Theorem is the rigorous, global version of "add up all these tiny distortions." For polar coordinates , a small rectangle in -space maps to a small "curved rectangle" (an annular sector) in -space with radial thickness and arc length , hence area approximately — matching exactly.
Theorem
Let be a bounded open set whose boundary has -dimensional Lebesgue (or Jordan) measure zero, and let
be injective and continuous on , with and for every . Set . If is bounded and continuous except possibly on a set of measure zero (so that is Riemann integrable on ), then is integrable on , and
Let be linear, and let be a bounded Jordan-measurable set. Then is Jordan-measurable and
Technique: reduction to elementary matrices, then a covering/approximation argument for the nonlinear case.
Step 1: The linear lemma. Every invertible linear map is a product of finitely many elementary linear maps of three types: (a) permuting two coordinates, (b) scaling one coordinate by a nonzero constant , (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 is singular, lies in a proper subspace, hence has volume zero, matching ; so assume invertible. It suffices to verify the volume-scaling formula for a box under each elementary map, since (i) for a composition follows once the formula is known for and separately (apply it twice, using ), 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 to a box with the same side lengths in different order; volume unchanged, and , so . ✓.
- Scaling (b): the image is a box with -th side length multiplied by ; volume multiplies by , and . ✓.
- Shear (c): say (), other coordinates fixed. The image of the box is a parallelepiped which, by Cavalieri's principle (slicing perpendicular to the -axis, each slice a translate of an -dimensional box of the same -volume), has the same total volume as . And for a shear. ✓.
Hence the formula holds for boxes, therefore (by the finite-union approximation in (ii)) for all Jordan-measurable , and therefore (by composing elementary maps) for arbitrary invertible . This proves the lemma.
Step 2: Local linearization. Now let be as in the theorem's hypotheses, and fix . By definition of differentiability,
Since is invertible (), the Inverse Function Theorem gives an open neighborhood of on which restricts to a diffeomorphism onto an open set .
Step 3: Volume distortion on small cubes. Let be a small cube centered at with side length , contained in . We claim
Write . For , with uniformly as (using that , so the differentiability is uniform on a compact neighborhood of — this uses continuity of ). Thus is sandwiched between and where are cubes centered at of side length with (the error term perturbs the cube by an amount that is , hence negligible relative to after rescaling). Applying Step 1 to the linear map :
and translating by does not change volume. Since , squeezing gives the claimed estimate with .
Step 4: Partition and sum (the case , itself a finite union of small cubes). Fix . Cover by finitely many small cubes (from a fine grid) with disjoint interiors, each small enough (by uniform continuity of on the compact set , using compactness) that Step 3's estimate holds with error less than , and such that the total volume of cubes meeting is less than (possible since has measure zero). On each interior cube with center ,
Because the sets have pairwise-disjoint interiors (as is injective and each has disjoint interior from the others) and their union covers up to a set of volume (the images of boundary-touching cubes), summing over gives
The right side is a Riemann sum for (which exists since is continuous, hence Riemann integrable, on by Integrals over General Regions). Letting the mesh (equivalently ) gives
which is the theorem's formula for .
Step 5: General . For general bounded, a.e.-continuous on , apply Step 4 not to all of but to the sub-region for each level — or more directly, redo Steps 3–4 with volumes replaced by Riemann sums of : partition into small cubes as before, and note
where the first approximation uses continuity of at (valid except on a measure-zero set, which contributes a negligible error by boundedness of ) and the second uses Step 3. Summing over , the left side telescopes (by finite additivity of the integral over , since the tile up to measure zero) to , while the right side is a Riemann sum for . Both sides exist as genuine Riemann integrals: is bounded and continuous except on a measure-zero set (the preimage under the diffeomorphism of the measure-zero discontinuity set of , which remains measure zero since is hence locally Lipschitz on compact subsets, and Lipschitz maps send measure-zero sets to measure-zero sets), and is continuous. Passing to the limit as mesh gives
completing the proof.
∎Worked examples
Example 1 (an asymmetric planar region and a genuinely nonlinear substitution). Compute
where is the parallelogram with vertices — i.e., ; more precisely, is bounded by , , between and . Let's set this up via the natural substitution suggested by the integrand: let
Check the vertices: ; ; ; . So in -coordinates the region is the rectangle ... let's double check by finding which edges map to which. Edge from to : , , so , giving from to . Edge from to : this is i.e. ... check: at , ✓; at , . Let's recompute: the segment from to has direction , so is constant along it. Indeed at both endpoints. Good — so this edge maps to , from to . Edge from to : , from to , so , , with constant — this is the segment . Edge from to : direction so constant , from to . So in -coordinates is the parallelogram with vertices bounded by (below-ish), , , and . This is exactly the image of the square under ... Let's instead directly change variables a second time to make Fubini trivial: set so that corresponds exactly to with . But it is cleaner to just directly integrate over the parallelogram in using Fubini with from to and, for fixed , ranging over (checking: at , ✓ matches vertex range; at , ✓). Now compute the Jacobian of : , so
We want , the reciprocal Jacobian (valid since the map is a linear bijection): , so . (Directly: , Jacobian matrix , determinant .) By the Change of Variables Theorem,
Inner integral: . So
The first piece: . For the second, use (standard integration by parts twice), with . For (), antiderivative . For (), antiderivative . Numerically (radians): , , , , . . . . . . . So . Then . So , exactly
— the point of the example is the mechanism (linear change of variables turning a skew parallelogram into a rectangle, with constant Jacobian ), not the closed form of the trigonometric antiderivative; the numerical value is the answer.
Example 2 (spherical coordinates on an asymmetric solid: mass of a "truncated wedge"). A solid occupies the spherical wedge , (colatitude from the north pole), (a quarter turn in azimuth), with mass density . Find the total mass
Recall the spherical coordinate map
with Jacobian determinant (derived in the Intuition/Scope discussion and standard; we recompute it here for completeness).
Expanding along the bottom row: , where
So
Good, confirmed: on , so . Now apply the theorem:
using Fubini's Theorem to split the integral since the integrand factors and the region is a box in . Compute each factor:
So
So .
The theorem requires to be injective on (so that is genuinely "covered once"). Drop this hypothesis and the formula can fail dramatically. Let with coordinates ... actually to keep the standard polar map, instead take , and let , the usual polar map, but now with ranging over an interval of length instead of the usual . Here and for , so the only hypothesis violated is injectivity: every point of the punctured unit disc is hit twice by as ranges over (once for , once for ), while . Take on . The theorem's right-hand side (computed formally, ignoring injectivity) gives
but the left-hand side is the actual area,
Indeed : the "answer" computed by blindly applying the formula is exactly double the true area, because double-covers . This is precisely why the theorem demands injectivity (equivalently, that 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
| Situation | What to do |
|---|---|
| fails to be injective on a measure-zero set (e.g. polar coordinates at , or spherical coordinates at or ) | Still fine: these "degenerate" sets have measure zero and don't affect the integral. |
| vanishes at isolated points but is still injective nearby | Formula still holds; only need a.e. for the change-of-variables identity to carry the full information, though the clean hypothesis in the theorem is everywhere on the open set . |
| Region has boundary with positive measure (e.g. a fractal boundary) | Hypotheses fail; Riemann integral over may not even be defined. Use Lebesgue theory instead. |
| Composing two substitutions | Jacobians multiply: , by the chain rule for determinants of composed linear maps. |
| Sign of | Irrelevant 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
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.
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 reverses orientation — for instance, swapping two coordinates has Jacobian determinant 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 with the endpoints in the order induced by , which secretly absorbs the sign of . 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 , exactly analogous to how would be the correct "total variation" version of the 1-D substitution if orientation weren't tracked separately.
Do I need to verify 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: for polar, for cylindrical, and 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 is singular somewhere in ?
If 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 ) can fail; might collapse a whole neighborhood onto a lower-dimensional set (e.g. has and collapses the plane onto a line, which has area zero — consistent with the formula, since there, but the local diffeomorphism structure used in the proof breaks down). The theorem's hypothesis everywhere on 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 , the map is a bijection from a small open set onto an open image, with a inverse. This is exactly what allows the proof to zoom into a tiny cube around each point and treat 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 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, , 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 (any Lebesgue measurable set, not just ones with measure-zero boundary) and functions (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 , but does depend on both and ?
Geometrically, measures how a small box distorts into a small curved "box" in -space with dimensions approximately (radial thickness), (arc length along a meridian), and (arc length along a circle of latitude, whose radius is ). Multiplying these three approximate side lengths gives 's coefficient . Rotating in (spinning around the -axis) doesn't change any of these three lengths by symmetry, which is why never appears in the Jacobian, while both (overall scale) and (how far from the poles, where latitude circles shrink to a point) directly control the size of the patch.