Why Audit a Calculus Model?
A formula can be manipulated correctly and still describe the wrong applied quantity. A rate might have the wrong units, a withdrawal might have been given the wrong sign, or a cumulative quantity might fail to match its stated initial value. These errors can produce plausible-looking numbers while making the model internally inconsistent.
An audit checks the connections among a quantity, its rate of change, and its accumulated change. The goal here is not to determine whether a model agrees with external measurements. It is to check whether its units, signs, initial value, and endpoint total make sense together.
Check Units Before Calculating
Suppose \(X\) is measured in units of a quantity and \(t\) is measured in units of time. The derivative \(X'(t)\) has units of quantity per unit time. For example, if \(X(t)\) is a volume in cubic metres and \(t\) is in hours, then \(X'(t)\) must be in cubic metres per hour.
Integration reverses this unit relationship: multiplying a rate by a time interval gives a quantity. Thus, integrating a volume rate in cubic metres per hour over time in hours gives a volume in cubic metres. The units of the integrand and the integration variable must combine to give the units of the accumulated result.
Here the square brackets indicate units. These checks catch errors that ordinary arithmetic cannot. For instance, adding a rate in litres per minute directly to a volume in litres is not meaningful: their units differ. Before integrating, also check that the time variable and the rate are expressed using compatible time units.
Interpret the Sign of a Rate
A rate's sign describes direction relative to the chosen convention. For a stock that increases through inflow and decreases through outflow, the net rate is inflow minus outflow. For a cumulative quantity such as total energy used, a positive use rate makes the total rise. A negative rate can represent a decrease, but whether that is appropriate depends on the quantity and how the model defines positive direction.
Do not confuse the sign of a rate with the sign of the quantity itself. A positive stock can be decreasing if its rate is negative. Similarly, a positive net change over a whole interval does not require the rate to be positive at every moment: gains during one part of the interval can exceed losses during another.
Initial Values and Endpoint Totals
A rate specifies how a quantity changes, not its starting level. If the rate is \(r(t)\) and the initial quantity is \(X(a)=X_a\), then the quantity at a later time is the initial value plus the accumulated net change. This relation assumes the rate is integrable on the interval; in the examples below, the rates are continuous.
The integration variable \(s\) is a placeholder for time inside the integral. The first equation gives the quantity throughout the interval; the second gives its endpoint value. A reliable audit checks both: does the formula at \(t=a\) reproduce the specified initial value, and does its change from \(a\) to \(b\) equal the integral of the rate?
Why the Rate and Accumulation Must Agree
The connection between rate and accumulated change follows from the Fundamental Theorem of Calculus. If \(r\) is continuous on \([a,b]\), define \(X(t)=X_a+\int_a^t r(s)\,ds\). For a small nonzero increment \(h\), the difference quotient is the average value of \(r\) over the interval from \(t\) to \(t+h\). Continuity makes that average approach \(r(t)\) as \(h\) approaches zero.
So the formula constructed by adding the initial value to accumulated rate has exactly the specified rate of change. Setting \(t=b\) in its definition also gives \(X(b)-X_a=\int_a^b r(s)\,ds\): the endpoint difference is the net accumulated change, not necessarily the total amount of activity in both directions. These facts provide two checks on a proposed formula: differentiate it to recover the rate, and compare its endpoint change with the rate integral.
Worked Examples
Worked Example: Auditing Reservoir Storage
A reservoir initially contains \(120\) cubic metres. Over the next \(8\) hours, water enters at \(10\) cubic metres per hour and leaves at \(4+0.5t\) cubic metres per hour, where \(t\) is measured in hours from the start. Construct the storage model and check its endpoint total.
First check the units: both flow rates are in cubic metres per hour, so their difference is also a volume rate. Storage increases by inflow and decreases by outflow:
Integrate the net rate and add the initial storage. The time variable in the integral is in hours, so the result of integrating the rate is in cubic metres.
At the endpoint \(t=8\), the model gives
Now check the result. Differentiating the model gives \(V'(t)=6-0.5t\), the stated net rate. The accumulated net change is \(\int_0^8(6-0.5t)\,dt=48-16=32\) cubic metres, and \(120+32=152\) cubic metres. At \(t=8\), inflow is \(10\) and outflow is \(8\) cubic metres per hour, so the endpoint rate is \(2\) cubic metres per hour, consistent with \(6-0.5(8)=2\). All units and signs agree.
Worked Example: Auditing Inventory with a Sign Change
An inventory starts at \(40\) items. Production is \(14\) items per hour, and demand is \(5+2t\) items per hour for \(0\leq t\leq5\), with \(t\) in hours. Find the inventory model and endpoint inventory.
Inventory rises through production and falls through demand, so the correct net rate is production minus demand:
Using the initial inventory and integrating this rate gives
At five hours,
Check the endpoint total from the rate: \(\int_0^5(9-2t)\,dt=45-25=20\) items, so the endpoint inventory is \(40+20=60\) items. Differentiating the proposed inventory gives \(I'(t)=9-2t\), as required, and \(I(0)=40\), as required. The net rate changes sign at \(9-2t=0\), or \(t=4.5\) hours; at five hours it is \(-1\) item per hour. Inventory can therefore be decreasing at the endpoint while still ending above its initial value. In fact, at \(t=4.5\), \(I(t)=40+40.5-20.25=60.25\) items, so the modeled inventory stays positive on this interval.
Worked Example: Checking Energy Units and a Nonzero Initial Total
A system has already used \(7\) kilowatt-hours of energy at time \(t=0\). Its power use is \(2+0.5t\) kilowatts for the next \(4\) hours. Find the cumulative energy use at \(t=4\) and audit the model.
Power is energy per time. Since kilowatts are kilowatt-hours per hour, integrating power over hours gives energy in kilowatt-hours. With \(E(0)=7\),
At \(t=4\),
The power used during the four-hour interval is \(\int_0^4(2+0.5t)\,dt=8+4=12\) kilowatt-hours. Adding the initial \(7\) kilowatt-hours gives \(19\) kilowatt-hours. Differentiating \(E(t)\) gives \(E'(t)=2+0.5t\) kilowatts, and substituting \(t=0\) gives \(E(0)=7\) kilowatt-hours. The rate is positive throughout the interval, so cumulative energy use increases. The nonzero initial value matters: the integral alone gives energy used during the interval, not the total already accumulated by its endpoint.
A Common Sign Mistake
Suppose the inventory example is incorrectly written with demand added to production. The wrong calculation would be
This says that increasing demand makes the inventory grow faster. That conflicts with the stated meaning of demand as a removal from inventory. The correction is to subtract demand: \(I'(t)=14-(5+2t)=9-2t\). The resulting five-hour change is \(45-25=20\) items, rather than the incorrect \(95+25=120\) items. The sign is not a cosmetic choice; it determines what the model says happens to the stock.
A Practical Audit Sequence
For an applied model relating a quantity to a rate, use the following checks before interpreting its predictions:
State what is being modeled and how it is measured.
Confirm that the rate has units of quantity per time and that gains and losses enter with the intended signs.
Substitute the initial time into the quantity model and compare the result with the specified starting amount.
Differentiate the quantity formula and verify that it recovers the stated rate, with the correct units.
Integrate the net rate over the interval, add the initial quantity, and compare that value with the model at the endpoint.
These checks address different possible failures. A model can have the right initial value but the wrong rate, or the right rate but the wrong initial value. Its endpoint may look reasonable while an incorrect sign has distorted the accumulated change. Agreement among the derivative, integral, initial value, endpoint, and units provides a basic internal consistency check.
Check Your Understanding
Use the units, signs, and accumulation relationships in each question to audit the proposed model.
- A tank volume is measured in litres and time in minutes. What units must its derivative have, and what units result from integrating that derivative over time?
- A stock receives an inflow of \(12\) units per hour and has an outflow of \(7\) units per hour. What is its net rate of change, and what sign does that rate have?
- A quantity starts at \(25\) units and has rate \(r(t)=3\) units per hour for two hours. What endpoint value follows from the initial value and accumulated change?
- Why can a stock be positive while its rate of change is negative?
- A proposed cumulative model has the correct derivative but gives \(X(0)=0\) when the stated initial value is \(18\). What part of the model must be corrected?