Type a command or search the notes. Tab cycles completions. Up and down recall history when blank. Escape dismisses, then leaves the prompt.
MATH
[1251]

Mass, centroids and probability

Interpret double integrals as mass, moments, centres of mass, population and expected value.

This page integrates a density over a region to find total mass, centres of mass and expected values. The area formula uses unit density, so every point has the same weight. A varying density weights some parts of the region more than others.

The same weighted integrals describe a thin plate, a population spread over a region and a continuous probability model. They are evaluated by slicing, as in Fubini's theorem, often after a change of variables.

Density on a lamina

A lamina is a flat sheet of material with negligible thickness. If ρ(x,y)\rho(x,y) is its mass density, then a small area ΔA\Delta A near (x,y)(x,y) has approximate mass ρ(x,y)ΔA\rho(x,y)\Delta A.

[DEFINITION]

Mass density of a lamina

A mass density ρ(x,y)\rho(x,y) assigns mass per unit area to a lamina occupying a region Ω\Omega. For a physical lamina, ρ≥0\rho\ge0 and ρ\rho is integrable. The total mass is

M=∬Ωρ(x,y) dA.M=\iint_\Omega\rho(x,y)\,dA.

When ρ=1\rho=1, the mass is the area of Ω\Omega.

[THEOREM]

Centre of mass and moments

For a lamina with mass density ρ\rho and total mass M>0M>0, the centre of mass is

xˉ=1M∬Ωxρ(x,y) dA,yˉ=1M∬Ωyρ(x,y) dA.{ \bar x=\frac1M\iint_\Omega x\rho(x,y)\,dA, \qquad \bar y=\frac1M\iint_\Omega y\rho(x,y)\,dA }.

The density-weighted first moments are

My=∬Ωxρ(x,y) dA,Mx=∬Ωyρ(x,y) dA.M_y=\iint_\Omega x\rho(x,y)\,dA, \qquad M_x=\iint_\Omega y\rho(x,y)\,dA.

The factor xx weights mass by horizontal position and the factor yy weights it by vertical position. For uniform density, the centre of mass is the centroid, the geometric centre of the region.

Units give a check: if xx and yy are measured in units of length and ρ\rho in mass per unit area, then MM has units of mass, each first moment has units of mass,×\times,length and (xˉ,yˉ)(\bar x,\bar y) has units of length.

[EXAMPLE]

A symmetric region with nonconstant density

Let

Ω={(x,y):∣x∣≤y≤1},ρ(x,y)=x2+y2.\Omega=\{(x,y):|x|\le y\le1\}, \qquad \rho(x,y)=x^2+y^2.

Horizontal slices give

0≤y≤1,−y≤x≤y.0\le y\le1,\qquad-y\le x\le y.

The mass is

M=∫01∫−yy(x2+y2) dx dy=∫01[x33+xy2]−yydy=∫018y33 dy=23.\begin{aligned} M &=\int_0^1\int_{-y}^{y}(x^2+y^2)\,dx\,dy\\ &=\int_0^1\left[\frac{x^3}{3}+xy^2\right]_{-y}^{y}dy\\ &=\int_0^1\frac{8y^3}{3}\,dy =\frac23. \end{aligned}

The region and density are symmetric under x↦−xx\mapsto-x, so

xˉ=0.\bar x=0.

The vertical moment is

∬Ωyρ dA=∫01∫−yyy(x2+y2) dx dy=∫018y43 dy=815.\begin{aligned} \iint_\Omega y\rho\,dA &=\int_0^1\int_{-y}^{y}y(x^2+y^2)\,dx\,dy\\ &=\int_0^1\frac{8y^4}{3}\,dy =\frac{8}{15}. \end{aligned}

Thus

yˉ=8/152/3=45,\bar y=\frac{8/15}{2/3}=\frac45,

and the centre of mass is

(0,45).{\left(0,\frac45\right)}.

For uniform density, this triangle's centroid has yy-coordinate 2/32/3. Here the density increases with yy, so the centre of mass lies higher.

A semicircular lamina in three densities

Let Ω\Omega be the upper half of the unit disk:

0≤r≤1,0≤θ≤π.0\le r\le1,\qquad0\le\theta\le\pi.

The example compares three densities on this region. Each is symmetric under x↦−xx\mapsto-x, so xˉ=0\bar x=0 and only yˉ\bar y needs computing. Coordinates are treated as pure numbers; in a physical model, the coefficients multiplying yy or rr would carry the units needed to make ρ\rho a mass per unit area.

[EXAMPLE]

Uniform, vertical and radial density

For uniform density ρ=1\rho=1, the mass is the area:

M=π2.M=\frac{\pi}{2}.

The vertical moment is

∬Ωy dA=∫0π∫01(rsin⁡θ)r dr dθ=(∫0πsin⁡θ dθ)(∫01r2 dr)=23.\begin{aligned} \iint_\Omega y\,dA &=\int_0^\pi\int_0^1 (r\sin\theta)r\,dr\,d\theta\\ &=\left(\int_0^\pi\sin\theta\,d\theta\right) \left(\int_0^1r^2\,dr\right) =\frac23. \end{aligned}

Therefore

yˉ=43π.\bar y=\frac{4}{3\pi}.

For ρ=y\rho=y, the mass is

M=∬Ωy dA=∫0π∫01r2sin⁡θ dr dθ=23.\begin{aligned} M &=\iint_\Omega y\,dA\\ &=\int_0^\pi\int_0^1r^2\sin\theta\,dr\,d\theta =\frac23. \end{aligned}

The vertical moment becomes

∬Ωyρ dA=∬Ωy2 dA=∫0π∫01r3sin⁡2θ dr dθ=π8.\begin{aligned} \iint_\Omega y\rho\,dA &=\iint_\Omega y^2\,dA\\ &=\int_0^\pi\int_0^1 r^3\sin^2\theta\,dr\,d\theta =\frac{\pi}{8}. \end{aligned}

Hence

yˉ=π/82/3=3π16.\bar y=\frac{\pi/8}{2/3}=\frac{3\pi}{16}.

For radial density

ρ=x2+y2=r,\rho=\sqrt{x^2+y^2}=r,

the mass is

M=∫0π∫01r⋅r dr dθ=π3,\begin{aligned} M &=\int_0^\pi\int_0^1r\cdot r\,dr\,d\theta =\frac{\pi}{3}, \end{aligned}

and the vertical moment is

∬Ωyρ dA=∫0π∫01(rsin⁡θ) r r dr dθ=12.\begin{aligned} \iint_\Omega y\rho\,dA &=\int_0^\pi\int_0^1 (r\sin\theta)\,r\,r\,dr\,d\theta =\frac12. \end{aligned}

Thus

yˉ=1/2π/3=32π.\bar y=\frac{1/2}{\pi/3}=\frac{3}{2\pi}.

The three heights are approximately 0.4240.424, 0.5890.589 and 0.4770.477. Radial density moves weight away from the origin and density proportional to yy moves it more strongly towards the top.

Population and probability

[PROPOSITION]

Normalising a density

If ρ≥0\rho\ge0 on Ω\Omega and

0<M=∬Ωρ(x,y) dA<∞,0<M=\iint_\Omega\rho(x,y)\,dA<\infty,

then

p(x,y)=ρ(x,y)Mp(x,y)=\frac{\rho(x,y)}{M}

is a two-dimensional probability density on Ω\Omega, because

∬Ωp(x,y) dA=1.\iint_\Omega p(x,y)\,dA=1.

If ρ\rho is a population density, ∬Rρ dA\iint_R\rho\,dA is the population in a subregion R⊆ΩR\subseteq\Omega. The normalised density pp has units of inverse area, so p dAp\,dA is dimensionless.

After normalisation, the centre-of-mass coordinates become expected values:

E[X]=∬Ωxp(x,y) dA,E[Y]=∬Ωyp(x,y) dA.\mathbb E[X]=\iint_\Omega xp(x,y)\,dA, \qquad \mathbb E[Y]=\iint_\Omega yp(x,y)\,dA.

For an event represented by a subregion E⊆ΩE\subseteq\Omega, the probability is

P((X,Y)∈E)=∬Ep(x,y) dA.\mathbb P((X,Y)\in E)=\iint_E p(x,y)\,dA.

This is the population formula with the normalisation making the whole region have probability 11. Mass, a population centre and an expected value are all the same weighted-average construction.

On this page