From Rates to Inventory
An inventory changes when quantities enter or leave it. A warehouse receives deliveries and ships orders. A reservoir receives water and releases water. In each case, knowing just the inflow or just the outflow is not enough to determine the change: both affect the amount on hand.
The key is to compare the rates. Inflow adds to the inventory, while outflow subtracts from it. Their difference is the net rate of change. Integrating that net rate over a time interval gives the change in inventory during the interval. Adding that change to the initial amount gives the ending inventory.
Defining the Rates and Inventory
Let \(I(t)\) denote the amount in inventory at time \(t\). Let \(r_{\text{in}}(t)\) be the inflow rate and \(r_{\text{out}}(t)\) the outflow rate. Both rates are expressed in inventory units per unit of time. For example, if inventory is measured in boxes and time in hours, each rate has units of boxes per hour.
If \(r_{\text{net}}(t)>0\), the inventory is increasing at that time. If \(r_{\text{net}}(t)<0\), it is decreasing. If the two rates are equal, the inventory has zero instantaneous rate of change. These statements concern the direction of change, not whether the inventory itself is positive or negative.
Suppose the rates are continuous or piecewise continuous on an interval from \(t=a\) to \(t=b\), and the inventory at the beginning is \(I(a)\). The Fundamental Theorem of Calculus gives the change over the interval by integrating the derivative.
The integral has units of inventory: multiplying a rate in boxes per hour by time in hours produces boxes. The integral is a net change. It can be positive, negative, or zero; it is not necessarily the total amount that passed into or out of the inventory.
Why Subtracting the Rates Works
Over a short time interval of length \(\Delta t\), the amount entering is approximately \(r_{\text{in}}(t)\Delta t\), and the amount leaving is approximately \(r_{\text{out}}(t)\Delta t\). The inventory change over that short interval is therefore approximately the amount entering minus the amount leaving.
Divide the interval from \(a\) to \(b\) into smaller intervals. Add the approximate changes from all the small intervals. As the intervals become arbitrarily short, this sum approaches the definite integral of the net rate. The individual changes add to the total change, so the initial inventory plus that total change is the ending inventory.
Count inflow as positive and outflow as negative in the balance.
Subtract the outflow rate from the inflow rate at each time.
Integrate the net rate over the interval of interest.
Add the net change to the inventory at the starting time.
Worked Examples
Worked Example: Variable Inflow and Outflow Rates
A warehouse starts with \(120\) boxes. For \(0\le t\le 4\) hours, deliveries arrive at \(r_{\text{in}}(t)=30+2t\) boxes per hour, and shipments leave at \(r_{\text{out}}(t)=10+t\) boxes per hour. Find the inventory after four hours.
First find the net rate:
Integrate from \(t=0\) to \(t=4\) to find the net change:
Add the change to the initial inventory:
Check: An antiderivative of \(20+t\) is \(20t+\frac{t^2}{2}\), since its derivative is \(20+t\). The net rate is positive throughout the interval, so an ending amount greater than the initial \(120\) boxes is consistent with the rates.
Worked Example: Rates That Change at a Specific Time
A storage area begins with \(50\) crates. During the first three hours, crates enter at \(18\) crates per hour and leave at \(12\) crates per hour. During the following two hours, crates enter at \(10\) crates per hour and leave at \(14\) crates per hour. Find the inventory after five hours.
On \(0\le t<3\), the net rate is \(18-12=6\) crates per hour. On \(3\le t\le5\), it is \(10-14=-4\) crates per hour. Integrate each rate on its own interval:
Thus the ending inventory is
Check: The inventory increases by \(18\) crates during the first three hours, reaching \(50+18=68\). It then decreases by \(8\) crates during the next two hours, reaching \(68-8=60\). This agrees with the integral calculation, and the inventory remains positive during both intervals.
Worked Example: Net Rate Changes Sign
A tank contains \(40\) liters at time \(t=0\). For \(0\le t\le5\) minutes, liquid enters at \(r_{\text{in}}(t)=12+4t\) liters per minute and leaves at \(r_{\text{out}}(t)=20\) liters per minute. Find the amount in the tank after five minutes.
The net rate is
Integrate to find the net change:
Therefore, the amount after five minutes is
Check: The antiderivative \(-8t+2t^2\) differentiates to \(-8+4t\). The net rate is negative for \(0\le t<2\) and positive for \(2<t\le5\). In fact, the inventory at time \(t\) is \(I(t)=40-8t+2t^2\); at \(t=2\), \(I(2)=40-16+8=32\) liters. The inventory first decreases and then increases, so a positive total change of \(10\) liters over the full interval is plausible.
Common Pitfall: Reversing the Subtraction
A frequent error is to subtract inflow from outflow. In the warehouse example, reversing the order would give
Integrating this incorrect rate from \(0\) to \(4\) gives
That would predict an ending inventory of \(120-88=32\) boxes. But at every time in the interval, the delivery rate \(30+2t\) exceeds the shipment rate \(10+t\). The inventory must be increasing, not decreasing. The correction is to define the balance consistently as inflow minus outflow, giving a net change of \(+88\) boxes and an ending inventory of \(208\) boxes.
Interpreting the Result Carefully
A negative net change does not mean that the inventory is negative. It means the ending amount is less than the starting amount. For instance, a change of \(-8\) crates applied to an initial inventory of \(50\) crates gives an ending amount of \(42\), not \(-8\).
Likewise, a positive net change does not mean that no outflow occurred. It means the total amount entering over the interval exceeded the total amount leaving. The integral combines both effects with their signs. If the inventory represents a physical amount, a proposed model should also be checked against the context: an inventory cannot be below zero, and a model predicting that it is may indicate that the assumptions or time interval need attention.
To keep an accumulation problem organized, write the units alongside the rates and the integral. Check that the integration limits match the requested time interval, and apply the initial inventory only after finding the net change. This separates the rate calculation from the final initial-value calculation.
Check Your Understanding
For each question, keep the direction of flow and the time interval explicit.
- An inventory receives \(25\) units per hour and releases \(19\) units per hour. What is its net rate of change?
- A tank starts with \(70\) liters. Its net rate is \(3\) liters per minute for \(4\) minutes. What is its ending amount?
- In a \(6\)-hour interval, the inflow rate is \(14\) boxes per hour and the outflow rate is \(17\) boxes per hour. What is the net change?
- Explain why a positive value of \(\int_a^b(r_{\text{in}}(t)-r_{\text{out}}(t))\,dt\) does not imply that outflow was zero.
- If inflow and outflow rates are given by different formulas before and after a specified time, how should the net change be calculated?