Multivariable calculus
Triple Integral of xy + z^2 over a Box
The triple integral of xy plus z squared, over the box where x runs 0 to 1, y runs 0 to 2 and z runs 0 to 3, equals 21. The xy term contributes 3 and the z squared term contributes 18. The box has volume 6, so the average value of the integrand on it is 3.5.
Numerically 21.000000, confirmed by quadrature on every build.
Break the sum into two separable integrals
The integrand is a sum of two terms, and neither term uses all three variables. Split by linearity, then treat each piece as a product with edge lengths supplied by the missing variables.
Adding gives . The term dominates because the edge is longest and it is the term being squared there.
The same answer from the iterated form
If you would rather not split, run the nested integrals straight through. The inner one in handles both terms at once, with acting as a constant.
Notice the constant that appears after the stage. It is not idle: the later integrations multiply it by the and edge lengths, turning it into .
The mistake: factoring a sum
The product shortcut only applies to a product. Writing as gives , which drops the edge factors from both terms.
The rule is that linearity splits sums and separability splits products, and the two steps are applied in that order. Split the sum first, then check each piece separately for separability.
- is separable, but it is still missing a factor, so it collects the edge length .
- is separable, and it collects the edge lengths and .
- Neither piece can be pulled out of the triple integral without those factors.
Frequently asked questions
How do I check 21 quickly?
Bound the integrand. On this box tops out at and at , so the maximum is and the volume is , giving an upper bound of . The answer sits comfortably inside, and its average of matches an integrand that is small over much of the box.
Would the answer be the same over a different shaped box of volume 6?
No. Swap the and edges so runs to and runs to , and the contribution collapses while the contribution grows. Volume alone does not determine the integral.