Integration as Accumulation

Riemann sum approximation of ∫₀³ x² dx = 9 — drag slider to add more rectangles
00.511.522.5302468f(x) = x²Approx: 5.906Exact: 9 (n→∞)
n = 480

Error: 3.0938 — approaches 0 as n → ∞

The standard introduction to integration describes it as "area under a curve." This is geometrically correct but conceptually narrow. The integral is better understood as a machine for accumulation — for adding up the effect of something that is continuously varying.

Area as the motivating case

Here's why area is a natural starting point. You know how to find the area of a rectangle: width times height. For a curved region, the height is constantly changing.

The idea: slice the region into thin vertical strips. Each strip is approximately a rectangle: width Δx\Delta x, height f(xi)f(x_i). Sum them all up:

Areai=1nf(xi)Δx\text{Area} \approx \sum_{i=1}^n f(x_i)\,\Delta x

Let nn \to \infty (strips getting infinitely thin). The approximation becomes exact:

Area=limni=1nf(xi)Δx=abf(x)dx\text{Area} = \lim_{n \to \infty} \sum_{i=1}^n f(x_i)\,\Delta x = \int_a^b f(x)\,dx

The integral symbol \int is an elongated SS for summa — it is literally a sum, taken to a continuous limit.

The same idea everywhere else

Once you see the structure — "continuously varying quantity, accumulated over an interval" — you see integrals everywhere.

Distance from velocity: if you drive at a varying speed v(t)v(t), the distance travelled from time aa to bb is:

d=abv(t)dtd = \int_a^b v(t)\,dt

If vv were constant, d=v×td = v \times t. Since it varies, you integrate.

Mass from density: a rod with varying linear density ρ(x)\rho(x) has total mass:

m=abρ(x)dxm = \int_a^b \rho(x)\,dx

Work from force: if a force F(x)F(x) varies with position, the work done moving from aa to bb:

W=abF(x)dxW = \int_a^b F(x)\,dx

In each case, the pattern is the same: (rate or density)d(variable)\int (\text{rate or density}) \cdot d(\text{variable}).

Probability: the continuous case

Discrete probability sums up P(eventi)P(\text{event}_i) over all events. Continuous probability integrates a density function.

The probability that a normally distributed variable XX (mean μ\mu, standard deviation σ\sigma) falls between aa and bb:

P(aXb)=ab1σ2πe(xμ)22σ2dxP(a \leq X \leq b) = \int_a^b \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{(x-\mu)^2}{2\sigma^2}}\,dx

This is just the "sum" of the probability density over the interval — but since the variable is continuous, you integrate rather than sum.

The total area under any probability density is 1: f(x)dx=1\int_{-\infty}^\infty f(x)\,dx = 1. This is the continuous analogue of "probabilities sum to 1."

The expected value

The expected value (mean) of a continuous random variable:

E[X]=xf(x)dxE[X] = \int_{-\infty}^\infty x \cdot f(x)\,dx

This is the weighted average of xx, where the weights are the probability densities f(x)f(x). Compare to the discrete case: E[X]=xiP(xi)E[X] = \sum x_i P(x_i). Integration is just continuous summation.

The average value of a function

If you have nn data points and want their average, you sum and divide by nn. For a continuous function over [a,b][a,b]:

fˉ=1baabf(x)dx\bar{f} = \frac{1}{b-a}\int_a^b f(x)\,dx

This is the average value of ff — the height of the rectangle with the same area as the region under the curve. The Mean Value Theorem for integrals guarantees that some c[a,b]c \in [a,b] achieves this average: f(c)=fˉf(c) = \bar{f}.

Signed area and cancellation

Integrals measure signed area: area below the xx-axis counts negative. This is the right convention for accumulation problems, where "going backward" cancels "going forward."

If v(t)v(t) is velocity (positive = moving right, negative = moving left), then:

  • abv(t)dt\int_a^b v(t)\,dt = net displacement (can be zero if you return to start)
  • abv(t)dt\int_a^b |v(t)|\,dt = total distance travelled (always non-negative)

These are different quantities. The integral gives displacement; to get distance, you take the absolute value of the integrand first.

Why the definition uses limits

The Riemann sum f(xi)Δx\sum f(x_i)\,\Delta x is an approximation. The integral is the exact limit as the width Δx0\Delta x \to 0. For any continuous function (and many discontinuous ones), this limit exists and is unique — regardless of how you choose the sample points xix_i within each subinterval.

This universality is what makes integration well-defined and not just a clever approximation trick. The limit is the concept that transforms an approximation into an exact computation.