Mathwords logoMathwords

Double Riemann Sum — Definition, Formula & Example

A double Riemann sum is an estimate of the volume under a surface z = f(x, y). You split a rectangular region into a grid of small rectangles, build a box on each one, and add up the box volumes.

Let f be bounded on R=[a,b]×[c,d]R = [a,b] \times [c,d]. Partition [a,b][a,b] into mm subintervals of width Δx\Delta x and [c,d][c,d] into nn subintervals of width Δy\Delta y. This divides RR into mnmn subrectangles RijR_{ij}, each with area ΔA=Δx Δy\Delta A = \Delta x\,\Delta y. Choose a sample point (xij∗,yij∗)(x_{ij}^*, y_{ij}^*) in each RijR_{ij}. The sum ∑i=1m∑j=1nf(xij∗,yij∗) ΔA\sum_{i=1}^{m}\sum_{j=1}^{n} f(x_{ij}^*, y_{ij}^*)\,\Delta A is a double Riemann sum. Suppose these sums approach the same limit as Δx,Δy→0\Delta x, \Delta y \to 0, for every choice of sample points. Then f is integrable on R, and that limit is the double integral ∬Rf(x,y) dA\iint_R f(x,y)\,dA.

Key Formula

Smn=∑i=1m∑j=1nf(xij∗,yij∗) ΔA,ΔA=b−am⋅d−cnS_{mn} = \sum_{i=1}^{m}\sum_{j=1}^{n} f(x_{ij}^*, y_{ij}^*)\,\Delta A, \qquad \Delta A = \frac{b-a}{m}\cdot\frac{d-c}{n}
Where:
  • m,nm, n = Number of subintervals in the x-direction and the y-direction
  • (xij∗,yij∗)(x_{ij}^*, y_{ij}^*) = Sample point chosen in subrectangle R_ij (a corner, the midpoint, and so on)
  • f(xij∗,yij∗)f(x_{ij}^*, y_{ij}^*) = Height of the box built on R_ij
  • ΔA\Delta A = Area of each subrectangle, equal to Δx times Δy

Worked Example

Problem: Use a midpoint double Riemann sum with m = 2 and n = 2 to estimate the volume under f(x,y)=x2+yf(x,y) = x^2 + y over the rectangle R=[0,2]×[0,4]R = [0,2] \times [0,4].
Step 1: Find the grid widths and the area of each subrectangle. The x-subintervals are [0,1] and [1,2]. The y-subintervals are [0,2] and [2,4].
Δx=2−02=1,Δy=4−02=2,ΔA=(1)(2)=2\Delta x = \frac{2-0}{2} = 1, \quad \Delta y = \frac{4-0}{2} = 2, \quad \Delta A = (1)(2) = 2
Step 2: The midpoints are x = 0.5 and x = 1.5, and y = 1 and y = 3. Evaluate f at all four midpoint pairs.
f(0.5,1)=1.25,f(0.5,3)=3.25,f(1.5,1)=3.25,f(1.5,3)=5.25f(0.5,1) = 1.25,\quad f(0.5,3) = 3.25,\quad f(1.5,1) = 3.25,\quad f(1.5,3) = 5.25
Step 3: Add the heights and multiply by ΔA. Check the estimate against the exact double integral.
S22=2(1.25+3.25+3.25+5.25)=2(13)=26,∬R(x2+y) dA=803≈26.67S_{22} = 2(1.25 + 3.25 + 3.25 + 5.25) = 2(13) = 26, \qquad \iint_R (x^2+y)\,dA = \frac{80}{3} \approx 26.67
Answer: The midpoint double Riemann sum is 26. The exact volume is 80/3 ≈ 26.67, so the estimate is off by less than 3% using only four boxes.

Visualization

Why It Matters

Calculus III uses double Riemann sums to define the double integral, which gives volume, mass, and average value over a region. Engineers and surveyors use the same sum on gridded data. For example, they multiply fill depths in feet on a site survey grid by each cell's area to estimate cubic feet of soil to move.

Common Mistakes

Mistake: Multiplying each height by only Δx or only Δy, as in a one-variable Riemann sum.
Correction: Each term is a box volume: height times base area. Multiply every f value by ΔA = Δx·Δy. In the example, using Δx = 1 alone would give 13 instead of 26.

Related Terms

  • Riemann Sum — One-variable version that sums rectangle areas
  • Lower Sum — Minimum-height version that bounds the integral from below
  • Jacobian — Rescales the area element when changing variables
  • Green's Theorem — Converts a double integral into a line integral
  • Divergence Theorem — Uses the triple-integral analog of these sums
  • Double Integral — The limit of double Riemann sums