Tutorials › Calculus I › Mass from a One-Dimensional Density

Average Value and Accumulated Quantities · Tutorial 1291 of 1495

Mass from a One-Dimensional Density

You will calculate the mass of a rod by adding up the mass of its small pieces, using a definite integral of its linear density over the rod’s length.

Intermediate 10 min read

What You'll Learn

  • Interpret linear density as mass per unit length.
  • Set integration bounds from a rod’s position endpoints.
  • Derive the mass integral from a sum of small segment masses.
  • Calculate rod mass for several position-dependent density models.
  • Check units and identify when a density model is physically valid.
  • Recognize why a single density value times the rod’s length is not generally enough.

From Density to Total Mass

A rod can have different amounts of mass in different parts. If one region is made of a denser material, for example, equal-length pieces from that region and a lighter region will not have equal masses. To find the mass of the whole rod, we need to account for how its density varies along its length.

The relevant quantity is linear density: mass per unit length. When the density depends on position, the total mass is found by accumulating the density over the rod’s interval. The definite integral expresses that accumulation.

Key idea: If \(\rho(x)\) is the rod’s linear density at position \(x\), then a short piece of length \(\Delta x\) near \(x\) has mass approximately \(\rho(x)\Delta x\). The mass of the whole rod is obtained by adding these contributions over its length.

Set Up the Physical Model

Place the rod along a coordinate axis. Suppose it extends from position \(x=a\) to position \(x=b\), where \(a\le b\). The variable \(x\) records position along the rod, and \(\rho(x)\) gives the linear density at that position.

Definition: If \(\rho(x)\) is a nonnegative, integrable linear density on the interval \([a,b]\), the mass \(M\) of the rod on that interval is $$ M=\int_a^b \rho(x)\,dx. $$ If \(\rho\) is measured in kilograms per meter and \(x\) in meters, then \(M\) is measured in kilograms.

The bounds are the positions of the rod’s two ends, not necessarily zero and its length. For instance, a rod occupying positions from \(2\) m to \(6\) m has length \(4\) m, but its mass integral has bounds \(2\) and \(6\).

The formula requires a density model on the interval that can be integrated. In physical applications, density should also be nonnegative throughout the rod: a negative value would not represent a physical mass per unit length. A model that becomes negative on the stated interval must be reconsidered rather than interpreted as ordinary rod density.

Why the Integral Gives Mass

We can justify the formula by dividing the rod into short segments. On a very short segment, the density changes little, so its mass is approximately the density at a point in the segment multiplied by the segment’s length. Adding those approximate masses gives an approximation to the total mass.

1
Partition the rod.
Divide \([a,b]\) into subintervals with lengths \(\Delta x_i\). Choose a sample position \(x_i^*\) in each subinterval.
2
Approximate each segment’s mass.
On a segment that is sufficiently short, density is nearly constant, so its mass is approximately \(\rho(x_i^*)\Delta x_i\).
3
Add the segment contributions.
The sum \(\sum_i \rho(x_i^*)\Delta x_i\) approximates the mass of the entire rod.
4
Take the limit.
As the largest segment length tends to zero, these Riemann sums converge to the definite integral \(\int_a^b \rho(x)\,dx\), which is the total mass.

This argument explains why the density is multiplied by a small length before the contributions are added. Density alone is mass per length, not mass. Each product \(\rho(x_i^*)\Delta x_i\) has units of mass, and the integral retains those units.

Worked Examples

Worked Example: A Density That Increases Along the Rod

A rod occupies \(0\le x\le 4\) meters and has density \(\rho(x)=(2\ \text{kg/m})+(3\ \text{kg/m}^2)x\). Find its mass.

The endpoints give the integration bounds \(0\) m and \(4\) m. Integrate the density with respect to position:

$$ \begin{aligned} M &=\int_0^{4\text{ m}}\left((2\ \text{kg/m})+(3\ \text{kg/m}^2)x\right)\,dx\\ &=\left[(2\ \text{kg/m})x+\left(\frac{3}{2}\ \text{kg/m}^2\right)x^2\right]_0^{4\text{ m}}\\ &=\left(8\ \text{kg}+24\ \text{kg}\right)-0\\ &=32\ \text{kg}. \end{aligned} $$

Check the antiderivative by differentiating with respect to \(x\): \(\frac{d}{dx}\big((2\ \text{kg/m})x+(\frac{3}{2}\ \text{kg/m}^2)x^2\big)=(2\ \text{kg/m})+(3\ \text{kg/m}^2)x=\rho(x)\). The endpoint evaluation uses \(x=4\) m and \(x=0\) m, and each term in the result has units of kilograms. Thus the mass is \(32\) kg.

Worked Example: A Density That Decreases Along the Rod

A rod occupies \(2\le x\le 6\) meters. Its density is \(\rho(x)=(5\ \text{kg/m})-(0.5\ \text{kg/m}^2)x\). Find the mass.

The model remains positive over the rod: its density is \(4\) kg/m at \(x=2\) m and \(2\) kg/m at \(x=6\) m. Use the actual endpoint positions as bounds:

$$ \begin{aligned} M &=\int_{2\text{ m}}^{6\text{ m}}\left((5\ \text{kg/m})-(0.5\ \text{kg/m}^2)x\right)\,dx\\ &=\left[(5\ \text{kg/m})x-(0.25\ \text{kg/m}^2)x^2\right]_{2\text{ m}}^{6\text{ m}}\\ &=\left(30\ \text{kg}-9\ \text{kg}\right)-\left(10\ \text{kg}-1\ \text{kg}\right)\\ &=21\ \text{kg}-9\ \text{kg}\\ &=12\ \text{kg}. \end{aligned} $$

Differentiate the antiderivative: \(\frac{d}{dx}\big((5\ \text{kg/m})x-(0.25\ \text{kg/m}^2)x^2\big)=(5\ \text{kg/m})-(0.5\ \text{kg/m}^2)x\), as required. Subtracting the lower-end value from the upper-end value gives \(12\) kg, a positive mass with the correct units.

Worked Example: A Curved Density Profile

A rod occupies \(0\le x\le 2\) meters and has density \(\rho(x)=(1\ \text{kg/m})+(1\ \text{kg/m}^3)x^2\). Find its mass.

Although the density is not linear in \(x\), it is a position-dependent linear density, so the same mass formula applies:

$$ \begin{aligned} M &=\int_0^{2\text{ m}}\left((1\ \text{kg/m})+(1\ \text{kg/m}^3)x^2\right)\,dx\\ &=\left[(1\ \text{kg/m})x+\left(\frac{1}{3}\ \text{kg/m}^3\right)x^3\right]_0^{2\text{ m}}\\ &=2\ \text{kg}+\frac{8}{3}\ \text{kg}\\ &=\frac{14}{3}\ \text{kg}. \end{aligned} $$

For a check, differentiating the antiderivative gives \((1\ \text{kg/m})+(1\ \text{kg/m}^3)x^2\), exactly the density function. Evaluating it at the endpoints gives \(\frac{14}{3}\) kg minus \(0\) kg. The units and positive sign are consistent with a mass.

Common Pitfall: Using One Density Value for the Whole Rod

A frequent error is to choose a density value at one point and multiply it by the full rod length, as if the density were constant. That is generally not the same as accumulating a varying density along the rod.

For the rod in the third example, the midpoint is \(x=1\) m, and \(\rho(1\text{ m})=2\) kg/m. Treating this midpoint density as if it applied everywhere gives the incorrect calculation

$$ (2\ \text{kg/m})(2\ \text{m})=4\ \text{kg}. $$

The integral gives \(\frac{14}{3}\) kg, not \(4\) kg. The midpoint calculation is an approximation here, not the exact mass. The correction is to integrate the density over the full interval. Multiplying one density value by the length is exact when the density is constant; for a varying density, it is not generally exact.

Another related check is dimensional: multiplying a density in kg/m by a length in m gives kg, but correct units alone do not guarantee the value is correct. The density must also be accumulated over the actual interval using the model provided.

A Reliable Setup for Mass Problems

Before evaluating an integral, make the physical quantities explicit. This short sequence helps prevent errors in bounds, units, and interpretation.

1
Identify the coordinate and endpoints.
Write the interval of positions occupied by the rod. Use those positions as the limits of integration.
2
Read the density and its units.
Confirm that the function gives mass per length, and that its position variable uses the same length unit as the endpoints.
3
Integrate density with respect to length.
Set up \(M=\int_a^b\rho(x)\,dx\), then evaluate the definite integral.
4
Check the result.
Confirm that the mass has units of mass, is nonnegative, and comes from the stated endpoint positions.

What the Result Represents

The definite integral produces the total mass of the rod, not the density at a particular position. Local density describes how much mass is concentrated per unit length near a point; integrating combines all those local contributions over the rod.

This distinction is useful whenever an object is not uniform. A model may assign different densities to different positions, and the integral converts that spatial description into one total quantity. In each case, the essential setup is the same: identify the interval, use density per unit length, and integrate with respect to position.

Takeaway: For a rod with nonnegative integrable linear density \(\rho(x)\) on \([a,b]\), its mass is \(\int_a^b\rho(x)\,dx\). The integration bounds are the rod’s endpoint positions, and the units of density times length give units of mass.

Check Your Understanding

Answer these questions using the definition and examples above.

  1. A rod occupies positions from \(1\) m to \(5\) m. What are the bounds for its mass integral?
  2. If density is measured in grams per centimeter and position in centimeters, what units should the integral have?
  3. For \(\rho(x)=(3\ \text{kg/m})+(2\ \text{kg/m}^2)x\) on \(0\le x\le 2\) m, set up the mass integral without evaluating it.
  4. Why does a negative density value somewhere on the rod signal a problem with a physical density model?
  5. When is multiplying a single density value by the rod’s length guaranteed to give its exact mass?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon