Lecture 2: The Balancing Act — Hydrostatic Equilibrium

What holds a star up against its own gravity?

Dr. Anna Rosen

March 10, 2026

Without support, the Sun should collapse in about 50 minutes.

So what has kept it stable for 4.6 billion years?

Pressure Is Not Enough

Two-panel didactic diagram comparing a gas shell with equal pressure on top and bottom to a gas shell with larger pressure below than above, alongside downward gravity arrows and net-force labels.
Credit: ASTR 201 (generated)

The outward force comes from a pressure gradient: the gas below a layer must push harder than the gas above it.

Today’s Targets

By the end of class, you should be able to:

  • explain why a star needs a pressure gradient, not just pressure
  • interpret the equation of hydrostatic equilibrium
  • estimate how central pressure scales with \(M\) and \(R\)
  • use the virial theorem to connect gravity and thermal energy
  • explain why losing energy can make a star get hotter

Today’s Roadmap

  1. The support problem — why equal pressure does not help
  2. The shell argument — force balance inside a star
  3. The master equation — hydrostatic equilibrium
  4. How much pressure? — estimating the solar core
  5. Why contraction heats — virial theorem and core temperature

The Swimming Pool Analogy

  • water pressure is larger at the bottom than at the top
  • why? each deeper layer supports more overlying weight
  • a star works the same way: deeper layers must support more stellar mass

Support comes from a difference across a layer, not from an absolute number.

Visual Intuition: The Stellar Tug-of-War

Generated shell-force diagram with a rectangular gas shell labeled by density rho, area A, and thickness dr, plus arrows and equations for the inner pressure force, outer pressure force, and inward gravitational force.
Credit: ASTR 201 (generated)

Build the Force Balance

Consider a thin shell at radius \(r\) with thickness \(dr\).

Gravity

  • pulls inward
  • depends on enclosed mass \(M(r)\)
  • acts on shell mass \(\rho A\,dr\)

Pressure difference

  • bottom face pushes out
  • top face pushes in
  • net force is outward only if pressure decreases with radius

The Master Balance Law

\[ \frac{dP}{dr} = -\frac{G\,M(r)\,\rho(r)}{r^2} \tag{1}\]

Read it like a sentence

  • \(P\) is pressure and \(\rho\) is density
  • \(M(r)\) is the mass enclosed inside radius \(r\)
  • left side: how pressure changes outward
  • right side: the local weight per unit volume
  • negative sign: pressure must fall as radius increases

Quick Check: What If the Gradient Were Wrong?

If \(dP/dr = 0\) everywhere inside a star, the star would:

  • expand rapidly
  • collapse on the dynamical timescale
  • remain stable because pressure is still present
  • become cooler but keep the same size

How Much Pressure Does the Core Need?

\[ P_c \sim \frac{GM^2}{R^4} \tag{2}\]

Scaling story

  • \(P_c\) is central pressure
  • \(M\) is stellar mass and \(R\) is stellar radius
  • more mass means more weight to support
  • smaller radius means much stronger compression
  • this is an order-of-magnitude estimate, not a full stellar model

Solar Core Pressure: Order of Magnitude

\(P_c \sim \frac{GM_\odot^2}{R_\odot^4} \approx 10^{16}~\text{dyn}/\text{cm}^2\)

  • about 10 billion atmospheres
  • high enough that ordinary everyday intuition stops helping
  • still only an estimate; real solar models give an even larger central pressure

Gravity and Thermal Energy Are Linked

\[ 2 K_\text{th} + U_\text{grav} = 0 \tag{3}\]

What makes this deep

  • \(K_\text{th}\) is total thermal energy
  • \(U_\text{grav}\) is gravitational potential energy
  • gravity binds the star, so \(U_\text{grav}<0\)
  • thermal motion resists collapse
  • the theorem links the energy budget to the force balance

The Strange Result: Negative Heat Capacity

  • a star radiates energy away
  • gravity makes it contract a little
  • contraction increases particle speeds
  • the core temperature rises even while the star is losing energy

Self-gravitating systems do the opposite of a coffee cup on your desk.

Energy Ledger for a Self-Gravitating Star

Two-panel generated figure with a virial energy ledger bar chart for gravitational, thermal, and total energy on the left and a causal chain from radiating energy to core heating on the right.
Credit: ASTR 201 (generated)

From Gravity to Core Temperature

\[ T_c \sim \frac{\mu G M m_p}{k_B R} \tag{4}\]

Why this matters

  • \(\mu\) is mean molecular weight
  • \(m_p\) is the proton mass and \(k_B\) is Boltzmann’s constant
  • depends on mass, radius, and composition
  • gives the Sun a core temperature of order \(10^7~\text{K}\)
  • shows that gravity alone can prepare the conditions for fusion

Core Temperature Changes Surprisingly Slowly with Mass

Generated log-log plot of core temperature scale in megakelvin versus stellar mass, showing a hydrostatic scaling curve based on T proportional to M over R, a Sun point, and a dashed comparison for the unrealistic fixed-radius case.
Credit: ASTR 201 (generated)

More massive stars are hotter inside, but not by orders of magnitude.

Why 15 Million K Matters

What we used

  • gravity
  • pressure balance
  • thermal motion

What we have not used yet

  • nuclear reaction details
  • tunneling
  • the proton-proton chain

That is the setup for the next lecture: once the core is hot enough, how does fusion actually happen?

Where in the Sun Is the Engine?

Annotated cutaway of the Sun showing the core, radiative zone, convection zone, photosphere, chromosphere, transition region, and corona, with temperature labels for the atmospheric layers and callouts to magnetic activity.
Credit: NotebookLM-generated schematic

Observable -> Model -> Inference

Step This lecture
Observable A star stays roughly steady for billions of years
Model Pressure gradient balances gravity
Inference The core must be dense, high-pressure, and hot

We never “see” the solar core directly.

We infer it from the physics required to keep the Sun standing.

Think-Pair-Share: Compactness Wins

Two stars have the same mass, but Star B has half the radius of Star A.

  1. Which star needs the larger central pressure?
  2. Which star should have the hotter core?
  3. What feature of the equations tells you that?

Target idea: the more compact star needs much larger support and therefore a hotter, denser interior.

Summary: What Hydrostatic Equilibrium Gives Us

  1. Stars need a pressure gradient — equal pressure on both sides does nothing
  2. Hydrostatic equilibrium is the master balance law for stellar structure
  3. Central pressure scales with compactness — same mass, smaller radius means larger \(P_c\)
  1. Virial balance links gravity and heat — contraction raises temperature
  2. The solar core must be hot — enough to set up nuclear fusion

Looking Ahead

Gravity can make the core hot enough.

Next question: how do protons actually fuse when they repel each other?

Preview: Hydrostatic Balance Is Not the Whole Story

Generated log-scale separation-versus-potential plot for proton-proton fusion, showing Coulomb repulsion, a schematic total potential with short-range nuclear attraction, a few-keV thermal-energy line, the classically forbidden region between about 1 fm and the turning point, and a blue schematic wavefunction amplitude that oscillates outside the barrier and decays through it.
Credit: ASTR 201 (generated)

Optional Expansion

Use these if we want the slower derivation or a fuller pressure story.

Optional: Shell Derivation in One More Step

For a shell of area \(A\) and thickness \(dr\):

\[ F_\text{pressure} = [P(r) - P(r+dr)]A \approx -\frac{dP}{dr}A\,dr \]

\[ F_\text{grav} = -\frac{G M(r)\rho A\,dr}{r^2} \]

Set \(F_\text{pressure} + F_\text{grav} = 0\) to recover hydrostatic equilibrium.

Optional: Why White Dwarfs Need Enormous Support

Keep the same mass, shrink the radius by a huge factor, and the required central pressure skyrockets.

That is why later in Module 3 ordinary gas pressure stops being enough, and degeneracy pressure has to take over.

Optional: The Stellar Thermostat

Cutaway schematic of the Sun with inward blue gravity arrows and outward orange pressure arrows, plus callouts explaining hydrostatic equilibrium and the stellar thermostat effect.
Credit: NotebookLM-generated schematic