The Jacobian and Change of Variables
Every physicist meets the same small miracle early on: a stubborn Cartesian integral, hopeless as it stands, collapses to a one-line answer the moment you switch to polar or spherical coordinates. The engine that makes the switch legal is the Jacobian determinant, easy to treat as a bookkeeping factor — an here, an there — but that hides what it is. A smooth change of variables warps space, and near any point that warping is, to first order, a single linear map: the derivative matrix . A linear map carries the unit cube to a parallelepiped whose (signed) volume is , so an infinitesimal box in the new coordinates is stretched into a box of volume in the old — and that single factor is the entire content of the change-of-variables theorem. This article rebuilds the rule from the geometry up. We prove that is the local volume-scaling factor, derive the polar, cylindrical, and spherical elements as instances of one formula, and use the polar Jacobian to crack the Gaussian integral — the calculation that quietly underlies every normalized bell curve in physics. The same determinant reappears in the metric tensor, where is the invariant volume element of curvilinear calculus and, with a sign, the of general relativity. Three commandments run through all of it: always take the absolute value, always rewrite the integrand in the new variables, and always transform the region as well as the measure.
- A smooth coordinate map deforms space; the local stretching of volume is the determinant of the Jacobian matrix .
- The rule is , so — substitute , insert the factor, transform the region.
- The absolute value is essential: is a volume factor (never negative), while the sign of records only orientation, and matters only for oriented (form) integrals.
- The standard elements fall straight out: plane polar gives , cylindrical gives , spherical gives ; a vanishing Jacobian flags a coordinate singularity such as the polar origin or the spherical poles.
- Inverse maps have reciprocal Jacobians, , and composed maps multiply, exactly as the chain rule demands.
- The same determinant is the invariant volume element of curved coordinates: , the of curvilinear calculus and the of relativity.
- Key idea: a differentiable coordinate map is locally linear; its derivative matrix sends a unit cell to a parallelepiped of volume , so volume elements transform as .
A differentiable coordinate map is locally linear; its derivative matrix sends a unit cell to a parallelepiped of (signed) volume , so volume elements transform as , and this one factor is the whole of the change-of-variables theorem.
Where this lives today
The Jacobian determinant is quietly everywhere modern computation touches geometry or probability. In machine learning it is the heart of normalizing flows, generative models that build a complicated density by pushing a Gaussian through an invertible neural network; training maximizes the exact log-likelihood , so architectures such as RealNVP and Glow are engineered to make cheap — the whole field is applied change-of-variables. In finite-element methods each curved element is the image of a reference cube under a map whose Jacobian weights every quadrature point, and a negative element Jacobian flags an inverted mesh — a standard quality gate. In general relativity and lattice field theory the same object is the invariant measure that makes the action coordinate-independent. And in statistics, any reparameterization of a random variable, , is the change-of-variables theorem worn as a density transformation — the reason a Box–Muller transform turns uniform numbers into perfect Gaussians.
The physical picture
Lay a stretchable rubber grid over the plane and deform it: cells that were unit squares become little parallelograms, each of a different size and tilt. The Jacobian determinant at a point is just the area of the local parallelogram there — the factor by which the map magnifies or shrinks area at that spot. The two columns of the Jacobian matrix are the tangent vectors you get by stepping one unit along each new coordinate, , and the area (in dimensions, the volume) they span is their determinant. When those tangent vectors line up or one collapses to zero, the parallelogram flattens, the determinant vanishes, and the coordinates degenerate. The first figure makes "the map acts locally like " concrete for a definite linear map whose cells double in area.
The sign of carries a second piece of information: whether the map preserves handedness or flips it. A reflection makes negative, but a region cannot have negative volume, so for measuring integrals we keep . The sign resurfaces only for oriented integrals — flux through a surface, or forms in Stokes-type theorems. The second figure turns the geometry into the most-used instance of the rule: the polar area element, drawn as an annular cell with real numbers attached.
The core equations
The whole subject is one theorem plus its consequences: to integrate in new coordinates, substitute the map into the integrand, multiply by the absolute Jacobian, and carry the region across. Everything below is this statement or a computation of the factor.
where: — the region in -space and its preimage in -space under the map ; — the integrable scalar integrand; — the Jacobian matrix of the forward map, ; — the volume element in the new coordinates. Rewrite in the new variables, weight each cell by the stretch factor, and integrate over the transformed region. The Jacobian matrix itself is the derivative of the vector-valued map — the matrix of all first partials, whose -th column is the tangent vector . It is the multivariable generalization of the ordinary derivative .
where: — the rate of change of the -th old coordinate as the -th new coordinate varies. The notation is standard shorthand for its determinant. Isolating the geometric heart of the theorem gives the volume-element rule: a small box in -space becomes a box times as large in -space.
where: — the local volume-scaling factor, always non-negative. This is what you multiply by; the absolute value guarantees the measure stays positive. A coordinate change and its inverse undo one another, so their Jacobians are reciprocals — the multivariable echo of , and the fastest route to the factor when only the inverse map is easy to differentiate.
where: — the Jacobian of the inverse map . If one determinant is , the other is . The two workhorse cases are the plane-polar and spherical elements. The polar Jacobian is a two-by-two determinant that collapses to a clean by the Pythagorean identity.
where: — radial distance, ; — polar angle. The factor says an angular step sweeps a longer arc far from the origin, so cells grow with . The spherical element carries an extra sine because a step in azimuth sweeps a circle of radius , which shrinks toward the poles. The determinant is worked out in Derivation C.
where: — radial distance; — polar (colatitude) angle, , so ; — azimuthal angle, . The factor vanishes at the origin and on the poles () — where the chart degenerates. The same determinant reappears when geometry is described by a metric. The metric (Gram) tensor of a curvilinear system is , so and the invariant volume element is exactly .
where: — the metric tensor of the curvilinear coordinates; — the invariant volume element that appears in curvilinear gradient, divergence, and Laplacian, and (with signature sign) as the of general relativity. Chained coordinate changes multiply their Jacobians, — the determinant chain rule — of which reciprocity (4) is the special case where the composite is the identity.
The goal is to prove equation (3) — that a smooth map carries an infinitesimal cell to a cell of volume — from nothing more than differentiability and the fact that a determinant measures the volume of the parallelepiped spanned by a set of vectors. The strategy: zoom in until the map looks linear, identify the images of the coordinate edges as the columns of , and read off the volume of the parallelepiped they span. The theorem then follows by summing cells, which is what Riemann integration does.
Step 1. Fix a point and expand the map to first order, . Over a cell of side the neglected terms are of order and drop out, so on that cell the map is exactly the affine action of the constant matrix . Why: this is why a determinant enters — a general smooth map is not volume-multiplying, but its linearization is, and integration only sees the linearization.
Step 2. Track the edges. The edge maps to — the -th column of scaled by — so the image of the coordinate box is the parallelepiped built on the tangent vectors . Why: this is where the columns of the Jacobian acquire their geometric meaning — they are literally the edges of the image cell.
Step 3. By the defining property of the determinant, the signed volume of the parallelepiped whose edges are the columns of a matrix is that matrix's determinant. Hence
The absolute value appears because physical volume is unsigned, whereas carries orientation. Why: the determinant is the definition of oriented volume, so its modulus is the honest volume factor.
Step 4. Assemble the integral. Partition into such cells; each contributes times its image volume , and the limit of the sum is equation (1). Why: the theorem is just "add up the cells," the Jacobian weighting each by its true size in -space. *Verified: recovers for a constant linear map , and reduces to the single-variable when — both checked against Stone and Goldbart, Arfken and Weber.*
Go deeper · Derivation B · 1 minThe Gaussian integral from the polar Jacobian
The goal is to evaluate , an integral with no elementary antiderivative, by squaring it into a two-dimensional integral and letting the polar Jacobian do the work. The payoff is , and the factor supplied by the change of variables is what turns an intractable integral into an elementary one — the calculation underneath the normalization of the Gaussian distribution and the Maxwell–Boltzmann speed law.
Step 1. Square the integral and read the product as one integral over the plane, using independent dummy variables:
Why: a one-dimensional integral has no symmetry to exploit, but its square is an integral over the whole plane — rotationally symmetric, begging for polar coordinates.
Step 2. Change to polar coordinates: and, by equation (5), . The region becomes the product rectangle :
Why: the Jacobian factor is the hero — the radial integrand is an exact differential, whereas the bare is no easier than the original.
Step 3. Do the radial integral with , so the factor supplies precisely the needed:
Why: this is the step that would be impossible in Cartesian form — the Jacobian converted a non-elementary integrand into one that integrates in a single line.
Step 4. The angular integral is trivial, and the positive root (since ) finishes:
Why: the answer normalizes every Gaussian in physics, and it fell out purely because the change of variables handed us the factor . *Verified: is the standard textbook value (Arfken and Weber; Riley, Hobson and Bence); numerically .*
Go deeper · Derivation C · 1 minThe spherical volume element and the volume of a ball
The goal is to compute the spherical Jacobian by cofactor expansion, confirm it equals , and integrate the constant over a ball to recover — the cleanest demonstration that the Jacobian is what makes a three-dimensional integral separate into three one-dimensional ones. We start from the standard spherical map and differentiate.
Step 1. With , the Jacobian matrix has the tangent vectors as its columns:
Why: reading columns as tangent vectors keeps the geometry in view — the third column has no -component because moving in never changes height.
Step 2. Expand along the bottom row, where the zero kills one term. The two surviving cofactors (using inside each) are and , giving
Since , , so . Why: the identity does all the collapsing — the nine-entry determinant reduces to a single monomial.
Step 3. Integrate over the ball of radius using . Because the element factorizes and the limits are constant, the integral splits:
Why: this factorization — impossible in Cartesian coordinates for a ball — is the whole practical value of the change of variables; the awkward region became a product box.
Step 4. Evaluate the three pieces, , , and , and multiply:
Why: recovering the schoolbook sphere volume from first principles certifies both the determinant and the whole change-of-variables machinery. *Verified: reproduces ; the determinant was independently reconfirmed by direct cofactor expansion in the accompanying check.*
Limiting cases
The one formula contains every standard element and the degenerate cases as special values of the Jacobian.
| Case | Result | Meaning |
|---|---|---|
| Plane polar | ; Jacobian . Degenerate at , where is undefined. | |
| Cylindrical | ; Jacobian . Singular on the -axis (). | |
| Spherical | so ; Jacobian . Vanishes at and on the poles . | |
| Linear map | Constant Jacobian; the elementary fact that a matrix scales volume by . | |
| Singular Jacobian | Map not locally invertible; coordinates collapse. Such loci have measure zero and rarely affect the integral, but mark where the chart fails. |
Worked examples
1 · The area of an ellipse by a linear change of variables (confidence builder)
Find the area enclosed by the ellipse with , by mapping it to the unit disk.
Step 1. Choose the map that turns the ellipse into a circle: . Then , so the ellipse is the image of the unit disk — the region is now trivial.
Step 2. The forward Jacobian is constant and diagonal, so , giving . With , : every cell stretches sixfold.
Step 3. Apply the theorem with integrand :
Step 4. Insert the numbers: . The general result reduces to for a circle () — a good sanity check. The ellipse area is , because the constant Jacobian pulls straight out of the integral.
2 · Normalizing the hydrogen ground state with the spherical Jacobian
The hydrogen ground state is , with the Bohr radius. Verify it is normalized: .
Step 1. The density depends on alone, so spherical coordinates and their Jacobian are the natural choice:
Step 2. The angular integrals are independent and give the full solid angle: — the reward for the density having no angular dependence.
Step 3. The radial integral uses with :
The Jacobian's is exactly what makes this a standard gamma integral; without it the normalization would come out wrong.
Step 4. Multiply the pieces:
The wavefunction is correctly normalized to , and the Bohr radius cancels completely — the Jacobian is what converts the volume integral into the product of an angular and a radial .
Physics of the portrait
The determinant that governs every change of variables carries the name of the mathematician who first treated such "functional determinants" as objects in their own right — though the rule itself had been used by Euler and Lagrange two generations earlier.
Origins · 1 minCarl Gustav Jacob Jacobi and how this was discovered
Carl Gustav Jacob Jacobi was one of the towering analysts of the nineteenth century, and his name is stamped on the determinant because he was the first to study it systematically. Born in Potsdam in 1804 and appointed to a chair at Königsberg at just twenty-two, he built there a model research seminar. His deepest work was on elliptic functions — the 1829 Fundamenta nova, developed in famous rivalry with Abel — but his reach was enormous: determinants, the calculus of variations, differential equations, and analytical mechanics. The change-of-variables factor traces to his 1841 paper De determinantibus functionalibus, which isolated the determinant of the matrix of partial derivatives, proved its multiplicative behaviour under composition, and showed that its vanishing signals functional dependence among the coordinates — everything the composition rule and the singular-Jacobian case encode. The name "Jacobian" was coined later by James Joseph Sylvester in honour of this work. In mechanics his name lives on twice more, in the Hamilton–Jacobi equation and the Jacobi identity of Poisson brackets, so a physicist meets him whether computing a spherical volume element or canonically transforming a phase-space integral — a fitting unity, since both are changes of variables weighted by a Jacobian. He died in Berlin in 1851 of smallpox, at forty-six.
Going further
Texts. Stone and Goldbart, Mathematics for Physics, ch. on multivariable calculus and coordinate transformations · Arfken and Weber, Mathematical Methods for Physicists, § on Jacobians and curvilinear coordinates · Riley, Hobson and Bence, Mathematical Methods for Physics and Engineering, ch. on multiple integrals · Hassani, Mathematical Physics, on determinants and change of variables · Spivak, Calculus on Manifolds (the change-of-variables theorem, rigorous form).
Provenance. Every Jacobian quoted here — polar , cylindrical , spherical — and every worked result — , ball volume , ellipse area , hydrogen normalization , the metric identity , reciprocity and the composition rule — is standard and appears in Stone and Goldbart, Arfken and Weber, and Riley, Hobson and Bence. A verifier should recompute the polar and spherical determinants by cofactor expansion, confirm the Gaussian integral via , check , and confirm so the hydrogen density integrates to unity.
Prerequisites. Volume Integrals · Scalar and Vector Fields · The Gradient Operator. Leads to. The Laplacian Operator · Surface Integrals and Flux · The Divergence (Gauss) Theorem.
Ask the tutor: Want to see how the very same Jacobian that gives for a sphere becomes the measure of curved spacetime — or how normalizing flows turn into a trainable loss? Ask, and we'll trace it end to end.
Why is it the determinant, specifically, that measures how volume scales?
Because the determinant is defined as oriented volume. The signed volume of the parallelepiped spanned by vectors placed as the columns of a matrix is exactly that matrix's determinant — the geometric meaning of the determinant, not a derived fact. When a smooth map is linearized, the edges of an infinitesimal box become the columns of the Jacobian, so the image box has volume times the original. Any other combination of partials would fail to be multiplicative under composition or would not vanish exactly when the coordinates degenerate; the determinant does both, which is why it alone is the volume factor.
When exactly does the sign of the Jacobian matter?
Only for oriented integrals. For ordinary volume or mass integrals you always use , because a region's measure cannot be negative and the orientation of your coordinates is irrelevant to how much is inside. The sign becomes physical when the integral is meant to flip if you reverse orientation — flux through an oriented surface, circulation around a loop, the integration of forms in Stokes' and Gauss' theorems. There a map that flips handedness () should flip the answer, so you keep the signed determinant. Rule of thumb: scalars over regions use ; forms over oriented manifolds use .
Do I differentiate the forward map or the inverse map?
The factor is the Jacobian of the forward map — the one expressing the old integration variables in terms of the new variables . In practice you often know the inverse instead (like ). Two clean options: differentiate whichever map is easier and, if it was the inverse, take the reciprocal, since . Getting this backwards inverts your Jacobian — an easily-caught error, since one direction gives and the other gives for polar coordinates.
The Jacobian vanishes at the origin in polar coordinates — doesn't that break the integral?
No, because the failure set has measure zero. In plane polar coordinates only at the point ; in spherical coordinates only at the origin and along the polar axis. These are lower-dimensional loci — a point, a line — and removing a measure-zero set never changes an integral's value. The vanishing Jacobian says something true but harmless: the chart degenerates there ( undefined at ; undefined on the poles), so the coordinates lose their one-to-one meaning at exactly those places. The integral doesn't notice.
How is this the same as u-substitution from single-variable calculus?
It is the exact multivariable generalization. In one dimension , where is a one-by-one Jacobian. The absolute value is hidden in one dimension because we handle it implicitly by swapping limits when the substitution is decreasing; the multivariable statement makes it explicit as , since there is no "swapping limits" for a region in the plane. So -substitution is just the case, with the determinant replacing the ordinary derivative when the variable becomes a vector.
What is the connection between the Jacobian and the metric tensor's √g?
They are the same number. The metric tensor is the Gram matrix of the coordinate tangent vectors, , i.e. , so and . This is why the invariant volume element of a curved system is written : it is the absolute Jacobian in disguise. In relativity the Lorentzian signature makes negative, so the measure is , but the logic is identical — the Jacobian bridges "change of variables" and "invariant integration on a curved space".