Tutorials › Calculus I › Mass Change with Varying Density and Volume

Related Rates Problems · Tutorial 663 of 1495

Mass Change with Varying Density and Volume

Differentiate mass as the product of changing density and volume, and calculate the resulting rate with consistent units.

Intermediate 10 min read

What You'll Learn

  • State when mass can be written as density times volume.
  • Differentiate the mass relation when both factors depend on time.
  • Interpret the two contributions to the mass rate and their signs.
  • Keep density, volume, and time units consistent in rate calculations.
  • Check a calculated mass rate using the product rule and units.

Why Density and Volume Both Matter

Mass can change because an object occupies more or less space, because its material becomes more or less dense, or because both changes happen together. For example, a sealed object might expand as it warms, while its average density falls; a porous material might absorb substance and increase in mass without a simple geometric expansion.

To calculate a mass rate in such situations, we must account for both changing quantities. The relation between mass, density, and volume is simple, but differentiating it correctly requires keeping track of both contributions and their units.

The Mass–Density–Volume Relation

For an object with uniform density \(\rho\) and volume \(V\), its mass \(m\) is the product of density and volume. If density varies from point to point within an object, the same relation holds when \(\rho\) denotes the object's average density, defined as its total mass divided by its volume.

Definition: For an object of mass \(m\), volume \(V>0\), and average density \(\rho\), the mass–density–volume relation is \(m=\rho V\). If these quantities change with time \(t\), they are functions of time and the relation holds at each time.

Density has units of mass per volume. Thus, the product of density and volume has units of mass. For example, \(\mathrm{kg/m^3}\) multiplied by \(\mathrm{m^3}\) gives \(\mathrm{kg}\). A mass rate has units of mass per time, such as \(\mathrm{kg/min}\).

Differentiating When Both Factors Change

Suppose \(\rho=\rho(t)\) and \(V=V(t)\) are differentiable functions of time. Since \(m(t)=\rho(t)V(t)\), the product rule gives the instantaneous rate of change of mass.

Theorem: If \(\rho(t)\) and \(V(t)\) are differentiable, then
$$ \frac{dm}{dt} = V\frac{d\rho}{dt} + \rho\frac{dV}{dt}. $$

Every quantity on the right is evaluated at the same time. The first term represents the contribution from changing density, with volume held at its instantaneous value. The second term represents the contribution from changing volume, with density held at its instantaneous value. These are contributions to the total rate, not separate alternative formulas.

Why the Rate Formula Works

The formula follows from the definition of a derivative. Fix a time \(t\), and compare the product at \(t+h\) with the product at \(t\). Add and subtract \(\rho(t+h)V(t)\) in the numerator of the difference quotient:

$$ \begin{aligned} \frac{m(t+h)-m(t)}{h} &= \frac{\rho(t+h)V(t+h)-\rho(t)V(t)}{h}\\ &= \rho(t+h)\frac{V(t+h)-V(t)}{h} + V(t)\frac{\rho(t+h)-\rho(t)}{h}. \end{aligned} $$

As \(h\) tends to zero, differentiability of \(V\) and \(\rho\) gives the limits of the two difference quotients. Differentiability of \(\rho\) also ensures its continuity, so \(\rho(t+h)\) tends to \(\rho(t)\). Therefore the limit of the first term is \(\rho(t)V'(t)\), and the limit of the second is \(V(t)\rho'(t)\). By the definition of \(m'(t)\), this proves

$$ m'(t)=\rho(t)V'(t)+V(t)\rho'(t). $$

This derivation also identifies the conditions needed: the density and volume must be differentiable at the time in question, and the mass relation must apply to the object at the times being considered.

Interpreting the Two Contributions

The signs of the two terms help explain the result. If density rises while volume is fixed, the density contribution is positive; if density falls while volume is fixed, it is negative. Increasing volume contributes positively when density is positive, while decreasing volume contributes negatively. When one contribution is positive and the other negative, they may reinforce, partially offset, or exactly cancel one another.

For positive mass, density, and volume, the formula can also be divided by \(m=\rho V\). This gives a relative-rate form:

$$ \frac{1}{m}\frac{dm}{dt} = \frac{1}{\rho}\frac{d\rho}{dt} + \frac{1}{V}\frac{dV}{dt}. $$

Each term in this equation has units of inverse time. It says that the relative mass rate is the sum of the relative density rate and the relative volume rate. It is an equivalent way to check a calculation when \(m\), \(\rho\), and \(V\) are positive.

Worked Examples

Worked Example: Density and Volume Both Increase

At a particular instant, an object has density \(800\ \mathrm{kg/m^3}\) increasing at \(12\ \mathrm{kg/(m^3\,min)}\). Its volume is \(0.05\ \mathrm{m^3}\) and is increasing at \(0.003\ \mathrm{m^3/min}\). Find its mass rate at that instant.

First write the rate formula and identify each value:

$$ \frac{dm}{dt} = V\frac{d\rho}{dt} + \rho\frac{dV}{dt}. $$

Substitute the given instantaneous values:

$$ \begin{aligned} \frac{dm}{dt} &=(0.05\ \mathrm{m^3})(12\ \mathrm{kg/(m^3\,min)}) +(800\ \mathrm{kg/m^3})(0.003\ \mathrm{m^3/min})\\ &=0.6\ \mathrm{kg/min}+2.4\ \mathrm{kg/min}\\ &=3.0\ \mathrm{kg/min}. \end{aligned} $$

The density contribution is \(0.6\ \mathrm{kg/min}\), and the volume contribution is \(2.4\ \mathrm{kg/min}\). Both have units of mass per time, so they can be added. As a check, the mass at this instant is \((800\ \mathrm{kg/m^3})(0.05\ \mathrm{m^3})=40\ \mathrm{kg}\). The relative-rate calculation gives \((12/800)+(0.003/0.05)=0.015+0.06=0.075\ \mathrm{min^{-1}}\); multiplying by \(40\ \mathrm{kg}\) gives \(3.0\ \mathrm{kg/min}\), agreeing with the result.

Worked Example: Density Decreases While Volume Increases

At an instant, an object has density \(1200\ \mathrm{kg/m^3}\), decreasing at \(15\ \mathrm{kg/(m^3\,min)}\). Its volume is \(0.4\ \mathrm{m^3}\), increasing at \(0.02\ \mathrm{m^3/min}\). Determine whether its mass is increasing or decreasing, and find the rate.

A decreasing density has a negative derivative, so \(d\rho/dt=-15\ \mathrm{kg/(m^3\,min)}\). The volume derivative is positive: \(dV/dt=0.02\ \mathrm{m^3/min}\). Then

$$ \begin{aligned} \frac{dm}{dt} &=(0.4\ \mathrm{m^3})(-15\ \mathrm{kg/(m^3\,min)}) +(1200\ \mathrm{kg/m^3})(0.02\ \mathrm{m^3/min})\\ &=-6\ \mathrm{kg/min}+24\ \mathrm{kg/min}\\ &=18\ \mathrm{kg/min}. \end{aligned} $$

The density decrease contributes \(-6\ \mathrm{kg/min}\), while volume growth contributes \(24\ \mathrm{kg/min}\). The positive contribution is larger, so mass increases at \(18\ \mathrm{kg/min}\). To check, the current mass is \((1200)(0.4)=480\ \mathrm{kg}\). The relative rates sum to \((-15/1200)+(0.02/0.4)=-0.0125+0.05=0.0375\ \mathrm{min^{-1}}\), and \(480(0.0375)=18\ \mathrm{kg/min}\).

Worked Example: Convert Units Before Combining Rates

An object has density \(0.9\ \mathrm{g/cm^3}\), increasing at \(0.02\ \mathrm{g/(cm^3\,min)}\). Its volume is \(2.0\ \mathrm{L}\), increasing at \(0.15\ \mathrm{L/min}\). Find the mass rate in \(\mathrm{kg/min}\).

The density and volume units must be compatible before multiplying. Since \(1\ \mathrm{g/cm^3}=1\ \mathrm{kg/L}\), convert the density and its rate:

$$ \rho=0.9\ \mathrm{kg/L}, \qquad \frac{d\rho}{dt}=0.02\ \mathrm{kg/(L\,min)}. $$

Now the products in the rate formula have units of \(\mathrm{kg/min}\):

$$ \begin{aligned} \frac{dm}{dt} &=(2.0\ \mathrm{L})(0.02\ \mathrm{kg/(L\,min)}) +(0.9\ \mathrm{kg/L})(0.15\ \mathrm{L/min})\\ &=0.04\ \mathrm{kg/min}+0.135\ \mathrm{kg/min}\\ &=0.175\ \mathrm{kg/min}. \end{aligned} $$

As a check, the mass at that instant is \((0.9\ \mathrm{kg/L})(2.0\ \mathrm{L})=1.8\ \mathrm{kg}\). The relative rate is \(0.02/0.9+0.15/2.0=0.022\overline{2}+0.075=0.097\overline{2}\ \mathrm{min^{-1}}\). Multiplying by \(1.8\ \mathrm{kg}\) gives \(0.175\ \mathrm{kg/min}\), as above. No rounding was needed.

A Common Mistake: Using Only One Contribution

A frequent error is to differentiate \(m=\rho V\) as though only one factor changes. For instance, an incorrect calculation might use \(dm/dt=\rho\,dV/dt\) in the second example and report \(24\ \mathrm{kg/min}\). That expression accounts for the volume change but omits the density change, whose contribution is \(-6\ \mathrm{kg/min}\). The corrected calculation is

$$ \frac{dm}{dt} = V\frac{d\rho}{dt} + \rho\frac{dV}{dt} = -6+24 = 18\ \mathrm{kg/min}. $$

Another warning sign is adding the numerical values of rates with incompatible units. Density rate and volume rate are not themselves quantities that can be added; each must first be multiplied by the other factor, producing two mass rates. Check the units of both terms before adding them.

A Reliable Calculation Process

1
State the relation.
Use \(m=\rho V\), with \(\rho\) understood as uniform or average density.
2
Differentiate with respect to time.
Include a term for the changing density and a term for the changing volume.
3
Make units consistent.
Convert units if necessary so density and volume are compatible and both rate terms have units of mass per time.
4
Substitute the instantaneous values.
Use negative signs for decreasing quantities, then evaluate both contributions and add them.
5
Check the result.
Confirm the units and whether the sign agrees with the balance of the two contributions; when possible, check using the relative-rate formula.

Why the Relation Is Useful

The mass formula is useful whenever measurements or models describe an object's density and volume separately. It shows why a volume increase does not by itself determine whether mass increases: density might fall enough to offset it. Likewise, a falling density does not force mass to fall if volume is increasing sufficiently rapidly.

The rate formula makes that balance explicit. It also provides a direct check on reasoning: both changing quantities must be represented, both contributions must be evaluated at the same instant, and both resulting terms must have units of mass per time. Those checks are often as important as the arithmetic.

Check Your Understanding

Use the product rule for \(m=\rho V\) and keep units visible as you work.

  1. Write the formula for \(dm/dt\) when density and volume both depend on time.
  2. If density is falling while volume is rising, what determines whether mass is increasing or decreasing?
  3. An object has \(\rho=600\ \mathrm{kg/m^3}\), \(d\rho/dt=5\ \mathrm{kg/(m^3\,min)}\), \(V=0.3\ \mathrm{m^3}\), and \(dV/dt=-0.001\ \mathrm{m^3/min}\). Find its mass rate and state its sign.
  4. Why must \((d\rho/dt)V\) and \(\rho(dV/dt)\) have compatible units before they are added?
  5. When can the relative-rate form be used, and what does it say about the three relative rates?

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