How to use the midpoint rule for double integrals

The midpoint rule for a single integral uses rectangles to estimate area. For a double integral, the rectangles become bases of boxes. We’ll use the function value at each base’s midpoint to choose the height of its box.

Divide the region and find the area of each base

On R=[a,b]×[c,d], divide the x-interval into m equal parts and the y-interval into n equal parts. The widths are Δx=(b-a)/m and Δy=(d-c)/n. Each base has area ΔA=ΔxΔy.

Let xi* and yj* be the midpoints of those intervals. Use f(xi*,yj*) as the height for that base. When f is nonnegative, the sum of the box volumes approximates the volume under the surface.

∬Rf(x,y)dA≈∑i=1m∑j=1nf(xi*,yj*)ΔA

Find the four midpoints in the example

Let f(x,y)=x+y2+2 on R=[0,2]×[0,4] with m=n=2. Split at x=1 and y=2. The x-midpoints are 1/2 and 3/2. The y-midpoints are 1 and 3. Each rectangle has ΔA=(1)(2)=2.

Four rectangles and their midpointsThe region from x zero to two and y zero to four is divided at x equals one and y equals two. The bottom row has midpoint A at one-half, one and B at three-halves, one. The top row has C at one-half, three and D at three-halves, three.01224ABCDxy
Each rectangle is 1 unit wide and 2 units tall. The dots mark the four sample points.

Evaluate the height at each midpoint

At midpoint A, for example, f(1/2,1)=1/2+12+2=7/2. Do the same for the other three points.

Heights above the four midpoints
PointMidpointHeight
A(12,1)72
B(32,1)92
C(12,3)232
D(32,3)252

The four bases have the same area, so we can add the heights first and multiply by 2.

2(72+92+232+252)=64

The estimated volume is 64 cubic units. For comparison, the exact volume is 200/3 cubic units. You get that by integrating in x from 0 to 2, then in y from 0 to 4.