Skip to main content
   
Logo image

Physics Bootcamp

Section 7.4 Center of Mass

A macroscopic object such as a car or a human being has many independently moving parts. They are examples of multiparticle systems. To understand their motion fully you need to study motion of each part and how they impact each other. However, all you need is the overall motion of the entire body, regardless of the changing shape due to independenly moving parts, you can follow the motion of the entire mass placed at a special mathemtical point for the entire body.
This special point is called center of mass. Center of mass of a body may or may not be inside the body. Below, you will learn to find the location of the center of mass in various situations.

Subsection 7.4.1 Center of Mass of Object Made up of Point Particles

Consider an entity, such as a molecule, that consists of point particles of masses \(m_1 \text{,}\) \(m_2 \text{,}\) \(\cdots \text{,}\) \(m_N \) and positions \(\vec r_1 \text{,}\) \(\vec r_2 \text{,}\) \(\cdots \text{,}\) \(\vec r_N \text{.}\) Then, the center of mass of the entity will be at \(\vec R_{\text{CM}}\text{,}\) given by the following mass-weighted position.
\begin{equation} \vec R_{\text{CM}} = \dfrac{m_1\vec r_1 + m_2\vec r_2 + \cdots + m_N\vec r_N }{M},\tag{7.27} \end{equation}
where \(M\) is the total mass.
\begin{equation*} M = m_1 + m_2 + \cdots + m_N. \end{equation*}
We can write the components of this equation to obtain the \(X_{\text{CM}} \text{,}\) \(Y_{\text{CM}} \text{,}\) and \(Z_{\text{CM}} \) from the coordinates of the parts. For instance, \(X_{\text{CM}} \text{,}\) will be:
\begin{equation} X_{\text{CM}} = \dfrac{m_1 x_1 + m_2 x_2 + \cdots + m_N x_N }{M},\tag{7.28} \end{equation}
and similarly for \(Y_{\text{CM}} \text{,}\) and \(Z_{\text{CM}} \text{.}\) You might think of \(\vec R_\text{cm}\) as mass-weighted position of the entire entity.

Remark 7.32. Center of Mass of a Multipart System.

If an object is made up of parts that are themselves complex multiparticle systems, such as a human body that can be thought of making up several macroscopic parts, then center of mass of such as object can be obtained by replacing each macroscopic part by an “equivalent point particle” with the same mass but located at the center of mass of the part. In this case, we get the same formula for the CM of the whole by just replacing the position vectors in Eq. (7.27) by the positons of the center of mass of parts.
\begin{equation} \vec R_{\text{CM}} = \dfrac{m_1\vec r_{1,\text{cm}} + m_2\vec r_{2,\text{cm}} + \cdots + m_N\vec r_{N,\text{cm}} }{M}.\tag{7.29} \end{equation}
Such an equivalent point particle system is said to be a collection of discrete masses \(m_1\) at \(\vec r_{1,\text{cm}}\text{,}\) \(m_2\) at \(\vec r_{2,\text{cm}}\text{,}\) \(\cdots\text{,}\) \(m_N\) at \(\vec r_{N,\text{cm}}\text{,}\) with center of mass at \(\vec R_\text{CM}\text{.}\)

Example 7.33. CM of a Two Mass System.

Two blocks of masses \(10\text{ kg}\) and \(20\text{ kg}\) are attached at the ends of a \(1\text{-meter} \) rod of negligible mass. Where is the CM located?
Figure 7.34.
Answer.
The CM is located \(\dfrac{1}{3}\text{ m}\) from the \(20\text{-kg}\) block towards the other block.
Solution.
Since we have only two masses, we place one of the masses at the origin and the other mass along the \(x \) axis. Suppose we place the \(20\text{-kg}\) block at the origin and the \(10\text{-kg}\) block at \(x = 1\text{ m} \text{.}\)
Leaving the units out of the calculations we get the following from the \(X_{\text{CM}} \) formula.
\begin{equation*} X_{\text{CM}} = \frac{ 20\times 0 + 10 \times 1}{30 } = \frac{1}{3}. \end{equation*}
Now, we put the units back in. Therefore, the CM is located \(\dfrac{1}{3}\text{ m}\) from the \(20\text{-kg}\) block towards the other block.

Example 7.35. CM of a Three Mass System.

Three balls of masses \(2\text{ kg}\text{,}\) \(3\text{ kg}\) and \(4\text{ kg}\) are located at the corners of a right-angles triangle as shown in the fogure below. The three masses may or may not be connected by any rods. Where is the CM located in a coordinate sytem with the 3-kg mass at the origin.
Figure 7.36.
Answer.
The CM is located at \((-\dfrac{8}{9}\text{ m}, \dfrac{4}{3}\text{ m})\) in the coordinate system in the figure. Note that these values will changes if we use another coordinate system, but the physical location of the CM will remain the same.
Solution.
Since we have a right-angled triangle, two of those sides can be chosen to align with Cartesian axes as shown. This gives us \((x,y) \) coordinates of each of the masses. We use them in formulas for \(X_{\text{CM}} \) and \(Y_{\text{CM}} \text{.}\)
\begin{align*} \amp X_{\text{CM}} = \frac{2\times (-4) + 3\times 0 + 4 \times 0}{2+3+4} = -\dfrac{8}{9} \\ \amp Y_{\text{CM}} = \frac{2\times 0 + 3\times 0 + 4 \times 3}{2+3+4} = \dfrac{4}{3} \end{align*}
Figure 7.37.
Therefore, the CM is located at \((-\dfrac{8}{9}\text{ m}, \dfrac{4}{3}\text{ m})\) in the coordinate system in the figure. Note that these values will changes if we use another coordinate system, but the physical location of the CM will remain the same.

Example 7.38. CM from CM’s of the Parts.

Consider a cylindrical object with a cap at the top as shown in Figure 7.39. Let \(M_1 \) be the mass of the cylidrical part and \(M_2 \) be the mass of the cap. Let \(H \) be the height of the cylindrical part and \(h \) the height of the cap. Find the center of mass of the full system.
Figure 7.39.
Answer.
\(Y_{\text{CM}} = \dfrac{ M_1 \times H/2 + M_2 \times (H + h/3) }{M_1 + M_2}.\)
Solution.
The center of mass of a composite object can be obtained by replacing parts by point particles at their centers of mass and then using center of mass of multiparticle system.
We replace the cylinder and the conical cap by point masses at their corresponding CMs. The CM of the cylinder will be at the center of the cylinder, but the CM of a cone is at a height of \(\frac{1}{3}h\) from the base. Since both CMs fall on one line, we need only one Cartesian axis. We place the \(y \) coordinate axis for calculation purpose.
Figure 7.40.
The \(Y_{\text{CM}} \) of the two together gives
\begin{equation*} Y_{\text{CM}} = \dfrac{ M_1 \times H/2 + M_2 \times (H + h/3) }{M_1 + M_2}. \end{equation*}

Subsection 7.4.2 (Calculus) Center of Mass of Continuous Objects

In a physical object, such as the human body, large number of discrete atoms are essentially distributed continuously. To take into account the possibility that different parts of the object may have different densities, we model a physical body by a density function, \(\rho(x,y,z)\text{,}\) which is local density at position \((x,y,z)\text{.}\) An integral over the volume of the object gives the mass, \(M \)
\begin{equation} M = \iiint\, \rho(x,y,z)\, dxdydz\tag{7.30} \end{equation}
The center of mass can then be stated as the following integral.
\begin{equation} \vec R_\text{cm} = \dfrac{1}{M}\, \iiint\,\vec r\, \rho(x,y,z)\, dxdydz,\tag{7.31} \end{equation}
where \(\vec r = x \hat i + y \hat j + z \hat k \text{.}\)
We often write the integral in a more conceptual form by denoting \(\rho(x,y,z)\, dxdydz \) by \(dm \text{,}\) which stands for a small mass at the infintesimal cubical cell located center at \((x,y,z) \text{.}\)
\begin{equation} \vec R_{\text{CM}} = \dfrac{1}{M}\, \int\, \vec r \, dm.\tag{7.32} \end{equation}
Figure 7.41.
The first step in calculating integral in Eq. (7.32) involves picking a representative infinitesimal element of the body guided by the symmetry of the body. Then, \(dm\) can be cast into an integral that you can often do without much difficulty. The three steps of calculation of CM are illustrated for a cone in Figure 7.42.
Figure 7.42. Three steps in calculation of CM of a cone. Step 1. An element of cone is selcted for \(dm\text{.}\) Step 2. Total mass \(M\) is calulated. 3. Finally, \(CM\) is calculated.
Although Eq. (7.32) is applicable to all systems, most of the time we will be working with regular solids of uniform density. In these situations, the density function \(\rho(x,y,z) = \rho_0\text{,}\) the uniform density, comes out of integrals for \(M\) and \(\vec R_\text{CM}\) and cancels out.
\begin{equation} \vec R_{\text{CM}} = \dfrac{1}{V}\,\iiint \vec r \, dxdydz;\ \ V = \iiint dxdydz,\tag{7.33} \end{equation}
where integrals are taken over the space occupied by the body. The integral over \(\vec r\) locates the geometric centroid of the body. Thus, if a body has some symmetry, you do not need to do any integral since you can often locate the geometric centroid just by inspection.
Thus, CM can sometimes be guessed by symmetry. For instance, the center of mass of a spherical object will be at the center, the center of mass of a box will be at the center of the box, etc. Figure 7.43 shows the centers of a sphere, a cylinder, and a triangular shaped object of uniform density.
Figure 7.43. Center of mass of some common solids.

Subsubsection 7.4.2.1 Simplification for One- and Two-Dimensional Objects

Integrals in Eqs. (7.30) and (7.31) become simpler in the case where object is a wire (one-dimension) or a plate (two-dimension). In the case of wire, we work with linear density, denoted by \(\lambda\text{,}\) which is mass per unit length, and in the case of plate, we work with surface density, denoted by \(\sigma\text{,}\) which is mass per unit area. The corresponding integrals will be as follows.
Wire: Let \(ds\) be a length elment on the wire. If the wire is along \(x\) axis it will be \(dx\text{,}\) but if the wire is curved, it may be more complicated. Then mass element \(dm\) on the wire will be
\begin{equation*} dm = \lambda ds. \end{equation*}
The total mass and center of mass integrals will be
\begin{align*} \amp M = \int dm = \int \lambda\, ds.\\ \amp \vec R_\text{CM} = \dfrac{1}{M}\int \vec r dm = \dfrac{1}{M}\int \vec r\, \lambda\, ds. \end{align*}
Plate: Let \(dA\) be an area elment on the surface. If the wire is flat on \(xy\)-plane it will be \(dxdy\text{,}\) but if the plate is curved, it may be more complicated. Then mass element \(dm\) on the wire will be
\begin{equation*} dm = \sigma dA. \end{equation*}
The total mass and center of mass integrals will be
\begin{align*} \amp M = \int dm = \int \sigma\, dA.\\ \amp \vec R_\text{CM} = \dfrac{1}{M}\int \vec r\, dm = \dfrac{1}{M}\int \vec r\, \sigma dA. \end{align*}

Subsubsection 7.4.2.2 General Procedure for CM of Continous Bodies

A continuous body is distributed throughout the space occupied by the material. The distribution of mass in the body is most aptly described by a mass density function, \(\rho (x,y,z)\text{,}\) which is the mass per unit volume in the neighborhood of the point \((x,y,z)\text{.}\) If the object has a uniform mass density, then \(\rho (x,y,z)\) will have the same value throughout the body. The total mass \(M\) of the body is obtained from the density function by an integral over the volume of the object.
\begin{equation*} M = \int \rho(x,y,z) dx dy dz. \end{equation*}
For a uniform mass density object, denoting the density by \(\rho_0\) we have
\begin{align*} \amp \rho(x,y,z) = \rho_0, \textrm{ independent of }\\ \amp \ \ \ \Longrightarrow\ M = \rho_0 V, \end{align*}
To locate the center of mass of a continuous body, it is a common practice to first discretize the body by conceptually “breaking” it up into small cells. Then each cell can be replaced with its mass \(\Delta m\) at the centers of the cells. This process converts the original continuous body into an equivalent system of point masses. Now, we use the procedure of CM for point masses to obtain the CM of the original body.
\begin{equation} \vec R_{\textrm{cm}} = \frac{1}{M}\sum{\vec r\Delta m}\tag{7.34} \end{equation}
Let the volume of a cell be \(\Delta V\text{,}\) then the mass \(\Delta m\) will be
\begin{equation*} \Delta m = \rho\Delta V. \end{equation*}
Replacing \(\Delta m\) in Eq. (7.34) we obtain
\begin{equation} \vec R_{\textrm{cm}} = \frac{1}{M}\sum{\vec r\rho\Delta V}\tag{7.35} \end{equation}
In the limit of infinitesimally small cell sizes, the sum becomes an integral over the volume.
\begin{equation} \vec R_{\textrm{cm}} = \frac{1}{M}\int{\vec r\rho dx dy dz},\tag{7.36} \end{equation}
where the volume integration has been written using Cartesian coordinates. For a system with uniform density the density comes out of the integral.
\begin{equation} \vec R_{\textrm{cm}} = \frac{\rho_0}{M}\int{\vec r dx dy dz}.\tag{7.37} \end{equation}
For calculations, it is better to think of Eq. (7.37) in terms of the components.
\begin{align*} \amp X_{\textrm{cm}} = \frac{\rho_0}{M}\int{x dx dy dz}\\ \amp Y_{\textrm{cm}} = \frac{\rho_0}{M}\int{y dx dy dz}\\ \amp Z_{\textrm{cm}} = \frac{\rho_0}{M}\int{z dx dy dz} \end{align*}
These are triple integrals for a body that occupies a three-dimensional space. These integrals simplify to one and two-dimensional integrals for rods and plates.

Example 7.44. (Calculus) CM of a Triangle of Uniform Density.

Consider a plate of uniform density and uniform thickness \(t\) cut in the shape of right-angled triangle with base \(b \) and height \(h \text{.}\) Where is the center of mass?
Hint.
Use a coodinate system with one corner of the base at origin and the end with \(90^\circ\) corner at \(x=b\text{.}\)
Answer.
\((\frac{2}{3}b, \frac{1}{3}h, 0)\) with respect to coordinate given in solution.
Solution.
Let thickness of the plate be \(t\) and the uniform density \(\rho \text{.}\) Along the thickness of the plate, the CM will be in the plane half-way between the two faces of the plate. So, we only need to find the center of mass coordinates on the triangular shape surface. We will place the triangular face in the \(xy\)-plane as shown in the figure.
Figure 7.45.
The \(dm \) in Eq. (7.32) is
\begin{equation*} dm = \rho\, t\, dx\, dy. \end{equation*}
Then, the calculations for \(X_{\text{CM}} \) goes as follows.
\begin{align*} X_{\text{CM}} \amp = \frac{1}{M} \int_{plate} x\ dm \\ \amp = \frac{1}{M} \int_{plate} x\ \rho\, t\, dx dy \\ \amp = \frac{\rho\ t}{M}\int_0^b dx \left[ x \int_0^{hx/b} dy \right] \\ \amp = \frac{2}{3}b,\ \ \text{ using } M = \dfrac{1}{2}bht\rho. \end{align*}
Similarly, \(Y_{\text{CM}} = \dfrac{1}{3} h\text{.}\) By symmetry, \(Z_{\text{CM}} = \dfrac{t}{2}\text{.}\)

Example 7.46. Center of Mass of a Wire in the Shape of a Triangle.

A uniform wire of length \(L\) is bent into an equilateral triangle. Find its center of mass.
Answer.
\(\frac{L}{6\sqrt{3}}\text{.}\)
Solution.
Let \(\lambda\) be the mass per unit length of the wire and let us denote the total mass by \(3m\text{.}\) Let \(2a=L/3\) denote the length of each side. Making use of symmetry, we will place the triangle so that the center of mass will be on \(x\) axis as shown in Figure 7.47.
Figure 7.47.
Let us find \(x_0\) by working on the side in the first quadrant. The equation of the line of this side is
\begin{equation*} y = a - \frac{1}{\sqrt{3}}\, x. \end{equation*}
A mass element of the side will be
\begin{align*} dm \amp = \lambda\, ds = \lambda\, \sqrt{dx^2 + dy^2}\\ \amp = \lambda\, \sqrt{1 + (dy/dx)^2}\, dx = \frac{2}{\sqrt{3}}\,\lambda\, dx. \end{align*}
Now, we get \(x_0\text{,}\) the \(x\)-cm of the two slanted sides.
\begin{align*} x_0 \amp = \frac{1}{ \frac{2}{\sqrt{3}}\,\lambda \int dx}\, \frac{2}{\sqrt{3}}\,\lambda \int x dx\\ \amp = \frac{\sqrt{3}}{2}\,a. \end{align*}
Therefore, CM of the triangular structure will be at
\begin{equation*} X_\text{CM} = \frac{1}{3m}\left(m\times 0 + 2m\times \frac{\sqrt{3}}{2}\,a \right) = \frac{a}{\sqrt{3}}. \end{equation*}
Writing this in terms of \(L\) we have
\begin{equation*} X_\text{CM} = \frac{L}{6\sqrt{3}}. \end{equation*}

Example 7.48. (Calculus) Center of Mass of a Semi-Circular Ring.

Find the location of the center of mass of a uniform semi-circular ring of radius \(R\text{.}\)
Answer.
\(\dfrac{2}{\pi}R\text{.}\)
Solution.
Refer to Figure 7.49 for calculations. I have placed the ring symmetrically about \(y\) axis. Therefore, CM will be on the \(y\) axis.
Figure 7.49.
Let \(\lambda\) [kg/m] be linear density of the ring. The mass in the arc element shown in the figure is
\begin{equation*} dm = \lambda\; ds = \lambda Rd\theta. \end{equation*}
We want to evaluate two integrals.
\begin{align*} \amp(1)\ \ M = \int dm = \int_0^\pi \lambda Rd\theta\\ \amp(2)\ \ \int y\; dm = \int_0^\pi (R\sin\theta) (\lambda Rd\theta) \end{align*}
The first one (1) is not even needed. We know the integral already since we have length of the semicircular ring. This will give
\begin{equation*} M= \pi R \lambda. \end{equation*}
The second integral (2) will be
\begin{equation*} \int y\; dm = R^2 \lambda \int_0^\pi \sin\theta\, d\theta = 2 R^2\lambda. \end{equation*}
Therefore,
\begin{equation*} Y_\text{cm} = \frac{1}{M}\int y\; dm = \frac{2}{\pi}R. \end{equation*}

Exercises 7.4.3 Exercises

1. Change in the Center of Mass of Human Body with Movement of Arms.

Suppose you weigh \(90\text{ kg}\) and your arm weighs \(10\text{ kg}\) each. Suppose the center of mass of your arms is \(18\text{ cm}\) from your shoulder. How much will your center of mass rise if you lift your arm from both down to both fully up and extended as shown in Figure 7.50.
Figure 7.50. Figure for Exercise 7.4.3.1.
Hint.
Set up equations for the center of mass in the vertical direction in the two ssituations. Choosing origin at the center of mass when arms down may be helpful also.
Answer.
\(12\text{ cm}\text{.}\)
Solution.
Let us choose \(y\) axis pointed up with origin at the center of mass when the arms are down. Let \(y_0\) be the \(y\)-coordinate of the arms when they are down and \(Y\) be the \(y\) coordinate of the rest of the body. Let \(M\) denote your entire mass and \(m\) the mass of each arm.
Figure 7.51. Figure for Exercise 7.4.3.1 (solution).
Since in my construction, \(y\) coordinate of the CM is zero when arms are down, from the left side of Figure 7.51, we will get
\begin{equation*} M\,y_\text{cm} = 2\, m\, y_0 + (M-2m_0)\, Y, \end{equation*}
which is zero on the left side, giving
\begin{equation} 2\, m\, y_0 + (M-2m_0)\, Y = 0.\tag{7.38} \end{equation}
Let \(h \) be the \(y\) coordinate of the CM when the arms are up and \(y_1\) the \(y\) coordinate of the arms when they are up. Then, the right side of Figure 7.51 will give
\begin{equation} M\,h = 2\, m\, y_1 + (M-2m_0)\, Y.\tag{7.39} \end{equation}
Subtracting Eq. (7.38) from Eq. (7.39), we get
\begin{equation*} M\, h = 2\, m\, \left( y_1 - y_0 \right). \end{equation*}
Note that \(y_1-y_0\) is twice the distance of the CM of the arm from the shoulder. Let us denote the distance of the CM of the arms from the shoulder by \(d\text{.}\) Solving for \(h\) we get
\begin{equation*} h = \dfrac{4\, m}{M}\, d = \dfrac{4\times 15}{90}\times 18 = 12\text{ cm}. \end{equation*}

2. (Calculus) Center of Masss of Rod of Varying Density.

Density of material of a rod of uniform cross-section varies along its length. Let \(x=0\) at one end and \(x=L\) at the other end. Then, density \(\rho(x) = \lambda_0\;(x/a)^2\text{,}\) where \(\lambda_0\) and \(a\) are constants. Find the location from the CM.
Hint.
Set up integrals \(\int dm\) and \(\int x dm\text{.}\)
Answer.
\(\frac{3 L}{4}\text{.}\)
Solution.
Let \(A\) be the area of cross-section. Consider an element between \(x\) and \(x+dx\text{.}\) The \(X_\text{cm}\) will be
\begin{equation} MX_\text{cm} = \int x dm.\tag{7.40} \end{equation}
Here,
\begin{equation*} dm = \rho A dx = \lambda_0\;(x/a)^2 A dx. \end{equation*}
Therefore, total mass will be
\begin{equation*} M = \int dm = \int_0^L \lambda_0\;(x/a)^2 A dx = \frac{\lambda_0}{3a^2}\; A L^3. \end{equation*}
Using this and \(dm\) in Eq. (7.40), we get
\begin{align*} X_\text{cm} \amp = \frac{1}{M}\;\int x dm\\ \amp = \frac{3a^2}{\lambda_0 A L^3}\;\int_0^L \lambda_0\;(x/a)^2 A x dx\\ \amp = \frac{3a^2}{\lambda_0 A L^3}\; \frac{\lambda_0}{4a^2} AL^4 = \frac{3 L}{4}. \end{align*}

3. (Calculus) Practice with a Friend: CM of a Semi-disk.

A semi-disk of radius \(R\) has uniform density. Find its CM.
Hint.
Look at a verical strip.
Answer.
\(\frac{4R}{3\pi}\text{.}\)

4. (Calculus) CM of a Spherical Bowl.

A spherical bowl of radius \(R\) and height \(R\) has uniform density. Find its CM.
Hint.
Look at the mass element in a thin ring between \(\theta\) and \(\theta+d\theta\text{.}\)
Answer.
\(R/2\) above the center.
Solution.
First we get an expression of the tiny mass in the strip between \(\theta\) and \(\theta + d\theta\text{.}\) It will be area times density. For convenience, let’s take density = 1. The area will be circumference times thickness.
\begin{equation*} dm = (2\pi R \sin\theta)(R\, d\theta) \end{equation*}
From symmetry, the CM will be only \(zz_{cm}\text{.}\)
\begin{align*} z_{cm} \amp = \frac{\int_0^{\pi/2}\, z dm}{\int_0^{\pi/2}\, dm} \\ \amp = \frac{ 2\pi R^3\int_0^{\pi/2}\, \sin\theta\cos\theta \,d\theta}{2\pi R^2\int_0^{\pi/2}\, \sin\theta\, d\theta}\\ \amp = -\frac{R}{2} \int_0^{\pi/2} \sin 2\theta\, d \theta = \frac{R}{2}. \end{align*}
Figure 7.52.

5. (Calculus) Practice with a Friend: CM of a Hemisphere.

A hemisphere block of radius \(R\) has uniform density. Find its CM.
Answer.
\(\frac{3}{8} R\) above center.

6. Disk with a Hole - Negative Mass Trick.

Find the CM of a disk of radius \(R\) that has an off-center circular hole at a distance \(a\) from the center and of radius \(b \lt R\text{.}\)
Figure 7.53.
Answer.
\(\frac{b^2 a}{R^2-b^2}\) from center on the other side of the center of the hole.
Solution.
Let density of the disk material be \(\rho\text{.}\) If we fill the hole with material of density \(\rho\) and \(-\rho\text{,}\) it will be just the hole itself. This way, we get two disks, one of mass \(M = \pi R^2 \rho\) and the other \(m=-\pi b^2\rho\text{.}\)
Replacing these disks with their point mass equivalents at their CMs, we get two point masses \(M\) and \(m\) separated by distance \(a\text{.}\) Let us place them along \(x\)-axis with \(M\) at the origin and \(m\) at \(x=a\text{.}\) Then, the CM of the two, which is the CM of the original disk with the hole will be at
\begin{equation*} X_{cm} = \frac{M\times 0 + m \times a}{ M + m} = \frac{ma}{M+m}. \end{equation*}
Now, we express \(M\) and \(m\) in density and their areas.
\begin{equation*} X_{cm} = \frac{ \pi b^2 \rho a }{\pi R^2 \rho - \pi b^2 \rho} = \frac{b^2 a }{ R^2 - b^2}. \end{equation*}

7. Center of Mass of Cube with Missing Piece in one Corner.

A cube of side \(a\) is cut out of another cube of side \(b\) as shown in Figure 7.54. Find the location of the CM of the structure. Hint: Think of the missing part as a negative mass overlapping a positive mass.
Figure 7.54.
Solution.
As given in the hint we fill the space of the \(a\)-cube with both positive and negative mass and put the positive mass density \(\pm\rho\) to complete the \(b\)-cube.
Let the common corner of \(a\)- and \(b\)-cubes be the origin and the edges of the cubes be along the Cartesian coordinate. The \(a\)-cube can be replaced by a mass \(-\rho a^3\) at \((\frac{a}{2}, \frac{a}{2}, \frac{a}{2})\) and the \(b\)-cube can be replaced by a mass \(\rho b^3\) at \((\frac{b}{2}, \frac{b}{2}, \frac{b}{2})\text{.}\) Therefore, the CM of the given structure will be
\begin{align*} \amp X_{cm} = \frac{\rho b^3 (b/2) +[ - \rho a^3(a/2)] }{\rho b^3 - \rho a^3} = \frac{b^4 - a^4}{2(b^3 - a^3)}.\\ \amp Y_{cm} = \frac{b^4 - a^4}{2(b^3 - a^3)}.\\ \amp Z_{cm} = \frac{b^4 - a^4}{2(b^3 - a^3)}. \end{align*}