Iterated integrals

Rectangular domains

Suppose we are given a function f:2, written in terms of components by f(x,y) for each (x,y)2. Now let the second coordinate remain some arbitrary fixed value y=y0. This determines a function f(x,y0) of one variable, x, for each possible chosen y0.

We can integrate f(x,y0) in x just as any other function of x:

F(y0)=abf(x,y0)dx.

The resulting quantity depends on the chosen y0, so we call it a function of y0, and it also depends on the chosen interval [a,b].

Now we can let y vary again, and integrate the function F:

G=cdF(y)dy.

It is reasonable to notate the composite process with two integration symbols:

G=cdabf(x,y)dxdy.

There is no reason we couldn’t integrate x first, and this raises an obvious question that is answered by Fubini’s Theorem:

Fubini’s Theorem

Provided f is continuous on [a,b]×[c,d], the order of integration doesn’t affect the result:

cdabf(x,y)dxdy=abcdf(x,y)dydx.

Example

Double integral calculation

Problem: Compute 1203x2y+xeydxdy.

Solution: Compute the inner integral first, treating y as a constant:

1203x2y+xeydxdy=12(x33y+x22ey)|03dy=129y+92eydy=9y22+92ey|12=272+92(e2e).
Exercise 08B-01

Reversing integration order

Check that Fubini’s Theorem holds: evaluate 0312x2y+xeydydx.

Non-rectangular domains

Notice that the first integral F(y0)=abf(x,y0)dx places constants a and b as limits of integration, but y0 is also considered a constant with regard to integration by x. So, we can allow the limits to depend upon y0 in a non-trivial fashion: we can let them be functions of the chosen y0 and write: a(y0), b(y0).

Now let us incorporate these functions in the double integral notation. Instead of using the symbol y0, we can write y, remembering that in the first integral y is treated as a constant, on a par with a and b:

cda(y)b(y)f(x,y)dxdy.

Example

Iterated integral, parabolic boundary

Problem: Let a(y)=y2 and b(y)=4, [c,d]=[0,2], and f(x,y)=xy. Compute:

02y24xydxdy.

Solution: We have:

02y24xydxdy=02x22y|y24dy=028yy52dy=4y2y612|02=16163=323.
Exercise 08B-02

Iterated integral practice

Evaluate the iterated integrals:

  • (a) 0π0sin(x)(1+cos(x))dydx
  • (b) 023y26y2yy23ydxdy
  • (c) 0π/433cos(θ)rdrdθ
  • (d) Extending to 3D: 010yx112xyzdzdxdy

Volume under a surface

Consider the iterated integral 02y24xydxdy, and the picture:

The inner integral produces a function F(y)=y24xydx. Given a value of y, this function returns the integral over the line segment given by (x,y) with x[y2,4] and y set to the given value.

Imagine we set z=f(x,y), in this case z=xy. Then the inner integral provides the area under the curve over this line segment. Computing the outer integral then gives the volume of the region between the bounds y[0,2], x[y2,4], and z=xy. It does so by computing the area of the vertical slices as a function of y, and then integrating this area as y varies over its own domain y[0,2].

Example

Iterated integral and volume

Consider the function f(x,y)=2x2y, and let z=f(x,y) describe a plane. Problem: Find the volume of the region under z=f(x,y) in the first octant (x,y,z>0).

Solution: The region is bounded in the xy-plane by the axes and the line y=(2x)/2, since z=0 there. So, compute the integral:

020(2x)/2(2x2y)dydx=02(2x)yy2|0(2x)/2dx=02(2x)24dx=(2x)312|02=23.

The meaning of the two integration steps can be explained by writing the inner integral as the area of a cross section:

A(x)=(2x)24.

The outer integral then sums these areas multiplied by infinitesimal thicknesses dx: 02A(x)dx.

Exercise 08B-03

Volume of a solid

Find the volume of the region under f(x,y)=x2y for x[1,3] and y[x,2x+1].

Order of integration

When the inner bounds of integration are functions, in order to change the order of integration we must consider the region over which the integral is taken, and define new functions for the new inner bounds.

Example

Bounds for a triangular region

Problem: Write two different integration bounds for the region in the figure:

Solution: On the left, we can use 04x/22dydx. On the right, use 0202ydxdy.

Example

Changed order of integration, new boundary functions

Problem: Find new bounds to change the order of integration in the following double integral:

3309x2f(x,y)dydx.

Solution: The region can be interpreted as the portion under the top of a parabola y=9x2, facing down, maximum at (0,3) in the xy-plane. To integrate x first we take the range x[9y,+9y] and then y[0,3]. Thus:

099y+9yf(x,y)dxdy.
Exercise 08B-04

Change order of integration

Change the order of integration in the following double integral:

19y3xeydxdy.

(Hint: first sketch the region in question.)

Integration over measures of area and volume

Another perspective on integration extends the concept of the “unit of length” dx to units of another measure. In calculus, one considers the “unit of area” such as the infinitesimal square dxdy or the “unit of volume” such as the infinitesimal cube dxdydz.

From this point of view, the double integral cdabf(x,y)dxdy is the integral of the function f(x,y) over the rectangular box [a,b]×[c,d], summing the infinitesimal quantities of area times height, f(x,y)dxdy. This sum can be written as the limit of a Riemann sum:

f(x,y)dxdy=limn,mi=1nj=1mf(pij)ΔxiΔyj,

where is the box [a,b]×[c,d], and pij is a point that lives somewhere in the square [xi,xi+1]×[yj,yj+1] inside a grid over .

In line with this perspective on integration, sometimes the unit of area dxdy is written suggestively as dA with A for “area”, and similarly dxdydz can be written dV with V for “volume”.

Example

Integration over measure of area

Problem: Compute the integral x2ydA where is the region in the figure:

Solution: We rewrite the integral as an iterated integral and then compute. The region can be written as x[1,3] and y[1/x,x]. So we have:

x2ydA=131/xxx2ydydx=1312x2y2|1/xxdx=1312x312dx=18x412x|13=9.

Area of a region

By integrating the function f(x,y)=1 over a region, we obtain the area of the region:

A()=dA=dxdy.

Example

Area under curve as double integral

Problem: Find the area under the curve y=x2 for x[0,1] using a double integral.

Solution: Compute:

dydx=010x2dydx=01y|0x2dx=01x2dx=x33|01=13.

Note that this agrees with the usual method: 01x2dx=13.

Double integration in polar coordinates

Iterated integrals are defined in other coordinate systems in exactly the same manner. However, they do not give the expected geometric quantity unless extra factors are added to create an infinitesimal unit of area. For polar coordinates, the unit of area is dA=rdrdθ. For spherical coordinates, the unit of volume is dV=r2sin(φ)drdθdφ.

Example

Double integral in polar

Problem: Compute (3x+4y2)dA for the region with y0 that lies between the circles of radii 1 and 2.

Solution: We convert the integral into polar coordinates using dA=rdrdθ. Obtain:

(3x+4y2)dA=0π12(3rcos(θ)+4(rsin(θ))2)rdrdθ=0π(7cos(θ)+15sin2(θ))dθ=152π.

Area measure requires correction factors

What happens if we neglect the factor ‘r’ in dA=rdrdθ and simply compute cdabf(r,θ)drdθ? We can still perform this iterated integral. But the resulting quantity corresponds to the integral of the function f(r,θ) over the box (r,θ)[a,b]×[c,d], as if r and θ were Cartesian coordinates.

Exercise 08B-05

Deriving polar area formula

Use the formula rdrdθ for infinitesimal area in polar double integrals to derive the formula 12r(θ)2dθ for the area enclosed under the loop of a polar graph r=r(θ).

Applications of multiple integrals

Density and total quantity

When the function of several variables is a density ρ(x,y) or ρ(x,y,z), then the integral gives the total quantity:

Total=ρ(x,y)dA,Total=𝒱ρ(x,y,z)dV.

If ρ measures the ordinary density, then the integral gives total mass. If ρ measures a charge density, then the integral gives total charge. If ρ measures the probability density, then the integral gives total probability.

Average value

The average value of a distributed quantity is the total amount of that quantity divided by the total measure of the region over which it is spread.

When f(x,y) is defined on a region 2, then the average value of f over that region is given by:

f=1AfdA,

where A=dA. Similarly, if g(x,y,z) is defined on a region 𝒱3, then the average value of g over that region is given by:

g=1V𝒱gdV,

where V=𝒱dV.

Center of mass

The center of mass of a planar region or a solid body is the average position of an element of material in the region or body. If the density of the body varies, it is the average position weighted by the density.

Position in a planar region is given by the vector (x,y). Let A be the area of a planar region . Since integration is linear and respects vector components, we can compute the average position componentwise:

𝐂𝐨𝐌=1A(x,y)dxdy=(1Axdxdy,1Aydxdy)

(and analogously for the 𝐂𝐨𝐌 of a solid body, using three components). If there is a varying density, then we need the average weighted by density:

𝐂𝐨𝐌=1Mρ(x,y)(x,y)dxdy=(1Mxρ(x,y)dxdy,1Myρ(x,y)dxdy),

where M=ρ(x,y)dxdy is now the mass, which will not be proportional to area (or volume) if the density is not uniform.

Moments

Given a quantity f(x,y,z) that depends on points in space, the higher moments of this quantity are given by the integral of the powers of the quantity over the region. These moments are often computed for the case where f returns one of the coordinates, or a radius. For example, when f=x then the first moment is the x-coordinate of the center of mass.

An important moment in physics is the moment of inertia, which is the second moment of the distance to the axis of rotation:

I=𝒱d(x,y,z)2ρ(x,y,z)dxdydz

where d(x,y,z) gives the distance from (x,y,z) to the line that forms the axis of rotation.

Problems due 14 Oct 2023, 8:00pm

Problem 08-01

Volumes of solids

For each of the following regions, write and compute a double integral to find its volume.

  • (a) Region bounded by y=0, y=x, z=0, z=x, x=0, x=5.
  • (b) Region bounded by x2+y2+z2=r2. (You will need to add two double integrals.)
  • (c) Region bounded by x=0, x=2, y=0, y=+, z=11+y2.
  • (d) Region under z=4(x2+2y2) and above z=0. (Hint: use a substitution x=2sin(θ) and the Wallis Formula: 0π/2cos4(θ)dθ=3π/16.)
Problem 08-02

Order of integration

For each of the following, set up two iterated integrals, one for each order of integration. One of them is easier to evaluate. Explain why it is, then evaluate it.

  • (a) ydA where is the region bounded by y=x2 and x=y2.
  • (b) y2exydA where is the region bounded by y=x, y=4, x=0.
  • (c) sin2(x)dA where is the region bounded by y=cos(x), x[0,π/2], y=0, x=0.
  • (d) 6x2dA where is the region bounded by y=x3, y=2x+4, x=0.
Problem 08-03

Polar double integrals

Integrate f over using polar coordinates:

  • (a) f(x,y)=x2+y2 where is the region with x2+y22.
  • (b) f(x,y)=y(x2+y2)3 where is the region with y0 and x2+y21.
  • (c) f(x,y)=y where is the region with x2+y21 and (x1)2+y21.

Sketch the region, change the integral to polar coordinates, and evaluate:

  • (d) 2204x2(x2+y2)dydx.
  • (e) 01/23x1x2xdydx.
Problem 08-04

Center of mass, moment of inertia

Consider the region of the xy-plane that is bounded above by y=1x2 and bounded below by the x-axis. Suppose the mass density is ρ(x,y)=y. Find:

  • (a) the center of mass of this region,
  • (b) the moment of inertia of this region, supposing it is rotated about the y-axis.
Problem 08-05

Additional writing for solo-study

Write and submit solutions to Exercises 08B-01, -03, -04, -05.