Why Open Systems Need a Balance
An open system can gain or lose material because material crosses its boundary. A tank can receive liquid through one pipe and release it through another. A vessel can admit a material while a separate stream carries material away. To model how much material is present, we must account for both directions of transfer.
The essential accounting statement is simple: the amount in the system changes by the amount entering minus the amount leaving. The challenge is to define the system and its stock precisely, identify which flows cross its boundary, and make sure their units and signs are consistent.
System, Stock, and Boundary Flows
A system is the portion of the world selected for modeling. Its boundary separates what is inside the system from what is outside. The stock is the amount of the chosen quantity inside that boundary at a given time.
For example, if the system is the liquid in a tank, the stock might be the liquid's mass \(M(t)\), measured in kilograms, or its volume \(V(t)\), measured in cubic metres. An inflow is a rate at which that quantity crosses into the system; an outflow is a rate at which it crosses out. Both are defined as nonnegative rates. The signs are assigned when they are used in the balance: inflow adds to the stock, and outflow subtracts from it.
Only flows that cross the chosen boundary belong in this balance. A stream moving around inside the system does not cross the boundary merely because it moves from one location to another. Choosing a different system boundary can therefore change which physical flows count as inflows or outflows.
This form applies when the quantity is conserved within the system: it is not being created or destroyed there. For total mass, this is the usual assumption in an ordinary material-flow model. A balance for a particular substance may need an additional production or consumption term if processes inside the boundary create or destroy that substance. That is a different model from the boundary-flow-only balance developed here.
Rate Form and Accumulated Form
The rate equation describes the stock's instantaneous change. If \(I(t)>O(t)\), then \(\frac{dS}{dt}>0\), so the stock is increasing at that time. If \(I(t)<O(t)\), it is decreasing. Equal inflow and outflow rates give zero instantaneous stock change. These statements concern the rate at a time; a stock can still have changed over an interval even if its rate is zero at one particular instant.
Over an interval from \(t=a\) to \(t=b\), the same accounting rule says that the change in stock equals the total amount entering minus the total amount leaving. If the rates are integrable, this can be written as
Equivalently, when an initial stock \(S(a)\) is known, the stock at a later time \(t\) is
The integrals represent accumulated amounts, not rates. For example, integrating a mass flow rate measured in kilograms per minute over minutes gives a mass in kilograms. The rate equation and the accumulated equation express the same balance at different scales: one describes change per unit time, and the other describes total change across an interval.
Why the Balance Equation Is Correct
The balance follows directly from accounting across a time interval. Assume the inflow and outflow rates are continuous on the interval under consideration. During the interval from \(t\) to \(t+h\), the amount entering is \(\int_t^{t+h} I(u)\,du\), and the amount leaving is \(\int_t^{t+h} O(u)\,du\). Conservation means that the stock's change is exactly the entering amount minus the leaving amount.
For \(h\ne 0\), divide both sides by \(h\). As \(h\) approaches zero, the left side approaches \(S'(t)\), by the definition of the derivative. By continuity, the average value of each rate over the shrinking interval approaches its value at \(t\). Thus the right side approaches \(I(t)-O(t)\), giving
Integrating this rate equation from \(a\) to \(b\) recovers the accumulated form by the Fundamental Theorem of Calculus. Conversely, the interval balance gives the rate equation at times where the rates and stock are differentiable as required. The interval form is especially useful when rates change abruptly: the total accounting across the interval remains meaningful even if a derivative does not exist at the instant of a change.
Worked Examples
Worked Example: A Tank with Constant Mass Flows
A tank contains \(120\) kilograms of material at time \(t=0\). Material enters at \(5\) kilograms per minute and leaves at \(2\) kilograms per minute. Find the mass in the tank after \(8\) minutes, assuming the rates remain constant.
Let \(M(t)\) be the mass, in kilograms, and measure \(t\) in minutes. The balance is
Because the net rate is constant, the mass increases by \(3t\) kilograms after \(t\) minutes. Using the initial mass gives
At \(t=8\) minutes,
Check by accumulated flows: \(5(8)=40\) kilograms enter, and \(2(8)=16\) kilograms leave. The net addition is \(40-16=24\) kilograms, so the final mass is \(120+24=144\) kilograms. Also, differentiating \(M(t)=120+3t\) gives \(M'(t)=3\) kilograms per minute, equal to inflow minus outflow.
Worked Example: A Water Stock with a Time-Varying Inflow
A basin contains \(10\) cubic metres of water at \(t=0\). Water enters at \(0.6+0.1t\) cubic metres per minute and leaves at a constant \(0.2\) cubic metres per minute, where \(t\) is measured in minutes. Find the volume after \(4\) minutes.
Let \(V(t)\) be the water volume in cubic metres. The balance is
Accumulate the net rate over \(0\leq t\leq 4\) and add the initial volume:
At the upper endpoint, \(0.4(4)+0.05(4^2)=1.6+0.8=2.4\). At the lower endpoint, \(0.4(0)+0.05(0^2)=0\). Therefore,
Check the separate totals. The amount entering is
The amount leaving is \(0.2(4)=0.8\ \text{m}^3\). Their difference is \(3.2-0.8=2.4\ \text{m}^3\), giving \(10+2.4=12.4\ \text{m}^3\), as before. A further check is that \(V(t)=10+0.4t+0.05t^2\), whose derivative \(0.4+0.1t\) equals the stated net rate.
Worked Example: Finding an Unknown Outflow from a Mass Balance
A system initially contains \(75\) kilograms of material. Material flows in at \(4\) kilograms per minute, and a constant outflow rate \(q\) is unknown. After \(10\) minutes, the stock is \(61\) kilograms. Find \(q\).
Apply the interval balance. The stock change is \(61-75=-14\) kilograms. The amount entering in \(10\) minutes is \(4(10)=40\) kilograms, and the amount leaving is \(10q\) kilograms. Therefore,
Subtract \(40\) from both sides to obtain \(-54=-10q\). Divide by \(-10\):
Check by substituting this rate into the balance: \(40-5.4(10)=40-54=-14\) kilograms. Adding that change to the initial stock gives \(75-14=61\) kilograms, as specified. The positive value of \(q\) is consistent with its definition as an outflow rate.
Checking a Conservation Model
Before using a balance equation, check that its quantities match the physical situation. These checks do not replace the accounting argument, but they can reveal a mistaken model.
- Check the boundary: Decide exactly what is inside the system. Include only flows crossing that boundary.
- Check the units: The inflow and outflow rates must use the same stock unit and time unit. The derivative \(\frac{dS}{dt}\) must have those rate units as well.
- Check the signs: Inflow is added and outflow is subtracted. Since \(I(t)\) and \(O(t)\) are nonnegative, the net rate can be positive, zero, or negative.
- Check the stock: A calculated stock should be physically meaningful for the model. A negative amount of material usually signals inconsistent assumptions, an unsuitable time interval, or an error.
A volume balance for water uses volumetric flow rates when volume is an appropriate stock measure, as it commonly is for liquid-water models. A mass balance instead uses mass flow rates and tracks mass directly. Do not subtract a volume rate from a mass rate: their units differ, so that expression cannot represent a stock's rate of change.
A Common Sign Mistake
A frequent error is to subtract inflow and add outflow. For the first example, that incorrect choice would give
This predicts a loss of \(24\) kilograms even though \(40\) kilograms entered and only \(16\) kilograms left. The direct accounting check exposes the mistake: the net amount added must be \(40-16=24\) kilograms, not \(-24\). The corrected balance is inflow minus outflow, \(5-2=3\) kilograms per minute, giving \(144\) kilograms after \(8\) minutes.
Why Conservation Balances Matter
The balance equation turns a physical description into a mathematical model that can be analyzed over time. It links a stock to measurable boundary rates without requiring the stock to remain constant. Once the boundary and quantities are specified, the same accounting logic applies whether the stock is mass in a vessel or water in a basin.
The key is to preserve the meaning of each term: a stock is an amount, each flow is an amount per unit time, and the net change comes from adding what enters and subtracting what leaves. Writing the balance before calculating helps make assumptions visible and makes errors easier to detect.
Check Your Understanding
Use the balance idea to answer each question. State units where relevant.
- A stock has an inflow rate of \(7\) kilograms per minute and an outflow rate of \(7\) kilograms per minute. What is its instantaneous rate of change?
- A tank receives \(3\) kilograms per minute and loses \(5\) kilograms per minute for \(4\) minutes. What is the net stock change over that interval?
- Why must a mass inflow rate and a volume outflow rate not be subtracted directly in one balance equation?
- A system's boundary is changed so that a pipe previously outside the system is now inside it. Why might that pipe's flow no longer appear as a boundary flow in the balance?
- In the basin example, what are the total water inflow and total water outflow during the first \(4\) minutes, and how do they determine the volume change?