Multivariable calculus
Double Integral of x^2 sin y Over a Rectangle
The double integral of x^2 sin(y) over the rectangle 0 <= x <= 1, 0 <= y <= pi equals 2/3. The integrand is a function of x times a function of y and the region is a rectangle, so the double integral factors into (1/3) times 2.
Numerically 0.666667, confirmed by quadrature on every build.
Split the product, but only because the region is a rectangle
When the integrand factors as and all four limits are constants, the double integral is the product of two ordinary integrals.
The reason is mechanical rather than magical. Do the inner integral in with held fixed: is then a constant and slides straight out of the integral.
The mistake: splitting when the region is not a rectangle
The factoring trick fails the moment a limit contains the other variable. Over the triangle , , the same integrand gives an inner result that no longer separates.
The from the limit has leaked into what was supposed to be the half of the product. There is no way to rewrite this as one integral times one integral.
- Rectangle and a product integrand: split.
- Rectangle but the integrand does not factor, for example : do not split, integrate inside out.
- Limits that contain a variable: never split, however tempting the integrand looks.
A second slip in the same family is losing the sign in . Over the evaluation is , not , and a here would wrongly kill the whole answer.
What the number means
The rectangle has area , so the average height of the surface over it is .
That is small for a good reason: spends most of well below , averaging , while averages over . The product of those averages is exactly the average of the product here, which is another way of saying the integral separated.
Sign check: both factors are non-negative on this rectangle, so a positive answer was the only possibility.
Frequently asked questions
Can I always separate a double integral into two single integrals?
Only when the region is a rectangle with constant limits and the integrand is a product . Both conditions matter. This integrand separates on a rectangle, but the very same over a triangle does not.
Does the answer change if I integrate in x first?
No, it is still . The inner integral is , and then .