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.

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):axb, g1(x)yg2(x)}D=\{(x,y): a\le x\le b,\ g_1(x)\le y\le g_2(x)\}

is

abg1(x)g2(x)f(x,y)dydx.\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=rdrdθ.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=rdrdθ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:

RfdA=abcdf(x,y)dydx=cdabf(x,y)dxdy.\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)DfdA.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 rdrdθ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)=D1dA.\operatorname{Area}(D)=\iint_D 1\,dA.

A triple integral can represent volume:

Volume(E)=E1dV.\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]=Dxp(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 0zf(x,y)0\le z\le f(x,y) over a base region DD. A solid between two surfaces might use g1(x,y)zg2(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

01x1ey2dydx\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

010yey2dxdy,\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=dxdydA=dx\,dy, dV=dxdydzdV=dx\,dy\,dz
Polar (r,θ)(r,\theta)disks, sectors, circlesdA=rdrdθdA=r\,dr\,d\theta
Cylindrical (r,θ,z)(r,\theta,z)cylinders and vertical symmetrydV=rdrdθ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:
0x1,0y1x.0\le x\le 1, \qquad 0\le y\le 1-x.
  1. Set up the iterated integral:
0101x(x+2y)dydx.\int_0^1\int_0^{1-x}(x+2y)\,dy\,dx.
  1. Integrate with respect to yy:
01x(x+2y)dy=[xy+y2]01x.\int_0^{1-x}(x+2y)\,dy =\left[xy+y^2\right]_0^{1-x}.
  1. Substitute y=1xy=1-x:
x(1x)+(1x)2.x(1-x)+(1-x)^2.
  1. Simplify:
xx2+12x+x2=1x.x-x^2+1-2x+x^2=1-x.
  1. Integrate with respect to xx:
01(1x)dx=[xx22]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+y24x^2+y^2\le 4.

Method.

  1. Use polar coordinates because the region is circular:
x2+y2=r2,dA=rdrdθ.x^2+y^2=r^2, \qquad dA=r\,dr\,d\theta.
  1. The disk has bounds
0r2,0θ2π.0\le r\le 2, \qquad 0\le\theta\le 2\pi.
  1. Substitute into the integral:
02π02r2rdrdθ.\int_0^{2\pi}\int_0^2 r^2\cdot r\,dr\,d\theta.
  1. Combine powers:
02π02r3drdθ.\int_0^{2\pi}\int_0^2 r^3\,dr\,d\theta.
  1. Integrate in rr:
02r3dr=[r44]02=4.\int_0^2 r^3\,dr=\left[\frac{r^4}{4}\right]_0^2=4.
  1. Integrate in θ\theta:
02π4dθ=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)202π02r3drdθ=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+y24x^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 mf(x,y)Mm\le f(x,y)\le M on DD, then

mArea(D)DfdAMArea(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:

mVolume(E)EfdVMVolume(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