Skip to content

Multiple integrals

WARNING

The information in this section is being updated.

See also the graded exercises and additional exercises associated to this part of the course. If you want more, Chapter 5 (plus sections 6.3 and 6.4) of OpenStax Calculus Volume 3 is a good option.

The extension to higher dimension of differentiation was established in the previous chapters. We then defined line integrals which are, in a sense, one dimensional integrals which exist in a high dimensional setting. We now take the next step and define higher dimensional integrals in the sense of how to integrate a scalar field defined on a subset of Rn. The first step will be to rigorously define which scalar fields are integrable and to define the integral. Then we need to find reasonable ways to evaluate such integrals. Among other applications we will use this multiple integrals to calculate volumes and moment of inertia. In Green's Theorem we find a connection between multiple integrals and line integrals. We also develop the important topic of change of variables which takes advantage of the Jacobian determinant and is often invaluable for actually working with a given problem.

Definition of the integral

First we need to find a definition of integrability and the integral. Then we will proceed to study the properties of this higher dimensional integral. Recall that, in the one-dimensional case integration was defined using the following steps:

  1. Define the integral for step functions,

  2. Define integral for "integrable functions",

  3. Show that continuous functions are integrable.

For higher dimensions we follow the same logic. We will then show that we can evaluate higher dimensional integrals by repeated one-dimensional integration.

Definition (partition)

Let R=[a1,b1]×[a2,b2] be a rectangle. Suppose that P1={x0,,xm} and P2={y0,,yn} such that a1=x0<x1<<xm=b1 and a2=y0<y1<<yn=b2. P=P1×P2 is said to be a partition of R.

A partition of a rectangle R

Observe that a partition divides R into nm sub-rectangles. If PQ then we say that Q is a finer partition than P. Partitions are constructed in higher dimension, for Rn, in an analogous way. Before defining integration for general functions it is convenient to make the definition for a special class of functions called step functions.

Definition (step function)

A function f:RR is said to be a step function if there is a partition P of R such that f is constant on each sub-rectangle of the partition.

Graph of a step function

If f and g are step functions and c,dR, then cf+dg is also a step function. Also note that the area of the sub-rectangle Qjk:=[xj,xj+1]×[yk,yk+1] is equal to (xj+1xj)(yk+1yk).

We can now define the integral of a step function in a reasonable way. The definition here is for 2D but the analogous definition holds for any dimension.

Suppose that f is a step function with value cjk on the sub-rectangle (xj,xj+1)×(yk,yk+1). Then we define the integral as

Rf dxdy=j=0m1k=0n1cjk(xj+1xj)(yk+1yk).

This should remind you of Riemann sums from Analysis I. Observe that the value of the integral is independent of the partition, as long as the function is constant on each sub-rectangle. In this sense the integral is well-defined (not dependent on the choice of partition used to calculate it).

Theorem

Let f,g be step functions. Then

R(af+bg) dxdy=aRf dxdy+bRg dxdyfor all a,bR,Rf dxdy=R1f dxdy+R2f dxdy if R is divided into R1 and R2,Rf dxdyRg dxdy if f(x,y)g(x,y).

Proof

All properties follow from the definition by basic calculations.

We are now in the position to define the set of integrable functions. In order to define integrability we take advantage of "upper" and "lower" integrals which "sandwich" the function we really want to integrate.

Definition (integrability on a rectangle)

Let R be a rectangle and let f:RR be a bounded function. We call f an _integrable* function if there is one and only one number IR such that

Rg(x,y) dxdyIRh(x,y) dxdy

for every pair of step functions g,h such that, for all (x,y)R,

g(x,y)f(x,y)h(x,y).

This number I is called the integral of f on R and is denoted Rf(x,y) dxdy.

All the basic properties of the integral of step functions, as stated in the above Theorem, also hold for the integral of any integrable functions. This can be shown by considering the limiting procedure of the upper and lower integral of step functions which are part of the definition of integrability.

The most important words in the definition are "only one number": that's what we need to check to verify that a function is integrable. That still isn't immediately easy to check and so it is convenient to now investigate the integrability of continuous functions.

Theorem

Suppose that f is a continuous function defined on the rectangle R. Then f is integrable.

Proof

Continuity implies boundedness and so upper and lower integrals exist. Let ϵ>0. Exists δ>0 such that |f(x)f(y)|ϵ whenever xyδ. We can choose a partition such that xyδ whenever x,y are in the same sub-rectangle Qjk. We then define the step functions g,h s.t. g(x)=infQjkf, h(x)=supQjkf when xQjk. To finish the proof we observe that |infQjkfsupQjkf|ϵ and ϵ>0 can be made arbitrarily small, so we can make the upper and lower integrals as close as we want.

Evaluation of multiple integrals

Now we have a definition, so we know what a multidimensional integral is, and we also know that some interesting ones exist, but it is essential to also have a way to practically evaluate any given integral. It turns out we can do that by integrating in one variable at a time:

Theorem (Fubini)

Let f be an integrable function on the rectangle R=[a1,b1]×[a2,b2]. Then

Rf(x,y) dxdy=a2b2[a1b1f(x,y) dx] dy=a1b1[a2b2f(x,y) dy] dx.

Proof

To see this, think about any pair of step functions g,h such that gfh. Since these are step functions,

Rg(x,y) dxdy=a2b2[a1b1g(x,y) dx] dy=a1b1[a2b2g(x,y) dy] dx

since these are all just different names for the same sum, and the same is true for h. Using this,

Rg(x,y) dxdya2b2[a1b1f(x,y) dx] dyRh(x,y) dxdy;

in other words the iterated integral in the middle is bounded from above and below by the same upper and lower integrals as the integral of f, which leaves only one possible value

a2b2[a1b1f(x,y) dx] dy=Rf(x,y) dxdy

and the other equality holds for the same reason.

This integral naturally allows us to calculate the volume of a solid. Let f(x,y)zg(x,y) be defined on the rectangle RR2 and consider the 3D set defined as

V={(x,y,z):(x,y)R,f(x,y)zg(x,y)}.

The volume of the set V is equal to Vol(V)=R[g(x,y)f(x,y)] dxdy.

Set enclosed by xy-plane and f(x,y)

Up until now we have considered step function and continuous functions. As with one-dimensional integrals we can permit some discontinuities and we introduce the following concept to be able to control the functions with discontinuities sufficiently to guarantee that the integrals are well-defined.

Definition (Content zero sets)

A bounded subset AR2 is said to have content zero if, for every ϵ>0, there exists a finite set of rectangles whose union includes A and the sum of the areas of the rectangles is not greater than ϵ.

Examples of content zero sets include: finite sets of points; bounded line segments; continuous paths.

The graph of a continuous function has content zero

Theorem

Suppose that φ is a continuous function on [a,b]. Then the graph {(x,y):x[a,b],y=φ(x)} has zero content.

Proof

By continuity, for every ϵ>0, there exists δ>0 such that |φ(x)φ(y)|ϵ whenever |xy|δ. We then take partition of [a,b] into subintervals of length less than δ. Using this partition we generate a cover of the graph which has area not greater than 2ϵ|ba|.

Theorem

Let f be a bounded function on R and suppose that the set of discontinuities AR has content zero. Then the double integral Rf(x,y) dxdy exists.

Proof

Take a cover of A by rectangles with total area not greater than δ>0. Let P be a partition of R which is finer than the cover of A. We may assume that |infQjkfsupQjkf|ϵ on each sub-rectangle of the partition which doesn't contain a discontinuity of f. The contribution to the integral of bounding step functions from the cover of A is bounded by δsup|f|.

Regions bounded by functions

A major limitation is that we have only integrated over rectangles whereas we would like to integrate over much more general different shaped regions. This we develop now.

Suppose SR and f is a bounded function on S. We extend f to R by defining

fR(x,y)={f(x,y)if (x,y)S0otherwise.

We use this notation in the following definition.

Definition

We say that f:SR is integrable if fR is integrable and define

Sf(x,y) dxdy=RfR(x,y) dxdy.

Suppose that there are continuous functions φ1, φ2 on R and consider the set

S={(x,y):axb,φ1(x)yφ2(x)}R2.
A region defined by two continuous functions. The projection of the region onto the x-axis is the interval [a,b]

Not all sets can be written in this way but many can and such a way of describing a subset of R2 is convenient for evaluating integrals. We will call sets that can be written this way Type 1 sets in this section.

Let S={(x,y):x[a,b],φ1(x)yφ2(x)} where φ1,φ2 are continuous and let f be a bounded continuous function of S. Then f is integrable on S and

Sf(x,y) dxdy=ab[φ1(x)φ2(x)f(x,y) dy] dx:

the set of discontinuity of fR is the boundary of S in R=[a,b]×[a~,b~] which consists of the graphs of φ1, φ2. These graphs have zero content as we proved before. For each x, f(x,y) is integrable since it has only two discontinuity points. Additionally a~b~fR(x,y) dy=φ1(x)φ2(x)f(x,y) dy. Observe that it doesn't make a different to the integral if we use < or in the definition of S since the difference would be a content zero set.

We could also consider the following set

R={(x,y):ayb,φ1(y)xφ2(y)},

which we will call a Type 2 set. This is just the same situation as above with the roles of x and y switched, that is

Rf(x,y) dxdy=ab[φ1(y)φ2(y)f(x,y) dx] dy.

In the first case we could describe the representation as projecting along the y-coordinate whereas in the second case we are projecting along the x-coordinate. Many interesting sets are both Type 1 and Type 2, although very often one form is more obvious or more useful than the other.

For higher dimensions we need to also have an understanding of how to represent subsets of Rn. Take for example a 3D solid; then we would hope to be able to "project" along one of the coordinate axis and so describe it using the 2D "shadow" and a pair of continuous functions. For example, consider the upside-down cone in this figure which has base of radius 5 lying in the plane {z=5} and has its tip at the origin.

Upside-down cone of height 5 with tip at the origin. The solid is bounded by the surfaces z=x2+y2 and z=5. This solid can be "projected" onto the xy-plane.

In order to describe this set it is convenient to imagine how it projects down onto the xy-axis. We then describe it as

V={(x,y,z):(x,y)S,γ1(x,y)zγ2(x,y)}

where SR2 is the "shadow" and the functions represent the control we need in the vertical direction. In this case we must choose S={(x,y):x2+y252}since the base of the cone, at the top of the picture, it the largest part in terms of the shadow. We also must choose γ1(x,y)=x2+y2 and γ2(x,y)=5 to correspond to the sloped lower surface and the horizontal upper surface.

Applications of multiple integrals

Multiple integrals can be used to calculate the area or volume of a given set. Suppose that

S={(x,y):x[a,b],φ1(x)yφ2(x)}R2

where φ1, φ2 are continuous functions. The the area of S is

S dxdy=ab[φ1(x)φ2(x) dy] dx=ab[φ2(x)φ1(x)] dx.

This corresponds to the usual notion of the integral of a function on R determining the area under the curve. The same idea extends to arbitrary dimension. Suppose that γ1(x,y)γ2(x,y) are continuous functions on S and let

V={(x,y,z):x[a,b],φ1(x)yφ2(x),γ1(x,y)zγ2(x,y)}R3.

The volume of V is

V dxdydz=ab[φ1(x)φ2(x)[γ1(x,y)γ2(x,y) dz]dy] dx=ab[φ1(x)φ2(x)[γ2(x,y)γ1(x,y)]dy] dx.

Multiple integrals also allow us to calculate the mass and centre of mass of solids. Suppose we have several particles each with mass mk and located at point (xk,yk). The total mass would then be M=kmk and the centre of mass is the point (p,q) such that

pM=kmkxkandqM=kmkyk.

Suppose an object has the shape of a region S and the density of the material is f(x,y) at point (x,y). Then, similar to the discrete case above, the total mass is M=Sf(x,y) dxdy and the centre of mass is the point (p,q) such that

pM=Sx f(x,y) dxdyandqM=Sy f(x,y) dxdy.

By tradition, if the density is constant, then the centre of mass is called the centroid.

Green's theorem

We can now establish a connection between multiple integrals and the line integrals of the previous chapter.

Theorem (Green's)

Let CR2 be a piecewise-smooth simple (no intersections) curve and α a path that parametrizes C in the counter-clockwise direction. Let S be the region enclosed by C. Suppose that f(x,y)=(P(x,y)Q(x,y)) is a vector field continuously differentiable on an open set containing S. Then

S(QxPy) dxdy=Cfdα.

Proof

To start we assume that S is a type 1 region and that Q=0, Since S={(x,y):x[a,b],φ1(x)yφ2(x)},

S(QxPy) dxdy=ab[φ1(x)φ2(x)(Py) dy] dx=ab[P(x,φ1(x))P(x,φ2(x))]dx,

It is then natural to choose four paths α1(t)=(t,φ1(t)), α2(t)=(a,t), α3(t)=(t,φ2(t)), α4(t)=(b,t). We can calculate that

Cfdα=fdα1fdα3=abP(t,φ1(t)) dtabP(t,φ2(t)) dt.

If S is also type 2 then this works for P=0 and linearity means it works for f=(P0)+(0Q), More general regions can be formed by "glueing" together simpler regions of the above type to complete the argument.

The quantity QxPy is reminiscent of something we saw with conservative vector fields and we take advantage of this with the following application. We previously introduced the concept of connected sets but now we need a slight refinement of the idea.

Definition (simply connected)

A connected set SRn is said to be simply-connected if any closed path α, contained within S, can be contracted to a point. (This is in the sense that there exists a continuous map F:D2S, where D2R2 denotes the unit disk, such that F restricted to the unit circle is α.)

Simply connected
Not simply connected

The following result extends the theorem about conservative vector fields from Part 4 which was limited to convex sets.

Theorem

Let S be a simply connected region and suppose that f=(PQ) is a vector field, continuously differentiable on S. Then f is conservative if and only if Qx=Py.

Proof

In the mixed partials theorem we already proved that Qx=Py whenever f is conservative so we need only prove the other direction of the statement. Suppose that Qx=Py and consider any closed path α in S. Then Green's theorem tells us that

Cfdα=S(QxPy) dxdy=0.

This implies that f is conservative because the fact that the line integral around every closed curve is zero (using a theorem from Part 4).

A crucially important consequence of the above result is that it implies the invariance of a line integral under deformation of a path when the vector field is conservative. Observe that the result can be extended to multiply connected regions by adding additional "cuts" and keeping track of the additional line integrals.

Change of variables

When we want to identify a point in space it is common, particularly if we are pirates recording the position of treasure, that there are many alternative ways we can describe this point. For example we could write the number of steps north and the number of steps east from the central palm tree. Alternatively we can specify that we stand at the palm tree looking in a specific direction and then walk a particular number of steps. Often is is really convenient to swap from one coordinate to another and in this section we show how multiple integrals behave under change of coordinates.

To start, we recall the 1D case. If g:[a,b][g(a),g(b)] is onto with continuous derivative and f is continuous then

g(a)g(b)f(x) dx=abf(g(u)) g(u) du.

In higher dimension we obtain a similar result but g must be replaced by a type of derivative which works in higher dimension.

For the 2D case we have the following result.

Theorem (change of variables)

Suppose that (u,v)(X(u,v),Y(u,v)) maps T to S one-to-one and X, Y are continuously differentiable. Then

Sf(x,y) dxdy=Tf(X(u,v),Y(u,v)) |J(u,v)| dudv.

Here J(u,v)=(uXuYvXvY) is the Jacobian matrix as used previously. Note that the Jacobian represents the scaling of volume in the sense that S dxdy=T|J(u,v)| dudv.

Polar coordinates

Polar coordinates correspond to the coordinate mapping

{x=rcosθy=rsinθ.

In this case the Jacobian determinant is

|J(r,θ)|=|(uXuYvXvY)|=|(cosθsinθrsinθrcosθ)|=r(cos2θ+sin2θ)=r.

Consequently, the change of variable in the integral gives that

Sf(x,y) dxdy=Tr f(rcosθ,rsinθ) drdθ.

Linear transformations

In this case the coordinate mapping is

{x=Au+Bvy=Cu+Dv

where A,B,C,DR are chosen fixed. The Jacobian determinant is equal to

|J(u,v)|=|(uXuYvXvY)|=|(ABCD)|=|ADBC|.

Consequently the change of coordinates for the integral is

Sf(x,y) dxdy=|ADBC|Tf(Au+Bv,Cu+Dv) dudv.

Extension to higher dimensions

The exact analog of  the 2D change of variables formula holds in any dimension. In particular, in 3D, if we consider the change of variables (u,v,w)(X(u,v,w),Y(u,v,w),Z(u,v,w)), then Sf(x,y,z) dxdydz is equal to

Tf(X(u,v,w),Y(u,v,w),Z(u,v,w)) |J(u,v,w)| dudvdw

where J(u,v) is now the Jacobian matrix of dimension (3×3).

Cylindrical coordinates

Cylindrical coordinates correspond to the mapping (require r>0, 0θ2π)

{x=rcosθy=rsinθz=z

and, in this case, the Jacobian determinant is

|J(r,θ,z)|=|(cosθsinθ0rsinθrcosθ0001)|=|r(cos2θ+sin2θ)|=r

and so the change of variables in the integral gives

Sf(x,y,z) dxdydz=Tr F(r,θ,z) drdθdz.

where F(r,θ,z)=f(rcosθ,rsinθ,z). Note that cylindrical coordinates are closely related to polar coordinates in the sense that we don't touch the z coordinate and use polar coordinates for x and y.

Spherical coordinates

Spherical coordinates correspond to how we use latitude, longitude and altitude to specify a position on earth. It is the coordinate mapping (require ρ>0, 0θ2π, 0φ<π)

{x=ρcosθsinφy=ρsinθsinφz=ρcosφ.

In this case the Jacobian determinant is

|J(ρ,θ,φ)|=|(cosθsinφsinθsinφcosφρsinθsinφρcosθsinφ0ρcosθcosφρsinθcosφρsinφ)|=|ρ2sinφ|=ρ2sinφ.

Consequently the change of variables in the integral gives that

Sf(x,y,z) dxdydz=TF(ρ,θ,φ)ρ2sinφ dρdθdφ.

where F(ρ,θ,φ)=f(ρcosθsinφ,ρsinθsinφ,ρcosφ).