Multivariable calculus
Double Integral of (x + y)^2 Over the Unit Square
The double integral of (x + y) squared over the unit square, with x and y each running from 0 to 1, equals 7/6, about 1.1667. Integrating in y first gives one third of (x + 1) cubed minus x cubed, and integrating that from 0 to 1 gives 7/6.
Numerically 1.166667, confirmed by quadrature on every build.
The inner integral is a shift, so no extra factor appears
Hold fixed and substitute . Because is frozen, and exactly, with no constant to divide by.
Both endpoints matter. The comes from the lower limit , and dropping it is the single most common slip on this problem.
Expanding first is the same work in a different order
Since , one substitution becomes three monomials, and each of the three factors over the square.
Agreement between the two routes is the cheapest check available on your algebra, because past the setup they share no steps at all.
The mistake: squaring the integral instead of integrating the square
Computing and then squaring gives 1, not . Averaging and then squaring is never larger than squaring and then averaging, and it is strictly smaller unless the function is constant. The gap is exactly the variance of on the square.
- needs . With the antiderivative is instead.
- Evaluate at both limits: alone is missing the from , and it gives rather than .
- Expanding is never wrong here, only slower, so use it when the substitution feels shaky.
Sanity check the size: on the unit square runs from 0 to 4, and it exceeds 1 on exactly half the square, the half above the diagonal . So an average just above 1 is right, and anything near 4 is not.
Frequently asked questions
Why is there no factor of one half from the substitution?
Because has while is held fixed, so . With the derivative would be 2, and the antiderivative in would be .
What is the value over the square from -1 to 1 in both variables?
It is . Expanding, and , while the cross term vanishes because is odd on .