A flow rate is not a stock. Revenue arriving at 5 currency units per hour for three hours contributes 15 currency units. When the rate varies, an integral adds the small contributions. The same framework reconstructs total cost from marginal cost and values a stream under an explicitly chosen discount model.
1 Riemann sums and the definite integral
Partition into , choose sample points , and form
A bounded function is Riemann integrable if all such sums approach the same number as the largest subinterval length tends to zero. This number is . A continuous function on a closed bounded interval is integrable: uniform continuity makes the oscillation on every sufficiently short subinterval small, so upper and lower sums differ by at most times that oscillation.
The integral is signed accumulation. Below-axis contributions are negative; total unsigned area is , not generally . The average value over an interval of positive length is .
2 The fundamental theorem
Theorem. If is continuous on and , then for . If on an interval containing , then .
Proof. The difference quotient for is the average of over the oriented interval from to . Its difference from is bounded by the largest on that interval, which tends to zero by continuity. Thus . Then , so the mean value theorem makes constant; evaluate at and .
If marginal cost is and fixed cost is , then
The integration constant cannot be inferred from a marginal rate alone.
3 Substitution and integration by parts
If and the functions have the needed continuous derivatives, the chain rule yields
The transformed limits matter, including their order. The product rule similarly gives
These formulas do not justify ignoring a singularity inside the interval. For example, is not an ordinary Riemann integral, nor a convergent improper integral, even though a symmetric principal value exists.
4 A continuous discounting model
Assume a deterministic continuously compounded discount rate per year. A payment at time is multiplied by . A continuous cash-flow rate on then has model present value
For constant , integration gives . Units check: currency/year times years is currency. As , the limit is , agreeing with undiscounted accumulation. For a nonnegative growing-rate model with , the formula is when , and when .
For , the infinite-horizon integral converges exactly when . In that case it equals . If , the flow and every finite- or infinite-horizon integral are zero for all rate values; the positive-flow convergence restriction does not apply. The conclusion follows by evaluating the finite integral and taking . If and , it grows linearly; if , it grows exponentially. These are conditional model calculations, not claims that a real cash flow or discount rate is known.
5 Graded practice
E1 Foundation. Find when and . Compute the cost accumulated from to .
E2 Technique. Evaluate and .
E3 Application. A model flow is currency units per year and the discount rate is 0.05 per year. Give its finite- and infinite-horizon model values.
E4 Interpretation. A net flow is on . Find net accumulation and total absolute flow.
6 Full solutions
S1. . The accumulated cost is .
S2. With , the first integral is . For the second, integration by parts with , gives .
S3. , so currency units. The infinite-horizon value is 400 because . Mixing percentage numbers 5 and 2 with decimal rates would change the model incorrectly.
S4. The signed integral is . The absolute integral splits at : . Zero net flow need not mean no activity.
Summary
Integration accumulates a rate and reconstructs an antiderivative only up to an initial value. The fundamental theorem links these viewpoints. Discounted-flow formulas require explicit rate conventions, consistent time units and, for an infinite horizon, a convergence check.