This chapter extends integration from intervals to curves and to domains of the plane and of space. Line integrals integrate a differential formPdx+Qdy along an oriented arc; double and triple integrals integrate functions over two- and three-dimensional domains. The two theories meet in the Green–Riemann theorem, the two-dimensional fundamental theorem of calculus, and the main computational tool throughout is the change of variables formula, whose distortion factor is the absolute Jacobian determinant.
20.1 Line integrals
Definition 20.1(Differential form; line integral)
Let U⊆R2 be open. A differential form of degree 1 and class C0 on U is an expression ω=Pdx+Qdy with P,Q:U→Rcontinuous — formally, a continuous map from U into the dual of R2, ω(M)=P(M)e1∗+Q(M)e2∗. For a C1 arc γ:[a,b]→U, γ(t)=(x(t),y(t)), the line integral of ω along γ is
∫γω=∫ab(P(γ(t))x′(t)+Q(γ(t))y′(t))dt.
The definitions extend verbatim to R3 (forms Pdx+Qdy+Rdz) and to piecewise C1 arcs (sum over the pieces).
with sign + if θ is increasing (θ(c)=a) and − if decreasing (the bounds swap). ∎
Example 20.3(Work of a force; circulation)
If F=(P,Q) is a force field, ∫γPdx+Qdy=∫ab⟨F(γ(t)),γ′(t)⟩dt is the work of F along γ. For ω=−ydx+xdy along the counterclockwise unit circle γ(t)=(cost,sint):
∫γω=∫02π((−sint)(−sint)+costcost)dt=2π,
twice the enclosed area — a first hint of Green–Riemann.
Example 20.4(One integral, two parametrizations, one sign trap)
Compute ∫γxdy along the upper unit semicircle from (1,0) to (−1,0). With γ(t)=(cost,sint), t∈[0,π]:
∫0πcost⋅costdt=2π.
With the graph parametrization x↦(x,1−x2), x from 1 to −1 (note the direction!):
∫1−1x⋅1−x2−xdx=∫−111−x2x2dx=2π
(x=sinu reduces it to a Wallis integral). Same value, as Proposition 20.2 guarantees — but only because both runs go from (1,0) to (−1,0); reversing the travel flips the sign. Closing the path along the x-axis (where dy=0) adds nothing, and the total 2π is the area of the half-disk: the first instance of the boundary-area formulas of Green–Riemann below.
Definition 20.5(Exact and closed forms)
The form ω=Pdx+Qdy of class C0 is exact on U if there is f∈C1(U) (a potential) with ω=df, i.e. P=fx and Q=fy. A C1 form is closed if Py=Qx on U.
Theorem 20.6(Fundamental theorem for line integrals)
If ω=df is exact and γ is a piecewise C1 arc in U from A to B, then
∫γω=f(B)−f(A).
In particular the integral of an exact form along any closed arc is zero, and every exactC1 form is closed.
Proof.dtdf(γ(t))=fx(γ(t))x′(t)+fy(γ(t))y′(t) by the chain rule (Chapter 15), so the integrand in Definition 20.1 is the derivative of t↦f(γ(t)), and the fundamental theorem of calculus gives the result on each piece; the intermediate values telescope. Closedness of exactC1 forms is Schwarz’s theorem: Py=fxy=fyx=Qx. ∎
Example 20.7(Reconstructing a potential)
Let ω=yexydx+(xexy+2y)dy on R2. It is closed: both cross derivatives equal exy(1+xy). To find a potential, integrate P in x at fixed y:
f(x,y)=∫yexydx=exy+c(y),
then adjust c by matching fy: xexy+c′(y)=xexy+2y gives c(y)=y2. So f(x,y)=exy+y2, and for any piecewise C1 arc from (0,0) to (1,1),
∫γω=f(1,1)−f(0,0)=(e+1)−1=e,
independently of the path — the two-step recipe (integrate in x, correct in y) is the practical converse of Theorem 20.6 on domains where closed forms are exact.
Example 20.8(Closed does not imply exact)
On U=R2∖{0}, the angle form
ω=x2+y2−ydx+xdy
is closed (direct computation: both Py and Qx equal (x2+y2)2y2−x2), but its integral along the unit circle is 2π=0 (same computation as Example 20.3, divided by 1): ω is not exact on U. Locally, ω=dθ for a determination θ of the polar angle; the failure is global — the angle cannot be defined continuously around the puncture. On domains without holes the pathology disappears: on a star-shapedopen set, every closed C1 form is exact (Poincaré’s lemma, Exercise 20.8).
20.2 Double integrals
We take for granted the theory of the Riemann integral in one variable (Year 1 volume, and Chapter 9) and sketch its two-variable version. A function fcontinuous on a rectangle R=[a,b]×[c,d] has a double integral ∬Rf, defined by Riemann sums over grids exactly as in one variable, and computed by iteration:
Proof. Set F(x)=∫cdf(x,y)dy. Uniform continuity of f on the compactR makes Fcontinuous (dominated estimate: ∣F(x)−F(x′)∣≤(d−c)supy∣f(x,y)−f(x′,y)∣). Now subdivide [a,b] and [c,d] into n equal parts, giving a grid of cells Rij of areaΔxΔy. On each cell, infRijf⋅ΔxΔy≤∫xi−1xi∫yj−1yjf(x,y)dydx≤supRijf⋅ΔxΔy by monotonicity of the one-variable integral (applied twice). Summing over cells, the iterated integral ∫abF is squeezed between the lower and upper Riemann sums of the grid; by uniform continuity both sums converge to the common value defining ∬Rf as n→∞. The same argument applies with the roles of x and y exchanged, so both iterated integrals equal ∬Rf. ∎
Remark 20.10
Continuity on a compact rectangle is doing real work in Fubini’s proof: it provides the uniform continuity that squeezes the Riemann sums. For wilder integrands the statement genuinely fails — there are functions whose two iterated integrals exist and differ. The honest general theorem, with integrability as the only hypothesis, is Fubini’s theorem for the Lebesgue integral, proved in the Year 3 volume; everything in this chapter stays within the continuous setting where the elementary proof above is complete.
Definition 20.11(Elementary domains)
A domain D⊆R2 is y-elementary if
D={(x,y):a≤x≤b,φ1(x)≤y≤φ2(x)}
with φ1≤φ2continuous on [a,b] (x-elementary: symmetrically). For fcontinuous on a y-elementary D,
∬Df=∫ab(∫φ1(x)φ2(x)f(x,y)dy)dx,
and one checks (by extending f by an approximation argument, or by subdividing) that when D is elementary in both directions the two iterated integrals agree. Domains cut into finitely many elementary pieces are handled by additivity, and the area of D is Area(D)=∬D1.
Example 20.12
On the triangle D={0≤x≤1,0≤y≤x}:
∬Dxydxdy=∫01x(∫0xydy)dx=∫01x⋅2x2dx=81.
Swapping the order (x from y to 1): ∫01y(∫y1xdx)dy=∫01y21−y2dy=81 — same value, different computation: choosing the order of integration well is half the craft.
Example 20.13(When only one order works)
Compute I=∫01∫x1ey2dydx. As written, the inner integral ∫ey2dy has no elementary antiderivative: the computation is stuck. But the domain is the triangle 0≤x≤y≤1, which is elementary in both directions; swapping the order,
I=∫01∫0yey2dxdy=∫01yey2dy=[21ey2]01=2e−1.
The inner variable x appeared nowhere in the integrand, so integrating it first produced exactly the factor y that makes the outer integral immediate. Moral: Fubini is not just a license to iterate — it is a license to choose, and the right order can turn an impossible integral into a one-liner. Always sketch the domain and read off both descriptions before starting.
Theorem 20.14(Change of variables)
Let Φ:U′→U be a C1 diffeomorphism between open sets of R2, let K⊆U be a compact domain cut into elementary pieces with K′=Φ−1(K), and let f be continuous on K. Then
∬Kf(x,y)dxdy=∬K′f(Φ(u,v))∣detJΦ(u,v)∣dudv.
Proof.Admitted at this level.∎
Remark 20.15
The complete proof — approximating Φ by its differential on a fine grid and controlling the boundary cells — is long though not deep; it is done in full in the measure theory of Year 3, as a consequence of the Lebesgue theory. The heuristic is the picture already used for surface area: a small square of side du at (u,v) is mapped, to first order, onto the parallelogram spanned by Φudu and Φvdv, whose area is ∣detJΦ∣dudv (Lemma 19.18).
Remark 20.16(Method: choosing the change of variables)
Three reflexes cover most cases. Symmetry of the integrand: x2+y2 calls for polar, a product structure calls for keeping Cartesian axes. Shape of the boundary: boundaries u(x,y)=c1, v(x,y)=c2 beg for the coordinates (u,v) themselves, as in the hyperbolic region example below — the domain becomes a rectangle, which is the whole victory. Linear structure: expressions in x+y and x−y invite the 45-degree rotation or a shear (Example 20.18). In all cases, three boxes to tick before integrating: the map is a bijection of the new domain onto the old one; its Jacobian is computed in the direction actually used (invert at the end if easier); and the Jacobian enters with its absolute value.
Comparing with the square [−R,R]2 (which is squeezed between the disks DR and DR2, all integrands positive) gives (∫−∞∞e−x2dx)2=π:
∫−∞+∞e−x2dx=π
— the Gauss integral again, now by its most famous proof (compare the one-variable derivation in Chapter 9).
Example 20.18(Affine changes of variables)
For an affine mapΦ(u,v)=M(u,v)T+C with M invertible, the Jacobian is the constant matrix M: areas are multiplied by the constant factor ∣detM∣ — the promise made in Chapter 17 is now a theorem. Two immediate uses. The ellipse a2x2+b2y2≤1 is the image of the unit disk under (u,v)↦(au,bv), so its area is ab⋅π — no computation. And for the integral of f(x+y) over the square K=[0,1]2, the shear Φ(u,v)=(u−v,v) (determinant1) turns it into an integral of f(u) over a parallelogram, which Fubini slices at constant u: with f=exp,
∬Kex+ydxdy=(∫01exdx)2=(e−1)2,
as the product structure confirms. Choosing coordinates adapted to the integrand — not to the domain — is the other half of the craft.
Example 20.19(Coordinates adapted to a curvilinear domain)
Let D be the region of the first quadrant bounded by the hyperbolas xy=1 and xy=3 and the lines y=x and y=3x. In the coordinates u=xy, v=y/x the domain becomes the square [1,3]×[1,3]; inverting,
x=u/v,y=uv,detJ=xuyv−xvyu=2v1
(a two-line computation with x=u1/2v−1/2, y=u1/2v1/2). Hence
Area(D)=∫13∫132vdudv=2⋅2ln3=ln3≈1.10.
Trying to slice D in Cartesian coordinates means cutting it into three pieces with hyperbolic and linear boundaries — feasible, joyless, and error-prone. The moral repeats Example 20.18 at full strength: read the boundary equations, and let them choose the coordinates; the Jacobian then converts the curvilinear mesh’s cell area, exactly as ρ did for polar coordinates.
Example 20.20(Average values)
The mean value of f over a domain D is Area(D)1∬Df. Sample: the average distance from the center for a uniformly chosen point of the disk of radius R is
πR21∫02π∫0Rρ⋅ρdρdα=πR22πR3/3=32R,
not R/2: uniform area puts more mass at large radii (the annulus at radius ρ has weight proportional to ρ), so the average sits beyond the halfway mark. Getting this factor right is exactly the polar Jacobian at work, and the same weighting explains the centroid zˉ=3R/8 of the half-ball computed later in the chapter rather than R/2.
20.3 The Green–Riemann theorem
Theorem 20.21(Green–Riemann)
Let K⊆R2 be a compact domain which is elementary in both directions (or a finite union of such glued along segments), with boundary ∂K a piecewise C1 closed curve oriented counterclockwise (the domain stays on the left). For P,Q of class C1 on a neighbourhood of K:
∮∂KPdx+Qdy=∬K(∂x∂Q−∂y∂P)dxdy.
Proof. First, both sides are additive under cutting K along a segment into two pieces K1,K2: the double integrals add by additivity of ∬; as for the boundary integrals, the counterclockwise boundaries of K1 and K2 each traverse the interior cut once, in opposite directions, so in the sum
∮∂K1+∮∂K2=∮∂K+(cut, both ways)=∮∂K,
the two passes along the cut cancel (Proposition 20.2) and only the outer boundary survives. Iterating finitely many cuts, it suffices to treat an elementary domain. We prove ∮Pdx=−∬KPy on a y-elementary domain D={a≤x≤b,φ1(x)≤y≤φ2(x)}; the identity ∮Qdy=∬KQx is symmetric (x-elementary), and the theorem is their sum.
Compute the double integral by Fubini and the one-variable fundamental theorem:
∬D∂y∂Pdxdy=∫ab(P(x,φ2(x))−P(x,φ1(x)))dx.
Now the boundary of D, counterclockwise, consists of: the lower graph y=φ1(x) traversed left to right, the right vertical segment x=b (upward), the upper graph y=φ2(x) traversed right to left, the left vertical segment x=a (downward). Along the vertical segments x is constant, so they contribute 0 to ∮Pdx; the graphs, parametrized by x, give
Proof. Apply Green–Riemann to (P,Q)=(0,x), (−y,0) and 21(−y,x): each time Qx−Py=1. ∎
Remark 20.23(Choosing among the three area formulas)
The three boundary formulas are equal, not interchangeable in practice. Use ∮xdy when the parametrization makes dy simple (graphs over the y-axis), −∮ydx symmetrically, and the symmetric half-sum when the parametrization treats x and y evenly — for the ellipse it produced a constant integrand, with no trigonometric linearization at all. On polygonal boundaries the half-sum becomes the shoelace formula of Exercise 20.12, the surveyors’ algorithm. And when the boundary is traversed clockwise by the given parametrization, all three formulas return minus the area: a negative result is not a computational error but an orientation report — flip the sign, or the parametrization.
Same number, two very different computations — and that is the practical use: whichever side of Green’s identity is easier becomes the computation, the other a verification. For circulations of polynomial fields around closed curves, the double integral is almost always the easy side.
Remark 20.26
Green–Riemann explains Example 20.8: for a closed form (Qx=Py), the integral around the boundary of any domain contained in U vanishes. The angle form fails to be exact only because the puncture at the origin prevents the disk bounded by the unit circle from lying inside U — line integrals of closed forms detect the holes of the domain. (Pushed further, this observation becomes de Rham cohomology.)
20.4 Triple integrals
The theory extends to three variables with no new idea: Fubini reduces ∭ to three one-variable integrals (either by slicing: ∭Kf=∫(∬Kzf)dz over the horizontal slices Kz, or by stacking: integrating in z first along vertical sticks), and the change of variables formula holds with the 3×3 Jacobian.
Example 20.27(Cylindrical and spherical coordinates)
Cylindrical(x,y,z)=(ρcosα,ρsinα,z): dxdydz=ρdρdαdz. Spherical(x,y,z)=(rcosθcosφ,rsinθcosφ,rsinφ) (θ longitude, φ∈[−2π,2π] latitude): expanding the 3×3determinant along the last row,
discharging at last the formula admitted in the volume chapters of the earlier books.
Example 20.28(The tetrahedron, twice)
The volume of T={x,y,z≥0,x+y+z≤1}, by stacking: for fixed (x,y) in the triangle x+y≤1, z runs over [0,1−x−y], so
V=∫01∫01−x(1−x−y)dydx=∫012(1−x)2dx=61.
By slicing: the section at height z is the triangle {x,y≥0,x+y≤1−z}, of area2(1−z)2, and V=∫012(1−z)2dz=61 again — the two computations are the same integrals in a different order, which is all Fubini claims. The value 61=31⋅21⋅1 is the cone formula (Example 20.30) with triangular base, and the n-dimensional version 1/n! is proved by exactly this slicing in the weekend problem.
Example 20.29(Centroid of a half-ball)
For the upper half-ball H of radius R (z≥0), the centroid height is zˉ=V1∭Hz, with V=32πR3. In spherical coordinates (z=rsinφ, φ∈[0,π/2]):
the balance point of a solid hemisphere sits three-eighths of the radius above the flat face — below the half-height R/2, as it must, since the solid is fatter near the base. Every centroid computation has this shape: one moment integral, one volume, one ratio, and a plausibility check against the geometry.
Example 20.30(Volume by slicing: the cone)
A cone of base areaA and height h (apex up, base at z=0): the slice at height z is the base scaled by the factor (1−z/h), of areaA(1−z/h)2. Hence
V=∫0hA(1−hz)2dz=3Ah:
the one-third of the school formulas, valid for any base shape — slicing turns it into the integral of a square.
Example 20.31(Integrability thresholds in the plane)
For which α>0 does ∬Dρ−αdxdy converge on the punctured unit disk D (limit over annuli ε≤ρ≤1)? In polar coordinates,
∫02π∫ε1ρ−αρdρdα=2π∫ε1ρ1−αdρ,
which converges as ε→0 iff 1−α>−1, i.e. α<2: in dimension 2 the critical singularity exponent is the dimension itself, the extra ρ from the Jacobian softening the singularity by one power. (Likewise α<3 for a point singularity in space, via r2.) Radial bookkeeping of this kind is how integrability is decided at a glance in the Lebesgue framework of Year 3 — and it is the reason ∭1/r converged effortlessly in Exercise 20.7.
Remark 20.32(Common pitfalls)
(i) Orientation: a line integral changes sign with the direction of travel, and Green–Riemann requires the boundary counterclockwise (domain on the left); for a domain with a hole, the inner boundary is traversed clockwise. (ii) The Jacobian enters with an absolute value: change of variables never produces negative area, and forgetting ∣det∣ typically flips signs exactly when the map reverses orientation. (iii) The polar factor ρ: dxdy=ρdρdα, not dρdα — the most common error in the whole chapter; dimensional analysis catches it, since dρdα has the dimension of a length, not an area. (iv) Improper double integrals: limits over growing disks and growing squares agree here because the integrands are positive (squeezing); for sign-changing integrands the limit may depend on the exhaustion, and no claim is made without absolute convergence. (v) Domains versus integrands: a product integrand on a non-product domain does not factor the integral — factorization needs both, as in Example 20.17’s square.
Remark 20.33(Perspectives within this volume)
The Gauss integral computed here is quietly everywhere in the probability chapters: the constant π inside Stirling’s formula (Theorem 6.13) is this chapter’s integral, and through Stirling it fixes the 1/πn asymptotics of the random walk’s return probabilities in Chapter 21. The Wallis integrals of the weekend problem reappear there too, driving the same central-binomial estimates. In the other direction, the area and volume elements of this chapter complete the geometry of Chapter 19, and Green’s formula recomputes the envelopeareas of Chapter 18 (the astroid, in Exercise 20.5). One chapter, three services: measure for geometry, constants for probability, and the change-of-variables discipline used by both.
20.5 Exercises
Exercise 20.1★
Compute ∫γy2dx+xdy along: (a) the segment from (0,0) to (1,1); (b) the parabola arc y=x2 from (0,0) to (1,1). Is the form exact?
Solution
Solution of Exercise 20.1.
(a) Segment γ(t)=(t,t), t∈[0,1]:
∫γy2dx+xdy=∫01(t2+t)dt=31+21=65.
(b) Parabola γ(t)=(t,t2):
∫01(t4⋅1+t⋅2t)dt=51+32=1513.
The two values differ, so the integral is path-dependent: the form is notexact — consistently, Py=2y=1=Qx, so it is not even closed.
Exercise 20.2★
Show that ω=(2xy+y3)dx+(x2+3xy2+1)dy is closed on R2, find a potential, and compute ∫γω along any arc from (0,0) to (1,2).
Solution
Solution of Exercise 20.2.
P=2xy+y3, Q=x2+3xy2+1: Py=2x+3y2=Qx, closed on R2. Search for f with fx=P: f=x2y+xy3+g(y); then fy=x2+3xy2+g′(y)=Q forces g′(y)=1, say g(y)=y. So
f(x,y)=x2y+xy3+y
is a potential (R2 is star-shaped, so a potential had to exist by Poincaré’s lemma — but exhibiting it is quicker). By Theorem 20.6, for any arc from (0,0) to (1,2):
∫γω=f(1,2)−f(0,0)=2+8+2=12.
Exercise 20.3★
Compute ∬D(x+y)dxdy where D is the domain bounded by y=x2 and y=x (0≤x≤1), in both orders of integration.
Using polar coordinates, compute ∬D(1+x2+y2)2dxdy over the whole plane (as a limit over disks), and ∬D′xydxdy over the quarter disk D′={x,y≥0,x2+y2≤1}.
Solution
Solution of Exercise 20.4.
First integral. On the disk DR, in polar coordinates:
(The astroid fits in the unit disk of areaπ; three eighths of π is plausible for its four-cusped star shape.)
Exercise 20.6★★
Compute the volume of the solid bounded below by the paraboloid z=x2+y2 and above by the plane z=1, by both methods: stacking (integrate 1−x2−y2 over the unit disk, polar coordinates) and slicing (horizontal slices are disks of radius z).
Solution
Solution of Exercise 20.6.
Stacking: above each (x,y) of the unit disk D, z runs from x2+y2 to 1:
Slicing: the slice at height z∈[0,1] is the disk x2+y2≤z, of areaπz:
V=∫01πzdz=2π.
Exercise 20.7★★
(Gravitational attraction of a ball — Newton’s theorem, special case) Show that the volume of the spherical shell a≤r≤b is 34π(b3−a3) and compute ∭Brdxdydz over the ball B of radius R (r the distance to the origin). (Spherical coordinates.)
Solution
Solution of Exercise 20.7.
In spherical coordinates the volume element is r2cosφdrdθdφ (Example 20.27), and the angular part integrates to 4π (2π from θ, ∫−π/2π/2cos=2). The shell volume is
∫ab4πr2dr=34π(b3−a3).
For the second integral, the integrand 1/r depends only on r:
∭Brdxdydz=∫0R4πr2⋅r1dr=4π2R2=2πR2.
(The integrand blows up at the origin, but harmlessly: r2/r=r is continuous — the integral over the shells ε≤r≤R converges as ε→0, which is the precise sense of the statement. This kind of computation is the first step toward Newton’s theorem that a homogeneous ball attracts like a point mass at its center.)
Exercise 20.8★★★
(Poincaré’s lemma, star-shaped case) Let U be star-shaped with respect to 0 (i.e. M∈U⇒[0,M]⊆U) and ω=Pdx+Qdy a closed C1 form on U. Define
f(x,y)=∫01(xP(tx,ty)+yQ(tx,ty))dt.
Using differentiation under the integral sign (Chapter 9) and Py=Qx, show that fx=P and fy=Q: every closed form on a star-shaped open set is exact.
Solution
Solution of Exercise 20.8.
The integrand g(t;x,y)=xP(tx,ty)+yQ(tx,ty) is C1 in (x,y), continuous in t, with partial derivatives continuous on [0,1]×U; differentiation under the integral sign (Chapter 9, applied on the compactt-interval [0,1], domination being automatic there) gives
so the integrand is P(tx,ty)+tdtdP(tx,ty)=dtd[tP(tx,ty)] and
fx(x,y)=[tP(tx,ty)]01=P(x,y).
Symmetrically fy=Q (same computation with Py=Qx used the other way). Note where the hypothesis enters: f is defined by integrating along the segment [0,M], which lies in U precisely because U is star-shaped.
Exercise 20.9★★★
(Dirichlet integral by double integration) Justify and exploit
∫0∞∫0∞e−xysinxdydxvs∫0∞∫0∞e−xysinxdxdy
on [0,A]×[0,∞): show ∫0Axsinxdx=2π−∫0∞e−Ay1+y2ysinA+cosAdy and recover ∫0∞xsinxdx=2π, comparing with the parameter-integral proof of Chapter 9.
Solution
Solution of Exercise 20.9.
On the strip [0,A]×[0,∞) the function (x,y)↦e−xysinx is not absolutely integrable up to y=∞ uniformly in a naive sense, but each iterated integral converges and their equality follows from Fubini on [0,A]×[0,B] plus a limit B→∞ (the tail ∫0A∫B∞e−xy∣sinx∣dydx≤∫0Axe−Bx∣sinx∣dx≤∫0Ae−Bxdx→0, using ∣sinx∣≤x).
y first:∫0∞e−xydy=x1 for x>0, so the first integral is ∫0Axsinxdx.
x first: two integrations by parts (or taking the imaginary part of ∫0Ae(i−y)xdx) give
∫0Ae−xysinxdx=1+y21−e−Ay(ysinA+cosA).
Integrating in y over [0,∞), the term ∫0∞1+y2dy=2π splits off:
∫0Axsinxdx=2π−∫0∞e−Ay1+y2ysinA+cosAdy.
The remainder is bounded by ∫0∞e−Ay1+y2y+1dy≤∫0∞e−Ay⋅1+y21+ydy→0 as A→∞ (dominated convergence, or the crude bound 1+y21+y≤23 giving 2A3). Hence ∫0∞xsinxdx=2π — the same value obtained in Chapter 9 by differentiating a parameter integral; here Fubini does the work instead.
Exercise 20.10★★★
(Isoperimetric inequality via Wirtinger) Let γ be a simple closed C1 curve of length2π, parametrized by arc length on [0,2π], enclosing areaA. Using Corollary 20.22, Parseval and the Wirtinger inequality (exercises of Chapter 14), prove A≤π, with equality for the circle. (Normalize ∫02πx(s)ds=0; write 2A=∮xdy−ydx and bound 2A≤∫(x2+y′2) carefully via 2A=∫02π(xy′−yx′)ds and x2+y′2≥2xy′.)
Solution
Solution of Exercise 20.10.
Parametrize by arc lengths∈[0,2π], so x′2+y′2=1, and translate so that ∫02πx(s)ds=0. By Corollary 20.22,
2A=∮xdy−ydx=∫02π(xy′−yx′)ds.
Integrating ∮ydx by parts over the period (boundary terms cancel by periodicity), −∫yx′=∫y′x, so in fact 2A=2∫02πxy′ds. Then 2xy′≤x2+y′2 gives
Wirtinger’s inequality (Chapter 14 exercises: for a 2π-periodic C1 function with zero mean, ∫x2≤∫x′2) makes the last integral nonnegative: A≤π. Equality requires equality in Wirtinger (x(s)=acoss+bsins) and in 2xy′≤x2+y′2 (y′=xpointwise), which forces y=asins−bcoss+c: the curve is the unit circle (suitably centered). Since a curve of lengthL rescales to length2π, the general statement is A≤4πL2: among all closed curves of given perimeter, the circle encloses the largest area.
Exercise 20.11★★
(Moments of the ball) For the ball B of radius R in R3, compute ∭Bz2dxdydz in spherical coordinates, and deduce ∭B(x2+y2+z2)dxdydz by symmetry. Cross-check the latter against the shell computation ∫0Rr2⋅4πr2dr.
Solution
Solution of Exercise 20.11.
In spherical coordinates z=rsinφ and dxdydz=r2cosφdrdθdφ:
By the symmetry of the ball under permuting coordinates, ∭Bx2=∭By2=∭Bz2, so ∭B(x2+y2+z2)=3⋅154πR5=54πR5. Shell check: ∫0Rr2⋅4πr2dr=54πR5 — the integrand r2 is constant on the sphere of radius r, of area4πr2.
Exercise 20.12★★
(Shoelace formula) Let K be a polygon with vertices (x1,y1),…,(xm,ym) in counterclockwise order (indices mod m). Deduce from Corollary 20.22 that
Area(K)=21i=1∑m(xiyi+1−xi+1yi),
and check the formula on the triangle (0,0), (1,0), (0,1).
Solution
Solution of Exercise 20.12.
Parametrize the edge from (xi,yi) to (xi+1,yi+1) by γ(t)=((1−t)xi+txi+1,(1−t)yi+tyi+1). Its contribution to 21∮(xdy−ydx) is
the cross terms cancelling. Summing over the m edges gives the shoelace formula, by Corollary 20.22. Triangle (0,0),(1,0),(0,1): 21((0⋅0−1⋅0)+(1⋅1−0⋅0)+(0⋅0−0⋅1))=21, the correct area.
20.6 Problem: the volume of the ball in dimension n
Problem 20.1
Weekend problem — Vn=πn/2/Γ(2n+1), and the strangeness of high dimensions
The disk has areaπ, the ball volume34π — and then? This problem computes the volume of the unit ball of Rn for every n, twice (by a slicing recursion driven by the Wallis integrals, then via the Γ function and the Gauss integral of Example 20.17), and then reads off the geometry: the volumes peak in dimension five and rush to zero, and almost all of a high-dimensional ball hides in a thin shell near its boundary. For a continuous function on a ball of Rn, the integral is understood as the n-fold iterated integral (slicing one coordinate at a time, as in the chapter for n≤3); we write Bn(R) for the closed ball of radius R centered at 0, vn(R) for its volume, and Vn=vn(1), with V0=1 by convention.
Part I — The slicing recursion.
Substituting xi=Rui in each of the n iterated integrals, show vn(R)=VnRn.
Slicing Bn(1) along its last coordinate, show
Vn=Vn−1∫−11(1−t2)2n−1dt.
With t=sinθ, identify the integral as a Wallis integral: ∫−11(1−t2)2n−1dt=2Wn, where Wn=∫0π/2cosnθdθ=∫0π/2sinnθdθ.
Prove the two Wallis identities (integrate by parts; then telescope nWnWn−1):
Tabulate V1,…,V7 numerically. Using the ratio Vn/Vn−2=2π/n and the values of 2W5 and 2W6, prove that the sequence (Vn) increases up to its maximum V5=158π2≈5.26 and decreases from then on.
Show that Vn→0 faster than any geometric sequence, and that ∑n≥1Vn converges: all the unit balls together have finite total volume.
Prove the generating identity
k≥0∑V2kx2k=eπx2(x∈R),
and deduce ∑k≥0V2k=eπ≈23.14.
Part III — Second route: Γ and the Gauss integral.
Show by Fubini (the integrand is a product) that
In=∫Rne−∥x∥2dx=(∫−∞+∞e−t2dt)n=πn/2,
the n-dimensional Gauss integral, understood as a limit over cubes [−R,R]n.
Recall Γ(s)=∫0∞ts−1e−tdt (Definition 9.17). From Γ(s+1)=sΓ(s) (Theorem 9.18) and Γ(21)=π (substitute t=u2 and invoke the Gauss integral), compute
Γ(k+1)=k!,Γ(k+23)=2k+11⋅3⋯(2k+1)π.
Prove, by induction through the recursion of question 5, the single formula
Vn=Γ(2n+1)πn/2(n≥1),
and check it reproduces both closed forms of question 6.
Show ∫0∞e−r2rn−1dr=21Γ(2n) and deduce the identity
In=nVn∫0∞e−r2rn−1dr.
Interpret it: the Gaussian mass of Rn is collected along spherical shells whose “(n−1)-dimensional area” at radius r is nVnrn−1 — both sides are now proved independently, so the interpretation costs nothing.
Set sn−1=nVn (the area of the unit sphere Sn−1, consistently with vn(R)=∫0Rsn−1rn−1dr). Tabulate s0,…,s3 and check s1=2π, s2=4π, s3=2π2.
Part IV — High dimensions are strange.
From Stirling’s formula (Theorem 6.13) applied to k!, show for even n=2k:
Vn∼πn1(n2πe)n/2(n→∞,n even),
and explain why the same super-geometric decay bound extends to odd n via the recursion.
The unit ball sits in the cube [−1,1]n of volume 2n. Compute the filling ratio Vn/2n for n=2,3,10, and show it tends to 0: in high dimension, essentially all of the cube lies in its corners.
Show that the fraction of vn(1) lying within distance ε of the boundary sphere is 1−(1−ε)n→1; numerically, what fraction of a 100-dimensional ball lies in the outer shell of thickness 1%?
Prove the Wallis asymptotic Wn∼2nπ(monotonicity of (Wn), the ratio Wn/Wn−2→1, and WnWn−1=2nπ), and the lower bound Wn≥2(n+1)π for all n.
(Concentration on a slab) The fraction of the unit ball with first coordinate beyond δ is ∫δ1(1−x2)2n−1dx/(2Wn). Using 1−u≤e−u and the tail bound ∫δ∞e−ax2dx≤2aδe−aδ2, show this fraction is at most
(n−1)δe−(n−1)δ2/2/n+12π
and conclude: for δ=s/n−1, all but a fraction O(e−s2/2/s) of the ball lies in the slab ∣x1∣≤s/n−1. A ball of high dimension is, statistically, a thin pancake in every direction at once.
Assemble questions 16–19 into one paragraph: where the volume of Bn(1) sits (near the boundary sphere, yet within O(1/n) slabs of every hyperplane through the center), and why these two statements do not contradict each other.
Part V — Other bodies, and synthesis.
(Simplex) Let Δn={x∈Rn:xi≥0,∑xi≤1}. Show by slicing and induction that vol(Δn)=n!1.
(Cross-polytope) Deduce that Cn={x:∑∣xi∣≤1} has volume n!2n, and verify the sandwich Cn⊆Bn(1)⊆[−1,1]n at the level of volumes: n!2n≤Vn≤2n.
Compute V4 a third way: slice R4=R2×R2, integrate the area of the (z,w)-disk over the (x,y)-disk in polar coordinates, and recover V4=2π2.
(Monte Carlo in trouble) A point is drawn uniformly in the cube [−1,1]20. Show that the probability that it lands in the inscribed ball is V20/220≈2.5⋅10−8, so about forty million draws are needed before the first hit is expected: estimating Vn by rejection sampling collapses in high dimension (the curse of dimensionality).
Synthesis. Two independent derivations met at Vn=πn/2/Γ(2n+1): list which theorem of this chapter each one used (Fubini, change of variables, the polar Gauss integral), and which one-variable inputs (Wallis, Γ, Stirling). Where does the Year 3 volume redo this computation with Lebesgue’s theory, and what does it add?
Solution
Solution of Problem 20.1.
1. The ball Bn(R) is described by iterated bounds −R≤xn≤R, then ∣xn−1∣≤R2−xn2, and so on; substituting xi=Rui in each of the n one-variable integrals multiplies each by R and maps the bounds onto those of Bn(1): vn(R)=Rnvn(1)=VnRn.
2. Slicing along xn=t: the slice of Bn(1) is the ball Bn−1(1−t2), so, by question 1,
Vn=∫−11vn−1(1−t2)dt=Vn−1∫−11(1−t2)2n−1dt.
3. With t=sinθ, dt=cosθdθ and (1−t2)2n−1=cosn−1θ on [−π/2,π/2]:
and θ↦2π−θ interchanges the sine and cosine forms of Wn.
4. Write sinn=sinn−2(1−cos2) and integrate ∫sinn−2cos⋅cos by parts (v=n−1sinn−1):
Wn=Wn−2−n−1Wn⟹Wn=nn−1Wn−2.
Hence nWnWn−1=(n−1)Wn−1Wn−2: the sequence (nWnWn−1) is constant, equal to 1⋅W1W0=1⋅2π, so WnWn−1=2nπ.
5. Questions 2–3 give Vn=2WnVn−1, twice:
Vn=2Wn⋅2Wn−1Vn−2=42nπVn−2=n2πVn−2.
6. From V0=1: V2k=2k2πV2k−2=kπV2k−2, so V2k=k!πk by induction. From V1=2: V2k+1=2k+12πV2k−1, so
V2k+1=2j=1∏k2j+12π=1⋅3⋅5⋯(2k+1)2k+1πk.
7.V1=2, V2=π≈3.142, V3=34π≈4.189, V4=2π2≈4.935, V5=158π2≈5.264, V6=6π3≈5.168, V7=10516π3≈4.725. The one-step ratio is Vn/Vn−1=2Wn, and (Wn) is decreasing (sinn≤sinn−1pointwise). Now 2W5=2⋅54⋅32=1516>1 while 2W6=2⋅65⋅43⋅21⋅2π=165π<1: the ratios exceed 1 up to n=5 and are below 1 from n=6 on — (Vn) increases to its maximum V5 and then decreases.
8. For n≥13>4π: Vn/Vn−2=2π/n<21, so Vn≤C⋅2−n/2 with a fixed constant; better, for any q>0, 2π/n<q2 for large n, so Vn/qn→0: the decay beats every geometric sequence. Convergence of ∑Vn follows from the ratio Vn/Vn−2→0 (compare with a geometric series from some rank on).
9.∑k≥0V2kx2k=∑k≥0k!(πx2)k=eπx2, the exponential series (Chapter 11), convergent for every x. At x=1: ∑kV2k=eπ≈23.14.
10. On the cube [−R,R]n the integrand is the product ∏ie−xi2, so the iterated integral factorizes: (∫−RRe−t2dt)n. Letting R→∞ and using ∫Re−t2dt=π (Example 20.17): In=πn/2.
11.t=u2 gives Γ(21)=∫0∞t−1/2e−tdt=2∫0∞e−u2du=π. Iterating Γ(s+1)=sΓ(s): Γ(k+1)=k!Γ(1)=k!, and
12. Set Fn=πn/2/Γ(2n+1). Since Γ(2n+1)=2nΓ(2n)=2nΓ(2n−2+1), we get Fn=n2πFn−2: the same recursion as Vn (question 5). Bases: F1=π/Γ(23)=π/(2π)=2=V1 and F2=π/Γ(2)=π=V2. By induction Vn=Fn for all n; question 11 turns this back into the two closed forms of question 6.
13. With r=t: ∫0∞e−r2rn−1dr=21∫0∞t2n−1e−tdt=21Γ(2n). Hence
Both sides being proved, the identity can be read as the shell decomposition of the Gaussian integral: the sphere of radius r carries areanVnrn−1, and the Gaussian weight e−r2 is integrated over the shells.
14.s0=V1=2 (the 0-sphere is two points), s1=2V2=2π, s2=3V3=4π, s3=4V4=2π2; and ∫0Rsn−1rn−1dr=VnRn=vn(R): area is the radial derivative of volume.
15. For n=2k, Stirling (Theorem 6.13) gives k!∼2πk(k/e)k, so
V2k=k!πk∼2πk(πe/k)k=πn1(n2πe)n/2(n=2k).
For odd n: V2k+1=2W2k+1V2k≤2V2k, so the same super-geometric decay bounds hold (up to a factor 2 and a shift of one in the exponent) — for every q>0, Vn=o(qn).
16.V2/4=π/4≈0.785; V3/8=π/6≈0.524; V10/210=120⋅1024π5≈0.0025. In general Vn−2/2n−2Vn/2n=4n2π=2nπ→0: the ratio tends to 0 (super-geometrically). The inscribed ball occupies a vanishing fraction: the cube’s volume migrates to its corners.
17. By question 1 the inner ball of radius 1−ε has volume Vn(1−ε)n, so the outer shell carries the fraction 1−(1−ε)n→1. For n=100, ε=0.01: (0.99)100=e100ln0.99≈e−1.005≈0.366: about 63% of the ball lies within 1% of its surface.
18.(Wn) decreases, so Wn≤Wn−1≤Wn−2=n−1nWn: squeezing, Wn−1/Wn→1. Multiplying by WnWn−1=2nπ: Wn2∼2nπ, i.e. Wn∼π/(2n). Lower bound: Wn2≥WnWn+1=2(n+1)π, so Wn≥π/(2(n+1)) for every n.
19. Numerator: 1−x2≤e−x2 gives (1−x2)2n−1≤e−(n−1)x2/2, and with a=2n−1,
Denominator: 2Wn≥2π/(n+1) by question 18. Dividing gives the displayed bound. For δ=s/n−1 it becomes 2π(n−1)n+1e−s2/2/s=O(e−s2/2/s), uniformly in n: outside the slab ∣x1∣≤s/n−1 there is almost no volume, for s moderately large — and by symmetry the same holds for every direction.
20. The two statements coexist because they describe different coordinates of the same point. Almost every point of Bn(1) has norm close to 1 (question 17: radial concentration near the sphere), yet each of its n coordinates is small, of order 1/n (question 19), which is consistent since n coordinates of size 1/n have norm of order 1. High-dimensional volume concentrates where all coordinates share the norm budget equally — near the sphere, but far from every coordinate axis pole.
21. Slice Δn at xn=t∈[0,1]: the slice is {x′∈Rn−1:xi≥0,∑xi≤1−t}=(1−t)Δn−1, of volume (1−t)n−1vol(Δn−1) by homogeneity. So
22. The 2n sign-orthants cut Cn into 2n copies of Δn (with negligible overlaps on coordinate hyperplanes): vol(Cn)=n!2n. If ∑∣xi∣≤1 then ∑xi2≤(∑∣xi∣)2≤1: Cn⊆Bn(1); and Bn(1)⊆[−1,1]n since ∣xi∣≤∥x∥. Hence n!2n≤Vn≤2n — consistent with question 15, which places Vn between the factorial and geometric scales.
23. For (x,y) in the unit disk, the slice of B4(1) is the disk of radius 1−x2−y2 in the (z,w)-plane, of areaπ(1−x2−y2). In polar coordinates:
24. The probability is the volume ratio 220V20=10!⋅220π10≈10485760.0258≈2.5⋅10−8. The number of draws until the first hit is of order the inverse, about 4⋅107: a rejection sampler that worked beautifully for the disk (π/4 of hits) is useless in dimension 20 — the curse of dimensionality in one line.
25. Route one (Parts I–II) used: Fubini-type slicing of the iterated integral, one-variable substitution in each coordinate (homogeneity), and the Wallis integrals — pure one-variable calculus plus induction. Route two (Part III) used: Fubini for the product structure of In, the polar change of variables through the Gauss integral of Example 20.17, and the Γ function’s functional equation. They meet in Vn=πn/2/Γ(2n+1), with Stirling (Theorem 6.13) converting the formula into asymptotics. The Year 3 volume rebuilds all of this on Lebesgue’s integral: there Fubini and the change of variables are theorems for general integrable functions, spherical coordinates exist in every dimension, and the same ball volumes reappear as the worked dividends of the product-measure and Stirling problems — with dominated convergence replacing our hand-made squeezes.