Riemann Sums

Summary

A Riemann sum approximates a definite integral by summing sample heights times subinterval widths. Refining the partition makes the sum approach the integral when f is Riemann integrable.

Prerequisites

Limits, Integrals

Definition

Partition [a,b] into n subintervals of width Δx=(ba)/n (equal partitions for simplicity). Choose sample points xi in the i -th subinterval. The Riemann sum is

i=1nf(xi)Δx.

Common choices: left endpoints, right endpoints, or midpoints.

For a rectangle [a,b]×[c,d] and f(x,y) ,

i=1mj=1nf(xi,yj)ΔxΔy.

Conditions / Assumptions

Worked Example

Approximate 01x2dx with n=4 midpoint rule: Δx=1/4 , midpoints 1/8,3/8,5/8,7/8 .

S4=[(18)2+(38)2+(58)2+(78)2]14=(1+9+25+4964)14=846414=2164=0.328125.

The exact value is 1/30.333 .

Double integral midpoint sample for [0,1]2xydA with a 2×2 grid: midpoints (1/4,1/4) , (3/4,1/4) , (1/4,3/4) , (3/4,3/4) , and ΔxΔy=(1/2)(1/2)=1/4 .

S=(116+316+316+916)14=(1)14=14,

which matches 0101xydxdy=1/4 exactly for this function and grid.

Common Mistakes

Connections

References

Riemann sums are introduced in OpenStax Calculus Volume 1.[1]


  1. OpenStax, Calculus Volume 1, Section 5.1–5.2, https://openstax.org/details/books/calculus-volume-1 ↩︎