# 4. Density, Mass, and Center of Mas*s*

### Motivating Questions

*In this section, we strive to understand the ideas generated by the following important questions:*

• How are mass, density, and volume related?

• How is the mass of an object with varying density computed?

• What is the center of mass of an object, and how are definite integrals used to compute it?

Introduction

We have seen in several different circumstances how studying the units on the integrand and variable of integration enables us to better understand the meaning of a definite integral. For instance, if *v( t)* is the velocity of an object moving along an axis, measured in feet per second, while *t* measures time in seconds, then both the definite integral and its Riemann sum approximation,

have their overall units given by the product of the units of *v( t)* and *t:*

(feet/sec)-(sec) = feet.

Thus,

measures the total change in position (in feet) of

the moving object.

This type of unit analysis will be particularly helpful to us in what follows. To begin, in the following preview activity we consider two different definite integrals where the integrand is a function that measures how a particular quantity is distributed over a region and think about how the units on the integrand and the variable of integration indicate the meaning of the integral.

### Preview Activity 4

In each of the following scenarios, we consider the distribution of a quantity along an axis.

(a) Suppose that the function *c(x) =* 200 + 100e^{—0.1x} models the density of traffic on a straight road, measured in cars per mile, where *x* is number of miles east of a major interchange, and consider the

definite integral

i. What are the units on the product

ii. What are the units on the definite integral and its Riemann sum approximation given by

iii. Evaluate the definite integral

and write one sentence to explain the meaning of the value you find.

(b) On a 6 foot long shelf filled with books, the function *B* models the distribution of the weight of the books, measured in pounds per inch, where *x* is the number of inches from the left end of the book-

shelf. Let *B(x)* be given by the rule *B(x) =* 0.5 +

i. What are the units on the product

ii. What are the units on the definite integral and its Riemann sum approximation given by

iii. Evaluate the definite integral

and write one sentence to explain the meaning of the value you find.

### Density

The *mass* of a quantity, typically measured in metric units such as grams or kilograms, is a measure of the amount of a quantity. In a corresponding way, the *density* of an object measures the distribution of mass per unit volume. For instance, if a brick has mass 3 kg and volume 0.002 m^{3}, then the density of the brick is

As another example, the mass density of water is 1000 kg/m^{3}. Each of these relationships demonstrate the following general principle.

### Density, Mass, & Volume

For an object of constant density *d,* with mass *m* and volume V,

or *m = d • V*.

But what happens when the density is not constant? If we consider the formula *m = d • V,* it is reminiscent of two other equations that we have used frequently in recent work: for a body moving in a fixed direction, distance = rate • time, and, for a rectangle, its area is given by *A = I • w.* These formulas hold when the principal quantities involved, such as the rate the body moves and the height of the rectangle, are *constant.* When these quantities are not constant, we have turned to the definite integral for assistance. The main idea in each situation is that by working with small slices of the quantity that is varying, we can use a definite integral to add up the values of small pieces on which the quantity of interest (such as the velocity of a moving object) are approximately constant.

For example, in the setting where we have a nonnegative velocity function that is not constant, over a short time interval

we know that the distance traveled is approximately

since *v{i)* is almost constant on a small interval, and for a constant rate, distance = rate • time. Similarly, if we are thinking about the area under a nonnegative function / whose value is

changing, on a short interval

the area under the curve is

approximately the area of the rectangle whose height is *f(x)*

and whose width is

Both of these principles are

represented visually in Figure 6.27.

Figure 6.27: At left, estimating a small amount

of distance traveled,

and at right, a small

amount of area under the curve,

In a similar way, if we consider the setting where the density of some quantity is not constant, the definite integral enables us to still compute the overall mass of the quantity. Throughout, we will focus on problems where the density varies in only one dimension, say along a single axis, and think about how mass is distributed relative to location along the axis.

Let's consider a thin bar of length *b* that is situated so its left end is at the origin, where *x =* 0, and assume that the bar has constant cross-sectional area of 1 cm^{2}. We let the function *p(x)* represent the mass density function of the bar, measured in grams per cubic centimeter. That is, given a location *x, p(x)* tells us approximately how much mass will be found in a one-centimeter wide slice of the bar at *x.*

Figure 6.28: A thin bar of constant cross-sectional area 1 cm^{2} with density function p(x) g/cm^{3}.

If we now consider a thin slice of the bar of width

as

pictured in Figure 6.28, the volume of such a slice is the cross-

sectional area times

Since the cross-sections each have con-

stant area 1 cm^{2}, it follows that the volume of the slice is

cm^{3}. Moreover, since mass is the product of density and volume (when density is constant), we see that the mass of this given slice is approximately

Hence, for the corresponding Riemann sum (and thus for the integral that it approximates),

we see that these quantities measure the mass of the bar between 0 and b. (The Riemann sum is an approximation, while the integral will be the exact mass.)

At this point, we note that we will be focused primarily on situations where mass is distributed relative to horizontal location, x, for objects whose cross-sectional area is constant. In that setting, it makes sense to think of the density function p(x) with units "mass per unit length," such as g/cm. Thus, when we

compute

on a small slice

the resulting units are

g/cm • cm = g, which thus measures the mass of the slice. The general principle follows.

### Mass

For an object of constant cross-sectional area whose mass is distributed along a single axis according to the function p(x) (whose units are units of mass per unit of length), the total mass, M of the object between x = a and x = b is given

by

Example 1

A thin bar occupies the interval

and it has a density in kg/m

of p(x) = 1 + x^{2}. Find the mass of the bar.

Solution. The mass of the bar in kilograms is

### Activity 4-1

Consider the following situations in which mass is distributed in a non-constant manner.

(a) Suppose that a thin rod with constant cross-sectional area of 1 cm^{2} has its mass distributed according to the density function p(x) = 2e^{—0.2x}, where x is the distance in cm from the left end of the rod, and the units on p(x) are g/cm. If the rod is 10 cm long, determine the exact mass of the rod.

(b) Consider the cone that has a base of radius 4 m and a height of 5 m. Picture the cone lying horizontally with the center of its base at the origin and think of the cone as a solid of revolution.

i. Write and evaluate a definite integral whose value is the volume of the cone.

ii. Next, suppose that the cone has uniform density of 800 kg/m^{3}. What is the mass of the solid cone?

iii. Now suppose that the cone's density is not uniform, but rather that the cone is most dense at its base. In particular, assume that the density of the cone is uniform across cross sections parallel to its base, but that in each such cross section that is a distance x units from the origin, the density of the cross section is given

by the function p(x) = 400 +

measured in kg/m^{3}. Deter-

mine and evaluate a definite integral whose value is the mass of this cone of non-uniform density. Do so by first thinking about the mass of a given slice of the cone x units away from the base; remember that in such a slice, the density will be essentially constant.

(c) Let a thin rod of constant cross-sectional area 1 cm^{2} and length 12 cm have its mass be distributed according to the density function

measured in g/cm. Find the exact location z at

which to cut the bar so that the two pieces will each have identical mass.

Table 6.2: A college student's semester grades.

class | grade | grade points | credits |
---|---|---|---|

chemistry | B+ | 3.3 | 5 |

calculus | A- | 3.7 | 4 |

history | B- | 2.7 | 3 |

psychology | B- | 2.7 | 3 |

Weighted Averages

The concept of an average is a natural one, and one that we have used repeatedly as part of our understanding of the meaning of the definite integral. If we have n values a1, a2, ..., a_{n}, we know that their average is given by

and for a quantity being measured by a function f on an interval [a, b], the average value of the quantity on [a, b] is

As we continue to think about problems involving the distribution of mass, it is natural to consider the idea of a weighted average, where certain quantities involved are counted more in the average.

A common use of weighted averages is in the computation of a student's GPA, where grades are weighted according to credit hours. Let's consider the scenario in Table 6.2.

If all of the classes were of the same weight (i.e., the same number of credits), the student's GPA would simply be calculated by taking the average

But since the chemistry and calculus courses have higher weights (of 5 and 4 credits respectively), we actually compute the GPA according to the weighted average

The weighted average reflects the fact that chemistry and calculus, as courses with higher credits, have a greater impact on the students' grade point average. Note particularly that in the weighted average, each grade gets multiplied by its weight, and we divide by the sum of the weights.

In the following activity, we explore further how weighted averages can be used to find the balancing point of a physical system.

### Activity 4-2

For quantities of equal weight, such as two children on a teeter-totter, the balancing point is found by taking the average of their locations. When the weights of the quantities differ, we use a weighted average of their respective locations to find the balancing point.

(a) Suppose that a shelf is 6 feet long, with its left end situated at x = 0. If one book of weight 1 lb is placed at x_{1} = 0, and another book of weight 1 lb is placed at x2 = 6, what is the location of x, the point at which the shelf would (theoretically) balance on a fulcrum?

(b) Now, say that we place four books on the shelf, each weighing 1 lb: at x_{1} = 0, at x_{2} = 2, at x_{3} = 4, and at x_{4} = 6. Find

the balancing

point of the shelf.

(c) How does

change if we change the location of the third book?

Say the locations of the 1-lb books are x1 = 0, x2 = 2, x3 = 3, and

x_{4} = 6.

(d) Next, suppose that we place four books on the shelf, but of varying weights: at x_{1} = 0 a 2-lb book, at x_{2} = 2 a 3-lb book, and x_{3} = 4 a 1-lb book, and at x_{4} = 6 a 1-lb book. Use a weighted average of the

locations to find

the balancing point of the shelf. How does the

balancing point in this scenario compare to that found in (b)? (e) What happens if we change the location of one of the books? Say that we keep everything the same in (d), except that x3 = 5. How

does

change?

(f) What happens if we change the weight of one of the books? Say that we keep everything the same in (d), except that the book at x3 = 4

now weighs 2 lbs. How does

change?

(g) Experiment with a couple of different scenarios of your choosing where you move the location of one of the books to the left, or you decrease the weight of one of the books.

(h) Write a couple of sentences to explain how adjusting the location of one of the books or the weight of one of the books affects the location of the balancing point of the shelf. Think carefully here about how your changes should be considered relative to the location of the balancing point

of the current scenario.

### Center of Mass

In Activity4-2, we saw that the balancing point of a system

of point-masses^{1}

^{1} In the activity, we actually used *weight* rather than *mass.* Since weight is computed by the gravitational constant times mass, the computations for the balancing point result in the same location regardless of whether we use weight or mass, since the gravitational constant is present in both the numerator and denominator of the weighted average.

(such as books on a shelf) is found by taking a weighted average of their respective locations. In the activity, we were computing the *center of mass* of a system of masses distributed along an axis, which is the balancing point of the axis on which the masses rest.

Center of Mass

For a collection of *n* masses *m _{1}, ..., m_{n}* that are distributed along a single axis at the locations x

_{1}

*, ..*.,

*x*the

_{n},*center of mass*is given by

Figure 6.29: A thin bar of constant cross-sectional area with density function p(x) g/cm.

What if we instead consider a thin bar over which density is distributed continuously? If the density is constant, it is obvious that the balancing point of the bar is its midpoint. But if density is not constant, we must compute a weighted average. Let's say that the function *p(x)* tells us the density distribution along the bar, measured in g/cm. If we slice the bar into small sections, this enables us to think of the bar as holding a collection of

adjacent point-masses. For a slice of thickness

at location *X _{i},*

note that the mass of the slice, *m _{i},* satisfies

Taking *n* slices of the bar, we can approximate its center of mass by

Rewriting the sums in sigma notation, it follows that

(6.1)

Moreover, it is apparent that the greater the number of slices, the more accurate our estimate of the balancing point will be, and that the sums in Equation (6.1) can be viewed as Riemann

sums. Hence, in the limit as

we find that the center of

mass is given by the quotient of two integrals.

Center of Mass

For a thin rod of density *p(x)* distributed along an axis from *x = a* to *x = b,* the center of mass of the rod is given by

Note particularly that the denominator of

is the mass of the

bar, and that this quotient of integrals is simply the continuous version of the weighted average of locations, *x,* along the bar.

Example 2

A thin bar occupies the interval

and it has a density in kg/m

of *p(x) =* 1 + x^{2}. Find the center of mass of the bar.

Solution. From Example 1, the mass of the bar in kilograms is

We just need to find

The center of mass,

### Activity 4-3

Consider a thin bar of length 20 cm whose density is distributed according to the function *p(x) =* 4 + 0.1x, where *x =* 0 represents the left end of the bar. Assume that *p* is measured in g/cm and *x* is measured in cm.

(a) Find the total mass, *M,* of the bar.

(b) Without doing any calculations, do you expect the center of mass of the bar to be equal to 10, less than 10, or greater than 10? Why?

(c) Compute

the exact center of mass of the bar.

(d) What is the average density of the bar?

(e) Now consider a different density function, given by *p(x) =* 4e^{0.020732x}, also for a bar of length 20 cm whose left end is at *x =* 0. Plot both *p( x)* and *p( x)* on the same axes. Without doing any calculations, which bar do you expect to have the greater center of mass? Why?

(f) Compute the exact center of mass of the bar described in (e) whose density function is *p(x) =* 4e^{0.020732x}. Check the result against the prediction you made in (e).

### Summary

*In this section, we encountered the following important ideas:*

• For an object of constant density D, with volume *V* and mass m, we know that *m = D •* V.

• If an object with constant cross-sectional area (such as a thin bar) has its density distributed along an axis according to the function p(x), then we can find the mass of the object between *x = a* and *x = b* by

• For a system of point-masses distributed along an axis, say *m _{1},* . . . ,

*m*at locations

_{n}*x*. . . ,

_{1},*x*, the center of

_{n}mass,

is given by the weighted average

If instead we have mass continuously distributed along an axis, such as by a density function *p( x)* for a thin bar of constant cross-sectional area, the center of mass of the portion of the bar between *x = a* and *x = b* is given by

In each situation,

represents the balancing point of the system of masses or of the portion of the bar.

### Exercises

Terms and Concepts

1) T/F: The integral formula for computing Arc Length was found by first approximating arc length with straight line segments.

2) T/F: The integral formula for computing Arc Length includes a square-root, meaning the integration is probably easy.

### Problems

3) Let a thin rod of length a have density distribution function p(x) = 10e^{—0.1x}, where x is measured in cm and *p* in grams per centimeter.

(a) If the mass of the rod is 30 g, what is the value of a?

(b) For the 30g rod, will the center of mass lie at its midpoint, to the left of the midpoint, or to the right of the midpoint? Why?

(c) For the 30g rod, find the center of mass, and compare your prediction in (b).

(d) At what value of x should the 30g rod be cut in order to form two pieces of equal mass?

4) Consider two thin bars of constant cross-sectional area, each of length 10 cm, with respective mass den-

sity functions

and p(x) = e ^{0.1x}.

(a) Find the mass of each bar.

(b) Find the center of mass of each bar.

(c) Now consider a new 10 cm bar whose mass density function is f (x) = p(x) + p(x).

i. Explain how you can easily find the mass of this new bar with little to no additional work.

ii. Similarly, compute

as simply

as possible, in light of earlier computations. iii. True or false: the center of mass of this new bar is the average of the centers of mass of the two earlier bars. Write at least one sentence to say why your conclusion makes sense.

5) Consider the curve given by y = f (x) = 2xe^{—1.25x} + (30 — x)e^{—0.25(30—x)}.

(a) Plot this curve in the window x = 0 . . . 30, y = 0... 3 (with constrained scaling so the units on the x and y axis are equal), and use it to generate a solid of revolution about the x-axis. Explain why this curve could generate a reasonable model of a baseball bat.

(b) Let x and y be measured in inches. Find the total volume of the baseball bat generated by revolving the given curve about the x-axis. Include units on your answer

(c) Suppose that the baseball bat has constant weight density, and that the weight density is 0. 6 ounces per cubic inch. Find the total weight of the bat whose volume you found in (b).

(d) Because the baseball bat does not have constant cross-sectional area, we see that the amount of weight concentrated at a location x along the bat is determined by the volume of a slice at location x. Explain why we can think about the function

(where f is the function given

at the start of the problem) as being the weight density function for how the weight of the baseball bat is distributed from x = 0 to x = 30. (e) Compute the center of mass of the baseball bat.