Riemann Sums

A Riemann sum estimates a definite integral by adding signed rectangle areas. As the rectangles get narrower, the estimate approaches the same value no matter where you sample each piece.

Video

Watch on YouTube

Theorem

Let ff be continuous on [a,b][a,b] with a<ba<b. Divide the interval into nn equal pieces of width Δx=b−an\Delta x=\frac{b-a}{n}, with endpoints xi=a+iΔxx_i=a+i\Delta x. Choose any sample point xi∗∈[xi−1,xi]x_i^*\in[x_{i-1},x_i] in each piece. Then ff is Riemann integrable and

lim⁡n→∞∑i=1nf(xi∗) Δx=∫abf(x) dx.\lim_{n\to\infty}\sum_{i=1}^{n} f(x_i^*)\,\Delta x=\int_a^b f(x)\,dx.

The limit is the same for every choice of sample points, even if those choices change as nn changes.

Show proofHide proof

On each subinterval, use the minimum of ff for the rectangle height to form the lower sum LnL_n. Use the maximum to form the upper sum UnU_n. Every sampled height lies between those two values, so each sampled sum SnS_n is between LnL_n and UnU_n.

Fix any ε>0\varepsilon>0. Since ff is uniformly continuous on the closed interval, choose δ>0\delta>0 so that points less than δ\delta apart have function values differing by less than εb−a\frac{\varepsilon}{b-a}. For nn large enough that Δx<δ\Delta x<\delta, this bounds the difference between the maximum and minimum on each subinterval. Multiply that bound by each width, then add.

Un−Ln<εb−a(b−a)=ε.U_n-L_n<\frac{\varepsilon}{b-a}(b-a)=\varepsilon.

By the upper–lower sum criterion, ff is Riemann integrable. Its integral II and the sampled sum SnS_n both lie between LnL_n and UnU_n. Therefore

∣Sn−I∣≤Un−Ln<ε.|S_n-I|\le U_n-L_n<\varepsilon.

This bound does not depend on the sample points. Since ε\varepsilon was arbitrary, every such sequence of sums converges to the definite integral.