01 / 21

Mass, Density &
Center of Mass

Learn how to compute total mass from density functions and find the balance point of continuous distributions using integration.

Calculus 3

What is Density?

In physics and calculus, density describes how much mass is packed into a given length, area, or volume. Rather than a single number, density can vary from point to point: some regions are heavier than others.

Linear Density
Mass per unit length along a wire or rod: \(\rho(x)\) in \(\text{kg/m}\)
Area Density
Mass per unit area on a thin plate: \(\rho(x,y)\) in \(\text{kg/m}^2\)
Volume Density
Mass per unit volume in a solid: \(\rho(x,y,z)\) in \(\text{kg/m}^3\)

Computing Mass from Density

When density is constant, mass is simply density times size. When density varies, we must integrate the density function over the entire region.

\(dx\)
a b
\(dm = \rho(x)\,dx\)
Variable-density rod

Why Center of Mass?

The center of mass (or centroid for uniform density) is the balance point: the single location where you could support the entire object and it would not tip. It is essential in physics, engineering, and probability.

\(3 \text{ kg}\)
\(1 \text{ kg}\)
center of mass Balance Point shifts toward heavier side

Core Formulas: 1D Mass & Center of Mass

For a rod on the interval \([a, b]\) with linear density \(\rho(x)\):

Extending to 2D Regions

For a thin plate (lamina) in the \(xy\)-plane with area density \(\rho(x,y)\):

\(\bar{x}\)
\(\displaystyle \bar{x} = \frac{1}{M}\iint_R x\,\rho(x,y)\, dA\)
\(\bar{y}\)
\(\displaystyle \bar{y} = \frac{1}{M}\iint_R y\,\rho(x,y)\, dA\)

Centroid vs. Center of Mass

Centroid Center of Mass
Density Uniform (constant \(\rho\)) Variable \(\rho(x)\) or \(\rho(x,y)\)
Depends on Shape only Shape + density distribution
Formula (1D) \(\bar{x} = \frac{1}{b-a}\int_a^b x\, dx\) \(\bar{x} = \frac{\int_a^b x\rho(x)\,dx}{\int_a^b \rho(x)\,dx}\)
Key use Geometry, area calculations Physics, engineering

How to Find Center of Mass

1
Identify the region and the density function \(\rho\). Is it 1D (rod) or 2D (plate)?
2
Set up bounds. Determine the limits of integration from the geometry.
3
Compute total mass \(M = \int \rho\, d(\text{size})\).
4
Compute moments \(M_y = \int x\,\rho\, d(\text{size})\) and \(M_x = \int y\,\rho\, d(\text{size})\).
5
Divide: \(\bar{x} = M_y / M\) and \(\bar{y} = M_x / M\).

Example 1: Uniform Rod

A rod of length \(4 \text{ m}\) lies on \([0, 4]\) with constant density \(\rho = 3 \text{ kg/m}\). Find the mass and center of mass.

0 4
\(\rho = 3 \text{ kg/m}\) (constant)
\(\bar{x} = 2\)

Example 2: Variable Density Rod

A rod on \([0, 3]\) has density \(\rho(x) = 2x \text{ kg/m}\). Heavier toward the right end. Find \(M\) and \(\bar{x}\).

0 3
\(\rho(x) = 2x\) (gets denser \(\rightarrow\))
\(\bar{x} = 2\)
midpoint = 1.5

Example 3: 2D Lamina

Find the center of mass of a triangular plate with vertices \((0,0)\), \((2,0)\), \((0,3)\) and uniform density \(\rho = 1\).

x y (0,0) (2,0) (0,3)
\(\left(\frac{2}{3}, 1\right)\)
\(y = 3 - \frac{3x}{2}\)

Understanding Moments

A moment measures the tendency of mass to rotate about an axis. Multiplying mass by distance from an axis gives a "weighted distance" that tells us where the balance point lies.

\(M_y\): Moment about \(y\)-axis
\(\displaystyle \iint_R x\,\rho\, dA\)
Used to find \(\bar{x}\)
\(M_x\): Moment about \(x\)-axis
\(\displaystyle \iint_R y\,\rho\, dA\)
Used to find \(\bar{y}\)

Discrete vs. Continuous

Discrete (Point Masses) Continuous (Density)
Mass \(M = \sum m_i\) \(M = \int \rho\, d(\text{size})\)
\(\bar{x}\) \(\frac{\sum m_i x_i}{\sum m_i}\) \(\frac{\int x\,\rho\, d(\text{size})}{\int \rho\, d(\text{size})}\)
Analogy Finite number of weights on a beam Continuously distributed material

The Symmetry Shortcut

If the region and the density function are both symmetric about an axis, the center of mass lies on that axis. This can save significant computation.

\((0, \bar{y})\)
axis of symmetry
\(-r\)
\(r\)
\(0\)

Common Mistakes

✕ Swapping Moments
\(M_y\) uses \(x \cdot \rho\) (not \(y\)). The subscript tells you which axis you measure about, not which variable you multiply.
✕ Forgetting to Divide
The moment \(M_y\) is not the center of mass. You must divide by total mass: \(\bar{x} = M_y / M\).
✕ Ignoring Variable Density
Using centroid formulas when \(\rho\) varies. If density is not constant, you must include \(\rho(x)\) inside the integral.

Summary of Key Formulas

Quantity 1D (rod) 2D (lamina)
Mass \(M\) \(\int_a^b \rho(x)\, dx\) \(\iint_R \rho(x,y)\, dA\)
\(\bar{x}\) \(\frac{1}{M}\int_a^b x\rho\, dx\) \(\frac{1}{M}\iint_R x\rho\, dA\)
\(\bar{y}\) N/A \(\frac{1}{M}\iint_R y\rho\, dA\)
Uniform \(\rho\) Centroid: \(\frac{1}{b-a}\int_a^b x\, dx\) Centroid: \(\frac{1}{A}\iint_R x\, dA\)

Question 1 of 5

A rod on \([0, 2]\) has density \(\rho(x) = 4x\). What is the total mass?

Question 2 of 5

For a rod on \([0, 2]\) with \(\rho(x) = 4x\) and \(M = 8\), what is \(\bar{x}\)?

Question 3 of 5

A thin plate has uniform density and is symmetric about the \(y\)-axis. What can you conclude about \(\bar{x}\)?

Question 4 of 5

The moment \(M_y = \iint_R x\,\rho\, dA\) is used to find which coordinate of the center of mass?

Question 5 of 5

A rod on \([0, 1]\) has density \(\rho(x) = 6x^2\). Its center of mass \(\bar{x}\) is: