Solution (source code)

= Solution

For a smooth one-to-one coordinate transformation with nonsingular derivative, the <Jacobian determinant> is
$$
\boxed{J=\det\begin{pmatrix}x_u&x_v&x_w\\y_u&y_v&y_w\\z_u&z_v&z_w\end{pmatrix}.}
$$
Locally a small coordinate box maps, to first order, to a parallelepiped whose volume is the absolute <determinant> of the derivative times the original volume. Summing these local volume approximations gives the <change of variables formula>, with $|J|$ accounting for either orientation. The usual regularity and nonsingularity hypotheses are part of this substitution theorem.

The region is the upper half of the spherical shell between radii two and three, including its annular flat boundary in the equatorial plane. Use <spherical coordinates> $x=r\sin\theta\cos\phi$, $y=r\sin\theta\sin\phi$, $z=r\cos\theta$ with $2\le r\le3$, $0\le\theta\le\pi/2$, $0\le\phi<2\pi$. Their <Jacobian determinant> is $r^2\sin\theta$; the polar axis and azimuth seam have measure zero, so do not obstruct this integration.

\Image[/past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2013/ia/paper-3-hemispherical-shell.png]
{title=Upper hemispherical shell between radii two and three, with a meridian cross-section and a cutaway view}

The integrand is $x^2+y^2=r^2\sin^2\theta$. Consequently
$$
\boxed{\int_D(x^2+y^2)\,dV
=\int_2^3r^4\,dr\int_0^{\pi/2}\sin^3\theta\,d\theta\int_0^{2\pi}d\phi
=\frac{211}{5}\frac23(2\pi)=\frac{844\pi}{15}.}
$$