Double Integrals over Rectangles

In the same way as we can measure the area under a curve with a definite integral of one variable, this idea can be extended to measure the volume under a surface. To do so, we will consider a function of two variables defined on a closed rectangle

R=[a,b]×[c,d]={(x,y)R | axb,cyd}.

The main idea is to subdivide R into subrectangles. Once done, we can calculate the height of the subrectangle by evaluating f(x,y) with a sample point that falls in the subrectangle. There are many different methods for selecting such a point. The simplest case is if the point is in the upper right corner of the subrectangle. 

To subdivide R we define Δx=(ba)/m, and Δy=(dc)/n. The area of each subrectangle is ΔA=ΔxΔy.

Definition. The double integral of f over the rectangle R is
Rf(x,y) dA=limm, nmi=1nj=1f(xi,yj) ΔA
if this limit exists.

Note that if f(x,y) is a positive function for all values x,y within the region R, then we can interpret the integral as the volume under the surface
V=Rf(x,y) dA.

The sum in the definition (1),
mi=1nj=1f(xi,yj) ΔA
is called a double Riemann sum and is used to approximate the value of the double integral. 

Iterated integrals

The process of where we partially differentiate a function with respect to different variables, can be reversed, which is a procedure called partial integration with respect to a variable.

Fubini's Theorem. If f is continuous on the rectangle R, then
Rf(x,y) dA=badcf(x,y) dy dx=dcbaf(x,y) dx dy.

Average value

We define the average value of a function f of two variables on a rectangle R to be
fave=1A(R)Rf(x,y) dA.

Example

What we have looked at so far is pretty abstract. Let's make it more concrete with an example. Suppose we want to solve the integral
4121(xy+yx) dy dx.

We do this by setting x as a fixed value and integrating with respect to y, giving
41[xlogy+12x1y2]y=2y=1 dx,

plug in in the values for y (omitting the algebra)

41(xlog2+32x1) dx,

integrating with respect to x

[12x2log2+32x1]x=2x=1,

and finally plug in the values for x, giving us the final answer

152log232log4.