Astronomy Olympiad / Level 1 · NSEA / Gravitation & Celestial Mechanics

Gravitation & Celestial Mechanics · lesson 6 of 11 · 45 min

Gravity inside a planet

After this lesson you can:
  • State the shell theorem: a shell exerts no net force inside it.
  • Show g(r) = g₀ r/R inside a uniform sphere.
  • Find the period of a ball in a tunnel through the Earth (84.4 min).
  • Handle a cavity and a density that changes with r.

Before this lesson: Newton's gravity and circular orbits

1. Concept

What happens if you drill through the Earth? NSEA tests the shell theorem and gravity inside uniform and non-uniform planets.

Gravity Inside a Spherical Body

So far, we have treated each astronomical body mainly through its total mass. But a planet is not a point—it is a huge sphere made of matter spread throughout its volume. This raises an important question: what happens to gravity when we move inside the planet? Newton’s Shell Theorem gives us the key idea. For a spherically symmetric body, the gravitational effect of all the material lying outside our current radius cancels out, so the net gravitational field at radius rr depends only on the mass enclosed within that radius. This can be written as

g(r)=GM(r)r2g\left( r\right) =\frac{GM\left( r\right) }{{r}^{2}}

where M(r)M\left( r\right) is the mass contained inside a sphere of radius rr.

This is different from the familiar expression g=GM/r2g=GM/{r}^{2} outside a planet, because inside the planet the relevant mass is no longer the planet’s entire mass MM; it is only the enclosed mass M(r)M\left( r\right). Therefore, to calculate gravity inside a planet, our next task is to determine how much mass is enclosed within any chosen radius.

Enclosed Mass M(r)M\left( r\right)

To find the gravitational field at a point inside a planet, we need to know how much mass lies closer to the centre than that point. We call this the enclosed mass, written as M(r)M\left( r\right). Imagine a smaller sphere of radius rr drawn inside the planet. All the material inside this smaller sphere contributes to M(r)M\left( r\right). If the density at distance rr is ρ(r)\rho \left( r\right), then a thin spherical layer of radius rr and thickness drdr has volume 4πr2dr4\pi {r}^{2}dr, so its mass is ρ(r)⋅4πr2dr\rho \left( r\right) \cdot 4\pi {r}^{2}dr. Adding the masses of all such thin layers from the centre up to radius rr gives

M(r)=4π∫0rρ(r′)r′2dr′M\left( r\right) =4\pi \int_{0}^{r}{\rho }\left( r'\right) r{'}^{2}dr'

Here, r′r' is simply a variable used during the integration. The important idea is that density tells us how much mass is packed into each small region, while integration adds all those small masses together to give the total mass enclosed within radius rr. Once we can calculate M(r)M\left( r\right), we can immediately determine the gravitational field inside the planet using g(r)=GM(r)/r2g\left( r\right) =GM\left( r\right) /{r}^{2}.

A Non-Uniform Density Sphere

The simplest way to describe a planet is to imagine that its density is the same everywhere. Realistic models can be more complicated: the material may be denser near the centre and less dense farther out. To study such a case, we describe the density as a function of distance from the centre. Let us consider the specific density profile

ρ(r)=ρ0[1−r2R2]\rho \left( r\right) ={\rho }_{0}\left[ 1-\frac{{r}^{2}}{{R}^{2}}\right]

where ρ0{\rho }_{0} is the central density and RR is the radius of the sphere. This expression tells us that the density is greatest at the centre and decreases as we move outward, becoming zero at the surface r=Rr=R.

Now the problem is clear: because the density changes with radius, the enclosed mass M(r)M\left( r\right) cannot be found simply by multiplying density by volume. We must add the mass of each thin spherical layer using the density appropriate to that layer. Substituting the above density into our enclosed-mass expression gives

M(r)=4πρ0[r33−r55R2]M\left( r\right) =4\pi {\rho }_{0}\left[ \frac{{r}^{3}}{3}-\frac{{r}^{5}}{5{R}^{2}}\right]

This is the mass contained within radius rr. With M(r)M\left( r\right) now known, we can obtain the exact gravitational field inside the non-uniform sphere in the next step.

Internal Gravitational Field g(r)g\left( r\right)

We now know how to find the mass enclosed within a sphere of radius rr. The gravitational field at that radius is therefore obtained by using the same relation as before, but with the enclosed mass M(r)M\left( r\right) in place of the total mass:

g(r)=GM(r)r2g\left( r\right) =\frac{GM\left( r\right) }{{r}^{2}}

For the density profile

ρ(r)=ρ0[1−r2R2]\rho \left( r\right) ={\rho }_{0}\left[ 1-\frac{{r}^{2}}{{R}^{2}}\right]

we found

M(r)=4πρ0[r33−r55R2]M\left( r\right) =4\pi {\rho }_{0}\left[ \frac{{r}^{3}}{3}-\frac{{r}^{5}}{5{R}^{2}}\right]

Substituting this into the gravitational-field equation gives

g(r)=4πGρ0[r3−r35R2]g\left( r\right) =4\pi G{\rho }_{0}\left[ \frac{r}{3}-\frac{{r}^{3}}{5{R}^{2}}\right]

This equation tells us how gravity changes as we move from the centre toward the surface. Notice that g(r)g\left( r\right) is not simply proportional to rr, as it would be for a uniform-density sphere. Here, the changing density affects how much mass is enclosed at each radius, so the gravitational field follows a more complicated curve.

Where Is the Gravitational Field Maximum?

We now have the gravitational field inside the non-uniform sphere:

g(r)=4πGρ0[r3−r35R2]g\left( r\right) =4\pi G{\rho }_{0}\left[ \frac{r}{3}-\frac{{r}^{3}}{5{R}^{2}}\right]

The field starts from zero at the centre, increases as we move outward, and then eventually begins to decrease. So there must be some internal radius where gravity is greatest. To find it mathematically, we differentiate g(r)g\left( r\right) with respect to rr and set the derivative equal to zero:

dgdr=4πGρ0[13−3r25R2]=0\frac{dg}{dr}=4\pi G{\rho }_{0}\left[ \frac{1}{3}-\frac{3{r}^{2}}{5{R}^{2}}\right] =0

Therefore,

13=3r25R2\frac{1}{3}=\frac{3{r}^{2}}{5{R}^{2}}

which gives

r2=5R29{r}^{2}=\frac{5{R}^{2}}{9}

and hence

rmax⁡=(53)R≈0.745R{r}_{\max }=\left( \frac{\sqrt{5}}{3}\right) R\approx 0.745R

So the gravitational field is maximum inside the sphere, at about 74.5% of its radius—not at the surface. This is an important result: when density varies inside a body, gravity need not increase all the way to the surface.

Gravity inside a uniform sphere and inside a sphere with  = 0( 1-r2/R2)
Figure 1. Gravity inside a uniform sphere and inside a sphere with ρ=ρ0(1−r2/R2)\rho ={\rho }_{0}\left( 1-{r}^{2}/{R}^{2}\right)

What Does the Result Mean Physically?

The mathematical result is more meaningful when we picture what is happening inside the sphere. At the centre, the gravitational pulls from all directions balance, so g=0g=0. As we move outward, the enclosed mass increases, which tends to make gravity stronger. However, in a non-uniform sphere the density is also changing with radius, so the increase in enclosed mass does not continue in the same simple way as in a uniform sphere. As a result, the gravitational field first increases, reaches a maximum at an internal radius, and then decreases as we approach the surface.

Key idea: The important lesson is that gravity inside a planet depends on both how much mass is enclosed and how that mass is distributed. This is why we should not assume that the gravitational field inside every planet follows the same simple linear variation.

Key results.

  • g(r) = GM(r)/r² ; uniform sphere: g(r) = g₀ r/R
  • tunnel period T = 2π√(R/g₀) = 84.4 min (same as a grazing orbit)

Common mistakes. Each of these is false:

  • ✗ Gravity is strongest at the centre.
  • ✗ A chord tunnel takes longer than a diameter tunnel.

Going deeper (Olympiad)

Any straight chord gives the same 42 min; a spherical cavity has a uniform field inside; real Earth (PREM): g rises to ≈ 10.7 m/s² at the core–mantle boundary.

2. Explore it

Try it. What is g halfway to the centre of a uniform Earth?

Exam-style practice. Show that the field inside a spherical cavity is uniform and points along the line joining the centres.

3. Worked example

You drill a mineshaft into a uniform-density planet of radius RR. At a depth of R/4R/4 from the surface, what is the ratio of the gravitational field ginternal{g}_{\mathrm{internal}} to the surface gravity gsurface{g}_{\mathrm{surface}}?

(a) 14\frac{1}{4}
(b) 116\frac{1}{16}
(c) 34\frac{3}{4}
(d) 916\frac{9}{16}

Solution. Answer: (c). A depth of R/4R/4 below the surface means that the distance from the center is

r=R−R4=3R4r=R-\frac{R}{4}=\frac{3R}{4}

For a uniform-density planet,

g(r)∝rg\left( r\right) \propto r

Therefore,

ginternalgsurface=3R/4R=34\frac{{g}_{\mathrm{internal}}}{{g}_{\mathrm{surface}}}=\frac{3R/4}{R}=\frac{3}{4}

Hence, the ratio is 3/4.

4. From a past paper

NSEA 2017, Question 13 (official paper: IAPT). A sphere of uniform density has a spherical hollow inside it, whose centre is a distance a from the centre of the sphere. What is the gravitational field inside the hollow like? (a) non-uniform, and zero at the centre of the hollow (b) zero everywhere in the hollow (c) uniform and not zero (d) the same in size everywhere but in different directions

Our solution. Answer: (c). (43)πGρa\left( \frac{4}{3}\right) \pi G\rho a

Treat the cavity as a full sphere plus a sphere of density −ρ-\rho. For a point at position rr from the centre of the big sphere and r′{r}^{'} from the centre of the cavity, the field is −(43)πGρ(r−r′)=−(43)πGρa-\left( \frac{4}{3}\right) \pi G\rho \left( r-{r}^{'}\right) =-\left( \frac{4}{3}\right) \pi G\rho a, where a=r−r′a=r-{r}^{'} is the fixed vector joining the two centres. It is the same everywhere in the cavity.

5. Quick check

Q1. You are exploring a uniform-density rocky planet of radius RR. At what exact depth beneath the surface will the gravitational acceleration be exactly half of its surface value?

Q2. For a perfectly uniform sphere of water, where does the maximum gravitational acceleration occur?

Q3. A spherical asteroid has a massive hollow spherical cavity exactly at its geometric center. If you float anywhere inside this dark cavity, what is the net gravitational force acting on you from the asteroid?

Q4. If a straight, frictionless tunnel is drilled through the exact center of a uniform-density planet of mass MM and radius RR, and a package is dropped into it, what is the time required for the package to reach the exact opposite side of the planet?

Q5. For a real, differentiated planet like Earth with a distinct, super-dense iron core and a lighter rocky mantle, which of the following gravity profiles (gg vs rr) are physically possible? (Choose all that are correct.)

6. Next