Riemann Sum

Approximating the area under a curve by summing the areas of thin rectangles — the geometric intuition behind the definite integral.

Riemann sums approximate area with rectangles
f(x) = x^2 on [0, 2]xy
Rule
Estimate
R4 = 3.750
Exact area is 2.667.
Definition

A Riemann Sum approximates the area under a curve by dividing the region into rectangles and summing their areas.

For a function ff on [a,b][a, b], divide into nn subintervals of width Δx=b−an\Delta x = \frac{b - a}{n}. Choose a sample point xi∗x_i^* in each subinterval [xi−1,xi][x_{i-1}, x_i]. The Riemann sum is:

Rn=∑i=1nf(xi∗)⋅ΔxR_n = \sum_{i=1}^{n} f(x_i^*) \cdot \Delta x

Three common choices for xi∗x_i^*:

  • Left Riemann Sum: xi∗=xi−1x_i^* = x_{i-1} (left endpoint of each subinterval)
  • Right Riemann Sum: xi∗=xix_i^* = x_i (right endpoint)
  • Midpoint Rule: xi∗=xi−1+xi2x_i^* = \frac{x_{i-1} + x_i}{2}
Right Riemann sum for xÂē

Approximate âˆŦ02x2 dx\int_0^2 x^2\, dx using a right Riemann sum with n=4n = 4.

Δx=0.5\Delta x = 0.5. Right endpoints: x1=0.5x_1 = 0.5, x2=1.0x_2 = 1.0, x3=1.5x_3 = 1.5, x4=2.0x_4 = 2.0.

R4=0.5[(0.5)2+(1)2+(1.5)2+(2)2]=0.5[0.25+1+2.25+4]=0.5(7.5)=3.75R_4 = 0.5[(0.5)^2 + (1)^2 + (1.5)^2 + (2)^2] = 0.5[0.25 + 1 + 2.25 + 4] = 0.5(7.5) = 3.75

The exact value is 83≈2.667\frac{8}{3} \approx 2.667. Our approximation overestimates because x2x^2 is increasing.

Try it

Approximate âˆŦ01x dx\int_0^1 x\, dx using a left Riemann sum with n=4n = 4. Compare to the exact answer.

Solution

Δx=0.25\Delta x = 0.25. Left endpoints: 0,0.25,0.5,0.750, 0.25, 0.5, 0.75.

L4=0.25[0+0.25+0.5+0.75]=0.25⋅1.5=0.375L_4 = 0.25[0 + 0.25 + 0.5 + 0.75] = 0.25 \cdot 1.5 = 0.375

Exact: âˆŦ01x dx=12=0.5\int_0^1 x\, dx = \frac{1}{2} = 0.5. Error =0.125= 0.125. The left sum underestimates because f(x)=xf(x) = x is increasing.

Related concepts