Multivariable calculus
Double Integral of e^(y^2) Over a Triangle
The double integral of e^(y^2) over the triangle with 0 <= x <= y and 0 <= y <= 1 equals (e - 1)/2, about 0.859141. Integrating in x first is the only workable order: it produces y e^(y^2), whose antiderivative is e^(y^2)/2. The other order has no elementary inner integral.
Numerically 0.859141, confirmed by quadrature on every build.
Reverse the order, because e^(y^2) has no elementary antiderivative
Written as a type 1 region the triangle is with , giving . The inner integral is a dead end: has no antiderivative among the elementary functions, which is exactly why this problem is set.
Describe the same triangle as type 2 instead. For each in the horizontal slice runs from to .
The inner step manufactured a factor of , and that factor is precisely what the substitution , requires.
The mistake: swapping limits without redrawing the region
The mechanical swap turns into , which is meaningless since outer limits can never contain a variable. The panicked version, , integrates over the whole unit square and gives a different number.
Reversing the order means re-describing the region, and a sketch is the only reliable route. This triangle has vertices , and . Read by columns it is ; read by rows it is .
- Outer limits are always numbers.
- Inner limits are the two boundaries you meet crossing the region in the inner variable's direction.
- Check a corner: at the row runs from to , the full top edge of the triangle.
A second slip is claiming as an antiderivative of . Differentiating it returns , which is not the integrand. Chain rule factors cannot be divided out after the fact.
Why (e-1)/2 is the right size
On this triangle runs from up to , and the triangle has area . So the answer had to land between and .
It lands at . Dividing by the area gives the average value , comfortably between the minimum and the maximum , as it must be for a continuous function on a connected region.
Frequently asked questions
Is there really no antiderivative for e^(y^2)?
Not among elementary functions. Liouville's theorem settles it: no finite combination of powers, exponentials, logarithms and trigonometric functions differentiates to . The related is written with the error function for the same reason.
How do I spot an order-reversal problem?
The inner integral has no closed form while the integrand depends on only one variable. Reversing puts that variable on the outside, and the inner step contributes a factor of the other variable, which is usually the missing piece a substitution needs. The classic three are , and .