Let the period of a pendulum be measured both on the surface of a spherical body, and at a depth h down a narrow shaft excavated the body. Let be the density of the outer shell. Let the radius and mass of the sphere be denoted R and M, then the gravitational acceleration is
where G is the gravitational constant. Therefore,
and using a series expansion of the numerator gives
At a depth h, the period is
so
Solving for M gives
If we know the average density of the sphere
If the ratio is