AI Tutor
Every second, the core of our Sun unleashes the energy of a hundred billion hydrogen bombs, yet the Sun does not blow itself apart. At the exact same time, gravity pulls hundreds of thousands of times Earth's mass inward, yet the Sun does not collapse.
This cosmic stalemate is called hydrostatic equilibrium, where the inward crush of gravity at every layer inside a star is precisely balanced by the outward push of thermal gas pressure and radiation pressure.
In 1926, British astrophysicist Sir Arthur Eddington formalized this balance into the fundamental equation of stellar structure: dPdr=βˆ’GM(r)ρ(r)r2\frac{dP}{dr} = -\frac{G M(r) \rho(r)}{r^2} Here, dPdr\frac{dP}{dr} is the pressure gradient (the rate at which pressure changes with radius), M(r)M(r) is the mass enclosed within radius rr, and ρ(r)\rho(r) is the local gas density.
To derive this, consider a cylindrical fluid element of cross-sectional area AA and thickness drdr at radius rr: the net outward pressure force (P(r)βˆ’P(r+dr))A=βˆ’dPβ‹…A(P(r) - P(r+dr))A = -dP \cdot A must equal the gravitational pull dFg=GM(r)dmr2dF_g = \frac{G M(r) dm}{r^2}, where dm=ρ(r)Adrdm = \rho(r) A dr.
Dividing both sides by Aβ‹…drA \cdot dr directly yields Eddington's differential equation.
What happens when a star uses up the hydrogen fuel maintaining this delicate balance? To track these changes over billions of years, astronomers plot stars on a special map.

The Hertzsprung-Russell Diagram

The Hertzsprung-Russell (H-R) diagram plots stellar luminosity (LL, total energy radiated per second relative to the Sun, LβŠ™L_\odot) on the vertical logarithmic axis against effective surface temperature (TeffT_\text{eff} in Kelvin) on the horizontal axis.
Crucially, temperature is plotted backward by astronomical convention: hot blue stars (30,000Β K30{,}000\text{ K}) sit on the left, while cool red stars (3,000Β K3{,}000\text{ K}) sit on the right.
A star's location on this diagram is governed by the Stefan-Boltzmann law applied to spherical stars: L=4Ο€R2ΟƒTeff4L = 4\pi R^2 \sigma T_\text{eff}^4 where RR is stellar radius and Οƒ\sigma is the Stefan-Boltzmann constant.
This relationship reveals why giant stars occupy the upper right: despite their cool surfaces (Teffβ‰ˆ3,000Β KT_\text{eff} \approx 3{,}000\text{ K}), their colossal surface area (R2R^2) makes them thousands of times more luminous than our Sun.