Multivariable calculus
Triple Integral of x/(1 + y^2) over a Box
The triple integral of x divided by 1 + y squared, over the box where x runs 0 to 2, y runs 0 to 1 and z runs 0 to 3, equals 3 pi over 2, about 4.712389. The x factor gives 2, the y factor is arctan(1) which is pi/4, and the z factor gives 3.
Numerically 4.712389, confirmed by quadrature on every build.
The variable that is missing does the least work
No appears in the integrand, so the inner integral in just multiplies by the length of that edge. That is the fastest stage on the page and it is easy to skip by accident.
What is left separates. The factor is a plain power rule and the factor is the standard arctangent form.
That product is .
The mistake: turning the denominator into a logarithm
Seeing triggers the reflex , but that antiderivative belongs to , where the numerator is the derivative of the denominator. Here the numerator is , so no substitution applies and the answer is .
- , giving over .
- , giving over .
- The gap is against , close enough to look plausible and wrong enough to lose the question.
Differentiating your candidate answer takes five seconds and separates the two immediately.
Why a pi shows up with no circle in sight
The region is a rectangular box and the integrand is a rational function, so a in the answer surprises people. It arrives through , whose values at nice inputs are angles, and is the angle of a degree line.
Change the edge and the can disappear from the neat form. Running from to would give instead, and the answer becomes exactly .
Frequently asked questions
Why does the missing z variable still change the answer?
Integrating a free function over the edge multiplies by the length of that edge, here . Only an edge of length leaves the value untouched, and an edge of length would collapse the solid and the integral with it.
Is the integrand ever undefined on this box?
No. The denominator is at least for every real , so the integrand is smooth and bounded everywhere on the box. That is what makes this a safe example, unlike , which blows up at .