Double Integrals, Cartesian and Polar

Published on 2026-11-04·v1.0

Learning Objectives

  • Evaluate a double integral as an iterated integral over a rectangle or over a region bounded by curves, and change the order of integration by redescribing the region.
  • State the hypotheses of Fubini's theorem, and recognize a case where the two iterated integrals disagree because a hypothesis fails.
  • State the change-of-variables theorem with its conditions, compute a Jacobian, and derive the factor rr of polar coordinates.
  • Evaluate ∫−∞∞e−x2 dx\int_{-\infty}^{\infty} e^{-x^2}\, dx by switching to polar coordinates, and use it to show that the Normal density integrates to 1.

Context & Motivation

A double integral adds up a quantity spread over a region of the plane: the volume under a surface z=f(x,y)z = f(x, y), or the mass of a plate whose density varies from point to point. As in the-definite-integral-and-riemann-sums, it is defined as a limit of sums, and it is computed by reducing it to two single integrals.

The lesson the-normal-distribution writes down the density 1σ2πe−(x−μ)2/(2σ2)\frac{1}{\sigma\sqrt{2\pi}}e^{-(x-\mu)^2/(2\sigma^2)} and says only that the constant in front makes the area equal 1. That constant is not obvious, because e−x2e^{-x^2} has no antiderivative that can be written with elementary functions, so the fundamental theorem of calculus cannot evaluate the integral directly. The way around it uses two dimensions: the square of the integral is a double integral over the plane, and in polar coordinates it becomes easy. The same idea gives the Box-Muller method for turning uniform random numbers into Normal ones.

Core Theory

Double integrals over rectangles

Split a rectangle R=[a,b]×[c,d]R = [a, b] \times [c, d] into small subrectangles of area ΔA\Delta A, pick a sample point in each, and form ∑f(xi∗,yj∗) ΔA\sum f(x_i^*, y_j^*)\, \Delta A. When the sums converge to the same number as the subrectangles shrink, the limit is ∬Rf dA\iint_R f\, dA. It exists when ff is continuous on RR, and also when ff is bounded and is discontinuous only along finitely many smooth curves. Where f≥0f \ge 0 it is the volume under the graph.

Iterated integrals and Fubini's theorem

Fubini's theorem (continuous case). If ff is continuous on the closed rectangle R=[a,b]×[c,d]R = [a, b] \times [c, d], then

∬Rf dA=∫ab(∫cdf(x,y) dy)dx=∫cd(∫abf(x,y) dx)dy.\iint_R f\, dA = \int_a^b \left(\int_c^d f(x, y)\, dy\right) dx = \int_c^d \left(\int_a^b f(x, y)\, dx\right) dy.

The hypotheses are a closed bounded rectangle and continuity. The version for general integrable functions (Lebesgue integral) replaces continuity by absolute integrability: if ∬∣f∣ dA<∞\iint |f|\, dA < \infty, both iterated integrals exist and equal ∬f dA\iint f\, dA. Tonelli's theorem covers f≥0f \ge 0: both iterated integrals always equal the double integral, as values in [0,∞][0, \infty], and no finiteness is needed.

When the hypothesis fails, the conclusion can fail. Take f(x,y)=x2−y2(x2+y2)2f(x, y) = \dfrac{x^2 - y^2}{(x^2 + y^2)^2} on (0,1)2(0, 1)^2, which blows up at the origin. Since ∂∂xxx2+y2=y2−x2(x2+y2)2\frac{\partial}{\partial x}\frac{x}{x^2 + y^2} = \frac{y^2 - x^2}{(x^2 + y^2)^2}, integrating in xx first gives −11+y2-\frac{1}{1 + y^2}, and then

∫01 ⁣ ⁣∫01f dx dy=−π4,but∫01 ⁣ ⁣∫01f dy dx=+π4.\int_0^1\!\!\int_0^1 f\, dx\, dy = -\frac{\pi}{4}, \qquad \text{but} \qquad \int_0^1\!\!\int_0^1 f\, dy\, dx = +\frac{\pi}{4}.

Both values were confirmed numerically. The function is not absolutely integrable: ∬∣f∣ dA\iint |f|\, dA over [ε,1]2[\varepsilon, 1]^2 grows by about 2.32.3 each time ε\varepsilon shrinks tenfold (it approaches ln⁡10\ln 10 per step), which is logarithmic divergence. Without absolute integrability, the order can matter.

General regions and changing the order

A region is of type I if it is a≤x≤ba \le x \le b, g1(x)≤y≤g2(x)g_1(x) \le y \le g_2(x) with g1,g2g_1, g_2 continuous, and of type II if the roles of xx and yy are swapped. For ff continuous on such a region DD,

∬Df dA=∫ab∫g1(x)g2(x)f(x,y) dy dx.\iint_D f\, dA = \int_a^b \int_{g_1(x)}^{g_2(x)} f(x, y)\, dy\, dx.

Swapping the order is not swapping the limits. The region has to be redescribed from the other direction, so a sketch comes first: read off the extreme values of the new outer variable, then the bounds of the inner one as functions of it.

Change of variables and the Jacobian

Suppose T(u,v)=(x(u,v),y(u,v))T(u, v) = (x(u, v), y(u, v)) maps a region SS in the uvuv-plane onto a region DD in the xyxy-plane. The Jacobian is the determinant

∂(x,y)∂(u,v)=det⁡(xuxvyuyv).\frac{\partial(x, y)}{\partial(u, v)} = \det\begin{pmatrix} x_u & x_v \\ y_u & y_v \end{pmatrix}.

Change of variables. If TT is continuously differentiable (C1C^1), one-to-one on the interior of SS, and has a nonzero Jacobian on the interior of SS, and if ff is continuous on DD, then

∬Df(x,y) dA=∬Sf(x(u,v),y(u,v)) ∣∂(x,y)∂(u,v)∣du dv.\iint_D f(x, y)\, dA = \iint_S f\big(x(u, v), y(u, v)\big)\,\left\lvert \frac{\partial(x, y)}{\partial(u, v)} \right\rvert du\, dv.

The reason is the local linear approximation from partial-derivatives-and-the-multivariable-chain-rule: a small Δu×Δv\Delta u \times \Delta v rectangle is sent to nearly a parallelogram of area ∣det⁡∣ Δu Δv\lvert\det\rvert\, \Delta u\, \Delta v. For the linear map x=(u+v)/2x = (u + v)/2, y=(u−v)/2y = (u - v)/2 the determinant is −1/2-1/2, so areas are halved and the factor is 1/21/2.

For polar coordinates, x=rcos⁡θx = r\cos\theta and y=rsin⁡θy = r\sin\theta give

∂(x,y)∂(r,θ)=det⁡(cos⁡θ−rsin⁡θsin⁡θrcos⁡θ)=r,\frac{\partial(x, y)}{\partial(r, \theta)} = \det\begin{pmatrix} \cos\theta & -r\sin\theta \\ \sin\theta & r\cos\theta \end{pmatrix} = r,

so dA=r dr dθdA = r\, dr\, d\theta, the factor previewed in polar-coordinates. The map from [0,R]×[0,2π][0, R] \times [0, 2\pi] to the disk of radius RR breaks the hypotheses on the boundary: the whole segment r=0r = 0 lands on the origin, the rays θ=0\theta = 0 and θ=2π\theta = 2\pi coincide, and r=0r = 0 makes the Jacobian vanish. These sets have zero area, and the theorem needs only the interior, so for continuous ff the integral is unchanged.

A hypothesis that does matter is one-to-one. Let θ\theta run over [0,4π][0, 4\pi] and the unit disk is covered twice: ∫04π∫01r dr dθ=2π\int_0^{4\pi}\int_0^1 r\, dr\, d\theta = 2\pi, twice the true area π\pi.

Unbounded regions

An integral over the whole plane is a limit, as in improper-integrals: integrate over a disk or square that grows, then let it grow without bound. For f≥0f \ge 0 the result does not depend on which growing family is used. For a function that changes sign, absolute integrability is the safe requirement.

Worked Examples

Example 1: choosing the order on a rectangle

Evaluate ∬Rxexy dA\iint_R x e^{xy}\, dA on R=[0,1]×[0,2]R = [0, 1] \times [0, 2]. The integrand is continuous on a closed rectangle, so either order is allowed. Integrating yy first is easy:

∫02xexy dy=e2x−1,∫01(e2x−1) dx=e2−32≈2.1945.\int_0^2 x e^{xy}\, dy = e^{2x} - 1, \qquad \int_0^1 (e^{2x} - 1)\, dx = \frac{e^2 - 3}{2} \approx 2.1945.

Integrating xx first needs integration by parts and gives (y−1)ey+1y2\frac{(y - 1)e^y + 1}{y^2}, a harder second step. Symbolic evaluation in both orders gives (e2−3)/2(e^2 - 3)/2, and numerical quadrature gives 2.194532.19453.

Example 2: an integral that only works after swapping

Evaluate ∫01 ⁣∫x1ey2 dy dx\int_0^1\!\int_x^1 e^{y^2}\, dy\, dx. The inner integral is π2(erfi⁡(1)−erfi⁡(x))\frac{\sqrt\pi}{2}(\operatorname{erfi}(1) - \operatorname{erfi}(x)), not elementary. The region is 0≤x≤y≤10 \le x \le y \le 1, a triangle. Described the other way, 0≤y≤10 \le y \le 1 and 0≤x≤y0 \le x \le y, so

∫01 ⁣∫0yey2 dx dy=∫01yey2 dy=e−12≈0.8591.\int_0^1\!\int_0^y e^{y^2}\, dx\, dy = \int_0^1 y e^{y^2}\, dy = \frac{e - 1}{2} \approx 0.8591.

Numerical quadrature of the original form returns 0.859140.85914.

Example 3: volume under a paraboloid

Find the volume between z=4−x2−y2z = 4 - x^2 - y^2 and the plane z=0z = 0. The surface meets the plane at r=2r = 2, so DD is the disk r≤2r \le 2 and

V=∫02π ⁣∫02(4−r2) r dr dθ=2π[2r2−r44]02=8π≈25.1327.V = \int_0^{2\pi}\!\int_0^2 (4 - r^2)\, r\, dr\, d\theta = 2\pi\left[2r^2 - \frac{r^4}{4}\right]_0^2 = 8\pi \approx 25.1327.

A numerical double integral over the disk in x,yx, y gives 25.1327425.13274. Dropping the Jacobian, ∫02π∫02(4−r2) dr dθ\int_0^{2\pi}\int_0^2 (4 - r^2)\, dr\, d\theta, gives 32π/3≈33.5132\pi/3 \approx 33.51, which is wrong.

Example 4: the Gaussian integral

Let I=∫−∞∞e−x2 dxI = \int_{-\infty}^{\infty} e^{-x^2}\, dx. Then

I2=∫−∞∞e−x2 dx∫−∞∞e−y2 dy=∬R2e−(x2+y2) dA.I^2 = \int_{-\infty}^{\infty} e^{-x^2}\, dx \int_{-\infty}^{\infty} e^{-y^2}\, dy = \iint_{\mathbb{R}^2} e^{-(x^2 + y^2)}\, dA.

The step from a product to a double integral is Fubini in the Tonelli form: the integrand is positive, so no finiteness is assumed. Evaluate the double integral as the limit of integrals over the disk DRD_R of radius RR (allowed because the integrand is nonnegative). On DRD_R polar coordinates apply, with e−(x2+y2)=e−r2e^{-(x^2+y^2)} = e^{-r^2} continuous:

∬DRe−(x2+y2) dA=∫02π ⁣∫0Re−r2 r dr dθ=2π⋅1−e−R22=π(1−e−R2)→π.\iint_{D_R} e^{-(x^2 + y^2)}\, dA = \int_0^{2\pi}\!\int_0^R e^{-r^2}\, r\, dr\, d\theta = 2\pi\cdot\frac{1 - e^{-R^2}}{2} = \pi\big(1 - e^{-R^2}\big) \to \pi.

The extra factor rr is what makes the inner integral elementary: r e−r2r\, e^{-r^2} has the antiderivative −12e−r2-\tfrac{1}{2}e^{-r^2}. So I2=πI^2 = \pi, and since I>0I > 0, I=π≈1.77245I = \sqrt\pi \approx 1.77245, which numerical quadrature confirms. Squares exhaust the plane too, and give the same limit:

text
R disk: pi(1 - e^-R^2) square [-R,R]^2: pi erf(R)^2 1 1.9859 2.2310 2 3.0841 3.1123 3 3.1412 3.1415 (pi = 3.1416)

Back to the Normal density. Substituting u=(x−μ)/(σ2)u = (x - \mu)/(\sigma\sqrt 2), so dx=σ2 dudx = \sigma\sqrt 2\, du,

∫−∞∞e−(x−μ)2/(2σ2) dx=σ2∫−∞∞e−u2 du=σ2π.\int_{-\infty}^{\infty} e^{-(x - \mu)^2/(2\sigma^2)}\, dx = \sigma\sqrt{2}\int_{-\infty}^{\infty} e^{-u^2}\, du = \sigma\sqrt{2\pi}.

Dividing by σ2π\sigma\sqrt{2\pi} produces total area 1, which is the constant in the-normal-distribution. For μ=175\mu = 175 and σ=7\sigma = 7 a numerical integral gives 17.5464=72π17.5464 = 7\sqrt{2\pi}. This derives the normalizing constant; why the bell shape arises in the first place is the Central Limit Theorem's job.

Example 5: Box-Muller

If X,YX, Y are independent standard Normals, their joint density is 12πe−(x2+y2)/2\frac{1}{2\pi}e^{-(x^2 + y^2)/2}. In polar form the density becomes 12πe−r2/2 r dr dθ\frac{1}{2\pi}e^{-r^2/2}\, r\, dr\, d\theta: the angle is uniform on [0,2π)[0, 2\pi), and RR has distribution function 1−e−r2/21 - e^{-r^2/2}. Inverting that gives R=−2ln⁡U1R = \sqrt{-2\ln U_1} and Θ=2πU2\Theta = 2\pi U_2 for uniform U1,U2U_1, U_2, and X=Rcos⁡ΘX = R\cos\Theta, Y=Rsin⁡ΘY = R\sin\Theta. In a run of 10610^6 pairs (seed 7) the sample variances were 0.99860.9986 and 0.99800.9980, the correlation was −0.00003-0.00003, and the fraction with ∣X∣≤1\lvert X\rvert \le 1 was 0.68260.6826 against the exact 0.68270.6827.

Common Misconceptions & Pitfalls

  • "Fubini always lets you swap the order." It needs continuity on a closed rectangle (or absolute integrability, or f≥0f \ge 0). The example with −π/4-\pi/4 and +π/4+\pi/4 shows the order changing the answer.
  • "Swapping the order means swapping the limits." The new bounds come from the region's picture, not from exchanging numbers.
  • "Polar coordinates only change dx dydx\, dy into dr dθdr\, d\theta." The area element is r dr dθr\, dr\, d\theta, and in Example 3 the missing rr changed the answer from 8π8\pi to 32π/332\pi/3. Also check that the angle range covers the region once. A circle not centered at the origin, such as x2+y2≤2xx^2 + y^2 \le 2x, becomes 0≤r≤2cos⁡θ0 \le r \le 2\cos\theta with −π/2≤θ≤π/2-\pi/2 \le \theta \le \pi/2.
  • "The scaling factor is the Jacobian determinant itself." The determinant can be negative because it records orientation, but the factor is its absolute value. The linear map above has determinant −1/2-1/2 and factor 1/21/2.

Summary

A double integral is a limit of sums, evaluated as an iterated integral when Fubini applies: continuity on a closed rectangle, or absolute integrability, or a nonnegative integrand (Tonelli). Without those, the two orders can disagree, as ±π/4\pm\pi/4 shows. On general regions the order is changed by redescribing the region. A change of variables needs a C1C^1 map that is one-to-one on the interior and has a nonzero Jacobian there, and it multiplies the integrand by ∣∂(x,y)/∂(u,v)∣\lvert\partial(x, y)/\partial(u, v)\rvert; for polar coordinates that is rr. With it, ∬e−(x2+y2) dA=π\iint e^{-(x^2 + y^2)}\, dA = \pi gives ∫e−x2 dx=π\int e^{-x^2}\, dx = \sqrt\pi, the normalizing constant σ2π\sigma\sqrt{2\pi} of the Normal density, and the Box-Muller sampler.

Documentation Links