Why Scheduled Rate Changes Need Care
A process may operate under different conditions at different scheduled times. A machine could run at one rate during setup, another during normal operation, and a third during a reduced-speed period. The rate changes when the operating regime changes, but the amount accumulated before that time remains part of the total.
The key modeling task is to keep two ideas distinct: the rate describes what is happening now, while the cumulative total records what has happened over the whole elapsed interval. A jump in rate does not itself create an extra amount, and it does not erase the amount already accumulated.
Piecewise Rates and Regime Boundaries
Let the scheduled change times be \(t_0<t_1<\cdots<t_n\). These times divide the operating period into regimes. A rate function \(r(t)\) is piecewise-defined when it has a specified formula on each regime, such as a constant rate on one interval and a different formula on the next.
The rate’s units must be amount per unit time. For example, if \(r(t)\) is measured in items per minute, integrating it over a time interval gives an amount measured in items. The rate can jump at a scheduled time, so its left-hand and right-hand values need not agree there.
Let \(C(t)\) denote the cumulative amount at time \(t\), with initial amount \(C(t_0)=C_0\). If \(r\) is integrable on the time interval, then the model is
The integration variable \(s\) is a dummy variable: it ranges over elapsed time, while \(t\) is the endpoint at which the total is being evaluated. When the rate is piecewise-defined, split the integral at every scheduled boundary between \(t_0\) and \(t\).
The Accumulation Formula Across Regimes
Suppose the observation time \(t\) falls in regime \(j\), so \(t_j\le t<t_{j+1}\). If the rate on regime \(i\) is \(r_i\), then the cumulative total is
Each complete regime contributes its full integral. The current regime contributes only from its start time up to the observation time. If \(t\) is exactly a scheduled boundary, the contribution from the next regime is zero so far.
Why the Contributions Add
The formula follows from additivity of the definite integral. If \(a<b<c\) and the rate is integrable, then
Applying this identity at each scheduled change time splits the total accumulation into nonoverlapping pieces. On each piece, use the formula assigned to that regime. No elapsed time is omitted, and no interval is counted twice.
Identify every scheduled boundary between the initial time and the time at which the cumulative total is requested.
Integrate each regime’s rate from its start to its scheduled end.
Integrate the current regime’s rate only up to the observation time.
Add \(C_0\) once, then check the units and boundary accounting.
This derivation also explains why the cumulative quantity does not jump just because the rate does. Over an interval whose length tends to zero, the accumulated contribution tends to zero when the rate remains bounded near the switch. The rate can have different values on the two sides, but the integral still joins the contributions on either side at the same cumulative value.
Worked Example: Constant Rates on Three Regimes
Worked Example: Constant Rates on Three Regimes
A counter starts at \(C(0)=10\) items. Its rate is \(4\) items per minute from time \(0\) to \(3\) minutes, \(7\) items per minute from \(3\) to \(5\) minutes, and \(2\) items per minute from \(5\) to \(8\) minutes. Find the cumulative total at \(t=8\) minutes.
Write the piecewise rate as
The first regime lasts \(3-0=3\) minutes, so its contribution is \(4(3)=12\) items. The second lasts \(5-3=2\) minutes, contributing \(7(2)=14\) items. The third lasts \(8-5=3\) minutes, contributing \(2(3)=6\) items. Therefore,
Check: The three elapsed durations add to \(3+2+3=8\) minutes, and the accumulated amount above the baseline is \(12+14+6=32\) items. Adding the starting \(10\) items gives \(42\) items. The units also check: items per minute multiplied by minutes gives items.
Worked Example: A Time-Varying Rate Within Each Regime
Worked Example: A Time-Varying Rate Within Each Regime
A cumulative quantity starts at \(C(0)=3\) units. Its rate, in units per hour, is \(r(t)=2+t\) for \(0\le t<2\), then \(r(t)=8-t\) for \(2\le t\le4\). Find \(C(4)\).
Integrate the first regime over its full interval:
Then integrate the second regime from \(2\) to \(4\):
Add both contributions to the initial value:
Check: The antiderivatives differentiate back correctly: \(\frac{d}{ds}(2s+s^2/2)=2+s\), and \(\frac{d}{ds}(8s-s^2/2)=8-s\). The first regime contributes \(6\) units, the second \(10\), and the initial amount is \(3\), giving \(19\) units in total.
Worked Example: Evaluating Exactly at a Switch
Worked Example: Evaluating Exactly at a Switch
A signed rate is \(5\) units per hour from \(t=0\) to \(t=2\), \(-3\) units per hour from \(t=2\) to \(t=5\), and \(2\) units per hour from \(t=5\) to \(t=7\). The initial cumulative value is \(C(0)=20\) units. Find the value at the switch time \(t=5\).
By time \(5\), the first regime has lasted \(2\) hours and the second has lasted \(5-2=3\) hours. The third regime has just begun, so its elapsed duration is zero. Thus
Check: From time \(0\) to \(2\), the total increases from \(20\) to \(20+10=30\). From time \(2\) to \(5\), it changes by \(-9\), reaching \(30-9=21\). The rate after time \(5\) has not yet contributed. Its value at the single endpoint cannot add an amount without elapsed time.
A Common Boundary Error
A frequent mistake is to include a full contribution from the regime that begins at the observation time. For example, in the first example, the total at \(t=3\) minutes is not \(10+4(3)+7(2)\). That incorrect calculation includes two minutes of the second regime even though the observation is at its start.
The correction is to measure each contribution from its own regime interval. At \(t=3\), the first interval is complete and the second interval has length \(3-3=0\). The value \(C(3)=22\) is then carried forward as the starting cumulative value for the next regime. Do not restart the cumulative total at the boundary.
Check Your Understanding
For each question, identify the regime intervals carefully before calculating.
- A quantity starts at \(6\) units and increases at \(3\) units per minute for \(2\) minutes, then \(5\) units per minute for \(4\) minutes. What is its cumulative value at the end?
- If a rate changes at time \(t=4\), which regimes contribute to the cumulative total at exactly \(t=4\)?
- A rate is \(r(t)=t\) on \(0\le t<2\) and \(r(t)=4\) on \(2\le t\le3\). With initial value \(C(0)=0\), find \(C(3)\).
- Explain why changing the value assigned to the rate at one isolated switch time does not change the cumulative integral.
- In a signed-rate model, what does a negative contribution do to the cumulative value?