Astronomy Olympiad / Level 1 · NSEA / Stars

Stars · lesson 16 of 23 · 40 min

Inside a star: density, enclosed mass and gravity

After this lesson you can:
  • Write the mass equation dM_r/dr = 4πr²ρ.
  • Find the gravity at radius r, g = GM_r/r².
  • Compute the mean molecular weight μ of an ionised gas.

Before this lesson: Gravity inside a planet · Calculus tools: rates, slopes and areas

1. Concept

The advanced part of NSEA treats a star as layers of gas; the first tools are the enclosed mass and the mean molecular weight.

Stellar Structure Equations & Hydrostatic Equilibrium

Overview

A star is held together by gravity, yet it does not simply collapse inward. To understand how a star maintains its structure, we must investigate the physical conditions inside it and how those conditions change from its centre to its surface.

We will begin by describing the star mathematically. We will then examine how matter is distributed inside it, derive the equation describing how enclosed mass changes with radius, and investigate how gravity and pressure balance one another. Finally, we will use these relationships to estimate the pressure and temperature at the centre of the Sun.

The central idea is simple: to understand a star as a whole, we must first understand what happens inside it, layer by layer.

A Star as a Spherical System

Look at the Sun in the sky. Although it appears as a small, bright disc to us, it is actually an enormous sphere of hot gas. Its interior cannot be studied by looking at its surface alone, so physicists construct a mathematical model that allows them to reason about conditions deep inside it.

For our first model, we represent the star as a sphere. This lets us describe the location of any interior point using just one number: its distance from the centre.

The radius of the star, denoted by RR, is the distance from its centre to its outer surface. The total mass of the star, denoted by MM, is the combined mass of all the matter contained within that surface. These two quantities describe the size and the total amount of matter in our model.

Now imagine choosing a point somewhere inside the star. Let its distance from the centre be rr. The value of rr depends on where we are looking: at the centre, r=0r=0; at the surface, r=Rr=R; and at any interior point, 0<r<R0<r<R.

Notice that rr and RR are not the same quantity. RR describes the size of the entire star and remains fixed for a given model. The symbol rr identifies a particular position inside it and changes as we move from the centre towards the surface.

This distinction is important because the conditions inside a star need not be the same everywhere. The centre and the outer layers can have very different physical properties. Our task will be to describe how these properties vary with distance from the centre.

For now, we have made only one major simplification: we are treating the star as spherical. We have not assumed that its matter is distributed uniformly throughout that sphere. In fact, understanding how the internal distribution of matter affects the star will be one of our first tasks.

We know how to identify a location inside a star, but location alone tells us nothing about how much matter lies there. To investigate that, we must first understand density and the mass enclosed within a chosen radius.

Density and Enclosed Mass

Imagine travelling from the centre of the Sun towards its surface. At every point along the way, two questions can be asked. How much matter is packed into the region around us? And how much matter lies inside our current position, including everything we have passed on the journey from the centre?

These questions describe two different physical quantities: density and enclosed mass.

Density: How tightly is matter packed?

You already know that different materials can have different densities. A small piece of iron can have more mass than a piece of cotton of the same volume because iron has a greater density.

Density, represented by the Greek letter ρ\rho (rho), is defined as mass per unit volume:

ρ=massvolume\rho =\frac{\text{mass}}{\text{volume}}

Its SI unit is kilogram per cubic metre (kg/m³). A greater density means that more mass is packed into the same volume.

Inside a star, however, density need not be the same everywhere. The material near the centre may be packed much more tightly than the material in the outer layers. We therefore write the density as ρ(r)\rho \left( r\right), meaning the density at a distance rr from the centre.

The notation ρ(r)\rho \left( r\right) reminds us that density can change with position. It does not mean that density must have a different value at every radius; it means that we must allow for the possibility that it changes.

Enclosed mass: How much matter is inside our position?

Now imagine drawing an imaginary spherical surface inside the star, centred on the star’s centre and having radius rr. This surface divides the star into two regions: everything inside it and everything outside it.

We represent the total mass of all the matter inside this imaginary sphere by Mr{M}_{r}, read as “M sub r”.

Mr{M}_{r} is called the enclosed mass because it includes all the matter between the centre and radius rr. It is not merely the mass of the material located at the point rr.

Consider what happens as we move outwards. At the exact centre, the enclosed mass is zero because there is no finite volume inside a sphere of zero radius. As the radius increases, more matter is included, so the enclosed mass increases. At the star’s surface, r=Rr=R, all the star’s matter is enclosed, and therefore Mr=M{M}_{r}=M.

We can express these boundary conditions as follows:

At the centre: r=0, Mr=0    At the surface: r=R, Mr=M\text{At the centre:}\text{ }r=0,\text{ }{M}_{r}=0\text{ }\text{ }\text{ }\text{ }\text{At the surface:}\text{ }r=R,\text{ }{M}_{r}=M

These statements help us distinguish the local conditions inside the star from the properties of the star as a whole.

Why density and enclosed mass must not be confused

Density describes how much mass is packed into a unit volume near a particular location. Enclosed mass describes the total mass accumulated throughout the entire region from the centre up to that location.

For example, a layer close to the centre might be extremely dense but occupy a very small volume. Another region farther out might be less dense but occupy a much larger volume. The amount of mass in either region depends on both its density and its volume.

This distinction gives us an important idea: to calculate the enclosed mass at a particular radius, we must account for the contributions of all the matter inside that radius. We cannot determine it merely by multiplying the density at that radius by the volume of the entire interior sphere, because the density may vary throughout that sphere.

We now have the two quantities needed to begin describing the distribution of matter inside a star: the local density ρ(r)\rho \left( r\right) and the enclosed mass Mr{M}_{r}.

How can we calculate the small additional amount of mass included when we increase the radius by a tiny distance? To answer this, we will imagine cutting a thin spherical layer from the star and calculate its volume. This will lead us to the mass continuity equation.

Thin Spherical Shells and the Mass Continuity Equation

In the previous subsection, we learned that the enclosed mass Mr{M}_{r} is the total mass contained inside a sphere of radius rr. But how does this mass change when we move a little farther away from the centre?

Imagine that you are standing at a distance rr from the centre of a star. Now move a tiny distance outward, so that your new distance is r+drr+dr. The symbol drdr represents an extremely small change in radius.

By moving from rr to r+drr+dr, we include a thin spherical layer of additional material. This layer surrounds the interior sphere, much like the thin outer skin of a hollow ball. We call it a thin spherical shell.

The shell has an inner radius rr, an outer radius r+drr+dr, and a thickness drdr. Its mass is the additional mass enclosed when we increase the radius by drdr. We represent this tiny increase in enclosed mass by dMrd{M}_{r} (Figure 8.1).

A thin spherical shell of radius r and thickness dr inside a star of radius R. The shaded sphere contains the enclosed mass Mr; the shell adds dMr=4 r2 ( r) ,dr (thickness exaggerated)
Figure 1. A thin spherical shell of radius rr and thickness drdr inside a star of radius RR. The shaded sphere contains the enclosed mass Mr{M}_{r}; the shell adds dMr=4πr2ρ(r) drd{M}_{r}=4\pi {r}^{2}\rho \left( r\right) \,dr (thickness exaggerated)

Our immediate task is to calculate the volume of this shell.

Finding the volume of a thin spherical shell

Recall the formula for the surface area of a sphere:

Surface area=4πr2\text{Surface area}=4\pi {r}^{2}

Imagine making a very thin spherical shell and carefully cutting it open. Because its thickness is extremely small, we can approximately think of its volume as the surface area multiplied by its thickness.

Therefore,

Volume of thin shell≈surface area×thickness\text{Volume of thin shell}\approx \text{surface area}\times \text{thickness} dV≈4πr2×drdV\approx 4\pi {r}^{2}\times dr

Hence,

dV≈4πr2 drdV\approx 4\pi {r}^{2}\,dr

Why is this an approximation? The outer surface of the shell has a slightly larger radius than its inner surface. However, when the thickness drdr becomes extremely small, the difference between the two surface areas becomes negligible for calculating the leading contribution to the volume. In differential notation, we therefore write:

dV=4πr2 drdV=4\pi {r}^{2}\,dr

This expression tells us something important. The volume of a very thin spherical layer depends on the square of its radius and its thickness. At a larger radius, a shell of the same tiny thickness contains more volume because the spherical surface area is larger.

Finding the mass of the shell

Now recall the definition of density:

Density=massvolume\text{Density}=\frac{\text{mass}}{\text{volume}}

Rearranging this familiar relationship gives:

Mass=density×volume\text{Mass}=\text{density}\times \text{volume}

Our thin shell is located at approximately radius rr. Because it is infinitesimally thin, its density can be treated as the local density ρ(r)\rho \left( r\right) when calculating its infinitesimal mass.

The mass of the shell is therefore:

dMr=ρ(r)×dVd{M}_{r}=\rho \left( r\right) \times dV

Substituting the expression for the shell’s volume gives:

dMr=ρ(r)×4πr2 drd{M}_{r}=\rho \left( r\right) \times 4\pi {r}^{2}\,dr

Rearranging,

dMr=4πr2ρ(r) drd{M}_{r}=4\pi {r}^{2}\rho \left( r\right) \,dr

This equation expresses the additional mass contained in a very thin spherical shell.

Deriving the mass continuity equation

Remember what Mr{M}_{r} represents: the total mass enclosed inside radius rr. When we increase the radius by a tiny amount drdr, the enclosed mass increases by dMrd{M}_{r}.

We have just established the relationship:

dMr=4πr2ρ(r) drd{M}_{r}=4\pi {r}^{2}\rho \left( r\right) \,dr

Divide both sides by drdr:

dMrdr=4πr2ρ(r)\frac{d{M}_{r}}{dr}=4\pi {r}^{2}\rho \left( r\right)

This is the mass continuity equation, one of the fundamental equations of stellar structure.

Let us interpret it rather than memorising it. The left-hand side, dMr/drd{M}_{r}/dr, tells us how rapidly the enclosed mass increases as we move outward through the star. The right-hand side, 4πr2ρ(r)4\pi {r}^{2}\rho \left( r\right), tells us that this rate depends on the spherical surface area at radius rr and the density of the material there.

The equation is a local relationship: it tells us how much additional mass is encountered per unit increase in radius at a particular location. It does not require the star to have the same density everywhere.

We can also check that the units make sense. Density has units of kg/m³, while r2{r}^{2} has units of m². Therefore,

r2ρ(r) has units of  m2×kg/m3=kg/m{r}^{2}\rho \left( r\right) \text{ }\text{has units of}\text{ }\text{ }{m}^{2}\times \text{kg}/{m}^{3}=\text{kg}/m

These are exactly the units of dMr/drd{M}_{r}/dr: mass divided by length. This agreement provides a useful check that the equation is dimensionally consistent.

The physical picture is now complete. As we move outward through a star, each thin spherical shell contributes additional mass. Adding the contributions of all the shells builds up the enclosed mass, from zero at the centre to the star’s total mass MM at the surface.

We now know how mass is distributed through the star in terms of radius. But why does the enclosed mass matter so much? Because the mass inside a given radius determines the gravitational pull experienced there. Our next task is to understand gravity inside a spherical star.

Gravity Inside a Spherical Star

Imagine placing a tiny object somewhere inside the Sun. Would the gravitational pull on that object depend on the Sun’s entire mass, or only on the matter closer to the centre than the object’s position?

This is an important question. We know that the Sun’s gravity holds planets in their orbits, but inside the Sun, the situation requires more careful reasoning. Some matter lies closer to the centre than our object, while other matter lies farther away. To understand the gravitational pull, we must determine how these different regions contribute.

Newton’s law of gravitation

Newton’s law of universal gravitation tells us that any two objects with masses attract each other. For two objects treated as point masses, the magnitude of the gravitational force is

F=GM1M2r2F=\frac{G{M}_{1}{M}_{2}}{{r}^{2}}

Here, M1{M}_{1} and M2{M}_{2} are the masses of the two objects, rr is the distance between their centres, and GG is the universal gravitational constant.

The equation tells us two important things. A greater mass produces a stronger gravitational attraction, while increasing the separation weakens the force according to the inverse square of the distance.

But a star is not a point mass. It is an extended sphere containing matter at many different distances from its centre. Can we still use Newton’s law to understand the gravity inside it?

Fortunately, the spherical shape gives us a powerful result.

The special result for a spherical body

Imagine dividing the star into many thin spherical shells, like the layers of an onion. Consider an object located inside the star at a distance rr from its centre.

The matter in the star can be divided into two groups: the matter inside radius rr and the matter in the spherical layers outside that radius.

For a spherically symmetric mass distribution, Newton’s shell theorem gives us two important results.

First, the gravitational pull produced by the matter in a spherical shell is zero at any point inside that shell. The different parts of the shell attract the object in different directions, and their combined gravitational effect cancels out.

Second, the matter enclosed within radius rr attracts the object as though all that enclosed mass were concentrated at the centre of the star.

This does not mean that the outer layers contain no mass or exert no gravity on objects outside them. It means that, at a point inside a perfectly spherical shell, their combined gravitational force is zero.

We can therefore calculate the gravitational acceleration at radius rr using only the enclosed mass Mr{M}_{r}.

Deriving the gravitational acceleration inside a star

Imagine placing a small test object of mass mm at a distance rr from the centre of the star. The enclosed mass Mr{M}_{r} acts, for this calculation, as though it were concentrated at the centre.

Using Newton’s law of gravitation, the magnitude of the force on the test object is

F=GMrmr2F=\frac{G{M}_{r}m}{{r}^{2}}

Gravitational acceleration is the gravitational force per unit mass. Therefore,

g(r)=Fmg\left( r\right) =\frac{F}{m}

Substituting the expression for FF gives

g(r)=GMrm/r2mg\left( r\right) =\frac{G{M}_{r}m/{r}^{2}}{m}

The test object’s mass mm cancels, leaving

g(r)=GMrr2g\left( r\right) =\frac{G{M}_{r}}{{r}^{2}}

This is the expression for the magnitude of gravitational acceleration at an interior radius rr in our spherically symmetric star model. The acceleration is directed towards the centre.

Notice what the formula contains: the universal gravitational constant GG, the enclosed mass Mr{M}_{r}, and the square of the distance rr.

It does not contain the total mass MM directly. The total mass becomes relevant when we are at the surface, where the enclosed mass equals the star’s total mass.

At the surface, r=Rr=R and Mr=M{M}_{r}=M. Our expression then becomes

gsurface=GMR2{g}_{\text{surface}}=\frac{GM}{{R}^{2}}

This is the familiar expression for the gravitational acceleration at the surface of a spherical body.

What should we understand physically?

As we move outward inside the star, two things change. The distance rr increases, tending to reduce gravitational acceleration through the factor 1/r21/{r}^{2}. At the same time, the enclosed mass Mr{M}_{r} increases, tending to increase the gravitational acceleration.

Because these effects compete, we cannot determine how gg changes with radius merely by looking at the denominator. We also need to know how the enclosed mass changes. The mass continuity equation from the previous subsection provides the relationship needed to investigate that change.

We should also distinguish gravitational acceleration from gravitational force. The acceleration gg describes the gravitational field at a location, whereas the force on an object of mass mm has magnitude F=mgF=mg. Two objects placed at the same location experience the same gravitational acceleration in this idealised model, but the more massive object experiences a greater gravitational force.

We have now connected the distribution of matter inside a star to the strength of gravity at each radius. This is one half of the physical problem of stellar structure.

Gravity pulls material inward, but a star that remains stable does not simply collapse. Something must oppose that inward pull.

Key results.

  • dM_r/dr = 4πr²ρ(r)
  • 1/μ ≈ 2X + (3/4)Y + (1/2)Z

Common mistakes. Each of these is false:

  • ✗ Gravity is strongest at the centre of a star (it is zero there).
  • ✗ μ for ionised hydrogen is 1 (it is 1/2, because each proton brings an electron).

Going deeper (Olympiad)

For a given density profile ρ(r), integrate to get M_r and g(r).

2. Explore it

Try it. What is μ for fully ionised pure helium?

Exam-style practice. For ρ = ρ_c(1 − r/R), find M_r.

3. Worked example

What is the mean molecular weight μ\mu of a fully ionized gas composed of 75% hydrogen and 25% helium by mass? (Assume helium is fully ionized into He2+{\text{He}}^{2+} and 2e−2{e}^{-}.)

(a) 0.50.5
(b) 0.60.6
(c) 1.31.3
(d) 0.750.75

Solution. Answer: (b). 0.6

For a fully ionized gas, 1/μ≈2X+3/4Y+1/2Z1/\mu \approx 2X+{3}/{4}Y+{1}/{2}Z. Here X=0.75X=0.75, Y=0.25Y=0.25, Z=0Z=0:

1μ=2(0.75)+34(0.25)\frac{1}{\mu }=2\left( 0.75\right) +\frac{3}{4}\left( 0.25\right) 1μ=1.5+0.1875=1.6875\frac{1}{\mu }=1.5+0.1875=1.6875 μ=11.6875≈0.59≈0.6\mu =\frac{1}{1.6875}\approx 0.59\approx 0.6

4. From a past paper

NSEA 2016, Question 65 (official paper: IAPT). Think of a star as a ball of hot gas of radius R. At radius r the density is ρr\rho_r, and MrM_r is the mass inside radius r. Which equation gives how MrM_r grows with r? (a) dMrdr=43πρrr3\dfrac{dM_r}{dr}=\dfrac{4}{3}\pi\rho_r r^{3} (b) dMrdr=4πρrr2\dfrac{dM_r}{dr}=4\pi\rho_r r^{2} (c) dMrdr=23πρrr2\dfrac{dM_r}{dr}=\dfrac{2}{3}\pi\rho_r r^{2} (d) dMrdr=13πρrr3\dfrac{dM_r}{dr}=\dfrac{1}{3}\pi\rho_r r^{3}

Our solution. Answer: (b). dMrdr=4πr2ρr\frac{d{M}_{r}}{dr}=4\pi {r}^{2}{\rho }_{r}

A thin shell between rr and r+drr+dr has surface area 4πr24\pi {r}^{2} and thickness drdr, so its volume is dV=4πr2drdV=4\pi {r}^{2}dr. Its mass is density × volume:

dMr=ρr(4πr2dr)⇒dMrdr=4πr2ρrd{M}_{r}={\rho }_{r}\left( 4\pi {r}^{2}dr\right) \Rightarrow \frac{d{M}_{r}}{dr}=4\pi {r}^{2}{\rho }_{r}

Options (a) and (d) are dimensionally wrong: ρr3\rho {r}^{3} is a mass, whereas dMrdr\frac{d{M}_{r}}{dr} is a mass per unit length. Option (c) has the right dimensions but the wrong numerical factor.

5. Quick check

Q1. In a spherically symmetric star, how does the enclosed mass Mr{M}_{r} depend on the radius rr in a region where the density ρ0{\rho }_{0} is constant?

Q2. Why does the pressure PP inside a star decrease as the distance rr from the centre increases (dPdr<0)\left( \frac{dP}{dr}<0\right)?

Q3. In a fully ionized pure hydrogen stellar core, how is the number density of gas particles nn related to the mass density ρ\rho and the mass of a proton mH{m}_{H}?

Q4. Which of the following statements about the mass continuity equation, dMrdr=4πr2ρ(r)\frac{d{M}_{r}}{dr}=4\pi {r}^{2}\rho \left( r\right), are correct? (Choose all that are correct.)

6. Next