Density Functions

Density, as an application of integration, has snuck onto the exams. It is specifically not mentioned in the “ Curriculum Framework” chapter of the new Course and Exam Description. There is an example (#12 p. 58) in the AB sample exam question section of Course and Exam Description.The first time this topic appeared was in the 2008 AB Calculus exam. There was a hint in the few years before that with a question in the old Course Description book. Both questions will be discussed below.

The Mathematics

A density function gives the amount of something per unit of length, area, or volume, for example

  • The density of a metal rod may be given in units of grams per centimeter.
  • The density of the population of a city may be given in units of people per square mile. (See map at end.)
  • The density of a container of substance may be given in pounds per cubic foot.

The density can be used to find the amount. In each example, notice that the length, area, or volume of the region is multiplied by the density to find the amount.

Example 1: A 10 cm rod with a constant density of 3 g/cm has a mass of 10\text{ cm}\cdot \frac{3\text{ grams}}{\text{cm}}=30\text{ grams}

In other situations the density is not constant and is given by some function. Suppose our metal rod of length b has a density of \rho \left( x \right) grams/cm where x is measured from one end of the rod. To find the total mass we think of cutting the rod in the very small pieces. (Think partition: each piece has a length of \Delta x in which the density is nearly constant say \rho \left( x \right).) The sum of the mass of these pieces is the Riemann sum \sum\limits_{i=1}^{n}{\rho \left( {{x}_{i}} \right)\Delta x}. The limit of this expression as \Delta x\to 0 gives the total mass in grams: \displaystyle M=\underset{\Delta x\to 0}{\mathop{\lim }}\,\sum\limits_{i=1}^{n}{\rho \left( {{x}_{i}} \right)\Delta x}=\int_{0}^{b}{\rho \left( x \right)dx} Notice that \sum\limits_{i=1}^{n}{\Delta x} is the length of the rod. This is multiplied by the density to find the mass.

Example 2: The next example is from the old Course Description book.

A city is built around a circular lake that has a radius of 1 mile. The population density of the city is f\left( r \right) people per square mile, where r is the distance from the center of the lake, in miles. Which of the following expressions gives the number of people who live within 1 mile of the lake?

(A) 2\pi \int_{0}^{1}{rf\left( r \right)dr}                 (B) 2\pi \int_{0}^{1}{r\left( 1+f\left( r \right) \right)dr}

(C) 2\pi \int_{0}^{2}{r\left( 1+f\left( r \right) \right)dr}      (D) 2\pi \int_{1}^{2}{rf\left( r \right)dr}

(E) 2\pi \int_{1}^{2}{r\left( 1+f\left( r \right) \right)dr}

We need to partition the region so that each piece has a close to a constant density. Thin rings around the lake will accomplish this. A ring, if straightened out is similar to a rectangle of length 2\pi {{r}_{i}} where {{r}_{i}} is the distance from the center of the lake (this is the circumference of the ring), the width of this ring (rectangle) is \Delta r. In this ring (rectangle) the population density is people per square mile, so the population in the ring is f\left( {{r}_{i}} \right) approximated by multiplying the area by the density: 2\pi {{r}_{i}}f\left( {{r}_{i}} \right)\Delta r. Adding these gives a Riemann sum whose limit gives the total population:

\underset{\Delta x\to 0}{\mathop{\lim }}\,\sum\limits_{i=1}^{n}{2\pi {{r}_{i}}f\left( {{r}_{i}} \right)\Delta r}=2\pi \int_{1}^{2}{rf\left( r \right)dr}        Answer (D).

The limits of integration are from the edge of the lake, r = 1 to r = 2 (“one mile from the lake”). Another way to look at this is that \sum\limits_{i=1}^{n}{2\pi {{r}_{i}}\Delta r} is the area of the city; this is multiplied by the population density to find the population.

This type of density situation is called a radial density function.

Notice that the answer looks like the formula for volume by cylindrical shells; this is not quite an accident. The rings around the center are like the shells used when finding volume. It is the units that are different.

Example 3: From the 2008 AB Calculus exam #92.


A city located beside a river has a rectangular boundary as shown in the figure above. The population density of the city at any point along a strip x miles from the river’s edge is f\left( x \right) people per square mile. Which of the following expressions gives the population of the city?

(A) \int_{0}^{4}{f\left( x \right)dx}          (B) 7\int_{0}^{4}{f\left( x \right)dx}          (C) 28\int_{0}^{4}{f\left( x \right)dx}

(D) \int_{0}^{7}{f\left( x \right)dx}          (E) 4\int_{0}^{7}{f\left( x \right)dx}

A thin vertical strip of the city {{x}_{i}} miles to the right of the river has an area of 7\Delta x. The population in each such strip is found by multiplying the area by the density function; this gives 7f\left( {{x}_{i}} \right)\Delta x. These are then added forming a Riemann sum, etc.

\text{Population}=\underset{\Delta x\to 0}{\mathop{\lim }}\,\sum\limits_{i=1}^{n}{7f\left( {{x}_{i}} \right)\Delta x}=7\int_{0}^{4}{f\left( x \right)dx}         Answer (B)

Alternative solution: When I first saw this question, not having thought about density for quite a while, I answered it by doing a unit analysis. Since unit analysis is a good thing for students to understand I’ll outline my thinking next.

We are looking for the population so the answer must be in units of “people.” The density function is in units of “people/square mile” (given). Both x and dx are in units of “miles” and the “7” also has units of “miles.” Therefore, the only choice that gives “people” is the one that multiplies the 7, the dx and the density function. This is eliminates (A) and (D). The 28 in (C) must be square miles, making the overall units “people-miles” which is not what we’re going for. Finally, choice (E) is eliminated since the 7 and the dx are not in the same direction. This leaves (B).

Example 4: A volume problem adapted from Calculus by Hughes-Hallett, Gleason, et al.

The density of air h meters above the earth’s surface is \rho \left( h \right)=1.25{{e}^{-0.00012h}}\text{ kg/}{{\text{m}}^{3}}. Find the mass of a column of air 25 km high with a square base 3 meters on a side sitting on the surface of the earth.

At any height,  h meters above the earth the volume of a thin slice of the column of air is {{3}^{2}}\Delta h. The mass of this slice is {{3}^{2}}\rho \left( {{h}_{i}} \right)\Delta h. The sum of these slices gives a Riemann sum whose limit gives the total volume:

\displaystyle M=\underset{\Delta h\to 0}{\mathop{\lim }}\,\sum\limits_{i=1}^{n}{9\rho \left( {{h}_{i}} \right)\Delta h}=9\int_{0}^{25,000}{1.25{{e}^{-0.00012h}}dh}\approx 89,082\text{ kg}\text{.}

Check the index of your textbook for density problems. Calculus by Hughes-Hallett Gleason, et al and Calculus by Rogawski (2nd edition) have good exercises and examples. My advice is not to make too big a deal of this, but if you have time you can take a look. Should this kind of question appear on the free-response section I would guess that the question will be carefully worded so that students who never saw this kind of question would have a good chance of answering it.

The changing population density of Sydney, Australia in persons per hectare. Note the date changes in the key at the lower left.


Coming soon:

  • Jan 17th, Every Day series
  • Jan 24th, Logistic Growth – Real and Simulated
  • Jan 31st, The Logistic Equation
  • Feb 7th, Graphing Taylor Polynomials
  • Feb 14th,  Geometric Series – Far Out

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s