Book 3A

© 2026 Neckpinch · www.neckpinch.com · All rights reserved.

Course 3Book 3A: Measure, Integration and LᵖChapter 5

Product Measures and Change of Variables

Fubini–Tonelli, polar coordinates, volumes of balls and the Gaussian integral.

68 min read · Updated Nov 18, 2026

Read with Tao, An Introduction to Measure Theory, §1.7.4 "Product measure" (Tonelli's and Fubini's theorems); the earlier parts of §1.7 (outer measures, pre-measures, Lebesgue–Stieltjes measure) can be skimmed. Tao does not prove the change-of-variables formula; for it, read Munkres, Analysis on Manifolds, chapter "Changing Variables", or Stein and Shakarchi, Real Analysis, chapter 2.

In this chapter · 9 sections
  1. 5.1From measures to products and coordinates
  2. 5.2Seeing inside by integrating along lines
  3. 5.3Product measures
  4. 5.4Tonelli and Fubini
  5. 5.4.1When the order matters
  6. 5.4.2Slicing
  7. 5.5Change of variables
  8. 5.5.1The Jacobian on familiar maps
  9. 5.5.2Jacobians along a flow
  10. 5.5.3Polar coordinates
  11. 5.5.4Integrating over level sets
  12. 5.5.5Which powers of ∣x∣|x|∣x∣ are integrable
  13. 5.6The Gaussian integral
  14. 5.6.1Moments of the Gaussian
  15. 5.6.2Gaussian integrals of quadratic forms
  16. 5.6.3Volumes of balls and spheres
  17. 5.6.4The volume of a ball by slicing
  18. 5.6.5Volumes of neighbourhoods
  19. 5.6.6Scaling
  20. 5.7From computing integrals to understanding convergence
  21. 5.7.1Scaling and the heat kernel
  22. 5.8History
  23. 5.9Exercises
  24. ↗Free resources

Two computations dominate the rest of this guidebook's analysis. One is splitting an integral over a product space into iterated integrals: integrate over xx, then over yy. The other is changing variables, as when an integral over Rn\mathbb{R}^n is done in polar coordinates, or a metric is pulled back by a diffeomorphism. Course 1 did both by computation (1A.9 Multiple Integrals and Change of Variables). This chapter says when they are legitimate. The answers are Tonelli's and Fubini's theorems, which say iterated integrals may be taken in either order provided the integrand is non-negative or absolutely integrable, and the change-of-variables formula, in which the Jacobian determinant records how a map stretches volume.

With those in hand we compute the most important integral in the guidebook:

∫Rn(4πτ)−n/2e−∣x∣2/4τ dx=1.\int_{\mathbb{R}^n}(4\pi\tau)^{-n/2}e^{-|x|^2/4\tau}\,dx = 1.

It normalises the heat kernel (6A.3 The Heat Equation on ℝⁿ), and it normalises Perelman's weighted measure (12A.3 The 𝓦-Entropy), in which flat space is the case of equality. Along the way come the volumes of balls in every dimension, which turn out to have a surprise in store.

By the end of this chapter you will be able to:

  • state Tonelli's and Fubini's theorems, prove them for Lebesgue measure, and check their hypotheses, with counterexamples when they fail;
  • prove and use the change-of-variables formula, including polar and spherical coordinates;
  • compute ∫e−x2dx=π\int e^{-x^2}dx = \sqrt\pi and its nn-dimensional and scaled versions;
  • compute the volume of the unit ball and the area of the unit sphere in Rn\mathbb{R}^n;
  • use the scaling rule dx↦λn dxdx \mapsto \lambda^n\,dx to see how integrals behave under dilation.

From measures to products and coordinates

3A.4 Measures, Probability and Weights set the integral free of Lebesgue measure: any σ-algebra with a countably additive measure will do, and the operations of pushforward and reweighting produce new measures from old. It ended by naming three facts it had used without proof: the normalisation of the Gaussian, the scaling of integrals under dilation, and the Jacobian factor in the density of a pushforward. All three are about integrals in several variables, and this chapter supplies the two theorems behind them.

A warm-up with the unit disc shows both theorems in miniature, using only one-variable calculus. Slicing: the vertical line at x∈[−1,1]x \in [-1, 1] meets the disc in a segment of length 21−x22\sqrt{1 - x^2}, and adding up the lengths of the slices,

∫−1121−x2 dx=π,\int_{-1}^12\sqrt{1 - x^2}\,dx = \pi,

by the substitution x=sin⁡θx = \sin\theta. Rings: the ring between radii rr and r+drr + dr has area about 2πr dr2\pi r\,dr, and adding up the rings, ∫012πr dr=π\int_0^12\pi r\,dr = \pi. The first computation integrates the measures of slices, which is Tonelli's theorem; the second changes coordinates to polar ones, with the factor rr that measures how much the map (r,θ)↦(rcos⁡θ,rsin⁡θ)(r, \theta) \mapsto (r\cos\theta, r\sin\theta) stretches area, which is the change of variables formula. Both were taken for granted in 1A.9 Multiple Integrals and Change of Variables; here they become theorems about Lebesgue integrals, valid for every measurable function and not only for continuous ones on nice regions.

What is new is that the theorems come with hypotheses that must be checked, non-negativity or absolute integrability for the exchange of order and smoothness and invertibility for the change of variables, and with counterexamples showing that the hypotheses are needed. The payoff is a set of computations used through the rest of the guide: the Gaussian integral and its nn-dimensional and scaled forms, the volumes of balls and spheres, and the scaling rules that decide the exponents in every inequality invariant under dilation.

Seeing inside by integrating along lines

In the world In use Computed tomography

An X-ray passing through the body is attenuated by the tissue it crosses. If μ(x)\mu(x) is the attenuation coefficient at the point xx of a cross-section, the Beer–Lambert law says the intensity falls from I0I_0 to I=I0exp⁡(−∫Lμ ds)I = I_0\exp\big(-\int_L\mu\,ds\big) along the line LL. So each measurement gives a line integral of μ\mu:

−log⁡II0=∫Lμ ds.-\log\frac{I}{I_0} = \int_L\mu\,ds.

A CT scanner measures these integrals for many parallel lines at each of many angles. The collection of all line integrals of a function is its Radon transform, after Johann Radon, who showed in 1917 how a function can be recovered from it. Allan Cormack worked out the mathematics for medical imaging in the early 1960s, and Godfrey Hounsfield built the first clinical CT scanner at EMI in the early 1970s; they shared the 1979 Nobel Prize in Physiology or Medicine.

The bookkeeping behind the method is Fubini's theorem. Integrating the measurements across all parallel lines at one angle gives ∬μ dx dy\iint\mu\,dx\,dy, the total attenuation in the slice, whatever the angle (Figure 5.1). That is a consistency check on the data, and the reconstruction formulas are built from the same exchange of integration orders.

Figure 5.1. Left: a simple phantom (three ellipses of different attenuation) crossed by parallel rays at 30°30°. Right: the line integrals along those rays, computed numerically, plotted against the ray's offset. By Fubini's theorem the area under the profile is ∬μ\iint\mu, the same at every angle.

Product measures

Let (X,BX,μ)(X, \mathcal{B}_X, \mu) and (Y,BY,ν)(Y, \mathcal{B}_Y, \nu) be measure spaces. A measurable rectangle is a set A×BA \times B with A∈BXA \in \mathcal{B}_X, B∈BYB \in \mathcal{B}_Y. The product σ-algebra BX×BY\mathcal{B}_X \times \mathcal{B}_Y is the smallest σ-algebra containing the measurable rectangles.

Theorem 5.1 Product measure

If μ\mu and ν\nu are σ-finite, there is exactly one measure μ×ν\mu \times \nu on BX×BY\mathcal{B}_X \times \mathcal{B}_Y with (μ×ν)(A×B)=μ(A) ν(B)(\mu \times \nu)(A \times B) = \mu(A)\,\nu(B) for all measurable rectangles.

Tao builds it in §1.7 by the Carathéodory extension theorem: define the measure on finite unions of rectangles, check countable additivity there, and extend. For Lebesgue measure, md1×md2m^{d_1} \times m^{d_2} agrees with md1+d2m^{d_1 + d_2} on Borel sets, and md1+d2m^{d_1+d_2} is its completion (add all subsets of null sets).

Tonelli and Fubini

Theorem 5.2 Tonelli's theorem

Let μ\mu, ν\nu be σ-finite and f:X×Y→[0,+∞]f : X \times Y \to [0, +\infty] measurable for the product σ-algebra. Then x↦∫Yf(x,y) dν(y)x \mapsto \int_Yf(x, y)\,d\nu(y) and y↦∫Xf(x,y) dμ(x)y \mapsto \int_Xf(x, y)\,d\mu(x) are measurable, and

∫X×Yf d(μ×ν)=∫X(∫Yf(x,y) dν(y))dμ(x)=∫Y(∫Xf(x,y) dμ(x))dν(y).\int_{X\times Y}f\,d(\mu\times\nu) = \int_X\Big(\int_Yf(x, y)\,d\nu(y)\Big)d\mu(x) = \int_Y\Big(\int_Xf(x, y)\,d\mu(x)\Big)d\nu(y).
Theorem 5.3 Fubini's theorem

Let μ\mu, ν\nu be σ-finite and f∈L1(μ×ν)f \in L^1(\mu \times \nu). Then for μ\mu-almost every xx, y↦f(x,y)y \mapsto f(x, y) is ν\nu-integrable; x↦∫Yf(x,y) dν(y)x \mapsto \int_Yf(x, y)\,d\nu(y) is μ\mu-integrable; and the same three integrals are equal. The same holds with the roles of xx and yy exchanged.

For general σ-finite spaces the proofs (Tao, §1.7.4) run through the abstract construction of μ×ν\mu \times \nu and a "monotone class" argument. For Lebesgue measure, the case used in this guidebook, there is a direct proof, built from the facts of 3A.2 Lebesgue Measure. It proves at the same time that Lebesgue measure on Rd1+d2\mathbb{R}^{d_1 + d_2} is the product of the Lebesgue measures on the factors.

Proof (Tonelli for Lebesgue measure). Write points of Rd1+d2\mathbb{R}^{d_1+d_2} as (x,y)(x, y), and for a set EE let Ex={y:(x,y)∈E}E_x = \{y : (x, y) \in E\} be its slice. We show, for every measurable EE: for almost every xx, ExE_x is measurable; x↦m(Ex)x \mapsto m(E_x) is measurable; and m(E)=∫m(Ex) dxm(E) = \int m(E_x)\,dx. (That is Tonelli for f=1Ef = 1_E, integrating first in yy; the other order is the same with the roles exchanged.)

  1. Boxes. If E=A×BE = A \times B is a box, ExE_x is BB for x∈Ax \in A and empty otherwise, so ∫m(Ex) dx=m(A)m(B)=m(E)\int m(E_x)\,dx = m(A)m(B) = m(E).
  2. Open sets. The proof of 3A.2 Lebesgue Measure's dyadic lemma works with half-open dyadic cubes ∏i[ji2k,ji+12k)\prod_i[\frac{j_i}{2^k}, \frac{j_i+1}{2^k}), which are pairwise disjoint or nested, so every open set is a disjoint countable union of half-open cubes QkQ_k. Then ExE_x is the disjoint union of the slices (Qk)x(Q_k)_x, and by countable additivity and monotone convergence (for the series), ∫m(Ex) dx=∑k∫m((Qk)x) dx=∑km(Qk)=m(E)\int m(E_x)\,dx = \sum_k\int m((Q_k)_x)\,dx = \sum_km(Q_k) = m(E).
  3. Bounded GδG_\delta sets. Let E=⋂nUnE = \bigcap_nU_n with U1⊇U2⊇⋯U_1 \supseteq U_2 \supseteq \cdots open and bounded. Each slice Ex=⋂n(Un)xE_x = \bigcap_n(U_n)_x is measurable, and by continuity from above, m(Ex)=lim⁡nm((Un)x)m(E_x) = \lim_nm((U_n)_x), a limit of measurable functions of xx. These are dominated by m((U1)x)m((U_1)_x), which is integrable by step 2, so dominated convergence gives ∫m(Ex) dx=lim⁡nm(Un)=m(E)\int m(E_x)\,dx = \lim_nm(U_n) = m(E).
  4. Null sets. If m(N)=0m(N) = 0, choose bounded open sets Un⊇NU_n \supseteq N (for bounded NN) with m(Un)<1nm(U_n) < \frac1n, decreasing, and let G=⋂UnG = \bigcap U_n. By step 3, ∫m(Gx) dx=m(G)=0\int m(G_x)\,dx = m(G) = 0, so m(Gx)=0m(G_x) = 0 for almost every xx, and then Nx⊆GxN_x \subseteq G_x is null. So ∫m(Nx) dx=0=m(N)\int m(N_x)\,dx = 0 = m(N). (Unbounded null sets are countable unions of bounded ones.)
  5. Bounded measurable sets. By the definition of measurability, a bounded measurable EE is G∖NG \setminus N with GG a bounded GδG_\delta set (intersect open sets Un⊇EU_n \supseteq E with m(Un∖E)<1nm(U_n \setminus E) < \frac1n, inside a fixed ball) and N=G∖EN = G \setminus E null. For almost every xx, NxN_x is null, so Ex=Gx∖NxE_x = G_x \setminus N_x is measurable with m(Ex)=m(Gx)m(E_x) = m(G_x). Integrate, using step 3.
  6. All measurable sets. Apply step 5 to E∩B(0,k)E \cap B(0, k) and let k→∞k \to \infty, by monotone convergence.

Functions. By linearity the statement holds for non-negative simple functions; approximating a non-negative measurable ff by increasing simple functions (3A.3 The Lebesgue Integral) and applying monotone convergence twice (inside, then outside) gives it for ff.

Fubini follows by applying Tonelli to f+f^+ and f−f^-. Tonelli applied to ∣f∣|f| shows ∫(∫∣f(x,y)∣ dy)dx<∞\int\big(\int|f(x, y)|\,dy\big)dx < \infty, so for almost every xx the inner integrals of f±f^\pm are finite, and the iterated integrals of f+f^+ and f−f^- are finite and can be subtracted.

In practice: to exchange the order of integration, check that ∬∣f∣<∞\iint|f| < \infty by computing it in either order, which Tonelli always allows. Then Fubini permits any order for ff itself.

Slices of measurable sets. One subtlety in the theorem is easy to miss. For a Borel set in the plane every slice is Borel, but for a Lebesgue measurable set the slices are measurable only for almost every xx, as the proof's step 4 shows: a null set in the plane can contain, over a single point xx, a non-measurable subset of the vertical line, and that slice is not measurable. Its exceptional xx form a null set, so the iterated integral does not notice. This is why Fubini's statement says "for almost every xx", and why the product of the Lebesgue σ-algebras of Rd1\mathbb{R}^{d_1} and Rd2\mathbb{R}^{d_2} is smaller than the Lebesgue σ-algebra of Rd1+d2\mathbb{R}^{d_1+d_2}, which is its completion.

Convolution, a first look. For integrable ff and gg on Rn\mathbb{R}^n, Tonelli and translation invariance give

∫ ⁣ ⁣∫∣f(x−y)∣ ∣g(y)∣ dy dx=∫∣g(y)∣(∫∣f(x−y)∣ dx)dy=∫∣f∣⋅∫∣g∣<∞.\int\!\!\int|f(x - y)|\,|g(y)|\,dy\,dx = \int|g(y)|\Big(\int|f(x - y)|\,dx\Big)dy = \int|f|\cdot\int|g| < \infty .

So the convolution f∗g(x)=∫f(x−y)g(y) dyf*g(x) = \int f(x - y)g(y)\,dy is defined for almost every xx, is integrable, and ∫f∗g=∫f∫g\int f*g = \int f\int g. 3A.8 Convolution and Mollifiers builds on this: convolving with a smooth bump smooths a function, and convolving with the heat kernel solves the heat equation.

When the order matters

Both hypotheses are needed.

Example 5.4 Without integrability

On N×N\mathbb{N} \times \mathbb{N} with counting measure, let am,n=1a_{m,n} = 1 if m=nm = n, am,n=−1a_{m,n} = -1 if n=m+1n = m + 1, and 00 otherwise. Each row has one 11 and one −1-1, so every row sums to 00, and summing the row sums gives 00. The first column has a single 11 and every other column a 11 and a −1-1, so the column sums are 1,0,0,…1, 0, 0, \ldots, totalling 11. The two iterated sums differ because ∑∣am,n∣=∞\sum|a_{m,n}| = \infty.

Example 5.5 Without σ-finiteness

On [0,1]×[0,1][0, 1] \times [0, 1], take Lebesgue measure in xx and counting measure in yy (not σ-finite on [0,1][0, 1]), and f=1Df = 1_D, the indicator of the diagonal D={x=y}D = \{x = y\}. For each xx, ∫1D(x,y) d#(y)=1\int1_D(x, y)\,d\#(y) = 1, so integrating in xx gives 11. For each yy, ∫1D(x,y) dx=0\int1_D(x, y)\,dx = 0, so integrating in yy gives 00.

A continuous counterexample. The failure of Fubini without integrability is not confined to sequences. On the unit square, let f(x,y)=x−y(x+y)3f(x, y) = \frac{x - y}{(x + y)^3}. For fixed xx, the substitution u=x+yu = x + y gives ∫01f(x,y) dy=1(1+x)2\int_0^1f(x, y)\,dy = \frac{1}{(1 + x)^2}, and integrating in xx gives 12\frac12. By the antisymmetry f(y,x)=−f(x,y)f(y, x) = -f(x, y), integrating in the other order gives −12-\frac12. The two iterated integrals disagree because ∬∣f∣=∞\iint|f| = \infty: near the corner (0,0)(0, 0), ∣f∣|f| behaves like 1r2\frac{1}{r^2} in polar coordinates, and ∫1r2 r dr\int\frac{1}{r^2}\,r\,dr diverges at 00. Checking ∬∣f∣<∞\iint|f| < \infty first, by Tonelli in whichever order is easier, would have flagged the problem.

Exchanging a sum and an integral. Tonelli on a product of Lebesgue measure and counting measure is the interchange of sum and integral for non-negative terms. Expanding 1ex−1=∑n≥1e−nx\frac{1}{e^x - 1} = \sum_{n\geq1}e^{-nx} for x>0x > 0,

∫0∞xex−1 dx=∑n≥1∫0∞xe−nx dx=∑n≥11n2=π26.\int_0^\infty\frac{x}{e^x - 1}\,dx = \sum_{n\geq1}\int_0^\infty xe^{-nx}\,dx = \sum_{n\geq1}\frac{1}{n^2} = \frac{\pi^2}{6} .

The integral appears in Planck's law of black-body radiation, in the closely related form ∫0∞x3ex−1dx=π415\int_0^\infty\frac{x^3}{e^x - 1}dx = \frac{\pi^4}{15}, obtained the same way with ∫0∞x3e−nxdx=6n4\int_0^\infty x^3e^{-nx}dx = \frac{6}{n^4} and ∑1n4=π490\sum\frac{1}{n^4} = \frac{\pi^4}{90}.

Independence is a product. In probability, two random variables XX and YY are independent when the law of the pair (X,Y)(X, Y) is the product of their laws. Fubini then gives E[XY]=EX EY\mathbb{E}[XY] = \mathbb{E}X\,\mathbb{E}Y for integrable independent variables, since ∬xy dμ(x) dν(y)\iint xy\,d\mu(x)\,d\nu(y) factors, and with it the additivity of variances, Var⁡(X+Y)=Var⁡X+Var⁡Y\operatorname{Var}(X + Y) = \operatorname{Var}X + \operatorname{Var}Y, used in 3A.4 Measures, Probability and Weights to get the σN\frac{\sigma}{\sqrt N} accuracy of Monte Carlo averages.

What the counterexamples have in common. Both failures of Fubini are failures to exchange two limiting processes, and both hide mass where neither iterated integral looks. In the double sequence, the mass +1+1 of the first column is never cancelled when summing by columns, because its partner −1-1 sits in a row that the column sum reaches only in the limit: the mass escapes to infinity along the diagonal. In the continuous example, positive and negative mass of infinite total size crowd into the corner (0,0)(0, 0), and each order of integration cancels them differently. This is the same phenomenon as the escapes of 3A.3 The Lebesgue Integral, seen in two variables: when ∬∣f∣=∞\iint|f| = \infty, there is infinite positive and negative mass, and the order in which they are added decides the answer. Absolute integrability is the condition that there is not enough mass anywhere for the order to matter. For non-negative functions there is no cancellation at all, every piece of mass is counted with the same sign, and that is why Tonelli needs no hypothesis beyond measurability: adding non-negative quantities in any order gives the same total, finite or infinite, just as for series of non-negative terms.

Slicing

Applied to an indicator function, Tonelli says the measure of a set is the integral of the measures of its slices: if E⊆Rn+1E \subseteq \mathbb{R}^{n+1} and Et={x:(x,t)∈E}E_t = \{x : (x, t) \in E\}, then m(E)=∫m(Et) dtm(E) = \int m(E_t)\,dt. This is Cavalieri's principle: solids with slices of equal area at every height have equal volume. It gives, for example, the volume of a solid of revolution, and it gives the layer-cake formula for an integral, Lebesgue's horizontal slicing (3A.3 The Lebesgue Integral) made exact:

∫f dμ=∫0∞μ({f>t}) dt(f≥0),\int f\,d\mu = \int_0^\infty\mu(\{f > t\})\,dt \qquad (f \geq 0),

by applying Tonelli to the region under the graph of ff (Exercise 5.10).

Change of variables

The derivative of a map is its best linear approximation (2B.8 Calculus in Several Variables), so the first case to understand is a linear map.

Proposition 5.6 Linear maps scale volume by ∣det⁡∣|\det|

If T:Rn→RnT : \mathbb{R}^n \to \mathbb{R}^n is linear and EE is measurable, then T(E)T(E) is measurable and m(T(E))=∣det⁡T∣ m(E)m(T(E)) = |\det T|\,m(E).

Proof. If TT is singular, T(E)T(E) lies in a hyperplane, which is null. Otherwise TT is a homeomorphism of Rn\mathbb{R}^n that maps cubes of side ss into balls of radius ∥T∥n s\|T\|\sqrt n\,s, so it maps null sets to null sets, and open sets to open sets; since a measurable set is a GδG_\delta set minus a null set (3A.2 Lebesgue Measure), T(E)T(E) is measurable. Now ν(E)=m(T(E))\nu(E) = m(T(E)) is a translation-invariant measure (T(E+a)=T(E)+TaT(E + a) = T(E) + Ta). Let c(T)=ν([0,1)n)c(T) = \nu([0, 1)^n). A half-open dyadic cube of side 2−k2^{-k} is one of 2kn2^{kn} disjoint translates that tile [0,1)n[0, 1)^n, so it has ν\nu-measure 2−knc(T)2^{-kn}c(T), which is c(T)c(T) times its Lebesgue measure. Every open set is a disjoint union of such cubes, so ν(U)=c(T)m(U)\nu(U) = c(T)m(U) for open UU. Finally, open sets V⊇T(E)V \supseteq T(E) are exactly the sets T(U)T(U) with U⊇EU \supseteq E open, so by outer regularity of Lebesgue measure, ν(E)=inf⁡Uν(U)=c(T)inf⁡Um(U)=c(T)m(E)\nu(E) = \inf_U\nu(U) = c(T)\inf_Um(U) = c(T)m(E). Since (TS)(E)=T(S(E))(TS)(E) = T(S(E)), c(TS)=c(T)c(S)c(TS) = c(T)c(S). Every invertible matrix is a product of elementary matrices (row operations), and for those cc can be computed directly: scaling one coordinate by λ\lambda multiplies volumes by ∣λ∣|\lambda|; swapping two coordinates preserves the unit cube; and a shear x1↦x1+x2x_1 \mapsto x_1 + x_2 preserves volume by Cavalieri (each slice is translated). In each case c=∣det⁡∣c = |\det|, and det⁡\det is multiplicative too.

Theorem 5.7 Change of variables

Let U,V⊆RnU, V \subseteq \mathbb{R}^n be open and ϕ:U→V\phi : U \to V a C1C^1 diffeomorphism (a C1C^1 bijection with C1C^1 inverse). Then for every measurable f≥0f \geq 0 on VV (or f∈L1(V)f \in L^1(V)),

∫Vf(y) dy=∫Uf(ϕ(x)) ∣det⁡Dϕ(x)∣ dx.\int_Vf(y)\,dy = \int_Uf(\phi(x))\,|\det D\phi(x)|\,dx.

Proof. The idea is that near a point aa, ϕ\phi is nearly the linear map Dϕ(a)D\phi(a), which scales volume by ∣det⁡Dϕ(a)∣|\det D\phi(a)| (Proposition 5.6). A neat trick halves the work: it is enough to prove an inequality, because applying it to ϕ−1\phi^{-1} gives the reverse.

Step 1: small cubes. Let K⊆UK \subseteq U be compact and ε>0\varepsilon > 0. By uniform continuity of DϕD\phi and of x↦Dϕ(x)−1x \mapsto D\phi(x)^{-1} on a compact neighbourhood of KK (2B.3 Compactness), there is δ>0\delta > 0 such that for every closed cube QQ of side s<δs < \delta centred at a point a∈Ka \in K, and every x∈Qx \in Q: ∥Dϕ(a)−1Dϕ(x)−I∥≤η\|D\phi(a)^{-1}D\phi(x) - I\| \leq \eta and ∣det⁡Dϕ(a)∣≤∣det⁡Dϕ(x)∣+ε|\det D\phi(a)| \leq |\det D\phi(x)| + \varepsilon, where η>0\eta > 0 is chosen so that M((1+ηn)n−1)≤εM\big((1 + \eta\sqrt n)^n - 1\big) \leq \varepsilon, MM being the maximum of ∣det⁡Dϕ∣|\det D\phi| near KK. Let T=Dϕ(a)T = D\phi(a) and ψ=T−1∘ϕ\psi = T^{-1}\circ\phi, so Dψ(x)=T−1Dϕ(x)D\psi(x) = T^{-1}D\phi(x). By the mean value inequality (2B.8 Calculus in Several Variables) applied to ψ(x)−x\psi(x) - x on the segment from aa to xx,

∣ψ(x)−ψ(a)−(x−a)∣≤η∣x−a∣≤ηn s2.|\psi(x) - \psi(a) - (x - a)| \leq \eta|x - a| \leq \eta\sqrt n\,\tfrac s2.

So every coordinate of ψ(x)−ψ(a)\psi(x) - \psi(a) is at most s2(1+ηn)\frac s2(1 + \eta\sqrt n) in size: ψ(Q)\psi(Q) lies in a cube of side s(1+ηn)s(1 + \eta\sqrt n). Hence

m(ϕ(Q))=m(Tψ(Q))≤∣det⁡T∣(1+ηn)nm(Q)≤(∣det⁡T∣+ε)m(Q)≤∫Q∣det⁡Dϕ∣+2ε m(Q).m(\phi(Q)) = m(T\psi(Q)) \leq |\det T|(1 + \eta\sqrt n)^nm(Q) \leq \big(|\det T| + \varepsilon\big)m(Q) \leq \int_Q|\det D\phi| + 2\varepsilon\,m(Q).

Step 2: the inequality m(ϕ(E))≤∫E∣det⁡Dϕ∣m(\phi(E)) \leq \int_E|\det D\phi|. For an open WW whose closure is a compact subset of UU, apply step 1 with K=W‾K = \overline W: write WW as a disjoint union of half-open dyadic cubes of side less than δ\delta (subdivide the cubes of the dyadic lemma), apply step 1 to their closures, and add: m(ϕ(W))≤∫W∣det⁡Dϕ∣+2εm(W)m(\phi(W)) \leq \int_W|\det D\phi| + 2\varepsilon m(W), for every ε\varepsilon. For a measurable EE with E‾\overline E compact in UU, choose such open sets Wk⊇EW_k \supseteq E, inside a fixed one, with m(Wk∖E)→0m(W_k \setminus E) \to 0; then m∗(ϕ(E))≤m(ϕ(Wk))≤∫Wk∣det⁡Dϕ∣→∫E∣det⁡Dϕ∣m^*(\phi(E)) \leq m(\phi(W_k)) \leq \int_{W_k}|\det D\phi| \to \int_E|\det D\phi| by dominated convergence. A general E⊆UE \subseteq U is an increasing union of such sets. (This also shows that ϕ\phi maps null sets to null sets; since it maps open sets to open sets, it maps measurable sets to measurable sets, as in Proposition 5.6.)

Step 3: the inequality for functions. For f=1Af = 1_A with A⊆VA \subseteq V measurable, step 2 with E=ϕ−1(A)E = \phi^{-1}(A) gives ∫Vf=m(A)≤∫U1A(ϕ(x))∣det⁡Dϕ(x)∣ dx\int_Vf = m(A) \leq \int_U1_A(\phi(x))|\det D\phi(x)|\,dx. By linearity and monotone convergence, ∫Vf≤∫U(f∘ϕ)∣det⁡Dϕ∣\int_Vf \leq \int_U(f\circ\phi)|\det D\phi| for every measurable f≥0f \geq 0.

Step 4: the reverse. Apply step 3 to the diffeomorphism ϕ−1:V→U\phi^{-1} : V \to U and the function g=(f∘ϕ)∣det⁡Dϕ∣g = (f\circ\phi)|\det D\phi| on UU. Since D(ϕ−1)(y)=Dϕ(ϕ−1(y))−1D(\phi^{-1})(y) = D\phi(\phi^{-1}(y))^{-1} (2B.9 The Inverse and Implicit Function Theorems), the Jacobians cancel:

∫Ug≤∫Vg(ϕ−1(y)) ∣det⁡D(ϕ−1)(y)∣ dy=∫Vf(y) dy.\int_Ug \leq \int_Vg(\phi^{-1}(y))\,|\det D(\phi^{-1})(y)|\,dy = \int_Vf(y)\,dy.

Together with step 3 this is the formula. For f∈L1(V)f \in L^1(V), split into positive and negative parts.

The factor ∣det⁡Dϕ∣|\det D\phi| is the Jacobian. In one variable it is the ∣ϕ′∣|\phi'| of 2A.11 The Riemann Integral's substitution rule. On a manifold it becomes the way the volume form changes between charts (8A.8 Differential Forms and Stokes’ Theorem), and under a flow of diffeomorphisms it is the divergence that measures the rate of change of volume (8A.6 Flows and the Lie Derivative).

The Jacobian on familiar maps

Three computations make the formula concrete. Ellipses and ellipsoids. The map (u,v)↦(au,bv)(u, v) \mapsto (au, bv) sends the unit disc onto the ellipse x2a2+y2b2≤1\frac{x^2}{a^2} + \frac{y^2}{b^2} \leq 1, with Jacobian abab, so the ellipse has area πab\pi ab; in three dimensions the ellipsoid with semi-axes aa, bb, cc has volume 43πabc\frac43\pi abc. Spherical coordinates. The map (r,φ,θ)↦(rsin⁡φcos⁡θ,rsin⁡φsin⁡θ,rcos⁡φ)(r, \varphi, \theta) \mapsto (r\sin\varphi\cos\theta, r\sin\varphi\sin\theta, r\cos\varphi) has Jacobian determinant r2sin⁡φr^2\sin\varphi, so dx=r2sin⁡φ dr dφ dθdx = r^2\sin\varphi\,dr\,d\varphi\,d\theta, and integrating sin⁡φ\sin\varphi over φ∈(0,π)\varphi \in (0, \pi) and θ∈(0,2π)\theta \in (0, 2\pi) gives the area 4π4\pi of the unit sphere. A shear. The map (x,y)↦(x+ty,y)(x, y) \mapsto (x + ty, y) has Jacobian 11, so it preserves area, which is Cavalieri's principle: a stack of coins pushed sideways keeps its volume.

The Jacobian is a local stretching factor. Where it is larger than 11 the map expands volume, and a density pushed forward by the map is diluted, as in 3A.4 Measures, Probability and Weights; where it is smaller, the map compresses. On a Riemannian manifold the same factor, applied to the metric written in two charts, is what makes the volume form det⁡g dx\sqrt{\det g}\,dx independent of the chart.

Jacobians along a flow

When a family of diffeomorphisms ϕt\phi_t is generated by a vector field XX, so that ddtϕt(x)=X(ϕt(x))\frac{d}{dt}\phi_t(x) = X(\phi_t(x)), the Jacobian determinant evolves by a simple law:

ddtdet⁡Dϕt(x)=(div⁡X)(ϕt(x)) det⁡Dϕt(x).\frac{d}{dt}\det D\phi_t(x) = (\operatorname{div}X)(\phi_t(x))\,\det D\phi_t(x).

This is Jacobi's formula for the derivative of a determinant, ddtlog⁡det⁡A=tr⁡(A−1A′)\frac{d}{dt}\log\det A = \operatorname{tr}(A^{-1}A'), applied to A=DϕtA = D\phi_t, whose derivative is DX⋅DϕtDX\cdot D\phi_t. So a flow expands volume where its divergence is positive and preserves it exactly when the vector field is divergence-free, Liouville's theorem, which is why incompressible fluids and Hamiltonian systems preserve volume. The same formula, with the metric in place of the Euclidean structure, is the computation in 11A.1 The Equation and Its First Solutions that the volume form of a Ricci flow evolves by ∂t dV=−R dV\partial_t\,dV = -R\,dV: the role of the divergence is played by minus half the trace of ∂tg\partial_tg.

Box–Muller: Gaussians from uniforms. Polar coordinates turn the Gaussian integral into a recipe for sampling. If (X,Y)(X, Y) is a pair of independent standard normal variables, its density 12πe−(x2+y2)/2\frac{1}{2\pi}e^{-(x^2+y^2)/2} is, in polar coordinates, 12πe−r2/2r dr dθ\frac{1}{2\pi}e^{-r^2/2}r\,dr\,d\theta: the angle is uniform on [0,2π)[0, 2\pi), the radius has density re−r2/2re^{-r^2/2}, and the two are independent. The radius has distribution function 1−e−r2/21 - e^{-r^2/2}, so by inverse transform sampling (3A.4 Measures, Probability and Weights) it can be produced as −2log⁡U\sqrt{-2\log U} from a uniform UU. With a second uniform VV, the pair (−2log⁡Ucos⁡2πV,−2log⁡Usin⁡2πV)\big(\sqrt{-2\log U}\cos2\pi V, \sqrt{-2\log U}\sin2\pi V\big) is a pair of independent standard normals. The method, due to George Box and Mervin Muller (1958), is the change of variables formula run in reverse.

Maps that are not injective. When ϕ\phi is smooth but not one-to-one, each point yy may have several preimages, and the formula counts them:

∫Uf(ϕ(x)) ∣det⁡Dϕ(x)∣ dx=∫Vf(y) #ϕ−1(y) dy,\int_Uf(\phi(x))\,|\det D\phi(x)|\,dx = \int_Vf(y)\,\#\phi^{-1}(y)\,dy,

the area formula, with #ϕ−1(y)\#\phi^{-1}(y) the number of preimages. For ϕ(x)=x2\phi(x) = x^2 on [−1,1][-1, 1], every y∈(0,1]y \in (0, 1] has two preimages, and ∫−11f(x2) 2∣x∣ dx=2∫01f(y) dy\int_{-1}^1f(x^2)\,2|x|\,dx = 2\int_0^1f(y)\,dy. This is the bookkeeping behind the chi-squared density of 3A.4 Measures, Probability and Weights, where the two preimages ±y\pm\sqrt y each contributed, and it is how degree theory counts solutions of equations with signs in Book 7.

Polar coordinates

In the plane, ϕ(r,θ)=(rcos⁡θ,rsin⁡θ)\phi(r, \theta) = (r\cos\theta, r\sin\theta) maps (0,∞)×(0,2π)(0, \infty) \times (0, 2\pi) onto the plane minus a ray (a null set), with det⁡Dϕ=r\det D\phi = r. So

∫R2f(x,y) dx dy=∫02π∫0∞f(rcos⁡θ,rsin⁡θ) r dr dθ.\int_{\mathbb{R}^2}f(x, y)\,dx\,dy = \int_0^{2\pi}\int_0^\infty f(r\cos\theta, r\sin\theta)\,r\,dr\,d\theta.

In Rn\mathbb{R}^n, every non-zero xx is rωr\omega with r=∣x∣>0r = |x| > 0 and ω∈Sn−1\omega \in S^{n-1}, and Lebesgue measure splits as

dx=rn−1 dr dσ(ω),dx = r^{n-1}\,dr\,d\sigma(\omega),

where σ\sigma is surface measure on the unit sphere. For a radial function f(x)=g(∣x∣)f(x) = g(|x|) this gives

∫Rng(∣x∣) dx=∣Sn−1∣∫0∞g(r) rn−1 dr,(∗)\int_{\mathbb{R}^n}g(|x|)\,dx = |S^{n-1}|\int_0^\infty g(r)\,r^{n-1}\,dr, \tag{$*$}

with ∣Sn−1∣=σ(Sn−1)|S^{n-1}| = \sigma(S^{n-1}) the area of the unit sphere. The factor rn−1r^{n-1} says that a thin shell of radius rr and thickness drdr has volume ∣Sn−1∣rn−1dr|S^{n-1}|r^{n-1}dr: surface area times thickness (Figure 5.2). For the purposes of this guidebook, (∗)(*) can be taken as the definition of ∣Sn−1∣|S^{n-1}| (surface measure is constructed properly on manifolds in 8A.8 Differential Forms and Stokes’ Theorem); its value is computed below.

Figure 5.2. Polar coordinates: a thin ring at radius rr and thickness drdr has area 2πr dr2\pi r\,dr. In Rn\mathbb{R}^n a thin shell has volume ∣Sn−1∣ rn−1dr|S^{n-1}|\,r^{n-1}dr, and integrating a radial function means adding up shells.

Integrating over level sets

Polar coordinates integrate a function by adding up its integrals over the spheres {∣x∣=r}\{|x| = r\}. The same can be done with the level sets of any smooth function uu whose gradient does not vanish, and the result is the coarea formula:

∫Rng ∣∇u∣ dx=∫−∞∞(∫{u=t}g dσ)dt,\int_{\mathbb{R}^n}g\,|\nabla u|\,dx = \int_{-\infty}^\infty\Big(\int_{\{u = t\}}g\,d\sigma\Big)dt,

with σ\sigma the surface measure on each level set. For u=∣x∣u = |x|, ∣∇u∣=1|\nabla u| = 1 and the level sets are the spheres of radius tt, and the formula is polar coordinates. The factor ∣∇u∣|\nabla u| accounts for the spacing of the level sets: where uu changes quickly, the sets {u=t}\{u = t\} and {u=t+dt}\{u = t + dt\} are close together, and the shell between them is thin. The formula is the main tool for passing between volumes and areas in geometric analysis, in the isoperimetric inequality and in the estimates on level sets of distance functions met in Book 9.

Which powers of ∣x∣|x| are integrable

Polar coordinates answer a question that recurs throughout PDE: for which exponents aa is ∣x∣−a|x|^{-a} integrable near the origin, or near infinity? By (∗)(*),

∫B(0,1)∣x∣−a dx=∣Sn−1∣∫01rn−1−a dr,\int_{B(0, 1)}|x|^{-a}\,dx = |S^{n-1}|\int_0^1r^{n-1-a}\,dr,

which is finite exactly when n−1−a>−1n - 1 - a > -1, that is a<na < n. Near infinity, ∫{∣x∣>1}∣x∣−adx\int_{\{|x| > 1\}}|x|^{-a}dx is finite exactly when a>na > n. So in R3\mathbb{R}^3, the Newtonian potential 1∣x∣\frac{1}{|x|} is locally integrable but not integrable at infinity, and its square 1∣x∣2\frac{1}{|x|^2} is still locally integrable. The dimension enters through the factor rn−1r^{n-1}: in high dimension there is so little volume near the origin that more singular functions remain integrable. Every estimate that compares a singularity with the dimension, such as whether a Green's function lies in a given LpL^p space, comes down to this computation.

Averages over spheres by symmetry. Symmetry computes many integrals over spheres without any parametrisation. On the unit sphere Sn−1S^{n-1}, the coordinates satisfy x12+⋯+xn2=1x_1^2 + \cdots + x_n^2 = 1, and by rotation invariance of surface measure each xi2x_i^2 has the same integral. So

∫Sn−1x12 dσ=∣Sn−1∣n,\int_{S^{n-1}}x_1^2\,d\sigma = \frac{|S^{n-1}|}{n},

and the average of x12x_1^2 over the sphere is 1n\frac1n. In high dimension a random point on the sphere has each coordinate of size about 1n\frac{1}{\sqrt n}, a fact behind the concentration of measure met in 3A.4 Measures, Probability and Weights. The same symmetry gives ∫Sn−1xixj dσ=0\int_{S^{n-1}}x_ix_j\,d\sigma = 0 for i≠ji \neq j, and these two facts compute the average of any quadratic form over the sphere: the average of ⟨Ax,x⟩\langle Ax, x\rangle is tr⁡An\frac{\operatorname{tr}A}{n}. Identities of this kind are how the Ricci and scalar curvatures arise as averages of sectional curvatures (9A.5 Computing Curvature).

The Gaussian integral

Theorem 5.8 The Gaussian integral
∫−∞∞e−x2 dx=π,∫Rne−∣x∣2 dx=πn/2,∫Rn(4πτ)−n/2e−∣x∣2/4τ dx=1(τ>0).\int_{-\infty}^\infty e^{-x^2}\,dx = \sqrt\pi, \qquad \int_{\mathbb{R}^n}e^{-|x|^2}\,dx = \pi^{n/2}, \qquad \int_{\mathbb{R}^n}(4\pi\tau)^{-n/2}e^{-|x|^2/4\tau}\,dx = 1 \quad (\tau > 0).

Proof. Let I=∫Re−x2dxI = \int_{\mathbb{R}}e^{-x^2}dx, which is finite since e−x2≤e−∣x∣e^{-x^2} \leq e^{-|x|} for ∣x∣≥1|x| \geq 1. By Tonelli (the integrand is non-negative) and polar coordinates,

I2=∫R∫Re−x2e−y2 dx dy=∫R2e−(x2+y2) dx dy=∫02π∫0∞e−r2 r dr dθ=2π⋅12=π.I^2 = \int_{\mathbb{R}}\int_{\mathbb{R}}e^{-x^2}e^{-y^2}\,dx\,dy = \int_{\mathbb{R}^2}e^{-(x^2+y^2)}\,dx\,dy = \int_0^{2\pi}\int_0^\infty e^{-r^2}\,r\,dr\,d\theta = 2\pi\cdot\tfrac12 = \pi.

Since I>0I > 0, I=πI = \sqrt\pi. In Rn\mathbb{R}^n, e−∣x∣2=∏ie−xi2e^{-|x|^2} = \prod_ie^{-x_i^2}, and Tonelli splits the integral into nn factors of π\sqrt\pi. For the last formula, substitute x=4τ yx = \sqrt{4\tau}\,y, a linear map with determinant (4τ)n/2(4\tau)^{n/2}.

The trick of squaring a one-dimensional integral to make it two-dimensional, where polar coordinates apply, is attributed to Poisson. It works only because Tonelli permits the exchange.

Where this goes The normalisation that runs to Perelman

The function H(x,t)=(4πt)−n/2e−∣x∣2/4tH(x, t) = (4\pi t)^{-n/2}e^{-|x|^2/4t} is the heat kernel of Rn\mathbb{R}^n: it solves ∂tH=ΔH\partial_tH = \Delta H and, by the theorem, has total mass 11 at every time, concentrating to the Dirac mass as t→0t \to 0 (3A.4 Measures, Probability and Weights, 6A.3 The Heat Equation on ℝⁿ). In 12A.3 The 𝓦-Entropy Perelman's entropy is an integral against (4πτ)−n/2e−fdV(4\pi\tau)^{-n/2}e^{-f}dV normalised to mass 11, and on flat Rn\mathbb{R}^n with f=∣x∣2/4τf = |x|^2/4\tau the measure is the heat kernel; Exercise 5.14 computes the second moment that makes the entropy of this flat Gaussian equal to 00. Perelman's reduced volume (12A.5 Reduced Distance and Reduced Volume) is built the same way and equals 11 exactly for flat space, which is how his monotonicity results detect flatness.

Moments of the Gaussian

Differentiating a Gaussian integral with respect to a parameter, as in 3A.3 The Lebesgue Integral, gives all its moments at once. From ∫Re−ax2dx=π/a\int_{\mathbb{R}}e^{-ax^2}dx = \sqrt{\pi/a} for a>0a > 0, differentiating in aa, with the domination checked as before,

∫Rx2e−ax2dx=π2a−3/2.\int_{\mathbb{R}}x^2e^{-ax^2}dx = \frac{\sqrt\pi}{2}a^{-3/2} .

For the standard normal density (2π)−1/2e−x2/2(2\pi)^{-1/2}e^{-x^2/2}, with a=12a = \frac12, this gives variance 11, and repeated differentiation gives EX2k=(2k−1)(2k−3)⋯3⋅1\mathbb{E}X^{2k} = (2k - 1)(2k - 3)\cdots3\cdot1, while the odd moments vanish by symmetry. In nn dimensions, the Gaussian (4πτ)−n/2e−∣x∣2/4τ(4\pi\tau)^{-n/2}e^{-|x|^2/4\tau} has ∫∣x∣2=2nτ\int|x|^2 = 2n\tau, each coordinate contributing a variance 2τ2\tau. That number is the mean squared distance travelled by heat in time τ\tau, and it is why the radius of a region that heat explores in time τ\tau is of order τ\sqrt\tau, the parabolic scaling that organises the whole of Books 6 and 11.

Gaussian integrals of quadratic forms

The Gaussian integral generalises to any positive definite quadratic form. If AA is a symmetric positive definite n×nn\times n matrix, then

∫Rne−⟨Ax,x⟩ dx=πn/2det⁡A.\int_{\mathbb{R}^n}e^{-\langle Ax, x\rangle}\,dx = \frac{\pi^{n/2}}{\sqrt{\det A}} .

Diagonalise AA by a rotation, A=QTDQA = Q^TDQ with QQ orthogonal (1A.6 Symmetric Matrices and the Spectral Theorem); the substitution y=Qxy = Qx has Jacobian 11, and the integral becomes a product of one-dimensional integrals ∫e−diyi2dyi=π/di\int e^{-d_iy_i^2}dy_i = \sqrt{\pi/d_i}, whose product is πn/2(det⁡D)−1/2=πn/2(det⁡A)−1/2\pi^{n/2}(\det D)^{-1/2} = \pi^{n/2}(\det A)^{-1/2}. This is the normalisation of the general Gaussian distribution with covariance matrix Σ\Sigma, whose density is (2π)−n/2(det⁡Σ)−1/2e−⟨Σ−1x,x⟩/2(2\pi)^{-n/2}(\det\Sigma)^{-1/2}e^{-\langle\Sigma^{-1}x, x\rangle/2}, and it is the reason determinants appear wherever Gaussians are integrated, from statistics to the heat kernel of a Riemannian metric, where det⁡g\det g plays the role of det⁡A\det A.

The heat kernel keeps its mass. The normalisation at every time can also be seen dynamically. For t>0t > 0, the derivatives of H(x,t)H(x, t) in tt are dominated, on any interval [t0,t1][t_0, t_1] with t0>0t_0 > 0, by an integrable Gaussian, so differentiation under the integral sign is allowed, and

ddt∫H dx=∫∂tH dx=∫ΔH dx=0,\frac{d}{dt}\int H\,dx = \int\partial_tH\,dx = \int\Delta H\,dx = 0,

the last integral vanishing by the divergence theorem, since HH and its gradient decay faster than any power at infinity. Heat is neither created nor destroyed, and the total stays at its initial value 11. The same computation, on a closed manifold and for the conjugate heat equation, is how Perelman's measure (4πτ)−n/2e−fdV(4\pi\tau)^{-n/2}e^{-f}dV is kept a probability measure along the flow.

Volumes of balls and spheres

Apply (∗)(*) to e−∣x∣2e^{-|x|^2}:

πn/2=∣Sn−1∣∫0∞e−r2rn−1 dr=∣Sn−1∣⋅12Γ(n2),\pi^{n/2} = |S^{n-1}|\int_0^\infty e^{-r^2}r^{n-1}\,dr = |S^{n-1}|\cdot\tfrac12\Gamma\big(\tfrac n2\big),

where Γ(s)=∫0∞ts−1e−t dt\Gamma(s) = \int_0^\infty t^{s-1}e^{-t}\,dt is Euler's gamma function (substitute t=r2t = r^2), which satisfies Γ(s+1)=sΓ(s)\Gamma(s+1) = s\Gamma(s), Γ(1)=1\Gamma(1) = 1 and Γ(12)=π\Gamma(\tfrac12) = \sqrt\pi. So

∣Sn−1∣=2πn/2Γ(n/2),ωn=m(B(0,1))=∫01∣Sn−1∣rn−1 dr=πn/2Γ(n/2+1).|S^{n-1}| = \frac{2\pi^{n/2}}{\Gamma(n/2)}, \qquad \omega_n = m(B(0, 1)) = \int_0^1|S^{n-1}|r^{n-1}\,dr = \frac{\pi^{n/2}}{\Gamma(n/2 + 1)}.

Check: ω2=π\omega_2 = \pi, ω3=π3/2Γ(5/2)=π3/234π=43π\omega_3 = \frac{\pi^{3/2}}{\Gamma(5/2)} = \frac{\pi^{3/2}}{\frac34\sqrt\pi} = \frac43\pi, and ∣S2∣=4π|S^2| = 4\pi.

In the world Model Most of a high-dimensional ball is near its surface

The volume of the unit ball rises from ω1=2\omega_1 = 2 to a maximum ω5≈5.264\omega_5 \approx 5.264 and then falls: ω10≈2.55\omega_{10} \approx 2.55, ω20≈0.026\omega_{20} \approx 0.026, and ωn→0\omega_n \to 0 (Figure 5.3). The unit ball takes up a smaller and smaller fraction of the cube [−1,1]n[-1, 1]^n that contains it.

More striking is where the volume is. The ball of radius 1−ε1 - \varepsilon has a fraction (1−ε)n(1 - \varepsilon)^n of the volume of the unit ball, so the outer shell 1−ε<∣x∣<11 - \varepsilon < |x| < 1 holds 1−(1−ε)n1 - (1 - \varepsilon)^n of it. In dimension 100100, the outer 5%5\% of the radius holds 99.4%99.4\% of the volume. A point chosen at random in a high-dimensional ball is almost certainly near its surface, and two random points are almost certainly far apart, at nearly the same distance. This concentration of measure is part of what makes nearest-neighbour methods unreliable on data with many features (the "curse of dimensionality"), and the same phenomenon, for Gaussians instead of balls, underlies the dimension-free log-Sobolev inequality of 6A.12 Entropy, Information and Diffusion that Perelman's entropy builds on.

Figure 5.3. The volume ωn=πn/2/Γ(n/2+1)\omega_n = \pi^{n/2}/\Gamma(n/2 + 1) of the unit ball in Rn\mathbb{R}^n, computed for n=1,…,20n = 1, \ldots, 20. It peaks at n=5n = 5 and tends to 00.

The volume of a ball by slicing

The formula for ωn\omega_n can also be found by Cavalieri's principle, without the gamma function. Slice the unit ball in Rn\mathbb{R}^n by the hyperplanes xn=tx_n = t: each slice is a ball of dimension n−1n - 1 and radius 1−t2\sqrt{1 - t^2}, of volume ωn−1(1−t2)(n−1)/2\omega_{n-1}(1 - t^2)^{(n-1)/2}. Slicing twice, by the last two coordinates at once and using polar coordinates in that plane, gives the cleaner recursion

ωn=∫02π∫01ωn−2(1−r2)(n−2)/2 r dr dθ=2πn ωn−2.\omega_n = \int_0^{2\pi}\int_0^1\omega_{n-2}(1 - r^2)^{(n-2)/2}\,r\,dr\,d\theta = \frac{2\pi}{n}\,\omega_{n-2} .

With ω0=1\omega_0 = 1 and ω1=2\omega_1 = 2 it produces ω2=π\omega_2 = \pi, ω3=43π\omega_3 = \frac43\pi, ω4=π22\omega_4 = \frac{\pi^2}{2}, ω5=8π215≈5.26\omega_5 = \frac{8\pi^2}{15} \approx 5.26, and shows at once why the volumes eventually fall: once n>2πn > 2\pi, each step of two dimensions multiplies the volume by a factor less than 11, so from n=7n = 7 on the volumes decrease, and comparing the first few values puts the maximum at n=5n = 5.

The gamma function's values. The substitution t=r2t = r^2 that led to the gamma function also gives Γ(12)=2∫0∞e−r2dr=π\Gamma(\frac12) = 2\int_0^\infty e^{-r^2}dr = \sqrt\pi, the Gaussian integral in disguise. The recursion Γ(s+1)=sΓ(s)\Gamma(s + 1) = s\Gamma(s), from integration by parts, gives Γ(n+1)=n!\Gamma(n + 1) = n!, so the gamma function interpolates the factorial. And Fubini with polar coordinates proves the beta integral ∫01ta−1(1−t)b−1dt=Γ(a)Γ(b)Γ(a+b)\int_0^1t^{a-1}(1 - t)^{b-1}dt = \frac{\Gamma(a)\Gamma(b)}{\Gamma(a + b)}, by writing Γ(a)Γ(b)\Gamma(a)\Gamma(b) as a double integral and changing variables, the same squaring trick as for the Gaussian.

Areas of spheres in numbers. The formula ∣Sn−1∣=2πn/2Γ(n/2)|S^{n-1}| = \frac{2\pi^{n/2}}{\Gamma(n/2)} gives ∣S1∣=2π|S^1| = 2\pi, ∣S2∣=4π|S^2| = 4\pi and ∣S3∣=2π2|S^3| = 2\pi^2, the last being the volume of the unit 3-sphere that appears in 11A.1 The Equation and Its First Solutions, where the round sphere of radius rr has volume 2π2r32\pi^2r^3. In general ∣Sn−1∣=nωn|S^{n-1}| = n\omega_n, the derivative of the ball's volume ωnrn\omega_nr^n with respect to rr at r=1r = 1: the surface area is the rate at which volume grows as the radius increases.

A random point of the cube. The fraction of the cube [−1,1]n[-1, 1]^n occupied by the inscribed unit ball is ωn2n\frac{\omega_n}{2^n}: about 0.7850.785 for n=2n = 2, 0.5240.524 for n=3n = 3, and π5/1201024≈0.0025\frac{\pi^5/120}{1024} \approx 0.0025 for n=10n = 10. A point chosen at random in a high-dimensional cube is almost never within distance 11 of its centre, because almost all of the cube's volume is in its corners. Methods that sample space uniformly, such as rejection sampling from a cube, fail in high dimensions for this reason.

Volumes of neighbourhoods

The relation between volume and surface area extends to neighbourhoods of convex sets. For a convex region KK in the plane with area AA and perimeter LL, the set of points within distance ε\varepsilon of KK has area

A+Lε+πε2,A + L\varepsilon + \pi\varepsilon^2,

Steiner's formula. For the unit disc it reads π+2πε+πε2=π(1+ε)2\pi + 2\pi\varepsilon + \pi\varepsilon^2 = \pi(1 + \varepsilon)^2, as it must. The derivative at ε=0\varepsilon = 0 is the perimeter, so the boundary's size is the rate at which the volume grows as the set is thickened, the same principle as ∣Sn−1∣=nωn|S^{n-1}| = n\omega_n. In higher dimensions the volume of the ε\varepsilon-neighbourhood is a polynomial in ε\varepsilon whose coefficients, the intrinsic volumes, include the volume, the surface area and, at the top, the volume of the unit ball. For curved spaces the corresponding formula, Hermann Weyl's tube formula, has curvature in its coefficients, and that is one of the routes by which curvature enters volume comparisons in 9B.2 Volume Comparison.

Scaling

A special case of change of variables is used so often it deserves its own line. For λ>0\lambda > 0,

∫Rnf(λx) dx=λ−n∫Rnf(y) dy.\int_{\mathbb{R}^n}f(\lambda x)\,dx = \lambda^{-n}\int_{\mathbb{R}^n}f(y)\,dy.

Combined with how derivatives scale, ∇[f(λx)]=λ(∇f)(λx)\nabla[f(\lambda x)] = \lambda(\nabla f)(\lambda x), it predicts the exponents in every inequality that is invariant under dilation. For instance, ∫∣∇u∣2\int|\nabla u|^2 and (∫∣u∣p)2/p\big(\int|u|^p\big)^{2/p} scale the same way under u(x)↦u(λx)u(x) \mapsto u(\lambda x) exactly when p=2nn−2p = \frac{2n}{n-2}, which is the exponent in the Sobolev inequality of 4A.11 Sobolev Embeddings and Critical Exponents. This kind of dimensional analysis is thread S, and it is how one sees that Perelman's noncollapsing estimate vol B(x,r)≥κrn\mathrm{vol}\,B(x, r) \geq \kappa r^n is scale-invariant (3A.1 The Problem of Measure, 12A.4 κ-Noncollapsing).

From computing integrals to understanding convergence

The chapter has given the tools for computing integrals in several variables: product measures, the Tonelli and Fubini theorems with their hypotheses and counterexamples, the change of variables formula with its Jacobian, polar coordinates and the coarea formula, the Gaussian integral with its moments, the volumes of balls and spheres, and the scaling rules. With 3A.3 The Lebesgue Integral and 3A.4 Measures, Probability and Weights, that is enough to compute almost any integral the guide will meet.

What it has not addressed is the relation between an integrable function and its values at points. A function in L1L^1 is defined only up to null sets, so its value at a single point means nothing, yet analysis constantly speaks of pointwise values: of a solution at a point, of the density of a measure at a point. The disc of the warm-up gives a familiar example of the bridge. The average of a continuous function ff over a disc of radius rr centred at xx tends to f(x)f(x) as r→0r \to 0, by continuity. For a merely integrable function, does the average still converge, and to what? The averages are integrals, which ignore null sets, so their limit, if it exists, would give a canonical value at almost every point.

3A.6 Modes of Convergence and Differentiation answers this with Lebesgue's differentiation theorem: the averages of an integrable function over shrinking balls converge to the function at almost every point. The proof needs a new tool, the maximal function, which controls all the averages at once, and a covering lemma that chooses disjoint balls efficiently, an argument that uses the scaling of volume, m(B(x,3r))=3nm(B(x,r))m(B(x, 3r)) = 3^nm(B(x, r)), from this chapter. The chapter also sorts out the different ways a sequence of functions can converge, almost everywhere, in measure or in L1L^1, and how they relate. What to carry forward: Tonelli and Fubini, and the habit of checking ∬∣f∣<∞\iint|f| < \infty first; the change of variables formula and the Jacobian; polar coordinates and shells; the Gaussian integral and the normalisation (4πτ)−n/2(4\pi\tau)^{-n/2}; the volumes ωn\omega_n and ∣Sn−1∣|S^{n-1}|; and scaling.

Scaling and the heat kernel

The heat kernel is invariant under the scaling that the heat equation itself respects. If u(x,t)u(x, t) solves ∂tu=Δu\partial_tu = \Delta u, so does u(λx,λ2t)u(\lambda x, \lambda^2t): space scales by λ\lambda, time by λ2\lambda^2. The heat kernel is the one solution that is unchanged by this scaling once its mass is kept fixed:

H(x,t)=(4πt)−n/2e−∣x∣2/4t=t−n/2H(xt,1).H(x, t) = (4\pi t)^{-n/2}e^{-|x|^2/4t} = t^{-n/2}H\big(\tfrac{x}{\sqrt t}, 1\big) .

Its shape at every time is the shape at time 11, stretched by t\sqrt t in space and compressed by t−n/2t^{-n/2} in height so that the mass stays 11, exactly the scaling rule above with λ=1t\lambda = \frac{1}{\sqrt t}. Self-similar solutions of this kind, which keep their shape while changing scale, are the heat equation's version of the Ricci solitons of 11B.1 Ricci Solitons, and the Gaussian shrinker there is the same function, read as a metric with a potential.

Why the scaling must match. The scaling example above found the Sobolev exponent p=2nn−2p = \frac{2n}{n - 2} as the one for which ∫∣∇u∣2\int|\nabla u|^2 and (∫∣u∣p)2/p\big(\int|u|^p\big)^{2/p} scale alike. The reason this decides the exponent of an inequality is short. If (∫∣u∣p)2/p≤C∫∣∇u∣2\big(\int|u|^p\big)^{2/p} \leq C\int|\nabla u|^2 held for all uu with some other pp, apply it to uλ(x)=u(λx)u_\lambda(x) = u(\lambda x): the two sides change by different powers of λ\lambda, and letting λ→0\lambda \to 0 or λ→∞\lambda \to \infty would make the left side arbitrarily larger than the right, for a fixed uu. So the constant could not exist. Scaling cannot prove an inequality, but it can rule out every exponent but one before any proof begins. Perelman's log-Sobolev inequality, behind his entropy, is the limiting form of the same family, with the logarithm replacing the power, and its constants are fixed by the Gaussian computation of this chapter.

History

Bonaventura Cavalieri published his principle of comparing solids by slices in 1635. Guido Fubini proved his theorem for Lebesgue integrals in 1907, and Leonida Tonelli the version for non-negative functions in 1909. Carl Jacobi studied the functional determinants that bear his name in 1841. The value π\sqrt\pi of the Gaussian integral goes back to de Moivre and Laplace in the 18th century; Gauss used the bell curve for errors of observation in 1809. Johann Radon's paper on recovering a function from its line integrals appeared in 1917, and computed tomography put it to clinical use in the 1970s.

Recall Where we stand

Product measures exist and are unique for σ-finite factors. Tonelli lets non-negative integrals be computed in either order; Fubini does the same for absolutely integrable functions; without those hypotheses, iterated integrals can disagree. Linear maps scale volume by ∣det⁡∣|\det|, and C1C^1 diffeomorphisms by the Jacobian ∣det⁡Dϕ∣|\det D\phi|. Polar coordinates split dx=rn−1dr dσdx = r^{n-1}dr\,d\sigma, giving the Gaussian integral πn/2\pi^{n/2}, the normalisation ∫(4πτ)−n/2e−∣x∣2/4τ=1\int(4\pi\tau)^{-n/2}e^{-|x|^2/4\tau} = 1, and the volumes ωn=πn/2/Γ(n/2+1)\omega_n = \pi^{n/2}/\Gamma(n/2 + 1). Dilation scales integrals by λ−n\lambda^{-n}. 3A.6 Modes of Convergence and Differentiation studies the different ways sequences of functions can converge, and proves that averaging over shrinking balls recovers a function almost everywhere.

Exercises

Exercise 5.9 Checking Fubini

(a) Verify the two iterated sums in Example 5.4. (b) Show that ∫01∫01x2−y2(x2+y2)2 dy dx=π4\int_0^1\int_0^1\frac{x^2 - y^2}{(x^2 + y^2)^2}\,dy\,dx = \frac\pi4 while the integral in the other order is −π4-\frac\pi4. (Use ∂∂yyx2+y2=x2−y2(x2+y2)2\frac{\partial}{\partial y}\frac{y}{x^2 + y^2} = \frac{x^2 - y^2}{(x^2 + y^2)^2}.) Which hypothesis fails?

Solution

(b) The inner integral in yy is [yx2+y2]01=1x2+1\big[\frac{y}{x^2+y^2}\big]_0^1 = \frac{1}{x^2 + 1}, whose integral over [0,1][0, 1] is π4\frac\pi4. By the antisymmetry f(y,x)=−f(x,y)f(y, x) = -f(x, y), the other order gives −π4-\frac\pi4. The function is not absolutely integrable near the origin: in polar coordinates ∣f∣=∣cos⁡2θ∣r2|f| = \frac{|\cos 2\theta|}{r^2}, and ∫1r2 r dr\int\frac{1}{r^2}\,r\,dr diverges at 00.

Exercise 5.10 The layer-cake formula

Let f≥0f \geq 0 be measurable on a σ-finite measure space. Apply Tonelli to 1{(x,t):0<t<f(x)}1_{\{(x, t) : 0 < t < f(x)\}} on X×(0,∞)X \times (0, \infty) to show ∫f dμ=∫0∞μ({f>t}) dt\int f\,d\mu = \int_0^\infty\mu(\{f > t\})\,dt. Deduce ∫fp dμ=p∫0∞tp−1μ({f>t}) dt\int f^p\,d\mu = p\int_0^\infty t^{p-1}\mu(\{f > t\})\,dt for p>0p > 0.

Solution

Integrating the indicator first in tt gives ∫0∞1{t<f(x)}dt=f(x)\int_0^\infty1_{\{t < f(x)\}}dt = f(x), so the double integral is ∫f dμ\int f\,d\mu. Integrating first in xx gives μ({f>t})\mu(\{f > t\}), so it is ∫0∞μ({f>t}) dt\int_0^\infty\mu(\{f > t\})\,dt. Tonelli says these agree. For the second formula, apply the first to fpf^p and substitute t=spt = s^p, dt=psp−1dsdt = ps^{p-1}ds, noting {fp>sp}={f>s}\{f^p > s^p\} = \{f > s\}.

Exercise 5.11 Spherical coordinates

For ϕ(r,θ,φ)=(rsin⁡θcos⁡φ,rsin⁡θsin⁡φ,rcos⁡θ)\phi(r, \theta, \varphi) = (r\sin\theta\cos\varphi, r\sin\theta\sin\varphi, r\cos\theta), show ∣det⁡Dϕ∣=r2sin⁡θ|\det D\phi| = r^2\sin\theta, and use it to recompute the volume of a ball of radius RR in R3\mathbb{R}^3 and the area 4π4\pi of the unit sphere.

Solution

The columns of DϕD\phi are ∂rϕ=(sin⁡θcos⁡φ,sin⁡θsin⁡φ,cos⁡θ)\partial_r\phi = (\sin\theta\cos\varphi, \sin\theta\sin\varphi, \cos\theta), ∂θϕ=r(cos⁡θcos⁡φ,cos⁡θsin⁡φ,−sin⁡θ)\partial_\theta\phi = r(\cos\theta\cos\varphi, \cos\theta\sin\varphi, -\sin\theta) and ∂φϕ=rsin⁡θ(−sin⁡φ,cos⁡φ,0)\partial_\varphi\phi = r\sin\theta(-\sin\varphi, \cos\varphi, 0). They are mutually orthogonal with lengths 11, rr and rsin⁡θr\sin\theta, so ∣det⁡Dϕ∣=r2sin⁡θ|\det D\phi| = r^2\sin\theta. Then m(B(0,R))=∫02π∫0π∫0Rr2sin⁡θ dr dθ dφ=2π⋅2⋅R33=43πR3m(B(0, R)) = \int_0^{2\pi}\int_0^\pi\int_0^Rr^2\sin\theta\,dr\,d\theta\,d\varphi = 2\pi\cdot2\cdot\frac{R^3}{3} = \frac43\pi R^3. Comparing with (∗)(*), ∣S2∣=∫02π∫0πsin⁡θ dθ dφ=4π|S^2| = \int_0^{2\pi}\int_0^\pi\sin\theta\,d\theta\,d\varphi = 4\pi.

Exercise 5.12 Area by a linear map

Show that the ellipse {x2/a2+y2/b2≤1}\{x^2/a^2 + y^2/b^2 \leq 1\} has area πab\pi ab, and that the ellipsoid {xTAx≤1}\{x^{\mathsf T}Ax \leq 1\} (with AA symmetric positive definite) has volume ωn/det⁡A\omega_n/\sqrt{\det A}.

Solution

The ellipse is the image of the unit disc under diag(a,b)\mathrm{diag}(a, b). For the ellipsoid, x=A−1/2yx = A^{-1/2}y maps the unit ball onto it, and det⁡A−1/2=(det⁡A)−1/2\det A^{-1/2} = (\det A)^{-1/2}.

Exercise 5.13 A recursion for ball volumes

Using ωn=πn/2/Γ(n/2+1)\omega_n = \pi^{n/2}/\Gamma(n/2 + 1), show ωn=2πnωn−2\omega_n = \frac{2\pi}{n}\omega_{n-2}. Deduce that ωn≥ωn−2\omega_n \geq \omega_{n-2} exactly when n≤6n \leq 6, and that ωn→0\omega_n \to 0. (Comparing neighbouring dimensions takes a little more work; the computed values show the maximum is at n=5n = 5.)

Solution

Γ(n/2+1)=n2Γ(n/2)\Gamma(n/2 + 1) = \frac n2\Gamma(n/2), so ωn/ωn−2=π/n2=2πn\omega_n/\omega_{n-2} = \pi/\frac n2 = \frac{2\pi}{n}, which is at least 11 exactly when n≤2πn \leq 2\pi, that is, n≤6n \leq 6. Along each of the even and odd chains, ωn\omega_n is a product of factors 2πk\frac{2\pi}{k}, which tend to 00, so ωn→0\omega_n \to 0.

Exercise 5.14 Rehearsal: the moments of the heat kernel

Let dμτ=(4πτ)−n/2e−∣x∣2/4τ dxd\mu_\tau = (4\pi\tau)^{-n/2}e^{-|x|^2/4\tau}\,dx. Show that (a) ∫xi dμτ=0\int x_i\,d\mu_\tau = 0; (b) ∫xixj dμτ=2τδij\int x_ix_j\,d\mu_\tau = 2\tau\delta_{ij}, so ∫∣x∣2dμτ=2nτ\int|x|^2d\mu_\tau = 2n\tau; (c) with f=∣x∣2/4τf = |x|^2/4\tau, ∫(τ∣∇f∣2+f−n) dμτ=0\int\big(\tau|\nabla f|^2 + f - n\big)\,d\mu_\tau = 0.

Part (c) is the computation that the W\mathcal{W}-entropy of the Gaussian soliton on flat Rn\mathbb{R}^n is 00 (12A.3 The 𝓦-Entropy; the scalar curvature RR is 00 there). Flat space is the reference case: the entropy is normalised so that it vanishes exactly for this Gaussian, and the noncollapsing theorem of 12A.4 κ-Noncollapsing works by comparing other geometries with it.

Solution

(a) The integrand is odd in xix_i. (b) For i≠ji \neq j, odd again. For i=ji = j, by Tonelli the other coordinates integrate to 11, and ∫x2(4πτ)−1/2e−x2/4τdx=2τ\int x^2(4\pi\tau)^{-1/2}e^{-x^2/4\tau}dx = 2\tau (substitute x=2τyx = 2\sqrt\tau y and use ∫y2e−y2=π2\int y^2e^{-y^2} = \frac{\sqrt\pi}2, 3A.3 The Lebesgue Integral). (c) ∇f=x2τ\nabla f = \frac{x}{2\tau}, so τ∣∇f∣2=∣x∣24τ=f\tau|\nabla f|^2 = \frac{|x|^2}{4\tau} = f, and the integrand is 2f−n2f - n. Its integral is 24τ⋅2nτ−n=0\frac{2}{4\tau}\cdot2n\tau - n = 0.

Exercise 5.15 Concentration in a shell

(a) What fraction of the volume of the unit ball in R1000\mathbb{R}^{1000} lies within 1%1\% of the surface? (b) Show that for the standard Gaussian measure (2π)−n/2e−∣x∣2/2dx(2\pi)^{-n/2}e^{-|x|^2/2}dx on Rn\mathbb{R}^n, ∫∣x∣2=n\int|x|^2 = n, so a typical point has ∣x∣≈n|x| \approx \sqrt n: Gaussian measure in high dimensions concentrates on a thin shell too.

Solution

(a) 1−0.991000≈1−4.3×10−51 - 0.99^{1000} \approx 1 - 4.3 \times 10^{-5}: all but about 0.004%0.004\%. (b) By Tonelli, ∫∣x∣2=∑i∫xi2=n⋅1\int|x|^2 = \sum_i\int x_i^2 = n\cdot1, since a one-dimensional standard Gaussian has ∫x2(2π)−1/2e−x2/2dx=1\int x^2(2\pi)^{-1/2}e^{-x^2/2}dx = 1 (Exercise 5.14 with τ=12\tau = \frac12). A similar computation gives ∫(∣x∣2−n)2=2n\int(|x|^2 - n)^2 = 2n, so by Chebyshev ∣x∣2|x|^2 is within a few multiples of 2n\sqrt{2n} of nn for most points, and ∣x∣=n (1+O(n−1/2))|x| = \sqrt n\,(1 + O(n^{-1/2})).

Exercise 5.16 Change of variables in practice

(a) Compute ∫R2dx dy(1+x2+y2)2\int_{\mathbb{R}^2}\frac{dx\,dy}{(1 + x^2 + y^2)^2} in polar coordinates. (b) Compute the area of the region {(x,y):1≤xy≤2, 1≤y/x≤4, x,y>0}\{(x, y) : 1 \leq xy \leq 2,\ 1 \leq y/x \leq 4,\ x, y > 0\} with the substitution u=xyu = xy, v=y/xv = y/x.

Solution

(a) ∫02π∫0∞r dr(1+r2)2dθ=2π⋅12=π\int_0^{2\pi}\int_0^\infty\frac{r\,dr}{(1 + r^2)^2}d\theta = 2\pi\cdot\frac12 = \pi. (b) The map (x,y)↦(u,v)(x, y) \mapsto (u, v) has Jacobian determinant det⁡(yx−y/x21/x)=2yx=2v\det\begin{pmatrix}y & x\\ -y/x^2 & 1/x\end{pmatrix} = \frac{2y}{x} = 2v, so dx dy=du dv2vdx\,dy = \frac{du\,dv}{2v}. The area is ∫12∫14dv2v du=12log⁡4=log⁡2\int_1^2\int_1^4\frac{dv}{2v}\,du = \frac12\log 4 = \log 2.

Free resources for this chapter

Chosen for what this chapter covers, and all free to read or watch. Links checked Nov 6, 2026.

Read

Watch 3 lectures and talks

© 2026 Neckpinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.