The Earth's gravitational field is nowhere uniform. It varies over the surface of the Earth and decreases asoutside the Earth. Inside the Earth the gravitational field is very non uniform. If the Earth had uniform density, the gravitational field strength
at a point
from the centre of the Earth would be
where
is the mass inside the sphere of radius
For an Earth of uniform density, the mass outside this sphere has no effect.
For a sphere of radiusand density
so
This means that the gravitational field inside a sphere of uniform density is directly proportional to the radius. In fact the Earth is not uniform – it is denser at the center, so near the center the acceleration of density increases more rapidly than if the Earth had uniform density, as shown below.