Astronomy Olympiad / Level 1 · NSEA / Stars

Stars · lesson 17 of 23 · 40 min

Hydrostatic equilibrium: why a star does not collapse

After this lesson you can:
  • Derive dP/dr = −GM_rρ/r² from the forces on a thin shell.
  • Explain why pressure must rise towards the centre.
  • Find P(r) for a star of uniform density.

Before this lesson: Inside a star: density, enclosed mass and gravity

1. Concept

In a stable star the pressure difference across every layer holds up that layer’s weight; this one equation shapes every star.

Pressure and Pressure Differences Across a Layer

Imagine squeezing a balloon. The air inside pushes against its walls, and the walls push back on the air. This happens because gas exerts pressure on the surfaces around it.

Pressure is familiar from everyday life, but inside a star it plays a particularly important role. The hot material inside the star exerts pressure, and this pressure helps support the material against the inward pull of gravity. To understand how this support works, we must first examine what pressure means and how it produces a force.

What is pressure?

Pressure is defined as the perpendicular force acting on a surface per unit area:

P=FAP=\frac{F}{A}

Here, PP represents pressure, FF is the perpendicular force, and AA is the area over which the force acts. Rearranging gives

F=PAF=PA

This means that the force exerted by a given pressure increases with the area of the surface. The SI unit of pressure is the pascal (Pa), which is equivalent to one newton per square metre (N/m²).

Gas pressure arises from the motion of particles. The particles move in different directions and collide with surfaces, transferring momentum. The combined effect of these collisions produces pressure. In a star, the extremely hot gas can exert substantial pressure, helping to resist compression by gravity.

Why pressure on two sides matters

Return to our imaginary thin spherical shell inside a star. Its inner boundary is closer to the centre, while its outer boundary is farther away. Imagine that the shell has radius approximately rr and a very small thickness drdr.

The material beneath the shell exerts pressure on its inner surface. Because the inner surface faces the centre, the force exerted on the shell by the material inside acts radially outward.

The material beyond the shell exerts pressure on its outer surface. This force acts radially inward, towards the centre.

Thus, the two pressure forces act in opposite directions. The inner material pushes the shell outward, while the outer material pushes it inward.

If these pressure forces balance exactly, their combined effect produces no net pressure force on the shell. If the outward pressure force is greater, the net pressure force is outward. If the inward pressure force is greater, the net pressure force is inward.

This is the key principle: the net pressure force depends on the difference between the pressure forces on the two sides, not simply on the existence of pressure.

Why pressure decreases towards the surface

For a star in hydrostatic equilibrium, gravity pulls each thin layer inward, and the pressure forces provide the opposing support. For the pressure force to balance gravity, the pressure at the inner boundary must be greater than the pressure at the outer boundary.

As a result, pressure generally decreases as we move from the centre towards the surface. The central regions must support the weight of the overlying layers, while regions closer to the surface have less overlying material to support.

At the outer boundary of the idealised stellar model used in this chapter, the pressure is taken to be zero. The pressure is greatest at the centre and declines outwards through the star.

This does not mean that pressure itself points only outward. Pressure acts perpendicular to each surface, and the direction of the resulting force depends on which side of the shell exerts it. It is the difference between the opposing forces that provides the net force needed to balance gravity.

We have now assembled the physical ideas needed for hydrostatic equilibrium. Gravity pulls a thin shell inward, while a suitable difference in pressure across the shell can provide an equal outward force.

We will combine Newton’s gravitational law, the mass continuity equation, and the pressure-force relationship to derive the hydrostatic equilibrium equation. This will explain mathematically how pressure must change with radius inside a stable star.

Deriving Hydrostatic Equilibrium

Imagine a star that has remained stable for a very long time. Its material is not collapsing inward or expanding outward at every layer. Gravity continuously pulls the material inward, but pressure provides the opposing force needed to support it.

How can we express this balance mathematically?

We will consider a very thin layer of material at a distance rr from the centre of the star. Rather than calculating the forces on the complete spherical layer, imagine examining a small patch of it. Over the tiny thickness of the layer, the areas of its inner and outer faces can be treated as approximately equal. We call this area AA.

Our aim is to calculate the gravitational force on this patch, calculate the net pressure force acting on it, and then balance the two (Figure 8.2).

Forces on a small patch of area A and thickness dr at radius r. The pressure P below pushes it outward, the slightly smaller pressure P+dP above pushes it inward, and gravity pulls its mass dm inward. In equilibrium the
Figure 1. Forces on a small patch of area AA and thickness drdr at radius rr. The pressure PP below pushes it outward, the slightly smaller pressure P+dPP+dP above pushes it inward, and gravity pulls its mass dmdm inward. In equilibrium the net pressure force −A dP-A\,dP balances the weight g dmg\,dm

Step 1: Calculate the mass of the small patch

Let the layer have a tiny radial thickness drdr. If the density at radius rr is ρ(r)\rho \left( r\right), the volume of the small patch is approximately

dV=A drdV=A\,dr

Using mass = density × volume, its mass is

dm=ρ(r) A drdm=\rho \left( r\right) \,A\,dr

This is the same principle we used in the previous subsection: the mass of a small piece of material depends on its density and volume.

Step 2: Calculate the inward gravitational force

From our study of gravity inside a spherical star, we know that the gravitational acceleration at radius rr has magnitude

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

Here, Mr{M}_{r} is the mass enclosed inside radius rr, and GG is the universal gravitational constant.

The gravitational force on a small mass is its mass multiplied by the gravitational acceleration. Therefore, the magnitude of the inward gravitational force on our patch is

Fg=g(r) dm{F}_{g}=g\left( r\right) \,dm

Substituting the expressions for g(r)g\left( r\right) and dmdm gives

Fg=(GMrr2)ρ(r) A dr{F}_{g}=\left( \frac{G{M}_{r}}{{r}^{2}}\right) \rho \left( r\right) \,A\,dr

Thus,

Fg=GMr ρ(r) A drr2{F}_{g}=\frac{G{M}_{r}\,\rho \left( r\right) \,A\,dr}{{r}^{2}}

This force acts towards the centre of the star.

Step 3: Calculate the net pressure force

Let the pressure at the inner face of the patch be PP. At the outer face, a small distance drdr farther out, let the pressure be P+dPP+dP.

The symbol dPdP represents the tiny change in pressure as we move from radius rr to radius r+drr+dr.

As established in the previous subsection, pressure decreases outwards in our equilibrium model. Therefore, dPdP is negative, and the pressure at the outer face is slightly smaller than at the inner face.

The inner pressure pushes the patch outward with force

Fin=PA{F}_{\text{in}}=PA

The outer pressure pushes the patch inward with force

Fout=(P+dP)A{F}_{\text{out}}=\left( P+dP\right) A

The net pressure force acting outward is the outward force minus the inward force:

Fp=PA−(P+dP)A{F}_{p}=PA-\left( P+dP\right) A

Expanding the expression gives

Fp=PA−PA−A dP{F}_{p}=PA-PA-A\,dP

The two PAPA terms cancel, leaving

Fp=−A dP{F}_{p}=-A\,dP

This result is important. The net pressure force depends on the change in pressure across the patch, not on the pressure PP alone.

Because dPdP is negative in our star, −A dP-A\,dP is positive. Hence, the net pressure force acts outward.

Step 4: Apply the condition of hydrostatic equilibrium

Hydrostatic equilibrium means that the material is supported without undergoing a net acceleration. In our small patch, the outward pressure force must balance the inward gravitational force.

Therefore,

Fp=Fg{F}_{p}={F}_{g}

Substituting the expressions we have derived,

−A dP=GMr ρ(r) A drr2-A\,dP=\frac{G{M}_{r}\,\rho \left( r\right) \,A\,dr}{{r}^{2}}

Notice that AA appears on both sides. Dividing both sides by AA gives

−dP=GMr ρ(r) drr2-dP=\frac{G{M}_{r}\,\rho \left( r\right) \,dr}{{r}^{2}}

Now divide both sides by drdr:

−dPdr=GMr ρ(r)r2-\frac{dP}{dr}=\frac{G{M}_{r}\,\rho \left( r\right) }{{r}^{2}}

Finally, moving the minus sign to the right-hand side gives

dPdr=−GMr ρ(r)r2\frac{dP}{dr}=-\frac{G{M}_{r}\,\rho \left( r\right) }{{r}^{2}}

This is the hydrostatic equilibrium equation, the second fundamental equation of stellar structure.

Step 5: Understand what the equation tells us

Let us interpret the result carefully.

The quantity dP/drdP/dr describes how pressure changes as we move outwards through the star. The right-hand side contains GG, Mr{M}_{r}, ρ(r)\rho \left( r\right) and r2{r}^{2}. Since these quantities are positive at an ordinary interior point of the star, the right-hand side is negative.

Consequently, dP/drdP/dr is negative: pressure decreases as radius increases.

The equation also connects three important properties of the star. The enclosed mass determines the gravitational acceleration; the local density determines how much mass occupies a small volume; and the pressure gradient describes how rapidly pressure must change with radius to support that material against gravity.

The negative sign is not an arbitrary mathematical detail. It expresses the physical direction of the pressure change: pressure is higher deeper inside the star and lower towards its surface.

Why this result matters

The mass continuity equation tells us how the enclosed mass changes with radius:

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

The hydrostatic equilibrium equation tells us how pressure changes with radius:

dPdr=−GMr ρ(r)r2\frac{dP}{dr}=-\frac{G{M}_{r}\,\rho \left( r\right) }{{r}^{2}}

Together, these equations form the foundation of our description of a star’s internal structure. The first describes how matter accumulates as we move outwards; the second describes how pressure must vary to balance gravity.

We have now derived both equations from simple physical ideas rather than treating them as formulas to memorise.

We will bring the two equations together and examine what each tells us about the centre, the interior and the surface of a star. This will prepare us to move from equations describing tiny local changes to estimates of the pressure at the centre of the entire star.

Understanding the Two Equations Together

Imagine that you could travel from the centre of the Sun towards its surface and measure the physical conditions at every point. You would find that the amount of matter enclosed within your position changes as you move, and the pressure also changes with your position. These changes are connected because the distribution of matter determines gravity, while gravity influences the pressure required to support the star.

The two equations we have derived describe these changes.

The first equation describes how mass accumulates

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

This is the mass continuity equation. It tells us how rapidly the enclosed mass increases as we move outwards through the star. The rate depends on the surface area of the sphere at radius rr and the density of the material there.

When we know the density distribution, we can use this equation to determine how much mass is enclosed within each radius. At the centre, the enclosed mass is zero. As we move towards the surface, more matter is included, until the enclosed mass becomes the total mass MM of the star.

The second equation describes how pressure changes

dPdr=−GMr ρ(r)r2\frac{dP}{dr}=-\frac{G{M}_{r}\,\rho \left( r\right) }{{r}^{2}}

This is the hydrostatic equilibrium equation. It tells us how rapidly pressure must change with radius when gravity is balanced by pressure forces.

The equation depends on the enclosed mass Mr{M}_{r}, because that mass determines the gravitational acceleration at the chosen radius. It also depends on the local density ρ(r)\rho \left( r\right), because density determines how much mass occupies a small volume of material that must be supported.

The negative sign indicates that pressure decreases as we move outwards in the star under the equilibrium conditions described by the model.

Why the two equations belong together

Notice that the equations share the quantities Mr{M}_{r} and ρ(r)\rho \left( r\right). This is not a coincidence.

The density determines how quickly the enclosed mass grows. That enclosed mass determines the gravitational pull. The gravitational pull, in turn, determines how the pressure must change to maintain equilibrium.

We can express the chain of physical reasoning as:

Density distribution → Enclosed mass → Gravity → Pressure gradient

The chain is not one-way in the full physical problem, because pressure, temperature and the properties of the gas are also related. But it captures the connection between the two equations we have derived.

Neither equation alone describes the complete internal structure of a star. Together, they provide two essential relationships that any spherical star in hydrostatic equilibrium must satisfy.

What happens at the centre and surface?

At the centre, r=0r=0 and Mr=0{M}_{r}=0. The idealised spherical model requires the enclosed mass to build up from zero as we move outwards. For a physically regular star with finite central density, the gravitational acceleration also approaches zero at the exact centre. Although the enclosed mass is zero there, the central pressure need not be zero.

At the surface, r=Rr=R and Mr=M{M}_{r}=M. The enclosed mass has reached the star’s total mass. In the idealised boundary condition used in this chapter, the pressure at the outermost layer is taken to be zero. The pressure therefore falls from its central value to this surface value.

These boundary conditions help us understand the overall behaviour of the star, but the two equations do not automatically tell us the exact numerical pressure at every radius. To determine the detailed structure, we would also need information connecting the pressure, density and state of the stellar material.

From local equations to the whole star

Both equations use derivatives: dMr/drd{M}_{r}/dr and dP/drdP/dr. A derivative describes how a quantity changes over a tiny step in radius. These are therefore local equations; they describe what happens in a small region of the star.

But many astronomical problems ask questions about the star as a whole. For example, what is the pressure at the centre of the Sun? To estimate it, we can compare the pressure at the centre with the pressure at the surface and replace the local rate of change by an approximate average rate across the star.

This approach will not reproduce every detail of the pressure profile. Instead, it allows us to estimate the central pressure using the star’s overall mass and radius. The approximation must be used carefully, because the numerical coefficient depends on how the average values and radial interval are chosen.

We now have the physical foundation needed for the next stage. The two stellar structure equations explain how mass and pressure change locally. We will use the hydrostatic equilibrium equation to move from these local changes to an estimate of the pressure difference across the entire star.

We will investigate how a tiny pressure change, dPdP, becomes a total pressure change, ΔP\Delta P, and how a local derivative can be approximated by an average difference ratio. This will prepare us to estimate the central pressure of the Sun.

Key results.

  • dP/dr = −G M_r ρ / r²
  • uniform density: P_c = 3GM²/(8πR⁴)

Common mistakes. Each of these is false:

  • ✗ Radiation pressure alone holds up a Sun-like star (gas pressure does most of the work).
  • ✗ Pressure is the same everywhere inside a star.

Going deeper (Olympiad)

Uniform density: P(r) = (2π/3)Gρ₀²(R² − r²), so P_c = 3GM²/(8πR⁴).

2. Explore it

Try it. Which way does the pressure force on a shell point, and which way does gravity act?

Exam-style practice. For uniform density, at what radius is the pressure half its central value?

3. Worked example

Consider a hypothetical star of radius RR whose density profile is ρ(r)=ρ0(Rr)\rho \left( r\right) ={\rho }_{0}\left( \frac{R}{r}\right). What is the total mass MM of this star?

(a) 43πρ0R3\frac{4}{3}\pi {\rho }_{0}{R}^{3}
(b) 2πρ0R32\pi {\rho }_{0}{R}^{3}
(c) 4πρ0R34\pi {\rho }_{0}{R}^{3}
(d) πρ0R3\pi {\rho }_{0}{R}^{3}

Solution. Answer: (b). 2πρ0R32\pi {\rho }_{0}{R}^{3}

Use the mass continuity equation with ρ(r)=ρ0R/r\rho \left( r\right) ={\rho }_{0}R/r:

M=∫0R4πr2 ρ0Rr dr=4πρ0R∫0Rr drM=\int_{0}^{R}{4}\pi {r}^{2}\,{\rho }_{0}\frac{R}{r}\,dr=4\pi {\rho }_{0}R\int_{0}^{R}{r}\,dr M=4πρ0R⋅R22=2πρ0R3M=4\pi {\rho }_{0}R\cdot \frac{{R}^{2}}{2}=2\pi {\rho }_{0}{R}^{3}

4. From a past paper

NSEA 2016, Question 66 (official paper: IAPT). A star in the prime of its life is in balance: gravity pulls inward and the pressure P pushes outward. Take a thin shell of thickness dr at radius r, across which the pressure changes by dP. Which equation is correct? (a) dPdr=−GMrr2ρr\dfrac{dP}{dr}=-\dfrac{GM_r}{r^{2}}\rho_r (b) dPdr=GMrr2ρr\dfrac{dP}{dr}=\dfrac{GM_r}{r^{2}}\rho_r (c) dPdr=−2GMr3r2ρr\dfrac{dP}{dr}=-\dfrac{2GM_r}{3r^{2}}\rho_r (d) dPdr=2GMr3r2ρr\dfrac{dP}{dr}=\dfrac{2GM_r}{3r^{2}}\rho_r

Our solution. Answer: (a). dPdr=−GMrρrr2\frac{dP}{dr}=-\frac{G{M}_{r}{\rho }_{r}}{{r}^{2}}

Consider a small block of the shell with area AA and thickness drdr. The pressure below it is PP and above it is P+dPP+dP, so the net outward pressure force is −AdP-A dP. Gravity pulls the block (mass ρrAdr{\rho }_{r}A dr) inward with force GMrρrAdrr2G{M}_{r}{\rho }_{r}A\frac{dr}{{r}^{2}}, where only the mass Mr{M}_{r} inside radius rr contributes. In equilibrium:

−AdP=GMrρrAdrr2⇒dPdr=−GMrρrr2-A dP=\frac{G{M}_{r}{\rho }_{r}A dr}{{r}^{2}}\Rightarrow \frac{dP}{dr}=-\frac{G{M}_{r}{\rho }_{r}}{{r}^{2}}

The minus sign shows that pressure decreases outward. (The question calls PP “radiation pressure”; in a Sun-like star the support comes mainly from gas pressure, but the equation of hydrostatic equilibrium is the same for the total pressure.)

5. Quick check

Q1. If a star has a uniform density ρ0{\rho }_{0} throughout its radius RR, what is the pressure gradient dP/drdP/dr at a distance rr from the centre?

Q2. For a star in hydrostatic equilibrium, which of the following are true regarding the pressure gradient dP/drdP/dr? (Choose all that are correct.)

Q3. Which of the following are valid physical conditions that follow from the stellar structure equations for normal stable stars? (Choose all that are correct.)

6. Next