Tutorials › Calculus III › Common Errors In Centroid And Inertia Calculations

Area, Mass, and Moments · Tutorial 596 of 999

Common Errors In Centroid And Inertia Calculations

Use definitions, dimensions, and geometric checks to diagnose common mistakes in planar centroid and moment-of-inertia calculations.

Intermediate 10 min read

What You'll Learn

  • Distinguish the first moment about an axis from the coordinate of the centroid it determines.
  • Match each coordinate and squared distance to the correct axis.
  • Check whether density belongs in each mass and moment integral.
  • Use signs, physical location, and units to identify implausible answers.
  • Verify centroid and inertia calculations by returning to their defining integrals.

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?

Convention: For a lamina occupying a planar region \(R\) with nonnegative areal density \(\rho(x,y)\), its mass is \(m=\iint_R \rho\,dA\). Its first moments are \(M_x=\iint_R y\rho\,dA\) and \(M_y=\iint_R x\rho\,dA\). If \(m>0\), its centroid is \((\bar{x},\bar{y})=(M_y/m,M_x/m)\). Its moments of inertia about the coordinate axes are \(I_x=\iint_R y^2\rho\,dA\) and \(I_y=\iint_R x^2\rho\,dA\).

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.

Diagnostic rule: The name of the axis tells you which perpendicular distance to use. For inertia about the \(x\)-axis, square \(y\); for inertia about the \(y\)-axis, square \(x\).

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

$$ m=\int_0^2\int_0^x 3\,dy\,dx =\int_0^2 3x\,dx =3\left[\frac{x^2}{2}\right]_0^2 =6\ \mathrm{kg}. $$

The first moment about the \(y\)-axis uses \(x\):

$$ M_y=\int_0^2\int_0^x 3x\,dy\,dx =\int_0^2 3x^2\,dx =3\left[\frac{x^3}{3}\right]_0^2 =8\ \mathrm{kg\,m}. $$

The first moment about the \(x\)-axis uses \(y\):

$$ M_x=\int_0^2\int_0^x 3y\,dy\,dx =\int_0^2 3\left[\frac{y^2}{2}\right]_0^x dx =\int_0^2 \frac{3x^2}{2}\,dx =\frac{3}{2}\cdot\frac{8}{3} =4\ \mathrm{kg\,m}. $$

Hence

$$ \bar{x}=\frac{M_y}{m}=\frac{8}{6}=\frac{4}{3}\ \mathrm{m}, \qquad \bar{y}=\frac{M_x}{m}=\frac{4}{6}=\frac{2}{3}\ \mathrm{m}. $$

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

$$ \begin{aligned} I_x &=\int_1^3\int_{-1}^1 y^2(2)\,dy\,dx\\ &=2\left(\int_1^3 dx\right)\left(\int_{-1}^1 y^2\,dy\right)\\ &=2(2)\left[\frac{y^3}{3}\right]_{-1}^1 =4\left(\frac{1}{3}-\left(-\frac{1}{3}\right)\right) =\frac{8}{3}\ \mathrm{kg\,m^2}. \end{aligned} $$

For the \(y\)-axis, the perpendicular distance is \(|x|\), so

$$ \begin{aligned} I_y &=\int_1^3\int_{-1}^1 x^2(2)\,dy\,dx\\ &=2\left(\int_1^3 x^2\,dx\right)\left(\int_{-1}^1dy\right)\\ &=2\left[\frac{x^3}{3}\right]_1^3(2) =4\left(\frac{27-1}{3}\right) =\frac{104}{3}\ \mathrm{kg\,m^2}. \end{aligned} $$

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

$$ m=\int_0^1\int_0^2(1+x)\,dy\,dx =2\int_0^1(1+x)\,dx =2\left(1+\frac12\right) =3\ \mathrm{kg}. $$

The first moment about the \(y\)-axis is

$$ \begin{aligned} M_y &=\int_0^1\int_0^2x(1+x)\,dy\,dx\\ &=2\int_0^1(x+x^2)\,dx =2\left(\frac12+\frac13\right) =\frac53\ \mathrm{kg\,m}. \end{aligned} $$

The first moment about the \(x\)-axis is

$$ \begin{aligned} M_x &=\int_0^1\int_0^2y(1+x)\,dy\,dx\\ &=\left(\int_0^2y\,dy\right)\left(\int_0^1(1+x)\,dx\right) =2\cdot\frac32 =3\ \mathrm{kg\,m}. \end{aligned} $$

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,

$$ \begin{aligned} I_x &=\int_0^1\int_0^2 y^2(1+x)\,dy\,dx\\ &=\left(\int_0^2 y^2\,dy\right)\left(\int_0^1(1+x)\,dx\right) =\frac83\cdot\frac32 =4\ \mathrm{kg\,m^2}. \end{aligned} $$

For inertia about the \(y\)-axis,

$$ \begin{aligned} I_y &=\int_0^1\int_0^2 x^2(1+x)\,dy\,dx\\ &=2\int_0^1(x^2+x^3)\,dx =2\left(\frac13+\frac14\right) =\frac76\ \mathrm{kg\,m^2}. \end{aligned} $$

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.

1
Identify the quantity.
For a centroid coordinate, determine which first moment supplies it: \(\bar{x}=M_y/m\) and \(\bar{y}=M_x/m\).
2
Match the integrand to the axis.
First moments use a signed coordinate; inertia uses the square of the perpendicular distance. Check the axis before writing the integrand.
3
Include density.
Use \(\rho\,dA\) for a mass element. If density varies, keep it as a function in the integral.
4
Check signs and units.
For nonnegative density, mass and inertia cannot be negative. Confirm the units are mass, mass times length, or mass times length squared, as appropriate.
5
Check location and definitions.
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.

  1. Which coordinate appears in the integrand for \(I_x\), and why is that coordinate squared?
  2. A lamina lies entirely in \(x<0\) and has positive mass. What sign should you expect for \(M_y\) and \(\bar{x}\)?
  3. A nonuniform lamina's mass integral is written as \(\iint_R dA\). What has been assumed or omitted?
  4. A computed \(I_y\) is negative even though \(\rho\geq0\). What does this tell you?
  5. If \(m=5\ \mathrm{kg}\) and \(M_x=10\ \mathrm{kg\,m}\), what is \(\bar{y}\), and which defining relation verifies it?