Skip to main content

Multiple Integrals

Multiple integrals extend accumulation to regions in the plane and solids in space. A double integral adds contributions over area. A triple integral adds contributions over volume. The same slice-and-sum idea from single-variable integration remains, but the geometry of the region becomes more important.

Arrows rotate around the origin in a two-dimensional vector field.

Figure: A planar vector field shows how direction and magnitude vary from point to point. Image: Wikimedia Commons, Fibonacci, public domain.

These integrals compute volume, mass, charge, probability, average value, and moments. They also prepare for vector calculus, where flux and circulation compare integrals over regions, surfaces, and boundaries.

Definitions​

The double integral of f(x,y)f(x,y) over a region DD is

∬Df(x,y) dA.\iint_D f(x,y)\,dA.

If f(x,y)≥0f(x,y)\ge 0, it represents volume under the surface z=f(x,y)z=f(x,y) above DD.

An iterated integral over a type I region

D={(x,y):a≤x≤b, g1(x)≤y≤g2(x)}D=\{(x,y): a\le x\le b,\ g_1(x)\le y\le g_2(x)\}

is

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

A triple integral over a solid EE is

∭Ef(x,y,z) dV.\iiint_E f(x,y,z)\,dV.

In polar coordinates,

x=rcos⁡θ,y=rsin⁡θ,dA=r dr dθ.x=r\cos\theta,\qquad y=r\sin\theta,\qquad dA=r\,dr\,d\theta.

In cylindrical coordinates,

x=rcos⁡θ,y=rsin⁡θ,z=z,dV=r dr dθ dz.x=r\cos\theta,\qquad y=r\sin\theta,\qquad z=z,\qquad dV=r\,dr\,d\theta\,dz.

In spherical coordinates,

x=ρsin⁡ϕcos⁡θ,y=ρsin⁡ϕsin⁡θ,z=ρcos⁡ϕ,x=\rho\sin\phi\cos\theta,\quad y=\rho\sin\phi\sin\theta,\quad z=\rho\cos\phi,

and

dV=ρ2sin⁡ϕ dρ dϕ dθ.dV=\rho^2\sin\phi\,d\rho\,d\phi\,d\theta.

Key results​

Fubini's Theorem says that if ff is continuous on a rectangular region, then a double integral can be evaluated as an iterated integral in either order:

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

For nonrectangular regions, reversing order requires rewriting the bounds. This is often the hardest part of the problem.

The average value of ff over a region DD is

favg=1Area⁡(D)∬Df dA.f_{\text{avg}}=\frac{1}{\operatorname{Area}(D)}\iint_D f\,dA.

Mass with density ρ(x,y)\rho(x,y) over a lamina DD is

m=∬Dρ(x,y) dA.m=\iint_D \rho(x,y)\,dA.

Moments are

Mx=∬Dyρ(x,y) dA,My=∬Dxρ(x,y) dA.M_x=\iint_D y\rho(x,y)\,dA, \qquad M_y=\iint_D x\rho(x,y)\,dA.

The center of mass is

xˉ=Mym,yˉ=Mxm.\bar{x}=\frac{M_y}{m}, \qquad \bar{y}=\frac{M_x}{m}.

The Jacobian factor is essential in coordinate changes. Polar coordinates use rr because a small polar rectangle has area approximately r dr dθr\,dr\,d\theta. Spherical coordinates use ρ2sin⁡ϕ\rho^2\sin\phi because the small volume element expands with radius and angle.

Symmetry can simplify multiple integrals. If a density or integrand is odd over a symmetric region, the integral may be zero. If the region and integrand are radially symmetric, polar, cylindrical, or spherical coordinates often reduce the algebra.

Changing the order of integration is a geometric skill. The original bounds describe the region in one slicing direction. To reverse the order, draw or describe the same region with the other variable as the outer variable. For a triangle, this often means solving a boundary line for the other variable. For regions bounded by curves, it may require splitting into pieces.

A double integral can also represent area:

Area⁡(D)=∬D1 dA.\operatorname{Area}(D)=\iint_D 1\,dA.

A triple integral can represent volume:

Volume⁡(E)=∭E1 dV.\operatorname{Volume}(E)=\iiint_E 1\,dV.

These formulas are useful because complicated regions may be easier to measure by integration than by elementary geometry.

For probability densities, a nonnegative function p(x,y)p(x,y) over a region has total probability

∬Dp(x,y) dA=1.\iint_D p(x,y)\,dA=1.

Expected values are weighted integrals, such as

E[X]=∬Dx p(x,y) dA.E[X]=\iint_D x\,p(x,y)\,dA.

This is the same center-of-mass idea with probability replacing physical mass.

Coordinate changes require both new bounds and the Jacobian. It is not enough to replace x2+y2x^2+y^2 with r2r^2; the area element changes too. The factor rr in polar coordinates reflects the fact that equal angle increments cover larger arc lengths farther from the origin.

In spherical coordinates, convention matters. Here ϕ\phi is measured down from the positive zz-axis and θ\theta is measured in the xyxy-plane. Some fields use a different convention, so formulas should always be matched to the notation in the problem.

Triple integrals require the same region-first thinking. A solid under a surface might be described by 0≤z≤f(x,y)0\le z\le f(x,y) over a base region DD. A solid between two surfaces might use g1(x,y)≤z≤g2(x,y)g_1(x,y)\le z\le g_2(x,y). For cylindrical or spherical solids, the angular and radial bounds often describe the shape more simply than Cartesian inequalities.

The order of integration can change difficulty dramatically. An integral such as

∫01∫x1ey2 dy dx\int_0^1\int_x^1 e^{y^2}\,dy\,dx

is hard in the given order because ey2e^{y^2} has no elementary antiderivative in yy. Reversing the triangular region gives

∫01∫0yey2 dx dy,\int_0^1\int_0^y e^{y^2}\,dx\,dy,

which is easier because the inner integral is with respect to xx.

Moments of inertia are another application. For a lamina with density ρ\rho, the moment of inertia about the xx-axis is

Ix=∬Dy2ρ(x,y) dA,I_x=\iint_D y^2\rho(x,y)\,dA,

and about the yy-axis is

Iy=∬Dx2ρ(x,y) dA.I_y=\iint_D x^2\rho(x,y)\,dA.

The extra squared distance factor weights mass farther from the axis more heavily.

Bounds should be checked by projecting the region. In a double integral, the outer bounds describe the shadow of the region on one axis. In a triple integral, one common approach is to project the solid onto a coordinate plane, describe that base region, and then give lower and upper bounds for the third variable.

Visual​

CoordinatesBest forArea/volume element
Cartesian (x,y,z)(x,y,z)boxes, triangles, simple graphsdA=dx dydA=dx\,dy, dV=dx dy dzdV=dx\,dy\,dz
Polar (r,θ)(r,\theta)disks, sectors, circlesdA=r dr dθdA=r\,dr\,d\theta
Cylindrical (r,θ,z)(r,\theta,z)cylinders and vertical symmetrydV=r dr dθ dzdV=r\,dr\,d\theta\,dz
Spherical (ρ,ϕ,θ)(\rho,\phi,\theta)balls, cones, radial symmetrydV=ρ2sin⁡ϕ dρ dϕ dθdV=\rho^2\sin\phi\,d\rho\,d\phi\,d\theta

Worked example 1: double integral over a triangle​

Problem. Evaluate

∬D(x+2y) dA\iint_D (x+2y)\,dA

where DD is the triangle bounded by x=0x=0, y=0y=0, and x+y=1x+y=1.

Method.

  1. Describe the region:
0≤x≤1,0≤y≤1−x.0\le x\le 1, \qquad 0\le y\le 1-x.
  1. Set up the iterated integral:
∫01∫01−x(x+2y) dy dx.\int_0^1\int_0^{1-x}(x+2y)\,dy\,dx.
  1. Integrate with respect to yy:
∫01−x(x+2y) dy=[xy+y2]01−x.\int_0^{1-x}(x+2y)\,dy =\left[xy+y^2\right]_0^{1-x}.
  1. Substitute y=1−xy=1-x:
x(1−x)+(1−x)2.x(1-x)+(1-x)^2.
  1. Simplify:
x−x2+1−2x+x2=1−x.x-x^2+1-2x+x^2=1-x.
  1. Integrate with respect to xx:
∫01(1−x) dx=[x−x22]01=12.\int_0^1(1-x)\,dx =\left[x-\frac{x^2}{2}\right]_0^1 =\frac12.

Checked answer. The double integral is 1/21/2.

Worked example 2: polar integral over a disk​

Problem. Evaluate

∬D(x2+y2) dA\iint_D (x^2+y^2)\,dA

where DD is the disk x2+y2≤4x^2+y^2\le 4.

Method.

  1. Use polar coordinates because the region is circular:
x2+y2=r2,dA=r dr dθ.x^2+y^2=r^2, \qquad dA=r\,dr\,d\theta.
  1. The disk has bounds
0≤r≤2,0≤θ≤2π.0\le r\le 2, \qquad 0\le\theta\le 2\pi.
  1. Substitute into the integral:
∫02π∫02r2⋅r dr dθ.\int_0^{2\pi}\int_0^2 r^2\cdot r\,dr\,d\theta.
  1. Combine powers:
∫02π∫02r3 dr dθ.\int_0^{2\pi}\int_0^2 r^3\,dr\,d\theta.
  1. Integrate in rr:
∫02r3 dr=[r44]02=4.\int_0^2 r^3\,dr=\left[\frac{r^4}{4}\right]_0^2=4.
  1. Integrate in θ\theta:
∫02π4 dθ=8π.\int_0^{2\pi}4\,d\theta=8\pi.

Checked answer. The value is 8π8\pi. The extra factor rr in dAdA is necessary; without it the answer would have the wrong geometry.

The answer can be checked using average value. Over a disk of radius 22, the average value of r2r^2 is

1π(2)2∫02π∫02r3 dr dθ=8π4π=2.\frac{1}{\pi(2)^2}\int_0^{2\pi}\int_0^2 r^3\,dr\,d\theta =\frac{8\pi}{4\pi}=2.

So the integral equals average value 22 times area 4π4\pi, giving 8π8\pi again.

This example also shows why polar coordinates are natural for radial functions. The integrand x2+y2x^2+y^2 and the region x2+y2≤4x^2+y^2\le 4 both simplify in polar form, so the only added complexity is the Jacobian factor rr.

For a noncircular region, polar coordinates may make bounds harder rather than easier. The coordinate system should be chosen because it simplifies the region, the integrand, or both. A disk, annulus, sector, cone, sphere, or cylinder usually signals a polar-type coordinate system; a rectangle or box usually favors Cartesian coordinates.

Multiple integrals also support bounding estimates. If m≤f(x,y)≤Mm\le f(x,y)\le M on DD, then

m Area⁡(D)≤∬Df dA≤M Area⁡(D).m\,\operatorname{Area}(D)\le\iint_D f\,dA\le M\,\operatorname{Area}(D).

This is useful for checking signs and approximate sizes before doing detailed computation.

For triple integrals, the analogous bound uses volume:

m Volume⁡(E)≤∭Ef dV≤M Volume⁡(E).m\,\operatorname{Volume}(E)\le\iiint_E f\,dV\le M\,\operatorname{Volume}(E).

These estimates are not usually the final answer, but they catch errors such as missing Jacobian factors, reversed bounds, or impossible negative values for positive integrands before the calculation becomes too long to audit line by line with confidence later on.

They also help compare numerical approximations and exact answers reliably later too.

Code​

def midpoint_double(f, ax, bx, ay_func, by_func, nx=200, ny=200):
hx = (bx - ax) / nx
total = 0.0
for i in range(nx):
x = ax + (i + 0.5) * hx
ay = ay_func(x)
by = by_func(x)
hy = (by - ay) / ny
for j in range(ny):
y = ay + (j + 0.5) * hy
total += f(x, y) * hx * hy
return total

print(midpoint_double(lambda x, y: x + 2*y, 0, 1, lambda x: 0, lambda x: 1 - x))

Common pitfalls​

  • Forgetting the Jacobian factor rr or ρ2sin⁡ϕ\rho^2\sin\phi.
  • Reversing order of integration without rewriting bounds.
  • Describing a triangular or circular region as if it were a rectangle.
  • Integrating in polar coordinates but leaving x2+y2x^2+y^2 unchanged instead of converting to r2r^2.
  • Using ϕ\phi and θ\theta inconsistently in spherical coordinates.
  • Treating average value as the integral instead of dividing by area or volume.

Connections​