Unit 4, lesson 32

Improper Multiple Integrals and Order of Integration

How to define a double integral over an unbounded region or near a singularity as a limit over growing regions, when the order of integration may be swapped, and how this proves the Gaussian integral.

  • Theory part 63
  • Practice part 64
  • Changing Variables and Improper Integrals

The bell curve e−x2e^{-x^2} has no elementary antiderivative, yet its total area is exactly π\sqrt{\pi}. The proof squares the integral, turns it into a double integral over the whole plane, and switches to polar coordinates. Each of those steps needs a reason, because the plane is unbounded and ordinary double integrals live on bounded regions. This lesson supplies the reasons, and shows what goes wrong when they are missing.

Key terms

Unbounded regions and singular integrands

Definition The double integral of earlier lessons needs a bounded closed region and a function that is continuous, hence bounded, on it. An improper double integral is one where this fails in one of two ways. Either the region is unbounded, such as the whole plane or a quadrant, or the region is bounded and the integrand is continuous on it but unbounded near certain boundary points or curves that are left out of the region. Those points are singularities of the integrand. In both cases ∬Df dA\iint_D f \, dA is not yet defined and must be defined by a limit.

In plain words Either the region runs off to infinity, or the function blows up somewhere. Either way the usual Riemann sums do not apply directly.

Example The function f(x,y)=1x2+y2f(x, y) = \frac{1}{x^2 + y^2} on the region outside the unit disk is a problem of the first kind, since the region is unbounded. The function g(x,y)=1x2+y2g(x, y) = \frac{1}{\sqrt{x^2 + y^2}} on the unit disk with the origin removed is a problem of the second kind, since gg grows without bound near the origin.

Exhaustion by regions

Definition Let DD be a set in the plane and let ff be continuous on DD. A regular exhaustion of DD is a sequence of bounded closed regions K1⊆K2⊆K3⊆⋯K_1 \subseteq K_2 \subseteq K_3 \subseteq \cdots, each with a piecewise smooth boundary and each contained in DD, such that every bounded closed set contained in DD lies inside some KnK_n. For each nn the integral ∬Knf dA\iint_{K_n} f \, dA is an ordinary double integral. The improper integral is

∬Df dA=lim⁡n→∞∬Knf dA,\iint_D f \, dA = \lim_{n \to \infty} \iint_{K_n} f \, dA,

provided this limit exists and has the same value for every regular exhaustion of DD. The same definition works in space with solids in place of regions.

In plain words Integrate over larger and larger nice pieces that eventually reach every part of the region, then let the pieces grow. The answer only counts if it does not depend on how you chose the pieces.

Example The disks KnK_n of radius nn exhaust the plane, and so do the squares [−n,n]×[−n,n][-n, n] \times [-n, n]. To exhaust the punctured unit disk 0<x2+y2≤10 < x^2 + y^2 \le 1, use the annuli 1n≤x2+y2≤1\frac{1}{n} \le \sqrt{x^2 + y^2} \le 1, which leave a shrinking hole around the singularity at the origin. For g=1x2+y2g = \frac{1}{\sqrt{x^2 + y^2}} on these annuli, polar coordinates give

∫02π∫1/n11r r dr dθ=2π(1−1n),\int_0^{2\pi} \int_{1/n}^1 \frac{1}{r} \, r \, dr \, d\theta = 2\pi \left( 1 - \frac{1}{n} \right),

which tends to 2π2\pi.

Continuous nonnegative integrands

Definition Let ff be continuous and nonnegative on DD, and let KnK_n be any regular exhaustion of DD. The numbers ∬Knf dA\iint_{K_n} f \, dA increase with nn, so they have a limit in [0,∞][0, \infty]. This limit is the same for every regular exhaustion. We set ∬Df dA\iint_D f \, dA equal to it and say the integral converges when it is finite and diverges when it is ∞\infty. A continuous ff of any sign is called absolutely integrable on DD when ∬D∣f∣ dA\iint_D \lvert f \rvert \, dA is finite. Then the positive and negative parts max⁡(f,0)\max(f, 0) and max⁡(−f,0)\max(-f, 0) have finite integrals, every regular exhaustion gives the same limit for ∬f dA\iint f \, dA, and that limit is the difference of the two parts.

In plain words With no negative values there is no cancellation, so the totals can only grow and any reasonable way of growing the region gives the same answer. For a signed function, check the integral of its absolute value first.

Example For p>0p > 0 and the region DD outside the unit disk, integrating 1(x2+y2)p\frac{1}{(x^2 + y^2)^p} over the annuli 1≤r≤n1 \le r \le n gives

∫02π∫1nr−2p r dr dθ=2π∫1nr1−2p dr.\begin{aligned} &\int_0^{2\pi} \int_1^n r^{-2p} \, r \, dr \, d\theta \\[0.4em] &= 2\pi \int_1^n r^{1 - 2p} \, dr. \end{aligned}

As n→∞n \to \infty this is finite exactly when p>1p > 1, and then it equals πp−1\frac{\pi}{p - 1}. For p=2p = 2 the total is π\pi. For p=1p = 1 it is 2πln⁡n2\pi \ln n, which grows without bound, so the integral diverges. In the plane the cutoff for convergence at infinity is the power r−2r^{-2}, not r−1r^{-1} as on a line.

Elementary improper integral form of Tonelli

Definition Let DD be a region that can be described in both ways

a<x<b,g1(x)<y<g2(x),c<y<d,h1(y)<x<h2(y),\begin{gathered} a < x < b, \quad g_1(x) < y < g_2(x), \\[0.4em] c < y < d, \quad h_1(y) < x < h_2(y), \end{gathered}

where aa and cc may be −∞-\infty, bb and dd may be ∞\infty, and the boundary functions are continuous, with g1g_1 or h1h_1 allowed to be the constant −∞-\infty and g2g_2 or h2h_2 the constant ∞\infty. Any of the strict inequalities may be replaced by ≤\le where the boundary point is finite and belongs to DD. Let ff be continuous and nonnegative on DD. Read every one-variable integral as an improper integral wherever an endpoint is infinite or ff is unbounded near it, and assume that in each order the inner integral is finite and is a continuous function of the outer variable. Then Tonelli’s theorem says

∬Df dA=∫ab∫g1(x)g2(x)f dy dx=∫cd∫h1(y)h2(y)f dx dy,\begin{aligned} \iint_D f \, dA &= \int_a^b \int_{g_1(x)}^{g_2(x)} f \, dy \, dx \\[0.4em] &= \int_c^d \int_{h_1(y)}^{h_2(y)} f \, dx \, dy, \end{aligned}

as values in [0,∞][0, \infty]. Either all three are the same finite number or all three are infinite.

In plain words For a nonnegative continuous integrand you may compute in either order and the answer is the true total, even when it is infinite. Once the inner integrals behave, no check for cancellation is needed.

Example Consider

∫0∞∫x∞e−y2 dy dx.\int_0^\infty \int_x^\infty e^{-y^2} \, dy \, dx.

The inner integral has no elementary formula, but it is finite and continuous in xx. The integrand is continuous and positive on the region 0≤x≤y0 \le x \le y, and in the other order, with yy from 00 to ∞\infty and xx from 00 to yy, the inner integral is ye−y2y e^{-y^2}, also continuous. So Tonelli allows the swap,

∫0∞∫0ye−y2 dx dy=∫0∞ye−y2 dy=12.\begin{aligned} \int_0^\infty \int_0^y e^{-y^2} \, dx \, dy &= \int_0^\infty y e^{-y^2} \, dy \\[0.4em] &= \frac{1}{2}. \end{aligned}

Fubini under absolute integrability

Definition Let DD be described in both ways as above and let ff be continuous on DD, of any sign. Assume that in each order the inner integrals of ∣f∣\lvert f \rvert are finite, so the inner integrals of ff converge absolutely, and that the inner integrals of ff and of ∣f∣\lvert f \rvert are continuous functions of the outer variable. If ff is absolutely integrable, that is

∬D∣f∣ dA<∞,\iint_D \lvert f \rvert \, dA < \infty,

then the improper integral ∬Df dA\iint_D f \, dA exists and both iterated integrals of ff converge and equal it. In practice you check absolute integrability by applying Tonelli to ∣f∣\lvert f \rvert, computing or bounding an iterated integral of ∣f∣\lvert f \rvert in whichever order is easier.

In plain words Before swapping the order for a function that changes sign, show that the total of its absolute value is finite. Then cancellation cannot play tricks and both orders agree.

Example On the first quadrant let f(x,y)=e−x−ysin⁡xf(x, y) = e^{-x - y} \sin x. Since ∣f∣≤e−xe−y\lvert f \rvert \le e^{-x} e^{-y} and

∫0∞∫0∞e−xe−y dy dx=1,\int_0^\infty \int_0^\infty e^{-x} e^{-y} \, dy \, dx = 1,

the function is absolutely integrable. The inner integrals e−xsin⁡xe^{-x} \sin x and 12e−y\frac{1}{2} e^{-y}, and those of ∣f∣\lvert f \rvert, are continuous. So either order is valid, and

∫0∞e−y dy⋅∫0∞e−xsin⁡x dx=1⋅12=12.\begin{aligned} &\int_0^\infty e^{-y} \, dy \cdot \int_0^\infty e^{-x} \sin x \, dx \\[0.4em] &= 1 \cdot \frac{1}{2} = \frac{1}{2}. \end{aligned}

Failures without hypotheses

Definition Without absolute integrability, the two iterated integrals of a continuous function can both exist and be different, and the limit over a regular exhaustion can depend on which exhaustion is used, or fail to exist. In such cases the improper double integral is not defined, and no single number deserves the name.

In plain words When positive and negative parts are both infinite, the answer depends on the order in which you add them up, just as for a conditionally convergent series.

Example On 0<x≤10 < x \le 1, 0<y≤10 < y \le 1 take

f(x,y)=x2−y2(x2+y2)2.f(x, y) = \frac{x^2 - y^2}{(x^2 + y^2)^2}.

Since the derivative of yx2+y2\frac{y}{x^2 + y^2} with respect to yy is ff, and the derivative of −xx2+y2\frac{-x}{x^2 + y^2} with respect to xx is also ff,

∫01∫01f dy dx=∫01dx1+x2=π4,∫01∫01f dx dy=−∫01dy1+y2=−π4.\begin{aligned} \int_0^1 \int_0^1 f \, dy \, dx &= \int_0^1 \frac{dx}{1 + x^2} \\[0.4em] &= \frac{\pi}{4}, \\[0.4em] \int_0^1 \int_0^1 f \, dx \, dy &= -\int_0^1 \frac{dy}{1 + y^2} \\[0.4em] &= -\frac{\pi}{4}. \end{aligned}

Fubini does not apply because ff is not absolutely integrable. In polar coordinates ∣f∣=∣cos⁡2θ∣r2\lvert f \rvert = \frac{\lvert \cos 2\theta \rvert}{r^2}, and the quarter annulus ε≤r≤1\varepsilon \le r \le 1, 0<θ<π20 < \theta < \frac{\pi}{2} lies in the region, so

∬∣f∣ dA≥∫0π/2∣cos⁡2θ∣ dθ∫ε1drr=1⋅ln⁡1ε,\begin{aligned} \iint \lvert f \rvert \, dA &\ge \int_0^{\pi/2} \lvert \cos 2\theta \rvert \, d\theta \int_\varepsilon^1 \frac{dr}{r} \\[0.4em] &= 1 \cdot \ln \frac{1}{\varepsilon}, \end{aligned}

which grows without bound as ε→0+\varepsilon \to 0^+. Exhaustions disagree too. Over the squares [1n,1]×[1n,1][\frac{1}{n}, 1] \times [\frac{1}{n}, 1] the integral is 00 for every nn, because f(y,x)=−f(x,y)f(y, x) = -f(x, y). Over the rectangles [1n2,1]×[1n,1][\frac{1}{n^2}, 1] \times [\frac{1}{n}, 1] the integrals tend to −π4-\frac{\pi}{4}.

For an exhaustion example on an unbounded region, take sin⁡(x2+y2)\sin(x^2 + y^2) on the whole plane. Over disks of radius RR polar coordinates give

∫02π∫0Rsin⁡(r2) r dr dθ=π(1−cos⁡R2),\begin{aligned} &\int_0^{2\pi} \int_0^R \sin(r^2) \, r \, dr \, d\theta \\[0.4em] &= \pi \big( 1 - \cos R^2 \big), \end{aligned}

which keeps oscillating between 00 and 2π2\pi and has no limit. Over the squares [−a,a]×[−a,a][-a, a] \times [-a, a] the identity

sin⁡(x2+y2)=sin⁡(x2)cos⁡(y2)+cos⁡(x2)sin⁡(y2)\begin{aligned} &\sin(x^2 + y^2) \\[0.4em] &= \sin(x^2) \cos(y^2) + \cos(x^2) \sin(y^2) \end{aligned}

turns the integral into 2S(a)C(a)2 S(a) C(a), where S(a)=∫−aasin⁡(x2) dxS(a) = \int_{-a}^{a} \sin(x^2) \, dx and C(a)=∫−aacos⁡(x2) dxC(a) = \int_{-a}^{a} \cos(x^2) \, dx. The Fresnel integrals converge, though not absolutely, and

∫−∞∞sin⁡(x2) dx=∫−∞∞cos⁡(x2) dx=π2.\begin{aligned} \int_{-\infty}^{\infty} \sin(x^2) \, dx &= \int_{-\infty}^{\infty} \cos(x^2) \, dx \\[0.4em] &= \sqrt{\frac{\pi}{2}}. \end{aligned}

So the square totals tend to 2⋅π2=π2 \cdot \frac{\pi}{2} = \pi. Two exhaustions, two different behaviors.

Gaussian integral

Definition The Gaussian integral is

∫−∞∞e−x2 dx=π.\int_{-\infty}^{\infty} e^{-x^2} \, dx = \sqrt{\pi}.

The proof uses only the tools above. The function e−(x2+y2)e^{-(x^2 + y^2)} is continuous and positive on the plane, so its integral over the plane has one value in [0,∞][0, \infty], the same for every regular exhaustion.

In plain words Compute the same total twice, once with squares, where it splits into the square of the one-variable integral, and once with disks, where polar coordinates finish the job.

Example Write I=∫−∞∞e−x2 dxI = \int_{-\infty}^{\infty} e^{-x^2} \, dx, which converges because e−x2≤e−∣x∣e^{-x^2} \le e^{-\lvert x \rvert} for ∣x∣≥1\lvert x \rvert \ge 1. Over the square [−a,a]×[−a,a][-a, a] \times [-a, a] the integrand factors, so

∬[−a,a]2e−(x2+y2) dA=(∫−aae−x2 dx)2,\begin{aligned} &\iint_{[-a, a]^2} e^{-(x^2 + y^2)} \, dA \\[0.4em] &= \left( \int_{-a}^{a} e^{-x^2} \, dx \right)^2, \end{aligned}

which tends to I2I^2. Over the disk of radius RR, a bounded region where the polar change of variables is valid,

∫02π∫0Re−r2 r dr dθ=π(1−e−R2),\begin{aligned} &\int_0^{2\pi} \int_0^R e^{-r^2} \, r \, dr \, d\theta \\[0.4em] &= \pi \big( 1 - e^{-R^2} \big), \end{aligned}

which tends to π\pi. Both are regular exhaustions of the plane and the integrand is positive, so the limits agree. Hence I2=πI^2 = \pi, and since I>0I > 0, I=πI = \sqrt{\pi}.

Distinction from measure-theoretic generalizations

Definition Everything in this lesson concerns continuous integrands, regions with piecewise smooth boundaries, and limits over regular exhaustions, all built on Riemann integrals. Advanced courses replace this with the Lebesgue integral from measure theory, which integrates far more general functions over far more general sets. There, a function is integrable exactly when the integral of its absolute value is finite, Tonelli’s theorem holds for every measurable nonnegative function, and Fubini’s theorem holds for every integrable function, with the inner integrals required to exist only outside a set of measure zero. Those versions drop our extra assumption that the inner integrals are continuous, but they are different theorems and are not used in this course.

In plain words The rules here are the everyday versions for continuous functions. The general theory removes the side conditions but needs a whole new definition of the integral.

Example The function sin⁡(x2+y2)\sin(x^2 + y^2) from above has no improper double integral over the plane in our sense, and it is not Lebesgue integrable either, because the integral of ∣sin⁡(x2+y2)∣\lvert \sin(x^2 + y^2) \rvert over the disk of radius RR grows without bound. On the other hand, e−(x2+y2)e^{-(x^2 + y^2)} is integrable in both senses, with the same value π\pi. For continuous, absolutely integrable functions the two theories always give the same number.

Check yourself

  1. Compute the integral of (x2+y2)−3/2(x^2 + y^2)^{-3/2} over the region x2+y2≥1x^2 + y^2 \ge 1, or show that it diverges.
Show the answer

The integrand is continuous and positive there, so any regular exhaustion works. With annuli 1≤r≤n1 \le r \le n,

∫02π∫1nr−3 r dr dθ=2π(1−1n)→2π.\begin{aligned} &\int_0^{2\pi} \int_1^n r^{-3} \, r \, dr \, d\theta \\[0.4em] &= 2\pi \left( 1 - \frac{1}{n} \right) \to 2\pi. \end{aligned}

The integral converges to 2π2\pi.

  1. Does the integral of 1x2+y2\frac{1}{x^2 + y^2} over the punctured unit disk 0<x2+y2≤10 < x^2 + y^2 \le 1 converge?
Show the answer

No. Over the annulus ε≤r≤1\varepsilon \le r \le 1 the integral is

∫02π∫ε11r2 r dr dθ=2πln⁡1ε,\int_0^{2\pi} \int_\varepsilon^1 \frac{1}{r^2} \, r \, dr \, d\theta = 2\pi \ln \frac{1}{\varepsilon},

which grows without bound as ε→0+\varepsilon \to 0^+. Since the integrand is positive, the integral diverges.

  1. Why is it wrong to conclude from the two iterated integrals of x2−y2(x2+y2)2\frac{x^2 - y^2}{(x^2 + y^2)^2} over the unit square that the double integral equals π4\frac{\pi}{4}?
Show the answer

The integrand changes sign and is not absolutely integrable near the origin, so Fubini’s theorem does not apply. The other order gives −π4-\frac{\pi}{4}, and the exhaustion by squares [1n,1]×[1n,1][\frac{1}{n}, 1] \times [\frac{1}{n}, 1] gives 00. Different exhaustions give different limits, so the improper double integral is not defined.

How this lesson connects

It also uses Improper one-variable integrals and convergence tests and Double integrals, polar coordinates and change of variables.