Modeling a Rod with Variable Density
A rod need not have the same mass in every unit of length. Its material may become denser along its length, or different sections may be made from different materials. To find where such a rod balances, account for both how much mass lies at each position and how far that mass is from the origin.
Place the rod along the \(x\)-axis from \(x=a\) to \(x=b\), where \(a<b\). Let \(\lambda(x)\) denote its linear density at position \(x\). Linear density is mass per unit length, so a short segment of length \(dx\) near \(x\) has mass approximately \(\lambda(x)\,dx\).
If \(x\) is measured in metres and \(\lambda\) in kilograms per metre, then \(m\) is in kilograms and \(Q\) is in kilogram-metres. The center-of-mass coordinate \(\bar{x}\) is in metres. The coordinate origin matters: a rod on \([2,6]\) is not described by the same coordinates as an identical rod on \([0,4]\).
Why the Center-of-Mass Formula Works
For a finite collection of point masses \(m_i\) located at coordinates \(x_i\), the balance coordinate is the mass-weighted average \(\sum_i x_i m_i/\sum_i m_i\). A rod can be treated as the limit of such collections: divide it into short segments, approximate each segment’s mass by its density times its length, and use a representative position in that segment.
For a segment of length \(\Delta x_i\) near \(x_i\), its mass is approximately \(\lambda(x_i)\Delta x_i\).
The approximate total mass is \(\sum_i\lambda(x_i)\Delta x_i\), and the approximate first moment is \(\sum_i x_i\lambda(x_i)\Delta x_i\).
These sums approach the integrals for mass and first moment. Their ratio therefore gives \(\bar{x}=Q/m\), as long as the total mass is positive.
This reasoning also explains why the first moment weights each bit of mass by its position. Mass far from the origin contributes more to the moment than the same amount of mass nearby.
Constant Linear Density
If \(\lambda(x)=c\) throughout the rod, where \(c>0\), then the density can be taken outside each integral. This gives the mass, first moment, and center of mass directly.
The center is the midpoint of the interval because constant density distributes equal mass along equal lengths. This remains true when the interval is shifted away from the origin.
Worked Example: Constant Density on a Shifted Interval
A rod occupies \(2\le x\le 8\) metres and has constant linear density \(3\) kilograms per metre. Find its mass, first moment about the origin, and center-of-mass coordinate.
The mass is
The first moment is
Therefore,
Check: the midpoint of the interval is \((2+8)/2=5\) metres, agreeing with the calculated center. Also, \(5(18)=90\) kilogram-metres, which recovers the first moment.
Affine Linear Density
An affine density has the form \(\lambda(x)=\alpha+\beta x\), or, on an interval starting at \(a\), \(\lambda(x)=\lambda_0+k(x-a)\). The second form makes the shift explicit: \(\lambda_0\) is the density at the left endpoint, and \(k\) is the rate at which density changes per unit length. The density must be nonnegative along the rod for the usual physical interpretation.
Writing the interval length as \(L=b-a\), substitute \(t=x-a\). Then \(0\le t\le L\), \(x=a+t\), and the density is \(\lambda_0+kt\). Integrating gives
The \(am\) term is essential: it accounts for the fact that the original coordinate is \(x=a+t\), not merely the local coordinate \(t\). Thus, when \(m>0\),
Worked Example: Affine Density on a Shifted Interval
A rod occupies \(2\le x\le 6\) metres and has density \(\lambda(x)=1+\tfrac12(x-2)\) kilograms per metre. Find its mass, first moment, and center of mass.
Here \(a=2\), \(L=6-2=4\), \(\lambda_0=1\), and \(k=\tfrac12\). The mass is
The first moment is
Consequently,
Check by integrating in the original coordinate: \(\lambda(x)=x/2\), so \(Q=\int_2^6 x(x/2)\,dx=\left[x^3/6\right]_2^6=(216-8)/6=104/3\) kilogram-metres. This agrees with the formula, and \(8(13/3)=104/3\).
Piecewise Linear Density
A rod may have different density rules on adjoining sections. If the rod is divided at \(c\), with density \(\lambda_1\) on \([a,c]\) and \(\lambda_2\) on \([c,b]\), calculate the mass and first moment of each section and add them:
The same procedure applies to any finite number of sections. A jump in density at a joining point does not require a separate mass term: a single point has zero length and contributes no mass to these integrals. At the end, divide the total first moment by the total mass, not the other way around.
Worked Example: Two Constant-Density Sections
A rod runs from \(x=1\) to \(x=5\) metres. Its density is \(1\) kilogram per metre on \([1,3]\) and \(3\) kilograms per metre on \([3,5]\). Find the total mass, first moment, and center of mass.
Calculate the mass of each section:
The total mass is \(m=2+6=8\) kilograms. The first moments of the two sections are
Thus \(Q=4+24=28\) kilogram-metres, and
Check: \(8(3.5)=28\) kilogram-metres. The center lies to the right of the interval midpoint \(3\) metres, as expected because the right-hand section is denser.
A Common Coordinate Mistake
When using a local coordinate \(t=x-a\), it is easy to calculate a moment about the left endpoint and mistake it for a moment about the origin. For the affine example above, the local first moment is \(8+32/3=56/3\) kilogram-metres. Dividing by the mass gives \(7/3\) metres, but this is the center’s distance from \(x=2\), not its coordinate measured from the origin.
The correction is to restore the shift: \(\bar{x}=2+7/3=13/3\) metres. Equivalently, the first moment about the origin must include \(am=(2)(8)=16\) kilogram-metres, giving \(Q=16+56/3=104/3\) kilogram-metres. A useful check is whether the answer is expressed in the coordinate system specified for the rod.
Check Your Understanding
For each question, identify the mass and moment integrals before evaluating them.
- A rod occupies \([3,7]\) and has constant density \(2\) kilograms per metre. What are its mass, first moment about the origin, and center coordinate?
- For an affine density \(\lambda(x)=\lambda_0+k(x-a)\) on \([a,a+L]\), which term in the first-moment formula accounts for the shifted coordinate?
- A piecewise rod has two sections with masses \(m_1,m_2\) and first moments \(Q_1,Q_2\). How do you obtain its total mass and center coordinate?
- Why does a jump in density at a single joining point contribute no separate mass?
- A local-coordinate calculation gives a center distance of \(2\) metres from the left endpoint \(x=4\). What is the center coordinate measured from the origin?