For a spherically symmetric potential, the Poisson equation for Newtonian gravity becomes
Integrate from the center, excluding any additional point mass there. The boundary condition is as , so
This derives the enclosed-mass form of the spherical shell theorem from the differential equation. Outside the mass, integrating gives ; the conventional zero at infinity sets .
For the dyadic shells, multiply their constant mass density by their spherical volumes. The th shell contributes
Summing the geometric series yields
At radius , the enclosed shells are exactly those with ; a boundary itself contributes no mass. Thus
Dividing by gives
These dyadic spherical shells with inverse-radius density scaling have the same field magnitude at each shell boundary, although the field varies inside an individual shell. Finally, outside the planet,
with zero potential at infinity; without that convention an arbitrary additive constant remains.