Multivariable calculus
Double Integral of exp(y^2) Over a Triangle
The double integral of e to the power y squared over the triangle where x runs from 0 to y and y runs from 0 to 1 equals (e - 1)/2, about 0.8591. This order works because integrating in x first produces a factor of y, which is exactly the substitution factor the integrand needs.
Numerically 0.859141, confirmed by quadrature on every build.
Integrating in x first manufactures the missing factor
The function has no elementary antiderivative in . That sounds fatal until you notice the integrand does not involve at all, so the inner integral is just a length.
The width of the triangle at height is , and that is precisely the factor that makes the outer integral a substitution with , .
The same region described the other way round
The region is the triangle with vertices , and , which is the part of the unit square above the line . Slicing it the other way gives an equivalent integral.
The left form is the one exam questions usually hand you, and it is unworkable as written because the inner integral has no elementary form. Reversing the order is the whole point of the exercise.
- Sketch the region from the given bounds: from to , and for each , from up to .
- Read the same region by horizontal slices: from to , and for each , from across to .
- Rewrite the integral with the new outer variable outside, then integrate.
The mistake: swapping the bounds without redrawing the region
The error that costs the most marks is mechanically exchanging for while leaving the numbers where they are, producing .
That expression is meaningless: the inner integral in has a bound , so the variable of integration also appears as its own limit, and the outer integral in has no in its bounds.
A reliable check: after reversing, the outer bounds must both be numbers, and the inner bounds must involve only the outer variable. If either half of that fails, the reversal is wrong.
Frequently asked questions
Why is there no elementary antiderivative for e^(y^2)?
It is a theorem of Liouville that has no antiderivative expressible in elementary functions. The related is packaged as the error function for exactly this reason.
Does the answer depend on the integrand having no x in it?
The trick does. Because the integrand is constant in , the inner integral is just the slice width . If the integrand were , the inner integral would give instead, which is a harder outer integral.