Multivariable calculus
Triple Integral of xyz + x^2 over a Cube
Over the cube running from -1 to 1 in x, y and z, the triple integral of xyz plus x squared equals 8/3, about 2.666667. The xyz term is odd in x, so it integrates to zero over the symmetric interval, and the whole answer comes from the x squared term.
Numerically 2.666667, confirmed by quadrature on every build.
Use symmetry before you use calculus
The region is symmetric about every coordinate plane, so check each term for odd symmetry first. A term that changes sign when one variable flips, over an interval symmetric about zero, integrates to zero.
Replacing by turns into , so that term is odd in and contributes nothing. It is also odd in and in , so it dies three times over.
The surviving term is even in and free of and , so it separates into one real integral times two edge lengths of .
The mistake: assuming symmetry kills everything
Having watched vanish, students often declare the whole integral zero. Symmetry is a term by term test, not a verdict on the integrand as a whole, and is even, so it survives with everything it has.
The opposite error is refusing to use symmetry at all and grinding through the iterated integral. That works, and the term actually dies at the first stage, since . Symmetry tells you that before you write anything down, and it keeps working on regions like a ball where the antiderivatives are far less pleasant.
- Odd in at least one variable, over a symmetric interval in that variable: the term integrates to zero.
- Even in every variable, or free of some variables: the term survives and must be computed.
- The test needs the interval to be symmetric about zero. Over the term contributes , not .
Reading the answer
The cube has volume , so the average value of on it is . That matches the average of alone on , which is , confirming that the term contributed nothing to the mean.
The integrand itself does take negative values, on the octants where and is small. A positive total does not mean a positive integrand, only that the positive regions win.
Frequently asked questions
Does the xyz term vanish over any box?
No, only over boxes symmetric about zero in at least one variable. Over that term gives , and over it gives because the edge alone is symmetric.
Why is the x^2 contribution 8/3 rather than 2/3?
is only the stage. The and stages each multiply by the edge length , so the box integral is .