Multivariable calculus
Double Integral of xy Over [0,2] by [0,3]
The double integral of xy over the rectangle x from 0 to 2 and y from 0 to 3 equals 9. The integrand is a function of x times a function of y and every limit is a constant, so the double integral splits into a product of two single integrals: 2 times 4.5, which is 9.
Numerically 9.000000, confirmed by quadrature on every build.
Work from the inside out
Over a rectangle the double integral becomes an iterated integral, and you evaluate the inner one first. In the inner integral is in , so is frozen and rides along as a constant multiplier.
The inner answer contains no at all. That is the signal the first integration is finished: a surviving means you forgot to substitute a limit. Now integrate what is left.
The other order gives the same 9, since and . Fubini's theorem guarantees that for any continuous integrand on a rectangle.
The separable shortcut, and when you are allowed to use it
Here is one factor per variable, and every limit is a number rather than a function. Those two conditions together let the double integral break into a product of single integrals.
- The integrand must be a product . A sum such as does not qualify.
- Every limit must be constant. Over a triangle where runs from to , the split is invalid.
- Both conditions fail more often than they hold, so check them before reaching for the shortcut.
The mistake: matching limits to the wrong differential
The usual wrong first line pairs the limits and with . The differential names the variable, and the limits closest to the integrand belong to the differential closest to it: travels with to , and with to on the outside.
On this particular integrand the swap hides itself. Swapping gives , the right answer by accident, so the habit survives to a problem where it does damage.
Change the integrand to over the same rectangle and the damage shows: the correct value is , while the swapped limits give .
- Write the limits next to their own integral sign before you compute anything.
- After the inner integral, check that the inner variable is gone.
- If the inner variable survives, you substituted only the upper limit, or you used the outer pair by mistake.
Frequently asked questions
Does the order of integration change the answer?
Not the answer, no: Fubini's theorem covers any continuous integrand over a rectangle with constant limits, and qualifies. The order still matters in two other ways. One order can be far less work, as it is for , and over a region that is not a rectangle the two orders need different limits even though they land on the same number.
What does the number 9 measure?
The volume between the surface and the rectangle in the plane, because everywhere on this rectangle. If part of the rectangle sat where , that part would count negatively instead.