Tutorials › AP Calculus › Mass Accumulation from a Flow Rate

Shells and Integral Applications · Tutorial 718 of 999

Mass Accumulation from a Flow Rate

Use signed mass flow rates and definite integrals to calculate how much mass a system gains, loses, and transfers over a time interval.

Advanced 11 min read

What You'll Learn

  • Define a signed mass flow rate and interpret its units
  • Calculate net mass change with a definite integral
  • Find total mass transferred when flow changes direction
  • Use an initial mass to determine a later mass
  • Handle piecewise flow rates and check results
  • Avoid confusing net change with total transfer

Why Mass Flow Is an Accumulation Problem

A tank, reactor, or other system can gain or lose mass as material flows across its boundary. If the flow rate stays constant, multiplying rate by time gives the amount of mass transferred. When the rate varies with time, integration performs the corresponding accumulation.

The direction of flow matters. A system may gain mass during one part of an interval and lose mass during another. The net mass change records the overall gain or loss. The total mass transferred counts all mass that crossed the boundary, regardless of direction. These quantities can be different.

Sign convention: Let \(q(t)\) be the signed mass flow rate at time \(t\), with flow into the system positive and flow out of the system negative. If \(M(t)\) is the mass in the system, then \(q(t)\) is the rate of change of that mass: \(M'(t)=q(t)\).

Definitions and Units

A mass flow rate measures mass transferred per unit time. For example, if time is measured in minutes and mass in kilograms, then \(q(t)\) has units of kilograms per minute, written \(\mathrm{kg/min}\). A positive value indicates flow into the system; a negative value indicates flow out, under the sign convention above.

Definition: If \(q(t)\) is an integrable signed mass flow rate on the time interval \([a,b]\), the net mass change is \[ \Delta M=\int_a^b q(t)\,dt. \] If the flow can change direction, the total mass transferred across the boundary is \[ T=\int_a^b |q(t)|\,dt. \] The net change can be positive, negative, or zero; total mass transferred is nonnegative.

The differential \(dt\) indicates accumulation over time. For example, \((\mathrm{kg/min})(\mathrm{min})=\mathrm{kg}\), so both integrals produce a mass. Always check that the time unit in the rate matches the time unit used for the interval.

If the system contains \(M(a)\) units of mass at the beginning, its mass at the end is \[ M(b)=M(a)+\int_a^b q(t)\,dt. \] This gives the final mass, not the total mass that crossed the boundary. When \(q\) changes sign, finding \(T\) requires accounting for each direction separately, or integrating \(|q(t)|\).

Why Integrating the Rate Gives the Mass Change

The connection between a rate and an accumulated change follows from the Fundamental Theorem of Calculus. Suppose the mass \(M(t)\) is differentiable and \(M'(t)=q(t)\), with \(q\) continuous on \([a,b]\). Since \(q\) is the derivative of \(M\), the theorem gives the difference between the endpoint values of \(M\) as the integral of that derivative.

$$ \int_a^b q(t)\,dt = \int_a^b M'(t)\,dt = M(b)-M(a). $$

Thus the signed integral records the final mass minus the initial mass. If \(q(t)\) is positive, the integral accumulates gains; if it is negative, it accumulates losses. Over intervals where the sign changes, positive and negative contributions cancel in the net change. To count all transferred mass without cancellation, each negative contribution must instead be made positive, which is exactly what \(|q(t)|\) does.

Theorem: If \(M'(t)=q(t)\) on \([a,b]\) and \(q\) is continuous there, then \(M(b)-M(a)=\int_a^b q(t)\,dt\). The total amount transferred is \(\int_a^b |q(t)|\,dt\), provided the flow rate is integrable. If the flow is piecewise continuous, apply the accumulation rule on each piece and add the results.

Worked Example: A Positive, Varying Inflow

Worked Example: A Positive, Varying Inflow

A system receives mass at the rate \(q(t)=3+2t\) kilograms per minute for \(0\leq t\leq4\), where \(t\) is in minutes. Find the net mass change and the total mass transferred during this interval.

Throughout the interval, \(3+2t\) is positive, because \(t\geq0\). Therefore the net change and total transfer are equal:

$$ \Delta M=T=\int_0^4 (3+2t)\,dt. $$

An antiderivative is \(3t+t^2\). Evaluating at the endpoints gives

$$ \begin{aligned} \Delta M &=\left[3t+t^2\right]_0^4\\ &=(3\cdot4+4^2)-(3\cdot0+0^2)\\ &=(12+16)-0\\ &=28\ \mathrm{kg}. \end{aligned} $$

The units are \((\mathrm{kg/min})(\mathrm{min})=\mathrm{kg}\). To check the integration, differentiate the antiderivative: \(\frac{d}{dt}(3t+t^2)=3+2t=q(t)\). The result is consistent: the system gains \(28\) kilograms, and because flow never reverses, \(28\) kilograms is also the total transferred.

When Flow Reverses: Net Change and Total Transfer

If a signed flow rate changes sign, integrate it as written to find net change. For total transfer, split the interval at the times when the rate is zero and add the positive amounts transferred on each part. Equivalently, integrate the absolute value of the rate.

Worked Example: Flow Into and Then Out of a System

Suppose the signed flow rate is \(q(t)=t-2\) kilograms per minute on \(0\leq t\leq4\). Find the net mass change and the total mass transferred.

The rate is zero when \(t-2=0\), so \(t=2\). On \(0\leq t<2\), the rate is negative and mass flows out. On \(2<t\leq4\), the rate is positive and mass flows in.

First, calculate the net change over the full interval:

$$ \begin{aligned} \Delta M &=\int_0^4 (t-2)\,dt\\ &=\left[\frac{t^2}{2}-2t\right]_0^4\\ &=\left(\frac{4^2}{2}-2\cdot4\right) -\left(\frac{0^2}{2}-2\cdot0\right)\\ &=(8-8)-0\\ &=0\ \mathrm{kg}. \end{aligned} $$

The system has no net mass change because its loss and gain cancel. To find total transfer, calculate the amount in each direction. On \([0,2]\), the integral is negative, so its opposite is the mass flowing out:

$$ \begin{aligned} \int_0^2 (t-2)\,dt &=\left[\frac{t^2}{2}-2t\right]_0^2\\ &=(2-4)-0\\ &=-2\ \mathrm{kg}. \end{aligned} $$

Thus \(2\) kilograms flow out. On \([2,4]\), the integral is positive:

$$ \begin{aligned} \int_2^4 (t-2)\,dt &=\left[\frac{t^2}{2}-2t\right]_2^4\\ &=(8-8)-(2-4)\\ &=2\ \mathrm{kg}. \end{aligned} $$

Therefore the total mass transferred is \(2+2=4\) kilograms. Check the antiderivative: \(\frac{d}{dt}\left(\frac{t^2}{2}-2t\right)=t-2\), as required. The equal \(2\)-kilogram loss and gain also confirm the net change of zero.

Piecewise Flow and an Initial Mass

A flow rate need not be given by one formula across the entire interval. It may be constant or follow different formulas on separate time intervals. Integrate on each piece, preserving the sign for net change and using the magnitude for total transfer.

Worked Example: Piecewise Flow with an Initial Mass

A tank initially contains \(10\) kilograms of material. For the first \(2\) hours, mass flows in at \(4\) kilograms per hour. For the next \(3\) hours, mass flows out at \(2\) kilograms per hour. Find the net mass change, the final mass, and the total mass transferred.

With inflow positive and outflow negative, the signed rate is \(q(t)=4\) on \(0\leq t<2\) and \(q(t)=-2\) on \(2\leq t\leq5\). The net change is

$$ \begin{aligned} \Delta M &=\int_0^2 4\,dt+\int_2^5 (-2)\,dt\\ &=4(2-0)-2(5-2)\\ &=8-6\\ &=2\ \mathrm{kg}. \end{aligned} $$

The tank's final mass is its initial mass plus the net change:

$$ M(5)=10+2=12\ \mathrm{kg}. $$

For total transfer, count both directions positively. The inflow is \(4\cdot2=8\) kilograms, and the outflow is \(2\cdot3=6\) kilograms, so

$$ T=8+6=14\ \mathrm{kg}. $$

Check the endpoint mass by tracking each interval: after the first \(2\) hours, the tank has \(10+8=18\) kilograms. During the next \(3\) hours it loses \(6\) kilograms, leaving \(18-6=12\) kilograms, which agrees with the integral calculation. The units also check: each rate in \(\mathrm{kg/hour}\) is multiplied by a duration in hours.

A Reliable Calculation Process

1
Set the sign convention.
For example, choose flow into the system as positive and flow out as negative. Interpret the given rate accordingly.
2
Identify the time interval and units.
Check that the limits use the same time unit as the denominator of the rate.
3
Calculate net change.
Evaluate \(\int_a^b q(t)\,dt\), splitting at any piecewise boundaries if needed.
4
Calculate total transfer if requested.
Use \(\int_a^b |q(t)|\,dt\), or split where the rate changes sign and add the positive amounts.
5
Find final mass when an initial mass is given.
Add the net change to the initial mass, then check that the result and units make sense.

Common Mistake: Treating Net Change as Total Transfer

In the sign-changing example, the signed integral is zero. A common but incorrect conclusion is that no mass was transferred:

$$ \int_0^4 (t-2)\,dt=0 \quad\text{so the total transferred is }0. $$

The first equality is correct, but the conclusion is not. It reports only net change: \(2\) kilograms left and \(2\) kilograms entered. The correction is to use the absolute value, or calculate each direction separately:

$$ \int_0^4 |t-2|\,dt = \left|\int_0^2(t-2)\,dt\right| +\int_2^4(t-2)\,dt = 2+2 = 4\ \mathrm{kg}. $$

Always ask whether the problem asks how much the system's mass changed overall or how much mass crossed the boundary in total. The first uses the signed rate; the second does not allow gains and losses to cancel.

Check Your Understanding

For each question, distinguish signed net change from total transfer, and include appropriate units.

  1. A system receives mass at \(q(t)=5\) kilograms per minute for \(3\) minutes. What are its net mass change and total mass transferred?
  2. A signed flow rate is \(q(t)=t-3\) kilograms per hour on \(0\leq t\leq6\). At what time does the flow reverse direction?
  3. For the rate in Question 2, is the net mass change positive, negative, or zero? What feature of the rate can help you decide before integrating?
  4. A tank begins with \(20\) kilograms and has a net mass change of \(-4\) kilograms over an interval. What is its final mass?
  5. Why can a net mass change of zero occur even when the total mass transferred is positive?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: 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