The Life of a Star · StellarLab

Collapse a cold, dark molecular cloud into a star with your own hands: watch the protostellar disk ignite, drag the mass to decide its color, brightness and lifetime, and trace its path on the H-R diagram. Follow it as it swells into a red giant and sheds a planetary nebula — or watch a massive star end magnificently in a supernova, leaving a white dwarf, neutron star or black hole. Finally fly to the black hole a massive star left behind and see gravitational lensing bend the starfield into an Einstein ring while the accretion disk's light folds into an arch. The black hole view is rendered live by integrating light's geodesics on the GPU.

Subject: Astronomy · Level: High school, University · Topics: Cloud collapse and star formation, Main sequence and H-R diagram, Red giants, supernovae and remnants, Black holes and gravitational lensing

Chapters

Stellar Nursery

Vast molecular clouds drift through interstellar space — hydrogen, helium and a trace of dust at only about 10 K, colder than any freezer on Earth. Where the gas is dense and cold enough, gravity overwhelms its pressure and the cloud collapses.

The fall is not straight down: the cloud's faint original spin speeds up as it shrinks (think of a figure skater pulling in their arms), so matter first settles into a rotating disk and then feeds the center along it. Density and temperature at the center keep climbing — a protostar is taking shape there.

Ignition

Collapse turns gravitational energy into heat. When the core reaches about 10 million K, hydrogen nuclei finally collide hard enough for fusion to ignite: four hydrogen nuclei fuse into one helium nucleus, and the tiny lost mass becomes enormous energy via E = mc².

Outward fusion pressure now balances inward gravity, the star stops contracting and settles into hydrostatic equilibrium — it has lit up. Objects below 8% of the Sun's mass never reach that temperature; they fade slowly as brown dwarfs: failed stars.

The Main Sequence

Plot stars by temperature and luminosity (the Hertzsprung–Russell diagram) and nine in ten fall on a band running from upper left to lower right — the main sequence. Hot, bright stars sit at the upper left; cool, dim ones at the lower right.

Birth mass decides the spot: massive stars are blue and brilliant but burn lavishly, living only a few million years; a yellow dwarf like the Sun lasts 10 billion years; frugal red dwarfs can burn for trillions — far longer than the universe's current age. Drag the mass slider and watch the star slide along the diagram as its lifetime stretches or shrinks.

Swell and Farewell

Once the core's hydrogen has burned to helium, fusion stalls: the core contracts while the envelope swells. The larger surface is cooler per unit area and glows red — a red giant. When the Sun becomes one it will swallow Mercury, Venus, and perhaps Earth.

Then the road forks. Low- and medium-mass stars like the Sun gently blow their envelopes away in waves of wind, leaving a gorgeous planetary nebula. Giants above 8 solar masses fuse all the way to iron in the core, then collapse and rebound within a second — a supernova, briefly outshining an entire galaxy and scattering freshly forged heavy elements into space. The carbon, oxygen and iron in your body came from such deaths.

Stellar Remnants

After the outer layers drift away, what holds the leftover core against further collapse? A core below 1.4 solar masses (the Chandrasekhar limit) is supported by electron degeneracy pressure into an Earth-sized white dwarf — the blue-white ember on the left, its surface carbon and oxygen slowly crystallizing.

A heavier core crushes electrons into protons and becomes a city-sized neutron star, a teaspoon of it weighing billions of tons: the lighthouse in the middle, whose magnetic beams sweep through deep space as the star spins — each sweep past you is one pulse. Heavier still, and even neutrons give way — inside the ring of light on the right lies the event horizon, with matter spiraling in; not even light escapes.

A Journey on the H-R Diagram

The H-R diagram's horizontal axis is surface temperature (note: it rises leftward) and its vertical axis is luminosity (logarithmic). Now it stands before you: real stars are glowing spheres — the Sun in the middle, Betelgeuse at the upper right (cool but huge, hence bright), Sirius B at the lower left (hot but tiny, hence dim), and that amber diagonal is the main-sequence band where nine out of ten stars live.

Light up an evolutionary track and follow the cursor star from the main sequence, around the red-giant branch, past helium burning, down into the white-dwarf corner. Draw a few more at different masses — different mass, different route, different destination. This chart is the astronomer's map: measure a star's temperature and luminosity and you can read which stop of its life it is at.

Lensing by a Black Hole

Stars born above 25 solar masses leave stellar-mass black holes when they die. A black hole emits no light, but it curves the spacetime around it and bends passing light: the starfield behind is stretched into arcs, split into double images, and when perfectly aligned closes into an Einstein ring — gravitational lensing, one of general relativity's most direct demonstrations.

At 1.5 Schwarzschild radii outside the horizon lies the photon sphere, where light can orbit the hole. The black shadow at the center of the view is much larger than the horizon itself (about 2.6 times its radius); the thin bright ring at its edge is light that escaped after looping around the hole. If gas is nearby it settles into a scorching accretion disk — the far side of the disk is lensed up over the top, forming the famous arch of light. M87*, imaged by the Event Horizon Telescope in 2019, looks exactly like this.

More labs

Back to home