assignment Homework
The gravitational field due to a spherical shell of matter (or equivalently, the
electric field due to a spherical shell of charge) is given by:
\begin{equation}
\vec g =
\begin{cases}
0&\textrm{for } r<a\\
G \,\frac{M}{b^3a^3}\,
\left( r\frac{a^3}{r^2}\right)\, \hat r & \textrm{for } a<r<b\\
G\,\frac{M}{r^2}\, \hat r & \textrm{for } r>b \\
\end{cases}
\end{equation}
This problem explores the consequences of the divergence
theorem for this shell.

Using the given value of the gravitational field, find the divergence of the
gravitational field everywhere in space. You will need to divide this
question up into three parts: \(r<a\), \(a<r<b\), and \(r>b\).

Discuss the physical meaning of the divergence in this particular
example.

For this gravitational field, verify the divergence theorem on a
sphere, concentric with the shell, with radius \(Q\), where \(a<Q<b\).
("Verify" the divergence theorem means calculate the integrals from both sides of the divergence theorem and show that they give the same answer.)

Discuss how this example would change if you were discussing the
electric field of a uniformly charged spherical shell.