Home › Calculus › Lesson 13

Multiple Integrals and Change of Variables

Lesson 13 of 14

Key idea of this section

∫ over φ(U) of f(x) dx  =  ∫ over U of f(φ(u)) |det Dφ(u)| du
Polar coordinates: dx dy = r dr dθ

Integrals over rectangles and Fubini's theorem

The Riemann integral over a rectangle Q = [a₁, b₁] × ... × [aₙ, bₙ] is defined exactly as in one variable, with partitions into subrectangles and volumes in place of lengths. Lebesgue's criterion carries over: a bounded f is integrable iff its discontinuities form a set of n-dimensional measure zero. A bounded set S is Jordan measurable if its boundary has measure zero; then ∫ over S of f is defined as the integral over a rectangle of f times the indicator of S.

Theorem 13.1 (Fubini, for Riemann integrals). If f is continuous on Q = [a, b] × [c, d], then

∫∫ over Q of f = ∫ₐᵇ (∫ from c to d of f(x, y) dy) dx = ∫ from c to d of (∫ₐᵇ f(x, y) dx) dy.

More generally, if f is integrable on Q and each inner integral exists, the iterated integral equals the double integral. The hypotheses matter. Consider f(x, y) = (x² − y²)/(x² + y²)² on (0, 1]². Since ∂/∂y (y/(x² + y²)) = (x² − y²)/(x² + y²)²,

∫₀¹ (x² − y²)/(x² + y²)² dy = 1/(1 + x²),   so   ∫₀¹ ∫₀¹ f dy dx = ∫₀¹ dx/(1 + x²) = π/4,

and by the antisymmetry f(y, x) = −f(x, y), the other order gives −π/4. The function is unbounded near the origin and ∫∫|f| = ∞, so neither the Riemann nor the Lebesgue version of Fubini's theorem applies. (Fubini proved the Lebesgue version in 1907; Tonelli's theorem covers nonnegative functions without any integrability assumption.)

The change of variables theorem

Theorem 13.2. Let U ⊆ ℝⁿ be open, φ: U → ℝⁿ a C¹ injective map with det Dφ(u) ≠ 0 on U, and f integrable on φ(U). Then

∫ over φ(U) of f(x) dx = ∫ over U of f(φ(u)) |det Dφ(u)| du.

The factor |det Dφ| is the local volume scaling: a linear map T multiplies volumes by |det T|, and near u the map φ is approximately the linear map Dφ(u). The proof approximates U by small cubes, uses the linear case on each, and controls the error with uniform continuity of Dφ; alternatively, one reduces to the case where φ changes one coordinate at a time.

The standard coordinate systems:

polar:        x = r cos θ, y = r sin θ,                 |det Dφ| = r
cylindrical:  x = r cos θ, y = r sin θ, z = z,          |det Dφ| = r
spherical:    x = ρ sin φ cos θ, y = ρ sin φ sin θ, z = ρ cos φ,   |det Dφ| = ρ² sin φ

Worked example: the Gaussian integral

Let I = ∫ from −∞ to ∞ of e−x² dx. Then, using Tonelli's theorem to write the square as a double integral, and polar coordinates,

I² = ∫∫ over ℝ² of e−(x² + y²) dx dy = ∫₀2π ∫₀∞ e−r² r dr dθ = 2π · (1/2) = π,

so I = √π. (A fully Riemann-integral proof compares the squares [−R, R]² with the discs of radii R and R√2; see Problem 53.) This integral is the normalising constant of the normal distribution, and it gives Γ(1/2) = √π.

Volumes of balls

Integrating e−|x|² over ℝⁿ in two ways (as a product, πⁿ/², and in spherical shells) shows that the volume of the n-dimensional ball of radius r is

Vₙ(r) = πⁿ/² rⁿ / Γ(n/2 + 1).

Check: V₂ = πr², V₃ = π3/2 r³/((3/4)√π) = (4/3)πr³, and V₄ = (π²/2) r⁴. For the unit ball, Vₙ increases up to n = 5 (V₅ = 8π²/15 ≈ 5.264) and then decreases to 0, since the Gamma function grows faster than any exponential. In high dimension almost all of the volume of a ball lies near its surface, a fact of real importance in statistics and data science.

Toward Stokes' theorem

The fundamental theorem of calculus has higher-dimensional generalisations: Green's theorem in the plane, the divergence theorem and Stokes' theorem in ℝ³. All are special cases of the general Stokes theorem for differential forms on oriented manifolds with boundary,

∫ over ∂M of ω = ∫ over M of dω,

which says that integrating a derivative over a region equals integrating the original object over its boundary. FTC II is the case where M = [a, b] is a 1-manifold with boundary {a, b} and ω = F is a function.

Exercise

  • (a)
    Compute the integral of e−(x² + y²) over the disc x² + y² ≤ 4, to four decimal places.
  • (b)
    Use u = x + y, v = x − y to compute ∫∫ over R of (x + y)² dA, where R is the square |x + y| ≤ 1, |x − y| ≤ 1.
  • (c)
    Compute ∫∫ over the unit disc of (x² + y²) dA.
Show solution

Answers: (a) ∫₀2π ∫₀² e−r² r dr dθ = π(1 − e⁻⁴) ≈ 3.0841. (b) The Jacobian of (u, v) ↦ (x, y) has absolute determinant 1/2, so the integral is (1/2)∫₋₁¹∫₋₁¹ u² du dv = (1/2)(2/3)(2) = 2/3. (c) ∫₀2π ∫₀¹ r² · r dr dθ = 2π/4 = π/2.

V.3.1