Integral Calculus and Differential Equations › The Definite Integral as Accumulation
Quantitative FinanceAll chapters Integral Calculus and Differential Equations › The Definite Integral as AccumulationOne section · Sections in this chapter2 / 14 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
The definite integral of a rate gives its net accumulated change over an interval. If you know the flow rate through a pipe, integrating it gives the volume that passed through. Similarly, if is a financial rate of change in dollars per year, gives the change in dollars. Integrating a balance itself would instead have units of dollar-years, not dollars.
Geometrically, the definite integral equals the signed area under the curve between and . Areas above the horizontal axis contribute positively, while areas below contribute negatively. This interpretation has direct financial meaning. If represents a continuous cash flow rate, the integral gives the total cash accumulated over the period. Positive net flows increase the tracked account's cash balance, while negative flows decrease it. Transfers between your own accounts or loan repayments need not change total net worth by the same amount.
The challenge, of course, is computing these areas precisely when the curve is not a simple geometric shape. This is where the formal definition through Riemann sums becomes essential, and gives a rigorous foundation for calculating accumulated quantities even when the rate of change follows complex patterns.
For a Riemann-integrable function on , with , the definite integral is the common limit of its tagged sums. Every continuous function on this closed interval meets this condition:
where:
- : the interval of integration
- : number of subintervals (approaches infinity in the limit)
- : width of each subinterval
- : a sample point in the -th subinterval
- : value of at a sample point in the -th subinterval
- : signed area of the approximating rectangle, approximating the integral over the -th subinterval
The sum adds these signed rectangle areas. As , their widths tend to zero and, for a Riemann-integrable function, the sums converge to the same integral regardless of the sample points chosen.
The intuition behind Riemann sums is straightforward: we approximate a complex shape using familiar ones. Just as ancient mathematicians approximated the area of a circle by inscribing polygons with ever more sides, we approximate the area under a curve by filling it with thin rectangles. Each rectangle has width and height determined by the function value at some point within that slice. The product gives the area of each rectangle, and summing all rectangles approximates the total area. As we use more rectangles (larger ), each rectangle becomes narrower ( shrinks), and the sums converge for a Riemann-integrable function, though successive errors need not decrease monotonically.



For a continuous on , the Fundamental Theorem of Calculus connects differentiation and integration: differentiating the accumulation function recovers . Integrating a derivative instead recovers the original function's change; an indefinite antiderivative is determined only up to an additive constant. If , then:
This theorem turns the problem of computing integrals into finding antiderivatives, which is often more tractable than evaluating limits of sums directly. Rather than computing an infinite limit of rectangle sums, we can simply find a function whose derivative equals our integrand, then evaluate the difference at the endpoints. This is why antiderivative tables and integration techniques are so useful: they provide shortcuts to what would otherwise require tedious limiting arguments.
A Financial Interpretation
Consider a savings account with a time-varying deposit rate measured in dollars per year. This rate might change because your income grows over time, or because you commit to increasing your contributions annually. Over a small time interval , you deposit approximately dollars, the rate times the duration. To find the total amount deposited from time to time , we must sum all these infinitesimal contributions, which is precisely what the integral computes:
If dollars per year, with in years, the deposit rate increases continuously by $100 per year for each elapsed year. Over five years:
You would deposit a total of $6,250 over the five-year period. Notice how the antiderivative captures both the base contribution () and the cumulative effect of the increasing contributions (). The Fundamental Theorem lets us compute this by simple evaluation rather than summing five years of daily deposits.
from scipy import integrate
# Define the deposit rate function
def deposit_rate(t):
return 1000 + 100 * t
# Compute the integral numerically
total_deposits, error = integrate.quad(deposit_rate, 0, 5)Total deposits over 5 years: $6,250.00 Numerical integration error estimate: $6.94e-11
The numerical result confirms our analytical calculation. The scipy.integrate.quad function uses adaptive QUADPACK routines and returns an error estimate. Requested tolerances and the subdivision limit constrain the algorithm. Integrand behavior and problem conditioning also matter, as does floating-point arithmetic.