Multivariable calculus
Double Integral of exp(x + y) Over the Unit Square
The double integral of e raised to the power x plus y over the unit square, with x and y each from 0 to 1, equals (e - 1) squared, about 2.9525. The integrand factors into a function of x times a function of y, so the answer is the product of two copies of the integral of e to the x, each equal to e - 1.
Numerically 2.952492, confirmed by quadrature on every build.
Split the exponent into a product, then use Fubini
The exponential law turns a function that looks entangled into a clean product. That is the whole method here.
The inner integral is a number, , so it slides straight out of the outer integral.
Expanded, . Both forms are correct; the factored one shows where the answer came from.
The mistake: turning e^(x+y) into e^x + e^y
This is the single most common slip on this integral. Exponentials convert addition in the exponent into multiplication, never into addition of the outputs.
The wrong version is easy to catch numerically. Integrating over the unit square gives , which overshoots the true by more than .
A one-second check: at the true integrand is , while would be . If the integrand is already wrong at a corner, no amount of careful integrating will save the answer.
Reading the number as a volume
The integrand is positive everywhere, so is the volume of the solid between the unit square and the surface .
That number should look reasonable. On the unit square the integrand ranges from at the origin to at the far corner, and the base has area , so the volume has to sit between and .
- Lower bound: , using the smallest value of the integrand.
- Upper bound: , using the largest.
- The true value sits comfortably inside, which is the cheapest sanity check available on any double integral.
Frequently asked questions
Is (e-1)^2 the same as e^2 - 1?
No, and the difference is large. , while . Squaring a difference is not the same as subtracting from a square.
What changes if the square becomes 0 to 2 in each variable?
The same split applies, with each single integral becoming . The double integral is then .