Skip to main content
Sandbox Physics

M071 · Spherical gravity

Gravity Field & Shell Theorem

Inside a hollow shell, where does the shell's gravity go? Nowhere; it cancels. Inside a uniform spherical shell, the near side pulls harder but has less mass, the far side pulls more weakly but has more, and the two balance exactly. The field is zero everywhere inside. The potential is not zero, though: it is constant, equal to its value at the shell's surface.

Set the densities of three spherical layers, move a probe along the radius to read the field, and drop a particle through a tunnel along a diameter. Compare a hollow cavity with a uniform sphere, then weigh the source from accelerations measured outside it.

Interactive modelGravity Field & Shell Theorem
Selected timeReady\text{Ready}
Probe radiusReady\text{Ready}
Probe inward accelerationReady\text{Ready}
Probe enclosed massReady\text{Ready}
Probe specific potentialReady\text{Ready}
Total source massReady\text{Ready}
Tunnel particle positionReady\text{Ready}
Tunnel particle speedReady\text{Ready}
Gravity clockReady\text{Ready}
Maximum specific-energy errorReady\text{Ready}
Endpoint refinement differenceReady\text{Ready}
Mass fitted from raw exterior scanReady\text{Ready}
Acquired field stationsReady\text{Ready}

Physics tutorial

Spherical source, field and tunnel

BackgroundA spherical source pulls straight toward its centre, and how hard it pulls depends on how its mass is arranged.

Why it mattersLink what you see in the scene to the computed trajectory and to sensor readings taken separately.

Start with the essentials

Focus question
Inside a hollow shell, where does the shell's gravity go?
One-sentence intuition
Zero field does not imply zero potential.

Core mathematical model

Mass enclosed within a radius

M(<r)=4π∫0rρ(s)s2 dsM(<r)=4\pi\int_0^r\rho(s)s^2\,ds

The layer densities set how much mass lies inside each radius. Shells outside that radius exert no net force there.

Field and potential

g(r)=GM(<r)r2Φ(r)=−G[M(<r)r+4π∫rRρ(s)s ds]\begin{aligned}g(r)&=\frac{GM(<r)}{r^2}\\\Phi(r)&=-G\left[\frac{M(<r)}r+4\pi\int_r^R\rho(s)s\,ds\right]\end{aligned}

Outer shells exert no force inside their cavity but still add a constant to the potential there. At the centre the limiting value is used, so nothing is divided by zero.

Motion inside a uniform sphere

g(r)=4πGρ3r(r≤R)x(t)=x0cos⁡(4πGρ3 t)\begin{aligned}g(r)&=\frac{4\pi G\rho}{3}r\quad(r\le R)\\x(t)&=x_0\cos\left(\sqrt{\frac{4\pi G\rho}{3}}\,t\right)\end{aligned}

A particle released from rest inside a uniform sphere oscillates harmonically. The force stays finite as it passes the centre.

Energy per unit mass

ε=12x˙2+Φ(∣x∣)\varepsilon=\frac12\dot x^2+\Phi(|x|)

In this idealization the tunnel runs along a diameter and removes none of the source mass.

Weighing the source from outside

gi=GM ri−2g_i=GM\,r_i^{-2}

Fit a line through zero to the raw accelerations measured outside the source, using the calibrated radii. The fit is never given the source mass.

Common difficulties

What the model assumes

Typical misconceptionAn ideal model like this automatically describes a real planet or a relaxed star cluster.

Better mental modelThe source is fixed in advance, the test particle does not pull back on it, and the effects left out are listed.

Run the experiment

  1. 01

    Move the field probe

    Drag the blue handle from the centre to the exterior. Compare the solid field with the dashed exterior point-mass reference.

    What to observe: Inside the cavity the acceleration is zero while the potential remains negative.
  2. 02

    Change the source

    Try Uniform sphere, Dense core and Rest inside a hollow shell, and change all three densities.

    What to observe: Where the density changes affects the field inside, but outside the sphere the field depends only on the total mass.
  3. 03

    Send a particle across the cavity

    Compare Rest inside a hollow shell with Cross the empty cavity, and drag the gold time handle.

    What to observe: A particle that enters the field-free cavity keeps the velocity it had on entry.
  4. 04

    Weigh the source from readings

    Acquire a radial field scan, add noise and export the raw CSV.

    What to observe: The mass fitted from the outside readings is shown separately from the exact source mass.
FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy