Multivariable calculus
Double Integral of y/(1 + x^2) Over [0,1] by [0,2]
The double integral of y divided by 1 plus x squared, over x from 0 to 1 and y from 0 to 2, equals pi/2, about 1.5708. The integrand factors, so the answer is the integral of 1 over 1 plus x squared from 0 to 1, which is pi/4, times the integral of y from 0 to 2, which is 2.
Numerically 1.570796, confirmed by quadrature on every build.
Factor, then recognise the arctangent
The integrand is times , one factor per variable, and both limits are constants. That is the separable case.
The is , the angle whose tangent is 1. Every in the final answer traces back to that single evaluation.
The same thing one layer at a time
If you would rather not use the shortcut, freeze and note that is then a constant multiplier.
A size check before you trust it: on this rectangle the integrand runs from 0 to 2 and the area is 2, so the answer has to lie between 0 and 4. The value 1.5708 passes.
The mistake: the logarithm that is not there
Writing is the standard wrong turn. The substitution needs , and there is no in this numerator to supply it.
- , an inverse trigonometric function.
- , a logarithm, and note the .
- One factor of in the numerator is the whole difference between the two.
That extra changes the answer, not just its form. With integrand over the same rectangle you get rather than .
Frequently asked questions
Why does the y integral not disturb the arctangent?
Because the two variables live in separate factors. Integrating in multiplies by the number , and a constant multiple passes straight through the integral.
What if the numerator were xy instead of y?
Then the integral becomes , and the double integral is . The single factor converts an arctangent into a logarithm.