Calculus3Applications of Integration5 of 6
Applications of Integration · 5

Center of Mass

1

What a center of mass is

If you try to balance an object on the tip of your finger, there's one balance point where it stays level without tipping. We call that point the center of mass. It's an average of all the positions across the object. An ordinary average treats every point equally, but an object can have more mass in some parts than others. Where there's more mass, that position counts more toward the average.

We'll start with separate masses along a line, move to a continuous rod, and then find the center of mass of a region. Each time, finding the center of mass means finding the average position of the mass.

2

Masses on a line and a uniform rod

Where do masses on a line balance? Let's start with two equal masses of 1\wt{1}, one at 0\xs{0} and one at 4\xs{4}. Because the masses are equal, they balance right in the middle, at the ordinary average of their positions.

1\htmlClass{lc-green}{1}
1\htmlClass{lc-green}{1}
0\htmlClass{lc-pink}{0}
11
22
33
4\htmlClass{lc-pink}{4}
0+42\displaystyle \frac{\xs{0} + \xs{4}}{\wt{2}} =2\displaystyle = 2

Now suppose the mass at 4\xs{4} is 3\wt{3} instead. We can think of it as three masses of 1\wt{1}, all at 4\xs{4}, and average all four positions, counting 4\xs{4} three times.

1\htmlClass{lc-green}{1}
3\htmlClass{lc-green}{3}
0\htmlClass{lc-pink}{0}
11
22
33
4\htmlClass{lc-pink}{4}
0+4+4+44=1⋅0+3⋅41+3=3\displaystyle \begin{aligned}&\frac{\xs{0} + \xs{4} + \xs{4} + \xs{4}}{\wt{4}}\\[14pt] &= \frac{\wt{1}\cdot \xs{0} + \wt{3}\cdot \xs{4}}{\wt{1} + \wt{3}}\\[14pt] &= 3\end{aligned}

So instead of writing 4\xs{4} three times, we multiply the position by its mass. The denominator is the total mass, which we call M\wt{M}, and we write the average position as xˉ\xs{\bar{x}}, read "x bar".

xˉ\displaystyle \xs{\bar{x}} =(position)(mass)+(position)(mass)+⋯M\displaystyle = \frac{(\xs{\text{position}})(\wt{\text{mass}}) + (\xs{\text{position}})(\wt{\text{mass}}) + \cdots}{\wt{M}}
xˉ\displaystyle \xs{\bar{x}} =(position)(mass)+⋯M\displaystyle = \frac{(\xs{\text{position}})(\wt{\text{mass}}) + \cdots}{\wt{M}}

What if a position is negative? And what if the mass isn't in separate pieces, but spread along a solid rod?

Find the balance point for masses on a line and for a uniform rod
1\htmlClass{lc-green}{1}
1\htmlClass{lc-green}{1}
0\htmlClass{lc-pink}{0}
11
22
33
4\htmlClass{lc-pink}{4}
Text solution
A negative position keeps its signFor a mass of 1\wt{1} at −2\xs{-2} and a mass of 1\wt{1} at 4\xs{4}, they balance halfway between, at 11. Dropping the minus sign would give 2+42=3\frac{2 + 4}{2} = 3 instead.
xˉ\displaystyle \xs{\bar{x}} =1(−2)+1(4)2\displaystyle = \frac{\wt{1}(\xs{-2}) + \wt{1}(\xs{4})}{\wt{2}} =1\displaystyle = 1
A uniform rod balances at its middleUniform means every piece of the rod with the same length has the same mass. For a rod from 00 to 22, each piece at 1−d\xs{1 - d} has a matching piece at 1+d\xs{1 + d}, and each pair balances at 11.
(1−d)+(1+d)2\displaystyle \frac{\xs{(1 - d)} + \xs{(1 + d)}}{2} =1\displaystyle = 1
00
11
22
A uniform rod from x=0x = 0 to x=2x = 2 balances at its midpoint, xˉ=1\xs{\bar{x}} = 1.
3

A rod with changing density

A uniform rod from 00 to 22 balances at 11, right in the middle. But when a rod is heavier in some places than in others, where does it balance?

We slice the rod into thin pieces of width dxdx. Density is mass per unit length, so the piece at x\xs{x} has mass density⋅dx\wt{\text{density}\cdot dx}, and because it's so thin, we can treat it as a point mass at x\xs{x}. Adding up all the pieces from aa to bb with integrals gives the total mass and the top of the fraction for xˉ\xs{\bar{x}}.

mass of the piece at x\displaystyle \text{mass of the piece at } \xs{x} =density⋅dx\displaystyle = \wt{\text{density}\cdot dx}
M=∫abdensity dxxˉ=1M∫abx⋅density dx\displaystyle \begin{aligned}\wt{M} &= \int_a^b \wt{\text{density}\,dx}\\[8pt] \xs{\bar{x}} &= \frac{1}{\wt{M}}\int_a^b \xs{x}\cdot\wt{\text{density}\,dx}\end{aligned}

Because the density changes with xx, we can't pull it out of either integral.

Let's try it on a rod from x=0x = 0 to x=2x = 2 with density 1+x\wt{1 + x}. The density is 1\wt{1} at the left end and 3\wt{3} at the right, so we expect the rod to balance a little to the right of the middle, at some xˉ>1\xs{\bar{x}} > 1.

1\htmlClass{lc-green}{1}
density=1+x\htmlClass{lc-green}{\text{density} = 1 + x}
3\htmlClass{lc-green}{3}
00
11
22
Find the center of mass of a rod from x=0x = 0 to x=2x = 2 with density 1+x\wt{1 + x}
00
11
22
density=1+x\htmlClass{lc-green}{\text{density} = 1 + x}
xˉ=?\htmlClass{lc-pink}{\bar{x}} = \mathord{?}
Text solution
Total massEach piece has mass (1+x) dx\wt{(1 + x)\,dx}.
M\displaystyle \wt{M} =∫02(1+x) dx\displaystyle = \int_0^2 \wt{(1 + x)\,dx} =4\displaystyle = 4
Position times massMultiply each piece's mass by its position x\xs{x} and add up.
∫02x (1+x) dx\displaystyle \int_0^2 \xs{x}\,\wt{(1 + x)\,dx} =∫02(x+x2) dx\displaystyle = \int_0^2 (x + x^2)\,dx =143\displaystyle = \frac{14}{3}
Divide by the total mass76\frac76 is 1161\frac16, a little to the right of the middle, as we expected.
xˉ\displaystyle \xs{\bar{x}} =1M⋅143\displaystyle = \frac{1}{\wt{M}}\cdot\frac{14}{3} =14⋅143\displaystyle = \frac14\cdot\frac{14}{3} =76\displaystyle = \frac76
4

Center of mass in two dimensions

A point in the plane has an x-coordinate and a y-coordinate, and we average each one on its own. For a mass of 1\wt{1} at (0,0)(\xs{0}, \ys{0}) and a mass of 3\wt{3} at (4,2)(\xs{4}, \ys{2}), we average the x-coordinates just as we did on a line, and the y-coordinates the same way to find yˉ\ys{\bar{y}}, read "y bar".

00
xx
yy
11
22
33
4\htmlClass{lc-pink}{4}
11
2\htmlClass{lc-blue}{2}
1\htmlClass{lc-green}{1}
3\htmlClass{lc-green}{3}
(3,32)\left(3, \tfrac32\right)
xˉ=0+4+4+44=3yˉ=0+2+2+24=32\displaystyle \begin{aligned}\xs{\bar{x}} &= \frac{\xs{0} + \xs{4} + \xs{4} + \xs{4}}{\wt{4}} = 3\\[8pt] \ys{\bar{y}} &= \frac{\ys{0} + \ys{2} + \ys{2} + \ys{2}}{\wt{4}} = \frac32\end{aligned}

Now let's find the center of mass of a region, starting with its average x-coordinate xˉ\xs{\bar{x}}.

y\displaystyle y =x2, 0\displaystyle = x^2,\ 0 ≤x\displaystyle \le x ≤2:xˉ\displaystyle \le 2: \qquad \xs{\bar{x}} =  ?\displaystyle = \;?

Let's assume the region has the same density everywhere. If we double the density, every piece has twice the mass, and the total mass doubles too, so the factor of 22 cancels and xˉ\xs{\bar{x}} stays the same. That means we can use each piece's area in place of its mass.

00
xx
yy
22
y=x2y = x^2
x\htmlClass{lc-pink}{x}
f(x) dx\htmlClass{lc-green}{f(x)\,dx}

A thin vertical rectangle at x\xs{x} has area f(x) dx\wt{f(x)\,dx}, and every point on it has the same x-coordinate, x\xs{x}. So it acts like a mass of f(x) dx\wt{f(x)\,dx} at position x\xs{x}. We multiply each rectangle's x-coordinate by its area, add them up with an integral, and divide by the total area A\wt{A}.

A=∫abf(x) dxxˉ=1A∫abx f(x) dx\displaystyle \begin{aligned}\wt{A} &= \int_a^b \wt{f(x)\,dx}\\[8pt] \xs{\bar{x}} &= \frac{1}{\wt{A}}\int_a^b \xs{x}\,\wt{f(x)\,dx}\end{aligned}
Find xˉ\xs{\bar{x}} for the region under y=x2y = x^2 from x=0x = 0 to x=2x = 2
00
xx
yy
11
22
11
22
33
44
y=x2y = x^2
xˉ=?\htmlClass{lc-pink}{\bar{x}} = \mathord{?}
Text solution
Total area
A\displaystyle \wt{A} =∫02x2 dx\displaystyle = \int_0^2 \wt{x^2\,dx} =83\displaystyle = \frac83
Each x times its area
∫02x⋅x2 dx\displaystyle \int_0^2 \xs{x}\cdot\wt{x^2\,dx} =∫02x3 dx\displaystyle = \int_0^2 x^3\,dx =4\displaystyle = 4
Divide by the area32\frac32 is right of 11, the middle, because y=x2y = x^2 is increasing, so the rectangles on the right are taller and have more area.
xˉ\displaystyle \xs{\bar{x}} =1A⋅4\displaystyle = \frac{1}{\wt{A}}\cdot 4 =38⋅4\displaystyle = \frac38\cdot 4 =32\displaystyle = \frac32

We call the integral on top My\xs{M_y}, the moment about the y-axis. It's named for the y-axis because x\xs{x} is the distance from each thin rectangle to the y-axis.

My=∫abx f(x) dxxˉ=MyA\displaystyle \begin{aligned}\xs{M_y} &= \int_a^b \xs{x}\,\wt{f(x)\,dx}\\[8pt] \xs{\bar{x}} &= \frac{\xs{M_y}}{\wt{A}}\end{aligned}
5

Finding yˉ\bar{y}

We found xˉ=32\xs{\bar{x}} = \frac32 for the region under y=x2y = x^2 from x=0x = 0 to x=2x = 2. Now let's find yˉ\ys{\bar{y}}, the average y-coordinate.

y\displaystyle y =x2, 0\displaystyle = x^2,\ 0 ≤x\displaystyle \le x ≤2:yˉ\displaystyle \le 2: \qquad \ys{\bar{y}} =  ?\displaystyle = \;?

Every point in the thin rectangle at x\xs{x} has the same x-coordinate, but its y-coordinates go from y=0y = 0 at the bottom up to y=f(x)y = f(x) at the top. So there's no single y-coordinate for the rectangle.

We only care about the average y, though. The rectangle is like a uniform rod standing up from y=0y = 0 to y=f(x)y = f(x), so it balances at its midpoint, f(x)2\ys{\frac{f(x)}{2}}. That means we can treat its whole area f(x) dx\wt{f(x)\,dx} as if it were at that height, and multiply by f(x)2\ys{\frac{f(x)}{2}} instead of by x\xs{x}.

00
xx
yy
22
y=x2y = x^2
f(x)f(x)
x\htmlClass{lc-pink}{x}
f(x) dx\htmlClass{lc-green}{f(x)\,dx}
f(x)2\htmlClass{lc-blue}{\dfrac{f(x)}{2}}
The rectangle has area f(x) dx\wt{f(x)\,dx} and balances at height f(x)2\ys{\frac{f(x)}{2}}.
For x
f(x)2x⋅f(x) dx\displaystyle \begin{aligned}\hphantom{\frac{f(x)}{2}}\mathllap{\xs{x}}\cdot\wt{f(x)\,dx}\end{aligned}
For y
f(x)2⋅f(x) dx\displaystyle \begin{aligned}\ys{\frac{f(x)}{2}}\cdot\wt{f(x)\,dx}\end{aligned}

Dividing by the total area A\wt{A} gives the formula for yˉ\ys{\bar{y}}.

yˉ\displaystyle \ys{\bar{y}} =1A∫abf(x)2 f(x) dx\displaystyle = \frac{1}{\wt{A}}\int_a^b \ys{\frac{f(x)}{2}}\,\wt{f(x)\,dx} =12A∫ab[f(x)]2 dx\displaystyle = \frac{1}{2\wt{A}}\int_a^b \big[f(x)\big]^2\,dx
yˉ=1A∫abf(x)2 f(x) dx=12A∫ab[f(x)]2 dx\displaystyle \begin{aligned}\ys{\bar{y}} &= \frac{1}{\wt{A}}\int_a^b \ys{\frac{f(x)}{2}}\,\wt{f(x)\,dx}\\[8pt] &= \frac{1}{2\wt{A}}\int_a^b \big[f(x)\big]^2\,dx\end{aligned}
Find yˉ\ys{\bar{y}} for the region under y=x2y = x^2 from x=0x = 0 to x=2x = 2
00
xx
yy
11
22
11
22
33
44
y=x2y = x^2
xˉ=32\htmlClass{lc-pink}{\bar{x}} = \dfrac{3}{2}
yˉ=?\htmlClass{lc-blue}{\bar{y}} = \mathord{?}
Text solution
Middle height times areaEach rectangle's middle height is x22\ys{\frac{x^2}{2}}.
∫02x22⋅x2 dx\displaystyle \int_0^2 \ys{\frac{x^2}{2}}\cdot\wt{x^2\,dx} =12∫02x4 dx\displaystyle = \frac12\int_0^2 x^4\,dx =165\displaystyle = \frac{16}{5}
Divide by the areaThe area is still A=83\wt{A} = \frac83.
yˉ\displaystyle \ys{\bar{y}} =1A⋅165\displaystyle = \frac{1}{\wt{A}}\cdot\frac{16}{5} =38⋅165\displaystyle = \frac38\cdot\frac{16}{5} =65\displaystyle = \frac65

Together with xˉ=32\xs{\bar{x}} = \frac32, that gives the center of mass of the region.

(xˉ,yˉ)\displaystyle (\xs{\bar{x}}, \ys{\bar{y}}) =(32,65)\displaystyle = \Big(\frac32, \frac65\Big)
00
xx
yy
11
11
22
33
44
22
y=x2y = x^2
(32,65)\left(\tfrac32, \tfrac65\right)

The integral on top is Mx\ys{M_x}, the moment about the x-axis. We call it Mx\ys{M_x} because the height f(x)2\ys{\frac{f(x)}{2}} is the distance from the x-axis.

Mx=∫abf(x)2 f(x) dxyˉ=MxA\displaystyle \begin{aligned}\ys{M_x} &= \int_a^b \ys{\frac{f(x)}{2}}\,\wt{f(x)\,dx}\\[8pt] \ys{\bar{y}} &= \frac{\ys{M_x}}{\wt{A}}\end{aligned}

Why does the moment about the y-axis give the x-coordinate?

6

Regions between two curves

Now let's find the center of mass for a region between two curves, with y=f(x)y = f(x) on top and y=g(x)y = g(x) underneath.

A thin rectangle at x\xs{x} goes from y=g(x)y = g(x) up to y=f(x)y = f(x), so its height is f(x)−g(x)\wt{f(x) - g(x)}. Every point on it still has x-coordinate x\xs{x}, so finding xˉ\xs{\bar{x}} works just as it did before.

Finding yˉ\ys{\bar{y}} is where we have to be careful. The rectangle starts at y=g(x)y = g(x), not at the x-axis, so half its height, f(x)−g(x)2\hlf{\frac{f(x) - g(x)}{2}}, only tells us how far the middle is above the bottom of the rectangle. A y-coordinate is measured from y=0y = 0, so we start at the bottom curve g(x)\btm{g(x)} and add half the height.

xx
yy
y=f(x)y = f(x)
y=g(x)y = g(x)
g(x)\htmlClass{lc-violet}{g(x)}
x\htmlClass{lc-pink}{x}
f(x)−g(x)\htmlClass{lc-green}{f(x) - g(x)}
g(x)+f(x)−g(x)2=f(x)+g(x)2\displaystyle \begin{aligned}&\btm{g(x)} + \hlf{\frac{f(x) - g(x)}{2}}\\[6pt] &= \ys{\frac{f(x) + g(x)}{2}}\end{aligned}

The middle y-coordinate is just the average of the two y-values, f(x)+g(x)2\ys{\frac{f(x) + g(x)}{2}}.

For example, take a rectangle from y=1y = \btm{1} to y=5y = 5. Its height is 4\wt{4}, so half its height is 2\hlf{2}. But its middle is at y=3y = \ys{3}, which is 1+2\btm{1} + \hlf{2}, or the average 1+52\ys{\frac{1 + 5}{2}}. Half the height alone leaves out the 1\btm{1} unit between the x-axis and the bottom of the rectangle.

xx
yy
00
1\htmlClass{lc-violet}{1}
2\htmlClass{lc-orange}{2}
3\htmlClass{lc-blue}{3}
44
55
4\htmlClass{lc-green}{4}
The rectangle's middle is at y=3y = \ys{3}, not y=2y = \hlf{2}.
1+5−12\displaystyle \btm{1} + \hlf{\frac{5 - 1}{2}} =1+52\displaystyle = \ys{\frac{1 + 5}{2}} =3\displaystyle = 3

So to find yˉ\ys{\bar{y}}, we multiply the area of each rectangle by its middle y-coordinate, f(x)+g(x)2\ys{\frac{f(x) + g(x)}{2}}, and divide by A\wt{A}.

A=∫ab(f(x)−g(x)) dxxˉ=1A∫abx (f(x)−g(x)) dxyˉ=1A∫abf(x)+g(x)2 (f(x)−g(x)) dx\displaystyle \begin{aligned}\wt{A} &= \int_a^b \wt{\big(f(x) - g(x)\big)\,dx}\\[8pt] \xs{\bar{x}} &= \frac{1}{\wt{A}}\int_a^b \xs{x}\,\wt{\big(f(x) - g(x)\big)\,dx}\\[8pt] \ys{\bar{y}} &= \frac{1}{\wt{A}}\int_a^b \ys{\frac{f(x) + g(x)}{2}}\,\wt{\big(f(x) - g(x)\big)\,dx}\end{aligned}
A=∫ab(f(x)−g(x)) dxxˉ=1A∫abx (f(x)−g(x)) dxyˉ=1A∫abf(x)+g(x)2⋅(f(x)−g(x)) dx\displaystyle \begin{aligned}\wt{A} &= \int_a^b \wt{\big(f(x) - g(x)\big)\,dx}\\[8pt] \xs{\bar{x}} &= \frac{1}{\wt{A}}\int_a^b \xs{x}\,\wt{\big(f(x) - g(x)\big)\,dx}\\[8pt] \ys{\bar{y}} &= \frac{1}{\wt{A}}\int_a^b \ys{\frac{f(x) + g(x)}{2}}\\ &\qquad\cdot\wt{\big(f(x) - g(x)\big)\,dx}\end{aligned}

Notice the two factors in the yˉ\ys{\bar{y}} integral. Multiplying the sum of two terms by their difference gives a difference of squares, (a+b)(a−b)=a2−b2(a + b)(a - b) = a^2 - b^2.

(a+b)(a−b)\displaystyle (a + b)(a - b) =a2−b2\displaystyle = a^2 - b^2
f(x)+g(x)2 (f(x)−g(x))=[f(x)]2−[g(x)]22yˉ=12A∫ab([f(x)]2−[g(x)]2) dx\displaystyle \begin{aligned}\ys{\frac{f(x) + g(x)}{2}}\,\wt{\big(f(x) - g(x)\big)} &= \frac{[f(x)]^2 - [g(x)]^2}{2}\\[8pt] \ys{\bar{y}} &= \frac{1}{2\wt{A}}\int_a^b \Big([f(x)]^2 - [g(x)]^2\Big)\,dx\end{aligned}
f(x)+g(x)2 (f(x)−g(x))=[f(x)]2−[g(x)]22yˉ=12A∫ab([f(x)]2−[g(x)]2) dx\displaystyle \begin{aligned}&\ys{\frac{f(x) + g(x)}{2}}\,\wt{\big(f(x) - g(x)\big)}\\ &= \frac{[f(x)]^2 - [g(x)]^2}{2}\\[8pt] \ys{\bar{y}} &= \frac{1}{2\wt{A}}\int_a^b \Big([f(x)]^2 - [g(x)]^2\Big)\,dx\end{aligned}

If the bottom curve is the x-axis, then g(x)=0g(x) = 0, and these formulas simplify right back to the one-curve formulas we found earlier. Let's use them on the region between y=xy = x and y=x2y = x^2.

Find the center of mass of the region between y=xy = x and y=x2y = x^2
00
xx
yy
y=xy = x
y=x2y = x^2
(xˉ, yˉ)=?(\htmlClass{lc-pink}{\bar{x}},\, \htmlClass{lc-blue}{\bar{y}}) = \mathord{?}
Text solution
Where the curves meetBetween 00 and 11, xx is greater than x2x^2, so y=xy = x is the top curve.
x\displaystyle x =x2  →  x\displaystyle = x^2 \;\to\; x =0, x\displaystyle = 0,\ x =1\displaystyle = 1
Area, then xˉ\xs{\bar{x}}Dividing by A=16\wt{A} = \frac16 is multiplying by 66.
A\displaystyle \wt{A} =∫01(x−x2) dx\displaystyle = \int_0^1 \wt{(x - x^2)\,dx} =16\displaystyle = \frac16
xˉ\displaystyle \xs{\bar{x}} =6∫01x (x−x2) dx\displaystyle = 6\int_0^1 \xs{x}\,\wt{(x - x^2)\,dx} =12\displaystyle = \frac12
yˉ\ys{\bar{y}} from the middle heightThe middle is x+x22\ys{\frac{x + x^2}{2}}, and the difference of squares turns the product into x2−x4x^2 - x^4.
yˉ\displaystyle \ys{\bar{y}} =6∫01x+x22 (x−x2) dx\displaystyle = 6\int_0^1 \ys{\frac{x + x^2}{2}}\,\wt{(x - x^2)\,dx}
=3∫01(x2−x4) dx\displaystyle = 3\int_0^1 (x^2 - x^4)\,dx =25\displaystyle = \frac25
The center of mass
(xˉ,yˉ)\displaystyle (\xs{\bar{x}}, \ys{\bar{y}}) =(12,25)\displaystyle = \left(\frac12, \frac25\right)

Is half a rectangle’s height its middle y-coordinate?

7

Using symmetry to find xˉ\bar{x} or yˉ\bar{y}

Sometimes a region's symmetry gives one coordinate of its center of mass with no integral at all. Take the region under y=4−x2y = 4 - x^2 above the x-axis, which runs from x=−2x = -2 to x=2x = 2.

The rectangle at x\xs{x} has height 4−x24 - x^2, and the rectangle at −x\xs{-x} has height 4−(−x)2=4−x24 - (-x)^2 = 4 - x^2, so the two have the same area. But their x-coordinates have opposite signs, so their contributions to My\xs{M_y} cancel.

xx
yy
−2-2
22
y=4−x2y = 4 - x^2
−x\htmlClass{lc-pink}{-x}
x\htmlClass{lc-pink}{x}
x (4−x2) dx+(−x) (4−x2) dx=0\displaystyle \begin{aligned}&\xs{x}\,\wt{(4 - x^2)\,dx}\\ {}+{} &(\xs{-x})\,\wt{(4 - x^2)\,dx} = 0\end{aligned}
My=0xˉ=MyA=0\displaystyle \begin{aligned}\xs{M_y} &= 0\\ \xs{\bar{x}} &= \frac{\xs{M_y}}{\wt{A}} = 0\end{aligned}

Every rectangle on the right pairs with an identical rectangle on the left, so My=0\xs{M_y} = 0, and xˉ=0\xs{\bar{x}} = 0 with no integration at all.

Does the same thing happen for yˉ\ys{\bar{y}}? At both x\xs{x} and −x\xs{-x}, the rectangle's middle height is 4−x22\ys{\frac{4 - x^2}{2}}, which is positive. So both rectangles add a positive amount to Mx\ys{M_x}. Nothing cancels, and finding yˉ\ys{\bar{y}} still takes an integral.

The same pairing works whenever a region is symmetric across a vertical line x=cx = c. Two rectangles at c−d\xs{c - d} and c+d\xs{c + d} have the same area, and their average x-coordinate is cc, so xˉ=c\xs{\bar{x}} = c.

region symmetric about x=c:xˉ=c\displaystyle \begin{aligned}\text{region symmetric about } x = c: \qquad \xs{\bar{x}} = c\end{aligned}
region symmetric about x=c:xˉ=c\displaystyle \begin{aligned}&\text{region symmetric about } x = c:\\ &\qquad \xs{\bar{x}} = c\end{aligned}

A region can also be symmetric across the diagonal line y=xy = x. Reflecting a point (a,b)(a, b) across y=xy = x gives (b,a)(b, a). For the region between y=x2y = x^2 and y=xy = \sqrt{x}, swapping xx and yy turns y=x2y = x^2 into x=y2x = y^2, which is y=xy = \sqrt{x}. So reflecting across y=xy = x swaps the top and bottom curves, and the region reflects onto itself.

00
xx
yy
11
11
y=xy = x
y=xy = \sqrt{x}
y=x2y = x^2
(0.3, 0.4)(0.3,\, 0.4)
(0.4, 0.3)(0.4,\, 0.3)

Every point (a,b)(a, b) in the region matches with (b,a)(b, a), so the average x-coordinate must equal the average y-coordinate, and xˉ=yˉ\xs{\bar{x}} = \ys{\bar{y}}. So once we find xˉ\xs{\bar{x}} by integrating, we get yˉ\ys{\bar{y}} without integrating again.

Find the center of mass of the region under y=4−x2y = 4 - x^2 on [−2,2][-2, 2], and of the region between y=x2y = x^2 and y=xy = \sqrt{x}
xx
yy
y=4−x2y = 4 - x^2
(xˉ, yˉ)=?(\htmlClass{lc-pink}{\bar{x}},\, \htmlClass{lc-blue}{\bar{y}}) = \mathord{?}
Text solution
Under y=4−x2y = 4 - x^2: integrate only for yˉ\ys{\bar{y}}Symmetry gives xˉ=0\xs{\bar{x}} = 0.
A\displaystyle \wt{A} =∫−22(4−x2) dx\displaystyle = \int_{-2}^{2} \wt{(4 - x^2)\,dx} =323\displaystyle = \frac{32}{3}
Mx\displaystyle \ys{M_x} =∫−224−x22 (4−x2) dx\displaystyle = \int_{-2}^{2} \ys{\frac{4 - x^2}{2}}\,\wt{(4 - x^2)\,dx} =25615\displaystyle = \frac{256}{15}
yˉ\displaystyle \ys{\bar{y}} =MxA\displaystyle = \frac{\ys{M_x}}{\wt{A}} =332⋅25615\displaystyle = \frac{3}{32}\cdot\frac{256}{15} =85\displaystyle = \frac85
Between y=x2y = x^2 and y=xy = \sqrt{x}: integrate only for xˉ\xs{\bar{x}}The curves meet at x=0x = 0 and x=1x = 1, with y=xy = \sqrt{x} on top. Symmetry across y=xy = x then gives yˉ=xˉ\ys{\bar{y}} = \xs{\bar{x}}.
A\displaystyle \wt{A} =∫01(x−x2) dx\displaystyle = \int_0^1 \wt{(\sqrt{x} - x^2)\,dx} =13\displaystyle = \frac13
My\displaystyle \xs{M_y} =∫01x (x−x2) dx\displaystyle = \int_0^1 \xs{x}\,\wt{(\sqrt{x} - x^2)\,dx} =320\displaystyle = \frac{3}{20}
xˉ\displaystyle \xs{\bar{x}} =yˉ\displaystyle = \ys{\bar{y}} =3⋅320\displaystyle = 3\cdot\frac{3}{20} =920\displaystyle = \frac{9}{20}
The two centers of mass
(0,85)\displaystyle \Big(0, \frac85\Big)
(920,920)\displaystyle \Big(\frac{9}{20}, \frac{9}{20}\Big)

Summary

Point masses
xˉ=(mass)(x)+(mass)(x)+⋯M\displaystyle \begin{aligned}\xs{\bar{x}} = \frac{(\wt{\text{mass}})(\xs{x}) + (\wt{\text{mass}})(\xs{x}) + \cdots}{\wt{M}}\end{aligned}
yˉ=(mass)(y)+(mass)(y)+⋯M\displaystyle \begin{aligned}\ys{\bar{y}} = \frac{(\wt{\text{mass}})(\ys{y}) + (\wt{\text{mass}})(\ys{y}) + \cdots}{\wt{M}}\end{aligned}
xˉ=(mass)(x)+⋯M\displaystyle \begin{aligned}\xs{\bar{x}} = \frac{(\wt{\text{mass}})(\xs{x}) + \cdots}{\wt{M}}\end{aligned}
yˉ=(mass)(y)+⋯M\displaystyle \begin{aligned}\ys{\bar{y}} = \frac{(\wt{\text{mass}})(\ys{y}) + \cdots}{\wt{M}}\end{aligned}

The center of mass is a weighted average of positions. Multiply each mass by its coordinate, add those products, and divide by the total mass M\wt{M}. For separate masses in the plane, xˉ\xs{\bar{x}} uses only the x-coordinates, and yˉ\ys{\bar{y}} uses only the y-coordinates. Negative coordinates keep their minus signs in the sum.

A rod with changing density
M=∫abdensity dx\displaystyle \begin{aligned}\wt{M} = \int_a^b \wt{\text{density}\,dx}\end{aligned}
xˉ=1M∫abx⋅density dx\displaystyle \begin{aligned}\xs{\bar{x}} = \frac{1}{\wt{M}}\int_a^b \xs{x}\cdot\wt{\text{density}\,dx}\end{aligned}

A thin piece of width dxdx at position x\xs{x} has mass density⋅dx\wt{\text{density}\cdot dx}. Because the density changes with xx, it stays inside the integral for the total mass M\wt{M} and inside the integral for xˉ\xs{\bar{x}}.

Moments and distance from an axis
xˉ=MyAMy=∫abx f(x) dx\displaystyle \begin{aligned}\xs{\bar{x}} &= \frac{\xs{M_y}}{\wt{A}}\\[8pt] \xs{M_y} &= \int_a^b \xs{x}\,\wt{f(x)\,dx}\end{aligned}
yˉ=MxAMx=∫abf(x)2 f(x) dx\displaystyle \begin{aligned}\ys{\bar{y}} &= \frac{\ys{M_x}}{\wt{A}}\\[8pt] \ys{M_x} &= \int_a^b \ys{\frac{f(x)}{2}}\,\wt{f(x)\,dx}\end{aligned}

A thin rectangle at x\xs{x} has area f(x) dx\wt{f(x)\,dx}. My\xs{M_y} is the moment about the y-axis, and Mx\ys{M_x} is the moment about the x-axis. My\xs{M_y} uses x\xs{x} because x\xs{x} is the distance from the y-axis, and dividing by total area gives xˉ\xs{\bar{x}}. Mx\ys{M_x} uses the middle height f(x)2\ys{\frac{f(x)}{2}} because that's the distance from the rectangle's middle to the x-axis, and dividing by total area gives yˉ\ys{\bar{y}}.

A region between two curves
xx
yy
y=f(x)y = f(x)
y=g(x)y = g(x)
x\htmlClass{lc-pink}{x}
dx\htmlClass{lc-green}{dx}
f(x)+g(x)2\htmlClass{lc-blue}{\dfrac{f(x) + g(x)}{2}}
A=∫ab(f(x)−g(x)) dxxˉ=1A∫abx (f(x)−g(x)) dx\displaystyle \begin{aligned}\wt{A} &= \int_a^b \wt{\big(f(x) - g(x)\big)\,dx}\\[8pt] \xs{\bar{x}} &= \frac{1}{\wt{A}}\int_a^b \xs{x}\,\wt{\big(f(x) - g(x)\big)\,dx}\end{aligned}
yˉ=1A∫abf(x)+g(x)2 (f(x)−g(x)) dx=12A∫ab([f(x)]2−[g(x)]2) dxM=density⋅A\displaystyle \begin{aligned}\ys{\bar{y}} &= \frac{1}{\wt{A}}\int_a^b \ys{\frac{f(x) + g(x)}{2}}\,\wt{\big(f(x) - g(x)\big)\,dx} = \frac{1}{2\wt{A}}\int_a^b \Big([f(x)]^2 - [g(x)]^2\Big)\,dx\\[6pt] \wt{M} &= \text{density}\cdot\wt{A}\end{aligned}
yˉ=1A∫abf(x)+g(x)2⋅(f(x)−g(x)) dx=12A∫ab([f(x)]2−[g(x)]2) dxM=density⋅A\displaystyle \begin{aligned}\ys{\bar{y}} &= \frac{1}{\wt{A}}\int_a^b \ys{\frac{f(x) + g(x)}{2}}\\ &\qquad\cdot\wt{\big(f(x) - g(x)\big)\,dx}\\ &= \frac{1}{2\wt{A}}\int_a^b \Big([f(x)]^2\\ &\qquad - [g(x)]^2\Big)\,dx\\[6pt] \wt{M} &= \text{density}\cdot\wt{A}\end{aligned}

A thin rectangle between y=f(x)y = f(x) above and y=g(x)y = g(x) below has height f(x)−g(x)\wt{f(x) - g(x)}, so its area is (f(x)−g(x)) dx\wt{\big(f(x) - g(x)\big)\,dx}. Every point in it has x-coordinate x\xs{x}, and its middle height is the average f(x)+g(x)2\ys{\frac{f(x) + g(x)}{2}}. When density is constant, it cancels out of both averages, so we divide by the area A\wt{A}. If you need the total mass M\wt{M}, multiply the constant density by the area A\wt{A}.

A region under a curve
A=∫abf(x) dxxˉ=1A∫abx f(x) dxyˉ=12A∫ab[f(x)]2 dx\displaystyle \begin{aligned}\wt{A} &= \int_a^b \wt{f(x)\,dx}\\[8pt] \xs{\bar{x}} &= \frac{1}{\wt{A}}\int_a^b \xs{x}\,\wt{f(x)\,dx}\\[8pt] \ys{\bar{y}} &= \frac{1}{2\wt{A}}\int_a^b [f(x)]^2\,dx\end{aligned}

When the bottom curve is the x-axis, set g(x)=0g(x) = 0. The height of the rectangle is f(x)f(x), and its middle height is f(x)2\ys{\frac{f(x)}{2}}.

Using symmetry
symmetric about x=c ⁣:xˉ=c\displaystyle \begin{aligned}&\text{symmetric about } x = c\!:\\ &\qquad \xs{\bar{x}} = c\end{aligned}
symmetric about y=x ⁣:xˉ=yˉ\displaystyle \begin{aligned}&\text{symmetric about } y = x\!:\\ &\qquad \xs{\bar{x}} = \ys{\bar{y}}\end{aligned}

If a region is symmetric across a vertical line x=cx = c, equal rectangles on opposite sides balance at cc, so xˉ=c\xs{\bar{x}} = c. If a region is symmetric across the diagonal line y=xy = x, swapping xx and yy leaves the region unchanged, so xˉ=yˉ\xs{\bar{x}} = \ys{\bar{y}}. That means you do not have to compute an integral for both coordinates. If the region is symmetric across x=cx = c, just set xˉ=c\xs{\bar{x}} = c and integrate for yˉ\ys{\bar{y}}. If it is symmetric across y=xy = x, find xˉ\xs{\bar{x}} by integrating, and yˉ\ys{\bar{y}} has the same value.

8

Practice

Enter exact values as fractions or in terms of π\pi and ee.

1
Point masses of 22, 33 and 55 are located at (−1,3)(-1, 3), (2,0)(2, 0) and (4,1)(4, 1). Find MyM_y, MxM_x and the center of mass (xˉ,yˉ)(\bar{x}, \bar{y}).

MyM_y is the moment about the y-axis. Which coordinate tells how far a point is from the y-axis, xx or yy?

If you got xˉ=145\bar{x} = \frac{14}{5} Check the sign of the x-coordinate at (−1,3)(-1, 3). The mass 22 is multiplied by −1-1, not 11.

If you got (1110,125)\left(\frac{11}{10}, \frac{12}{5}\right) Check which moment gives which coordinate. The distance from the y-axis is xx, so xˉ=MyM\bar{x} = \frac{M_y}{M} and yˉ=MxM\bar{y} = \frac{M_x}{M}.

Add the three masses to get the total mass M\wt{M}.
M\displaystyle \wt{M} =2+3+5\displaystyle = \wt{2} + \wt{3} + \wt{5} =10\displaystyle = 10
The distance from the y-axis is the x-coordinate, so multiply each mass by its x-coordinate, keeping −1\xs{-1} negative.
My\displaystyle \xs{M_y} =2(−1)+3(2)+5(4)\displaystyle = \wt{2}(\xs{-1}) + \wt{3}(\xs{2}) + \wt{5}(\xs{4}) =24\displaystyle = 24
Multiply each mass by its distance from the x-axis, which is its y-coordinate.
Mx\displaystyle \ys{M_x} =2(3)+3(0)+5(1)\displaystyle = \wt{2}(\ys{3}) + \wt{3}(\ys{0}) + \wt{5}(\ys{1}) =11\displaystyle = 11
Divide each moment by the total mass to find xˉ\xs{\bar{x}} and yˉ\ys{\bar{y}}.
(xˉ,yˉ)=(MyM,MxM)=(2410,1110)=(125,1110)\displaystyle \begin{aligned}(\xs{\bar{x}}, \ys{\bar{y}}) &= \Big(\frac{\xs{M_y}}{\wt{M}}, \frac{\ys{M_x}}{\wt{M}}\Big) = \Big(\frac{24}{10}, \frac{11}{10}\Big)\\ &= \Big(\frac{12}{5}, \frac{11}{10}\Big)\end{aligned}
2
A rod lies along the xx-axis from x=0x = 0 to x=3x = 3 (in cm), with density 1+2x1 + 2x g/cm. Find its center of mass xˉ\bar{x}.

A tiny piece of the rod at xx has width dxdx. What is its mass?

The center of mass is xˉ=1M∫03x⋅density dx\bar{x} = \frac{1}{M}\int_0^3 x\cdot\text{density}\,dx. What expression goes in for the density?

A piece at x\xs{x} with width dxdx has mass (1+2x) dx\wt{(1 + 2x)\,dx}, so integrate the density from 00 to 33 to get the total mass, M\wt{M}.
M\displaystyle \wt{M} =∫03(1+2x) dx\displaystyle = \int_0^3 \wt{(1 + 2x)\,dx} =[x+x2]03\displaystyle = \Big[x + x^2\Big]_0^3 =12\displaystyle = 12
Multiply each piece's mass by its position x\xs{x} and integrate to find the moment.
∫03x (1+2x) dx=∫03(x+2x2) dx=92+18=452\displaystyle \begin{aligned}\int_0^3 \xs{x}\,\wt{(1 + 2x)\,dx} &= \int_0^3 (x + 2x^2)\,dx\\ &= \frac92 + 18 = \frac{45}{2}\end{aligned}
Divide the moment by the total mass M\wt{M} to get xˉ\xs{\bar{x}}.
xˉ\displaystyle \xs{\bar{x}} =1M⋅452\displaystyle = \frac{1}{\wt{M}}\cdot\frac{45}{2} =112⋅452\displaystyle = \frac{1}{12}\cdot\frac{45}{2} =158\displaystyle = \frac{15}{8}
3
Find the center of mass (xˉ,yˉ)(\bar{x}, \bar{y}) of the region of constant density enclosed by y=2xy = 2x and y=x2y = x^2.

Where do the curves intersect? Set 2x=x22x = x^2 to find the bounds in xx.

A vertical rectangle goes from y=x2y = x^2 up to y=2xy = 2x. What is the average of those two y-values?

If you got yˉ=25\bar{y} = \frac25 The rectangle starts at y=x2y = x^2, not at the x-axis. Its middle height is the average 2x+x22\frac{2x + x^2}{2}, not half its height 2x−x22\frac{2x - x^2}{2}.

Find the boundsSet the two equations equal to find where the curves intersect, and check which curve is on top.
2x=x2  →  x=0, x=22x≥x2 on [0,2]\displaystyle \begin{aligned}2x = x^2 &\;\to\; x = 0,\ x = 2\\ 2x &\ge x^2 \text{ on } [0, 2]\end{aligned}
The height of each vertical rectangle is top minus bottom, 2x−x2\wt{2x - x^2}.
A\displaystyle \wt{A} =∫02(2x−x2) dx\displaystyle = \int_0^2 \wt{(2x - x^2)\,dx} =4−83\displaystyle = 4 - \frac83 =43\displaystyle = \frac43
Find xˉ\xs{\bar{x}}Multiply the rectangle's area by its position x\xs{x} and divide by A\wt{A}.
My=∫02x (2x−x2) dx=163−4=43xˉ=MyA=34⋅43=1\displaystyle \begin{aligned}\xs{M_y} &= \int_0^2 \xs{x}\,\wt{(2x - x^2)\,dx} = \frac{16}{3} - 4 = \frac43\\ \xs{\bar{x}} &= \frac{\xs{M_y}}{\wt{A}} = \frac34\cdot\frac43 = 1\end{aligned}
Find the middle heightThe rectangle goes from y=x2y = x^2 up to y=2xy = 2x, so multiply its middle height 2x+x22\ys{\frac{2x + x^2}{2}} by its area (2x−x2) dx\wt{(2x - x^2)\,dx}.
2x+x22 (2x−x2)\displaystyle \ys{\frac{2x + x^2}{2}}\,\wt{(2x - x^2)} =4x2−x42\displaystyle = \frac{4x^2 - x^4}{2}
Integrate to find the moment Mx\ys{M_x}, then divide by the area A\wt{A} to get yˉ\ys{\bar{y}}.
Mx=12∫02(4x2−x4) dx=12(323−325)=3215yˉ=MxA=34⋅3215=85\displaystyle \begin{aligned}\ys{M_x} &= \frac12\int_0^2 (4x^2 - x^4)\,dx = \frac12\Big(\frac{32}{3} - \frac{32}{5}\Big) = \frac{32}{15}\\ \ys{\bar{y}} &= \frac{\ys{M_x}}{\wt{A}} = \frac34\cdot\frac{32}{15} = \frac85\end{aligned}
4
Find the center of mass (xˉ,yˉ)(\bar{x}, \bar{y}) of the region of constant density under y=sin⁡xy = \sin x for 0≤x≤π0 \le x \le \pi.

Look at the graph of y=sin⁡xy = \sin x from 00 to π\pi. Which vertical line is it symmetric about?

To integrate sin⁡2x\sin^2 x, use the identity sin⁡2x=1−cos⁡2x2\sin^2 x = \frac{1 - \cos 2x}{2}.

If you got yˉ=π4\bar{y} = \frac{\pi}{4} Check the height used for the moment. The rectangle runs from y=0y = 0 to y=sin⁡xy = \sin x, so its middle height is sin⁡x2\frac{\sin x}{2}, not sin⁡x\sin x.

Use symmetry for xˉ\xs{\bar{x}}Because sin⁡(π−x)=sin⁡x\sin(\pi - x) = \sin x, the region is symmetric about x=π2x = \frac{\pi}{2}, so the center of mass lies on that line.
sin⁡(π−x)\displaystyle \sin(\pi - x) =sin⁡x  →  xˉ\displaystyle = \sin x \;\to\; \xs{\bar{x}} =π2\displaystyle = \frac{\pi}{2}
Integrate sin⁡x\sin x from 00 to π\pi to find the area A\wt{A}.
A\displaystyle \wt{A} =∫0πsin⁡x dx\displaystyle = \int_0^{\pi} \wt{\sin x\,dx} =2\displaystyle = 2
Find Mx\ys{M_x}Multiply the rectangle's area sin⁡x dx\wt{\sin x\,dx} by its middle height sin⁡x2\ys{\frac{\sin x}{2}}, and use sin⁡2x=1−cos⁡2x2\sin^2 x = \frac{1 - \cos 2x}{2} to evaluate the integral.
Mx=∫0πsin⁡x2 sin⁡x dx=12∫0πsin⁡2x dx=12∫0π1−cos⁡2x2 dx=12⋅π2=π4\displaystyle \begin{aligned}\ys{M_x} &= \int_0^{\pi} \ys{\frac{\sin x}{2}}\,\wt{\sin x\,dx} = \frac12\int_0^{\pi} \sin^2 x\,dx\\ &= \frac12\int_0^{\pi} \frac{1 - \cos 2x}{2}\,dx = \frac12\cdot\frac{\pi}{2} = \frac{\pi}{4}\end{aligned}
Divide Mx\ys{M_x} by the area A\wt{A} to get yˉ\ys{\bar{y}}.
yˉ\displaystyle \ys{\bar{y}} =MxA\displaystyle = \frac{\ys{M_x}}{\wt{A}} =12⋅π4\displaystyle = \frac12\cdot\frac{\pi}{4} =π8\displaystyle = \frac{\pi}{8}