Unit 4, lesson 27

Applications of Double Integrals

How double integrals give the area, mass, balance point and turning resistance of a thin plate, and the probabilities, averages and covariance of a pair of random quantities.

  • Theory part 53
  • Practice part 54
  • Double Integrals

Balance a cardboard cutout on a fingertip and there is exactly one spot where it stays level. If the cardboard is thicker on one side, that spot moves. Finding it means adding up tiny pieces of mass, each weighted by where it sits, and a double integral does exactly that. The same sums, read with probability instead of mass, give averages and correlations of two random quantities.

Key terms

Area

Definition Let DD be a bounded region in the plane whose boundary has zero area, for example a boundary made of finitely many smooth curves. Its area is

A(D)=∬D1 dA.A(D) = \iint_D 1 \, dA.

In plain words Integrating the constant height 11 gives a solid whose volume has the same number as the area of its base.

Example Let DD be the region between y=x2y = x^2 and y=x+2y = x + 2. The curves meet where x2=x+2x^2 = x + 2, at x=−1x = -1 and x=2x = 2, and the line is on top. So

A(D)=∫−12∫x2x+21 dy dx=∫−12(x+2−x2) dx=92.\begin{aligned} A(D) &= \int_{-1}^{2} \int_{x^2}^{x + 2} 1 \, dy \, dx \\[0.4em] &= \int_{-1}^{2} (x + 2 - x^2) \, dx = \frac{9}{2}. \end{aligned}

Density and mass

Definition A lamina is a thin plate occupying a region DD as above, with area density σ(x,y)≥0\sigma(x, y) \ge 0, measured in mass per unit area. Assume σ\sigma is continuous on the closed bounded region DD, or more generally bounded and continuous except on a set of zero area. A small patch of area dAdA around (x,y)(x, y) then has mass dM=σ(x,y) dAdM = \sigma(x, y) \, dA, and the total mass is

m=∬Dσ(x,y) dA.m = \iint_D \sigma(x, y) \, dA.

In plain words Cut the plate into tiny patches, multiply each patch’s area by how heavy the material is there, and add.

Example A disk of radius 22 meters has density σ=x2+y2\sigma = \sqrt{x^2 + y^2} kilograms per square meter, heavier toward the rim. In polar coordinates

m=∫02π∫02r⋅r dr dθ=16π3 kilograms,\begin{aligned} m &= \int_0^{2\pi} \int_0^2 r \cdot r \, dr \, d\theta \\[0.4em] &= \frac{16\pi}{3} \text{ kilograms,} \end{aligned}

about 16.816.8 kilograms.

Moments

Definition The moments of the lamina about the coordinate axes are

Mx=∬Dy σ dA,My=∬Dx σ dA.\begin{aligned} M_x &= \iint_D y \, \sigma \, dA, \\[0.4em] M_y &= \iint_D x \, \sigma \, dA. \end{aligned}

The moment about the xx axis weights each patch by its signed distance yy from that axis, and the moment about the yy axis uses xx.

In plain words A moment measures how strongly the mass would tip the plate around an axis. Mass far from the axis counts more, and mass on opposite sides cancels.

Example Take the triangle x≥0x \ge 0, y≥0y \ge 0, x+y≤2x + y \le 2 with density σ=x\sigma = x. For fixed xx the variable yy runs from 00 to 2−x2 - x, so

My=∫02∫02−xx2 dy dx=43,Mx=∫02∫02−xxy dy dx=23.\begin{aligned} M_y &= \int_0^2 \int_0^{2 - x} x^2 \, dy \, dx = \frac{4}{3}, \\[0.4em] M_x &= \int_0^2 \int_0^{2 - x} xy \, dy \, dx = \frac{2}{3}. \end{aligned}

Center of mass

Definition If the lamina has mass m>0m > 0, its center of mass is the point (xˉ,yˉ)(\bar{x}, \bar{y}) with

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

When σ\sigma is constant this point depends only on the shape and is called the centroid of DD.

In plain words The center of mass is the density weighted average position. A plate supported at that single point balances.

Example For the triangle with σ=x\sigma = x the mass is

m=∫02∫02−xx dy dx=∫02x(2−x) dx=43.\begin{aligned} m &= \int_0^2 \int_0^{2 - x} x \, dy \, dx \\[0.4em] &= \int_0^2 x(2 - x) \, dx = \frac{4}{3}. \end{aligned}

So xˉ=(4/3)/(4/3)=1\bar{x} = (4/3)/(4/3) = 1 and yˉ=(2/3)/(4/3)=1/2\bar{y} = (2/3)/(4/3) = 1/2. The uniform triangle has centroid (2/3,2/3)(2/3, 2/3), and the extra density toward large xx pulls the balance point right.

Moment of inertia

Definition The moments of inertia, or second moments, of the lamina about the xx axis, the yy axis and the origin are

Ix=∬Dy2σ dA,Iy=∬Dx2σ dA,I0=∬D(x2+y2) σ dA=Ix+Iy.\begin{aligned} I_x &= \iint_D y^2 \sigma \, dA, \\[0.4em] I_y &= \iint_D x^2 \sigma \, dA, \\[0.4em] I_0 &= \iint_D (x^2 + y^2) \, \sigma \, dA \\[0.4em] &= I_x + I_y. \end{aligned}

The last one is the moment about the axis through the origin perpendicular to the plate.

In plain words Moment of inertia measures how hard the plate is to start spinning about an axis. Distance enters squared, so mass near the rim matters much more than mass near the axis.

Example For the triangle with σ=x\sigma = x,

Iy=∫02∫02−xx3 dy dx=85,Ix=∫02∫02−xxy2 dy dx=815,\begin{aligned} I_y &= \int_0^2 \int_0^{2 - x} x^3 \, dy \, dx = \frac{8}{5}, \\[0.4em] I_x &= \int_0^2 \int_0^{2 - x} x y^2 \, dy \, dx = \frac{8}{15}, \end{aligned}

and I0=8/5+8/15=32/15I_0 = 8/5 + 8/15 = 32/15.

Radius of gyration

Definition For a lamina of mass m>0m > 0 with moment of inertia II about a given axis, the radius of gyration about that axis is the number R≥0R \ge 0 with mR2=ImR^2 = I, that is

R=Im.R = \sqrt{\frac{I}{m}}.

In plain words If you squeezed all the mass into a single point at distance RR from the axis, it would be exactly as hard to spin as the real plate.

Example For the triangle, the radius of gyration about the yy axis is

8/54/3=65≈1.095.\sqrt{\frac{8/5}{4/3}} = \sqrt{\frac{6}{5}} \approx 1.095.

This is larger than xˉ=1\bar{x} = 1. That is no accident, since the mass weighted average of x2x^2 is never smaller than the square of the mass weighted average of xx.

Joint probability density

Definition A joint probability density function of a pair of random variables (X,Y)(X, Y) is a function ff on R2\mathbb{R}^2 with f≥0f \ge 0, integrable over the whole plane as an improper integral, and

∬R2f(x,y) dA=1,\iint_{\mathbb{R}^2} f(x, y) \, dA = 1,

such that for every region DD whose boundary has zero area

P((X,Y)∈D)=∬Df(x,y) dA.P\big((X, Y) \in D\big) = \iint_D f(x, y) \, dA.

In plain words A joint density is a probability mass spread over the plane. The chance of landing in a region is the amount of that mass sitting over the region.

Example Let f(x,y)=x+yf(x, y) = x + y on the unit square 0≤x≤10 \le x \le 1, 0≤y≤10 \le y \le 1, and f=0f = 0 elsewhere. It is nonnegative and its total integral is 1/2+1/2=11/2 + 1/2 = 1. The chance that X+Y≤1X + Y \le 1 is

∫01∫01−x(x+y) dy dx=∫011−x22 dx=13.\begin{aligned} &\int_0^1 \int_0^{1 - x} (x + y) \, dy \, dx \\[0.4em] &\quad = \int_0^1 \frac{1 - x^2}{2} \, dx = \frac{1}{3}. \end{aligned}

Marginal densities

Definition If (X,Y)(X, Y) has joint density ff, then XX alone has the marginal density

fX(x)=∫−∞∞f(x,y) dy,f_X(x) = \int_{-\infty}^{\infty} f(x, y) \, dy,

and similarly fY(y)f_Y(y) is obtained by integrating out xx. The variables XX and YY are independent when

P(X∈A, Y∈B)=P(X∈A) P(Y∈B)\begin{aligned} &P(X \in A, \ Y \in B) \\[0.4em] &\quad = P(X \in A) \, P(Y \in B) \end{aligned}

for all intervals AA and BB. For a joint density this holds exactly when f(x,y)=fX(x)fY(y)f(x, y) = f_X(x) f_Y(y) for all (x,y)(x, y) outside a set too thin to change any double integral, such as finitely many curves.

In plain words To forget about YY, pile all the probability above each xx onto that xx.

Example For f(x,y)=x+yf(x, y) = x + y on the unit square, and for 0≤x≤10 \le x \le 1,

fX(x)=∫01(x+y) dy=x+12,f_X(x) = \int_0^1 (x + y) \, dy = x + \frac{1}{2},

with fX(x)=0f_X(x) = 0 outside [0,1][0, 1]. By symmetry fY(y)=y+1/2f_Y(y) = y + 1/2 on [0,1][0, 1]. Since (x+1/2)(y+1/2)(x + 1/2)(y + 1/2) differs from x+yx + y everywhere except on the lines x=1/2x = 1/2 and y=1/2y = 1/2, the variables are not independent.

Expectation and covariance

Definition For a continuous function gg, the expected value of g(X,Y)g(X, Y) is

E[g(X,Y)]=∬R2g f dA,E[g(X, Y)] = \iint_{\mathbb{R}^2} g \, f \, dA,

with gg and ff evaluated at (x,y)(x, y), provided the integral of ∣g∣f\lvert g \rvert f is finite, otherwise the expectation does not exist. In particular μX=E[X]\mu_X = E[X] and μY=E[Y]\mu_Y = E[Y]. When E[X2]E[X^2] and E[Y2]E[Y^2] are finite, the covariance is

Cov⁡(X,Y)=E[(X−μX)(Y−μY)]=E[XY]−μXμY.\begin{aligned} &\operatorname{Cov}(X, Y) \\[0.4em] &\quad = E\big[(X - \mu_X)(Y - \mu_Y)\big] \\[0.4em] &\quad = E[XY] - \mu_X \mu_Y. \end{aligned}

These conditions make E[X]E[X], E[Y]E[Y] and E[XY]E[XY] finite, by the Cauchy-Schwarz inequality. Independent variables with finite E[X2]E[X^2] and E[Y2]E[Y^2] have covariance 00, but covariance 00 does not imply independence.

In plain words An expectation is a weighted average with the density as the weight. Covariance is positive when large values of XX tend to come with large values of YY, and negative when they tend to come with small ones.

Example For f(x,y)=x+yf(x, y) = x + y on the unit square,

E[X]=∫01x(x+12)dx=712,E[XY]=∫01∫01xy(x+y) dy dx=13,\begin{aligned} E[X] &= \int_0^1 x\left(x + \frac{1}{2}\right) dx \\[0.4em] &= \frac{7}{12}, \\[0.4em] E[XY] &= \int_0^1 \int_0^1 xy(x + y) \, dy \, dx \\[0.4em] &= \frac{1}{3}, \end{aligned}

and E[Y]=7/12E[Y] = 7/12 by symmetry. So

Cov⁡(X,Y)=13−49144=−1144.\operatorname{Cov}(X, Y) = \frac{1}{3} - \frac{49}{144} = -\frac{1}{144}.

The covariance is slightly negative, so the two variables lean a little in opposite directions.

Check yourself

  1. Find the center of mass of a half disk x2+y2≤a2x^2 + y^2 \le a^2, y≥0y \ge 0, with constant density σ\sigma.
Show the answer

By symmetry xˉ=0\bar{x} = 0. The mass is m=σπa2/2m = \sigma \pi a^2 / 2, and in polar coordinates

Mx=σ∫0π∫0arsin⁡θ⋅r dr dθ=2σa33.\begin{aligned} M_x &= \sigma \int_0^\pi \int_0^a r\sin\theta \cdot r \, dr \, d\theta \\[0.4em] &= \frac{2\sigma a^3}{3}. \end{aligned}

So yˉ=Mx/m=4a/(3π)\bar{y} = M_x / m = 4a/(3\pi), about 0.42a0.42a.

  1. A uniform rectangular plate 0≤x≤30 \le x \le 3, 0≤y≤20 \le y \le 2 has density 11. Find its moment of inertia about the xx axis and its radius of gyration about that axis.
Show the answer

The mass is m=6m = 6 and

Ix=∫03∫02y2 dy dx=3⋅83=8.I_x = \int_0^3 \int_0^2 y^2 \, dy \, dx = 3 \cdot \frac{8}{3} = 8.

The radius of gyration is 8/6=2/3≈1.155\sqrt{8/6} = 2/\sqrt{3} \approx 1.155.

  1. Let f(x,y)=2f(x, y) = 2 on the triangle 0≤y≤x≤10 \le y \le x \le 1 and 00 elsewhere. Check that it is a joint density, find the marginal density of XX, and find E[Y]E[Y].
Show the answer

The function is nonnegative and the triangle has area 1/21/2, so the total integral is 2⋅1/2=12 \cdot 1/2 = 1. For 0≤x≤10 \le x \le 1 the marginal is fX(x)=∫0x2 dy=2xf_X(x) = \int_0^x 2 \, dy = 2x, and fX=0f_X = 0 elsewhere. Then

E[Y]=∫01∫0x2y dy dx=∫01x2 dx=13.\begin{aligned} E[Y] &= \int_0^1 \int_0^x 2y \, dy \, dx \\[0.4em] &= \int_0^1 x^2 \, dx = \frac{1}{3}. \end{aligned}

How this lesson connects

It also uses Double integrals and polar coordinates and Weighted averages and basic probability language.