SECTION 1
Historical Context & Motivation
The concepts of mass, density, and center of mass lie at the intersection of physics, engineering, and mathematics. Ancient Greek mathematicians were among the first to formalize the notion of a balance point for rigid bodies, and the development of calculus in the seventeenth century unlocked the ability to handle objects whose density varies continuously from point to point. The transition from discrete sums to continuous integrals was not merely a technical upgrade—it fundamentally changed how scientists model real-world objects, from the mass distribution of planets to the structural analysis of bridges.
~250 BCE • Archimedes and the Lever
1687 • Newton's Principia
1740s • Euler & Continuum Mechanics
1850s • Riemann's Integration Theory
In a first course on calculus, you likely computed the mass of a one-dimensional rod with variable linear density using a single integral. In Calculus 3 we extend this idea to two- and three-dimensional regions using double and triple integrals. The central question this lesson addresses is: given a planar lamina or a solid whose density varies from point to point, how do we compute its total mass and locate the unique point—the center of mass—at which the object would balance perfectly under uniform gravity?
SECTION 2
Core Principles & Definitions
Before diving into integrals, it is essential to pin down several foundational ideas. The notion of density bridges geometry and physics: it encodes how much matter occupies each infinitesimal piece of a region. Once density is given as a function, every quantity of interest—mass, moments, center of mass—is expressed as an integral of density over the region.
Density Function ρ(x, y)
Total Mass via Integration
Moment About an Axis
Center of Mass (x̄, ȳ)
Centroid vs. Center of Mass
KEY TAKEAWAY
SECTION 3
Visual Explanation — Density Distribution on a Lamina
The diagram above illustrates the fundamental principle at work: when density is not uniform, the center of mass is pulled away from the geometric centroid and toward the region of greater density. Each infinitesimal rectangle of area dA = dx dy carries mass ρ(x, y) dx dy. The double integral sums all such contributions to yield the total mass M. The first moments Mx and My then compute the mass-weighted average of the y- and x-coordinates, respectively. This averaging process is the continuous analogue of computing a weighted mean in statistics.
SECTION 4
Mathematical Framework
We now formalize the definitions introduced in Section 2. Let D be a bounded region in ℝ² and let ρ(x, y) be a continuous, non-negative density function defined on D. All of the quantities below follow from the idea that mass = density × area, extended to infinitesimal elements and summed via integration.
TOTAL MASS
M is the total mass of the lamina. The integral is taken over the entire region D. If ρ is constant, this reduces to M = ρ × Area(D).
FIRST MOMENT ABOUT THE x-AXIS
Mx measures the tendency of the mass distribution to rotate about the x-axis. Each infinitesimal mass element ρ dA is weighted by its perpendicular distance y from the x-axis.
FIRST MOMENT ABOUT THE y-AXIS
My measures the tendency of the mass distribution to rotate about the y-axis. Each mass element is weighted by its perpendicular distance x from the y-axis.
CENTER OF MASS
The center of mass (x̄, ȳ) is the mass-weighted average position. Note the subscript conventions: My (moment about y-axis) gives the x̄ coordinate, and Mx (moment about x-axis) gives the ȳ coordinate. This cross-pairing is a common source of confusion.
Subscript Warning
For three-dimensional solids, the framework extends naturally. If E is a region in ℝ³ and ρ(x, y, z) is the volume density, then M = ∭E ρ dV, and the center of mass has three coordinates: x̄ = (1/M) ∭ x ρ dV, ȳ = (1/M) ∭ y ρ dV, z̄ = (1/M) ∭ z ρ dV. The conceptual structure is identical—only the dimensionality of the integral changes.
SECTION 5
From Discrete Point Masses to Continuous Distributions
The continuous formulas above are direct generalizations of the familiar discrete case. Recall that for n point masses m₁, m₂, …, mₙ located at positions (x₁, y₁), …, (xₙ, yₙ), the center of mass is x̄ = Σ mᵢxᵢ / Σ mᵢ and ȳ = Σ mᵢyᵢ / Σ mᵢ. The transition to continuous distributions replaces each finite mass mᵢ with the infinitesimal mass element ρ(x, y) dA, and the finite sum becomes a double integral. Understanding this passage from summation to integration is essential because it reveals that every integral formula in this lesson is simply a continuous weighted average.
| Quantity | Discrete (n point masses) | Continuous (2D lamina) |
|---|---|---|
| Total Mass | M = Σ mᵢ | M = ∬ ρ(x, y) dA |
| Moment about y-axis | My = Σ mᵢ xᵢ | My = ∬ x ρ(x, y) dA |
| Moment about x-axis | Mx = Σ mᵢ yᵢ | Mx = ∬ y ρ(x, y) dA |
| Center of Mass x̄ | x̄ = Σ mᵢ xᵢ / Σ mᵢ | x̄ = My / M |
| Center of Mass ȳ | ȳ = Σ mᵢ yᵢ / Σ mᵢ | ȳ = Mx / M |
Discrete vs. continuous formulas for mass and center of mass
SECTION 6
Worked Example — Triangular Lamina with Variable Density
Find the mass and center of mass of the triangular lamina with vertices (0, 0), (2, 0), and (0, 4) if the density function is ρ(x, y) = 1 + x + y.
Triangular Lamina: ρ(x, y) = 1 + x + y
- 1
Step 1 — Describe the Region D
The triangle with vertices (0, 0), (2, 0), (0, 4) has its hypotenuse along the line connecting (2, 0) and (0, 4). The equation of this line is y = 4 − 2x, or equivalently x = (4 − y)/2. Choosing to integrate with x as the inner variable, for each fixed y in [0, 4], x ranges from 0 to (4 − y)/2.D: 0 ≤ y ≤ 4, 0 ≤ x ≤ (4 − y)/2 - 2
Step 2 — Set Up the Mass Integral
M = ∫₀⁴ ∫₀^{(4−y)/2} (1 + x + y) dx dy. We evaluate the inner integral first with respect to x, treating y as a constant.M = ∫₀⁴ [ x + x²/2 + xy ] from x=0 to x=(4−y)/2 dy - 3
Step 3 — Evaluate the Inner Integral
Let u = (4 − y)/2. Substituting: the inner integral evaluates to u + u²/2 + uy = (4 − y)/2 + (4 − y)²/8 + y(4 − y)/2. Expanding and simplifying: (4 − y)/2 + (16 − 8y + y²)/8 + (4y − y²)/2. Combining over a common denominator of 8: [4(4 − y) + (16 − 8y + y²) + 4(4y − y²)] / 8 = [16 − 4y + 16 − 8y + y² + 16y − 4y²] / 8 = [32 + 4y − 3y²] / 8.Inner integral = (32 + 4y − 3y²) / 8 - 4
Step 4 — Evaluate the Outer Integral for M
M = ∫₀⁴ (32 + 4y − 3y²)/8 dy = (1/8)[32y + 2y² − y³] from 0 to 4 = (1/8)[128 + 32 − 64] = (1/8)(96) = 12.M = 12 - 5
Step 5 — Compute Mᵧ (Moment about y-axis)
My = ∫₀⁴ ∫₀^{(4−y)/2} x(1 + x + y) dx dy. The inner integrand is x + x² + xy. Integrating with respect to x: [x²/2 + x³/3 + x²y/2] from 0 to u = (4−y)/2. After expansion and simplification (combining the polynomial in y), My = ∫₀⁴ [(4−y)²/8 + (4−y)³/24 + y(4−y)²/8] dy. Evaluating this integral yields My = 8.My = 8, so x̄ = 8/12 = 2/3 - 6
Step 6 — Compute Mₓ (Moment about x-axis)
Mx = ∫₀⁴ ∫₀^{(4−y)/2} y(1 + x + y) dx dy. The inner integrand is y + xy + y². Following the same procedure—integrating x first, then y—and simplifying yields Mx = 20.Mx = 20, so ȳ = 20/12 = 5/3 - 7
Step 7 — State the Center of Mass
The center of mass of the triangular lamina is (x̄, ȳ) = (2/3, 5/3). Compare this with the centroid of the triangle, which is the average of the vertices: ((0+2+0)/3, (0+0+4)/3) = (2/3, 4/3). The center of mass has a higher ȳ-coordinate than the centroid because the density 1 + x + y increases with y, pulling the balance point upward.Center of Mass = (2/3, 5/3)
SECTION 7
Uniform vs. Variable Density — When It Matters
A natural question is: when does variable density actually change the computation? If ρ is constant, it factors out of every integral, and the center of mass formulas simplify dramatically. In that case x̄ = (1/A)∬ x dA and ȳ = (1/A)∬ y dA, where A = Area(D), and we are computing the centroid of the region—a purely geometric quantity that depends only on shape, not material properties. The table below highlights the key contrasts.
| Feature | Uniform Density (ρ = const) | Variable Density ρ(x, y) |
|---|---|---|
| Mass formula | M = ρ · Area(D) | M = ∬ ρ(x, y) dA |
| Center of mass = centroid? | Yes — density cancels | No — shifts toward heavier region |
| Computation difficulty | Only need area and centroid integrals | Three separate double integrals (M, Mx, My) |
| Symmetry shortcuts | If D is symmetric about an axis, the centroid lies on that axis | Symmetry of D alone is not sufficient; ρ must also be symmetric about the axis |
| Typical applications | Thin metal plates, homogeneous fluids | Temperature-dependent materials, alloys, geological strata |
Comparison of uniform and variable density scenarios
KEY TAKEAWAY
SECTION 8
Connections to Moments of Inertia and Higher Dimensions
The first moments Mx and My studied in this lesson represent only the beginning of a hierarchy of mass moments. The next level—second moments or moments of inertia—are obtained by integrating the square of the distance from an axis, weighted by density. These quantities govern rotational dynamics: how resistant an object is to angular acceleration. The table below contrasts the concepts introduced here with their advanced counterparts.
| Concept | This Lesson (First Moments) | Advanced (Second Moments) |
|---|---|---|
| What it measures | Balance point (center of mass) | Resistance to rotation (moment of inertia) |
| Integrand | x · ρ or y · ρ | x² · ρ, y² · ρ, or (x² + y²) · ρ |
| Notation | Mx, My | Ix, Iy, I₀ |
| Physical application | Locating supports, balancing objects | Designing flywheels, analyzing vibrations |
| Dimensionality extensions | 2D → 3D via triple integrals | Full inertia tensor (3 × 3 matrix) in 3D |
First moments (this lesson) versus second moments (upcoming topics)
Beyond moments of inertia, these ideas extend to probability theory (where ρ becomes a probability density function and the center of mass becomes the expected value), fluid mechanics (where density-weighted integrals determine buoyancy and flow characteristics), and even general relativity (where the stress-energy tensor generalizes mass distribution). Mastering the integral setup for mass and center of mass provides a template for all of these advanced applications.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Summary & Key Formulas
Summary
This lesson introduced the integral formulation for computing mass, first moments, and center of mass of two-dimensional laminae with variable density function ρ(x, y). The total mass is M = ∬ ρ dA; the first moments are Mx = ∬ y ρ dA and My = ∬ x ρ dA; and the center of mass coordinates are x̄ = My / M and ȳ = Mx / M. When density is uniform, the center of mass reduces to the centroid, a purely geometric average of position.
These formulas are direct continuous analogues of the discrete weighted-average formulas for point masses. The key computational steps are: (1) describe the region D with appropriate integration bounds, (2) set up three double integrals for M, Mx, and My, and (3) divide moments by mass to obtain the center of mass. Symmetry arguments can often eliminate one or more integrals entirely. Looking ahead, these ideas extend to triple integrals in 3D, moments of inertia (second moments), and applications in probability, physics, and engineering.