Multivariable calculus
Double Integral of sin(x + y) Over a Square
The double integral of sin(x + y) over the square where x and y each run from 0 to pi/2 equals exactly 2. The inner integral in y gives sin(x) + cos(x), and integrating that over 0 to pi/2 gives 1 + 1 = 2.
Numerically 2.000000, confirmed by quadrature on every build.
Treat x as a constant shift inside the sine
During the inner integration is frozen, so is a sine wave in shifted by the constant . Its antiderivative in is , with no chain-rule factor because the coefficient on is .
Now use to clean it up.
The mistake: distributing the sine over the sum
The wrong move is to write . Sine is not additive, and the correct identity is the angle addition formula.
Integrating the bogus over the same square gives , against the true . That is an error of about , produced entirely by the false identity.
The angle addition formula is also a legitimate second route to the answer. Expanding and integrating term by term over the square gives , which is a useful independent check on the first method.
A sanity check on the size of the answer
On this square ranges from to , so stays between and and never goes negative. The volume must therefore be positive and no larger than the base area.
- Base area: .
- Maximum height: , attained along the anti-diagonal .
- So the answer must lie in , and does.
If the square were extended to the integrand would go negative on part of the region and the integral would be signed volume, not volume. Bounds decide which of the two you are computing.
Frequently asked questions
Why is there no 1/2 or other constant from the chain rule?
The chain-rule factor is the derivative of the inside with respect to the integration variable. Here , so no factor appears. For you would need a .
Does swapping the order of integration change anything?
No. The integrand is symmetric in and and the region is a square, so integrating in first produces the identical inner answer and the same total of .