The Riemann sum above is actually two sums, one in i and one in j:
This is very similar to the way we do integrals in one variable: We could apply this to the two variable case by breaking up the summation and the limits, as follows: This gives a clue as to how we should go about evaluating the double integral. We do it one variable at a time (surprise!) This type of integral is called an iterated integral since we integrate with respect to one variable and then another. As it turns out, we could have organized the summations differently and reversed the order of integration: Usually, reversing the order will take more work, but for a rectangular region such as this, it's pretty straightforward.Here's an example: Integrate the function f(x,y) = x2 + 2xy + y2 over the rectangle, R, given by .
We could also evaluate this by integrating in the opposite order: