Use spherical coordinates to evaluate
Notice that both the integrand and the region are radially symmetric. The integrand and the boundary depend on nothing but distance from the origin. That is the definitive signal to use spherical coordinates: in Cartesian form this integral needs nested square-root limits, while in spherical form the limits are three constants.
Set up the spherical substitution, including the Jacobian. With
the integrand collapses to , and the volume element carries the Jacobian factor
The is not optional bookkeeping — it is the local volume-stretching factor of the coordinate change, and omitting it is the most common way this integral goes wrong.
Write the limits. The unit ball is described by
Note (the polar angle, measured down from the axis) runs only to , while (the azimuthal angle) runs the full . Swapping those ranges would double-count the ball.
Assemble the integral and separate it. Combining the integrand with the Jacobian gives , so
Because the integrand factors as (function of ) (function of ) (constant in ) and the limits are constants, the triple integral splits into a product of three single integrals.
Evaluate the three factors.
Multiplying:
Sanity-check the size of the answer. The ball has volume and the integrand ranges from at the centre to at the surface, so the integral must lie strictly between and . The mean value of over the ball is , which is sensibly above because most of a ball's volume sits near its outer shell. A Monte Carlo estimate over the enclosing cube returns , confirming .
Need to solve a different problem like this? Open the solver →