Earth · Scientific Methods
Reading the Light of the Stars
How a Bavarian glassmaker’s curiosity about dark lines in a rainbow became the tool that reads the chemical composition of the universe
Reading the Light of the Stars
How a Bavarian optician found dark lines in a rainbow he couldn't explain — and in doing so, handed astronomy the key to reading the chemical composition of the entire universe.
The Lines That Shouldn't Have Been There
In 1814, a Bavarian glassmaker named Joseph von Fraunhofer was trying to solve a practical problem. He manufactured achromatic lenses for telescopes — lenses that focused all colors to the same point — and he needed a precise way to measure how different types of glass bent light. He wasn't an academic. He was a craftsman, orphaned at age 11, apprenticed to a mirror maker, rescued from a collapsed workshop that killed his master.
To measure refractive indices, Fraunhofer built an ingenious apparatus: a narrow slit, a flint glass prism, and a modified surveying theodolite capable of measuring angles to the arc-second. He pointed it at sunlight. What he expected was a smooth, continuous rainbow. What he found was something impossible — a rainbow crossed by 574 dark lines. “An infinite number of vertical lines of different thicknesses,” he wrote. “These lines are darker than the rest of the spectrum, and some of them appear entirely black.”
Fraunhofer carefully mapped the most prominent lines, labeling them A through K. He noticed that the D-line exactly matched the wavelength of the yellow light produced by sodium in a flame — the first hint of a connection. But he died at 39, never understanding what those dark lines were. He had, without realizing it, handed astronomy the key to reading the chemical composition of the Sun, the stars, and everything beyond.
How Light Carries a Chemical Signature
The explanation — discovered by Gustav Kirchhoff and Robert Bunsen in 1859, forty-five years after Fraunhofer's death — is elegantly simple. Every chemical element has a unique arrangement of electrons, and those electrons can only occupy specific energy levels. When an electron jumps between levels, it absorbs or emits a photon whose energy equals the gap — which means a photon of exactly one wavelength. Sodium always produces two close yellow lines at 589.0 and 589.6 nm. Hydrogen always produces a red line at 656.3 nm. These are atomic fingerprints — unique, unchangeable, the same in a Bunsen burner in Heidelberg as in a galaxy ten billion light-years away.
When light from a hot, dense source — like the interior of a star — passes through a cooler outer layer of gas, atoms in that gas absorb photons at their characteristic wavelengths, carving dark lines into the continuous spectrum. Fraunhofer had been looking at the chemical signature of the Sun's outer atmosphere, written across a rainbow in black.
How It Works
Each dark line is an element's fingerprint — absorbed at a wavelength that uniquely identifies it.
A modern astronomical spectrograph works on the same principle, with one crucial upgrade: a diffraction grating — a surface etched with thousands of microscopic parallel grooves — spreads light into its component wavelengths with precision Fraunhofer could only dream of. The spectrum is recorded by a CCD sensor, producing a graph of brightness versus wavelength. Every dip in that graph is an absorption line. Every line names an element. Every spectrum is a chemical assay of a place we will never visit.
An Element from the Sun
On August 18, 1868, a total solar eclipse swept across India. French astronomer Jules Janssen had traveled there with a spectroscope, hoping to study the solar prominences — fiery arches of gas visible only when the Moon blocks the Sun's disk. When he trained his instrument on them during totality, he saw a brilliant yellow line at 587.5 nm — right next to the familiar sodium D-lines, but not quite matching any element known on Earth.
Two months later, English astronomer Norman Lockyer independently observed the same line. He named the mysterious element helium, after helios — the Greek Sun. It was the first element ever discovered beyond Earth. For 27 years, helium remained a curiosity of the solar atmosphere — until 1895, when Scottish chemist William Ramsay isolated it from a uranium mineral on Earth. Lockyer examined the sample and wept: the “glorious yellow effulgence” he had seen on the Sun now glowed in a London laboratory.
The Women Who Classified the Stars
At the Harvard College Observatory in the late 19th century, astronomer Edward Pickering hired a team of women — called the “Harvard Computers” — to process the observatory's growing archive of stellar spectra. Among them, Annie Jump Cannon stood out. She could classify three stars per minute, and over her career she catalogued more than 225,000 stellar spectra.
Cannon created the classification system astronomers still use today: O, B, A, F, G, K, M. The system is arranged by temperature — O stars burn blue-hot above 30,000 K, while M stars glow cool red below 3,500 K. Our Sun is a G-type star, at about 5,800 K. Generations of astronomy students remember the sequence with “Oh Be A Fine Girl, Kiss Me.” The Hertzsprung-Russell diagram, built from this spectral classification, revealed that most stars fall on a “main sequence” — a tight relationship between temperature and brightness — with red giants and white dwarfs caught in the act of stellar evolution.
Reading Alien Skies
Today, spectroscopy has reached other worlds. The James Webb Space Telescope captures starlight filtering through exoplanet atmospheres during transits: the planet passes in front of its star, and a tiny fraction of starlight skims through the planet's atmosphere before reaching us. That light carries absorption lines from whatever gases are present — a chemical assay of an alien sky, performed from a million kilometers away.
In 2024, JWST detected water vapor, carbon dioxide, and methane in the atmosphere of WASP-39b, a hot Saturn-mass planet 700 light-years away. It found hints of sulfur compounds in the rocky super-Earth L98-59d. On 55 Cancri e — a lava world twice Earth's size, so hot its surface is molten rock — it saw evidence of a carbon-rich atmosphere sustained by volcanic outgassing. We are reading the chemical composition of atmospheres light-years away, using the same principle Fraunhofer stumbled onto with a prism and a theodolite in 1814.
What the Light Tells Us
In 1835, the French philosopher Auguste Comte declared that we could never know what stars are made of. The distance was simply too vast, the objects too remote. He was wrong — and spectroscopy is why.
Every beam of starlight is a letter. Every spectrum is a paragraph. Without spectroscopy, the Sun is a bright disk we can measure but not understand. With it, the Sun becomes a ball of hydrogen and helium, with traces of iron, calcium, magnesium, and sodium — elements we know because their fingerprints appear in the dark lines of its spectrum. Without spectroscopy, a distant planet is an invisible point. With it, that point becomes a world with water vapor, methane, and carbon dioxide in its air — a chemistry we can read across light-years.
Spectroscopy taught us that the universe is made of the same elements as our own planet — iron, carbon, oxygen, nitrogen — forged in stars and scattered by supernovae. It gave us helium from the Sun, the life cycles of stars from Harvard's spectra, and now the atmospheres of planets orbiting distant suns. It is not merely a technique — it is a language. And Fraunhofer, squinting through his theodolite at dark lines he couldn't explain, was the first to realize there was something there to read.
Further Reading
- The Analysis of Starlight — John B. Hearnshaw. The definitive history of astronomical spectroscopy, from Fraunhofer to the Hubble Space Telescope.
- The Glass Universe — Dava Sobel. The story of the Harvard Computers and how their spectral classification of stars built modern astrophysics.
- JWST Exoplanet Atmosphere Observations — NASA's public archive of transmission spectroscopy results, updated with each new observation cycle.
- Cosmos, Episode 4: “Heaven and Hell” — Carl Sagan. A classic explanation of Fraunhofer's discovery and what it means, in Sagan's inimitable voice.