Why These Calculations Are Easy to Misread
A centroid or moment of inertia is built from integrals over a region, but each integral weights the region differently. A first moment uses a signed coordinate; a moment of inertia uses the square of a perpendicular distance. Density weights both when the lamina is nonuniform. Confusing any of these ingredients can produce a plausible-looking number that describes the wrong quantity.
The safest approach is to connect every formula to its meaning before evaluating it. Ask: which coordinate measures distance from the axis? Is the density included? Should the result be positive or signed? Do its units and location make physical sense?
Notice the pairing: the first moment about the \(x\)-axis uses \(y\), while the moment of inertia about the \(x\)-axis uses \(y^2\). Both use distance measured perpendicular to the \(x\)-axis. The corresponding integrals about the \(y\)-axis use \(x\) and \(x^2\).
Why the Axis Determines the Coordinate
A point \((x,y)\) has perpendicular distance \(|y|\) from the \(x\)-axis and \(|x|\) from the \(y\)-axis. A small piece of lamina with area \(dA\) has mass \(\rho\,dA\). Its contribution to the moment of inertia is its mass times the square of its distance from the axis. Thus, for the \(x\)-axis, the contribution is \(y^2\rho\,dA\); for the \(y\)-axis, it is \(x^2\rho\,dA\).
This argument also explains why an inertia integral cannot be negative when \(\rho\geq 0\): every contribution \(y^2\rho\,dA\) or \(x^2\rho\,dA\) is nonnegative. A negative computed inertia signals an error in the setup or evaluation.
Worked Example: A Triangle and a Swapped First Moment
Worked Example: A Triangle and a Swapped First Moment
Let \(R\) be the triangle \(0\leq x\leq 2\), \(0\leq y\leq x\), with constant density \(\rho=3\ \mathrm{kg/m^2}\). Coordinates are measured in meters. Find the mass and centroid, and check the result.
At each \(x\), the vertical coordinate runs from \(0\) to \(x\). Therefore
The first moment about the \(y\)-axis uses \(x\):
The first moment about the \(x\)-axis uses \(y\):
Hence
Check the defining relations: \(m\bar{x}=6\cdot(4/3)=8=M_y\), and \(m\bar{y}=6\cdot(2/3)=4=M_x\). Also \(0\leq\bar{y}\leq\bar{x}\leq2\), so the centroid lies inside the triangle.
A common mistake is to set \(\bar{x}=M_x/m\) and \(\bar{y}=M_y/m\). That would give \((2/3,4/3)\), which violates the triangle's condition \(y\leq x\). The correction is not to swap answers until they look plausible: use the defining relations \(\bar{x}=M_y/m\) and \(\bar{y}=M_x/m\).
Sign Errors in First Moments
First moments are signed because the coordinate in their integrand can be positive or negative. Material below the \(x\)-axis contributes negatively to \(M_x\), while material above it contributes positively. Material left of the \(y\)-axis contributes negatively to \(M_y\), while material right of it contributes positively.
This does not mean that mass is negative. With \(\rho\geq0\), mass is nonnegative. Nor does a negative first moment mean that the calculation must be wrong: it may correctly indicate that the centroid lies on the negative side of the relevant axis. What would be wrong is replacing \(y\) or \(x\) by an absolute value in a first-moment integral. Absolute values would remove the sign that locates the centroid.
For a region contained in \(x\geq0\), for example, \(M_y=\iint_R x\rho\,dA\geq0\), so \(\bar{x}\geq0\) when \(m>0\). Similar sign checks apply to the other coordinate. Such checks are necessary conditions, not substitutes for evaluating the integrals.
Worked Example: Inertia About the Correct Axis
Worked Example: Inertia About the Correct Axis
Take the rectangle \(1\leq x\leq3\), \(-1\leq y\leq1\), with constant density \(2\ \mathrm{kg/m^2}\), with coordinates in meters. Calculate \(I_x\) and \(I_y\), and identify what happens if the coordinates are confused.
For the \(x\)-axis, the perpendicular distance is \(|y|\), so
For the \(y\)-axis, the perpendicular distance is \(|x|\), so
Both values are nonnegative, as required. Since the rectangle is much farther from the \(y\)-axis than from the \(x\)-axis, the larger value \(I_y\) is also consistent with the geometry. The units are \(\mathrm{kg\,m^2}\), because each integrand includes a mass element and a squared length.
If \(x^2\) is mistakenly used for \(I_x\), the calculation produces \(104/3\ \mathrm{kg\,m^2}\), which is actually \(I_y\). The number is positive and has the right units, but it answers the wrong question. Checking only sign and units is not enough; the coordinate must match the axis.
Density Must Weight Every Mass-Based Integral
For a uniform lamina, density is constant and may be factored out of an integral. For a nonuniform lamina, \(\rho\) varies across the region and must remain inside the integral. Omitting it is equivalent to treating equal areas at different densities as though they had equal mass.
The relevant units help expose omissions. If \(\rho\) is mass per area, then \(\iint_R\rho\,dA\) has units of mass; a first moment has units of mass times length; and a moment of inertia has units of mass times length squared. An integral that gives area where mass is required has omitted density or otherwise used inconsistent units.
Worked Example: Variable Density and a Missing Weight
Worked Example: Variable Density and a Missing Weight
Let \(R\) be the rectangle \(0\leq x\leq1\), \(0\leq y\leq2\), with coordinates in meters and density \(\rho(x,y)=(1+x/(1\ \mathrm{m}))\ \mathrm{kg/m^2}\). Find the mass, centroid, and coordinate-axis moments of inertia.
On using the numerical value of \(x\) in meters, the density factor in the integrals is \(1+x\). The mass is
The first moment about the \(y\)-axis is
The first moment about the \(x\)-axis is
Therefore \(\bar{x}=M_y/m=(5/3)/3=5/9\ \mathrm{m}\) and \(\bar{y}=M_x/m=3/3=1\ \mathrm{m}\). The checks \(m\bar{x}=3(5/9)=5/3=M_y\) and \(m\bar{y}=3(1)=3=M_x\) recover the computed first moments. The coordinates also lie within the rectangle's bounds.
For inertia about the \(x\)-axis,
For inertia about the \(y\)-axis,
Both inertia values are nonnegative and have the required units. If density were omitted from the mass calculation, the answer would be the rectangle's area, \(2\), not its mass \(3\ \mathrm{kg}\). Omitting density from the moment integrals would likewise calculate area-weighted quantities for a uniform lamina, not the given nonuniform lamina.
A Reliable Error-Checking Routine
Before accepting a result, compare it with the definitions rather than relying on memory. The following checks target different kinds of error; passing one does not guarantee that all the others are correct.
For a centroid coordinate, determine which first moment supplies it: \(\bar{x}=M_y/m\) and \(\bar{y}=M_x/m\).
First moments use a signed coordinate; inertia uses the square of the perpendicular distance. Check the axis before writing the integrand.
Use \(\rho\,dA\) for a mass element. If density varies, keep it as a function in the integral.
For nonnegative density, mass and inertia cannot be negative. Confirm the units are mass, mass times length, or mass times length squared, as appropriate.
Compare centroid coordinates with the region's extent, then verify \(m\bar{x}=M_y\) and \(m\bar{y}=M_x\).
For nonnegative density and positive mass, the centroid is a mass-weighted average of points in the lamina. It must therefore lie in the convex hull of the region. For a rectangle, this gives a simple coordinate-bound check; for a nonconvex region, the centroid need not lie inside the region itself. Use the convex hull, not the stronger and generally false claim that every centroid must lie within a nonconvex region.
Check Your Understanding
For each question, identify which definition or check helps diagnose the calculation.
- Which coordinate appears in the integrand for \(I_x\), and why is that coordinate squared?
- A lamina lies entirely in \(x<0\) and has positive mass. What sign should you expect for \(M_y\) and \(\bar{x}\)?
- A nonuniform lamina's mass integral is written as \(\iint_R dA\). What has been assumed or omitted?
- A computed \(I_y\) is negative even though \(\rho\geq0\). What does this tell you?
- If \(m=5\ \mathrm{kg}\) and \(M_x=10\ \mathrm{kg\,m}\), what is \(\bar{y}\), and which defining relation verifies it?