How astronomers read the detailed structure of light to determine the temperature, composition, and motion of objects they can never visit
You cannot visit a star. You cannot collect a sample from the surface of a distant galaxy. You cannot hold a piece of the solar wind or dip a probe into the atmosphere of a planet a hundred light-years away. And yet astronomers know the temperature of stars, the chemical composition of nebulae, the speed at which galaxies are moving away from us, and the conditions inside clouds of gas that will one day collapse into new suns.
How?
The answer, almost always, is light — specifically, the detailed structure of light after it has passed through a prism, a diffraction grating, or a spectrograph. That structure is called a spectrum, and it contains far more information than the naked eye ever perceives. A star's spectrum is its signature: a coded message carrying temperature, composition, motion, and physical state, all encoded in the precise pattern of colors and dark lines that its light produces.
This chapter teaches you how to read that message.
Chapter 6 introduced light as the primary messenger of the universe and surveyed the electromagnetic spectrum from radio waves to gamma rays. This chapter goes deeper into what light reveals once it is spread out and analyzed. You will learn the three types of spectra, why each element produces a unique spectral fingerprint, how temperature is encoded in color and peak wavelength, and how motion shifts spectral lines in measurable ways.
The skills you develop here — interpreting spectra, applying Wien's law, calculating Doppler shifts — are tools astronomers use every day to study objects billions of light-years away. They will carry you through the study of stars, galaxies, and the expanding universe in later chapters.
When sunlight passes through a glass prism, the white light separates into a band of colors: red, orange, yellow, green, blue, and violet. You have almost certainly seen this effect, either in a science demonstration or in the arc of a rainbow after rain. What you are seeing is the spectrum of sunlight.
The word spectrum (plural: spectra) comes from the Latin word for "appearance" or "image." In astronomy, a spectrum is the display of light spread out by wavelength — from longer wavelengths at the red end to shorter wavelengths at the violet end.
A spectrum is not merely a rainbow, though. A simple continuous band of color is one kind of spectrum, but light can also produce patterns of bright lines against a dark background, or dark lines cutting across an otherwise continuous band of color. These patterns are not accidents or artifacts. They are messages — precise, chemically specific messages — about what the light-emitting or light-absorbing material is made of and what conditions it is experiencing.
Astronomers use instruments called spectrographs to record spectra. A spectrograph attached to a telescope disperses the incoming light from a star, galaxy, or nebula and records the resulting spectrum as a digital image or graph. The spectrograph has made it possible to learn more about distant objects than was ever thought achievable.
Continuous spectrum — An unbroken band of color across all wavelengths. Produced by a hot, dense object.
Emission spectrum — Bright, narrow lines at specific wavelengths against a dark background. Produced by thin, hot gas.
Absorption spectrum — A continuous band with dark lines at specific wavelengths. Produced when light passes through cooler, thin gas.
The simplest type of spectrum is a continuous spectrum: an unbroken band of color covering all wavelengths in a range, with no gaps and no bright lines. A glowing solid, a glowing liquid, or a dense glowing gas under high pressure produces a continuous spectrum.
Think of a piece of metal heated in a forge. As it heats up, it first glows red, then orange, then a bright yellow-white. The hot metal is radiating electromagnetic energy across a range of wavelengths, and when that light is spread through a prism, it produces a smooth, unbroken rainbow. The exact shape and color distribution of the spectrum depends on the temperature of the object.
This kind of radiation is called thermal radiation or blackbody radiation (explored more carefully in Section 7.7). The key idea is this: a dense, hot object glowing on its own produces a continuous spectrum that smoothly covers a range of colors. The interiors of stars are dense enough to behave this way.
A continuous spectrum tells you about temperature and brightness, but not about what specific elements are present. For composition information, you need to look at what happens when light passes through gas — or is emitted by gas.
Now consider a different situation: a thin gas that is hot and glowing, but at low density. Instead of producing a continuous rainbow, this gas produces an emission spectrum: a pattern of bright, narrow lines of color against a dark background.
Each bright line appears at a specific, precise wavelength. The pattern of lines — their positions, their spacing, their relative brightness — is unique to the element producing them. No two elements produce the same pattern of emission lines. This fact is extraordinary: each element in the universe has its own spectral fingerprint, a set of wavelengths at which it emits light, unlike any other element's fingerprint.
The reason this happens is connected to atomic structure. Atoms absorb and emit energy only in specific, quantized amounts. When an electron in an atom drops from a higher energy state to a lower energy state, it releases a precise amount of energy as a photon of light at a specific wavelength. The set of possible transitions for each element is fixed by its atomic structure, which means each element has a fixed set of spectral lines.
| Element | Notable Emission Lines (nm) | Appearance |
|---|---|---|
| Hydrogen | 656 (H-alpha), 486, 434 | Bright red; blue-violet lines |
| Helium | 587, 668, 447 | Yellow, red, and violet lines |
| Sodium | 589.0, 589.6 | Bright yellow doublet |
| Calcium | 393.4, 396.8 (H and K lines) | Strong violet doublet |
| Iron | Many lines throughout spectrum | Complex, multi-line pattern |
Glowing clouds of gas called nebulae produce emission spectra. The hot, tenuous gas in galaxy clusters glows in X-ray emission spectra. The outermost layers of stars and the chromosphere of the Sun produce emission features during certain observations. Everywhere astronomers look at thin hot gas, they see emission lines, and those lines identify the elements present.
The absorption spectrum is the one most directly relevant to understanding stars, and it is perhaps the most important in all of astronomy.
Imagine a source of continuous light — the dense glowing interior of a star. Now imagine that light must pass through a cooler layer of gas before it reaches your detector, for example, the outer atmosphere of the star. The atoms in the cooler gas absorb light at the same specific wavelengths at which they would emit it if they were glowing on their own. When a photon of exactly the right wavelength passes through, an atom absorbs it — an electron jumps to a higher energy level. That photon is removed from the beam of light traveling toward your spectrograph. The result is that the continuous rainbow background appears, but with dark gaps — narrow dark lines — at the exact wavelengths absorbed by the gas.
An absorption spectrum is therefore a continuous spectrum with dark lines cut into it at specific wavelengths. The pattern of dark lines identifies which elements are doing the absorbing, just as the pattern of bright lines in an emission spectrum identifies the emitting elements.
The absorption spectrum of the Sun, known historically as the Fraunhofer spectrum after the German physicist Joseph von Fraunhofer who systematically mapped it in the early 1800s, contains hundreds of dark lines. These lines reveal that hydrogen, helium, calcium, iron, magnesium, sodium, and many other elements are present in the Sun's outer atmosphere. Fraunhofer could map the lines decades before anyone fully understood why they existed — before atomic structure was understood at all.
Law 1. A hot, dense object — solid, liquid, or dense gas — produces a continuous spectrum.
Law 2. A hot, thin gas produces an emission spectrum: bright lines on a dark background.
Law 3. A continuous-spectrum source seen through a cooler, thin gas produces an absorption spectrum: dark lines on a continuous background.
This is a recurring theme in science: the ability to observe and record a pattern often precedes the theory that explains it. Fraunhofer mapped hundreds of dark lines in the solar spectrum in the 1810s and 1820s. The atomic explanation — that electrons in atoms absorb and emit light only at quantized energy levels — was not developed until the early twentieth century, nearly a hundred years later. Careful observation preceded theory by a century, and both were essential.
The central insight of spectroscopy is this: every element produces a unique pattern of spectral lines. No two elements have the same fingerprint. This means that by examining the pattern of lines in a spectrum — whether bright lines in emission or dark lines in absorption — astronomers can identify exactly which elements are present in a distant object, even one they can never visit.
When astronomers study the spectrum of a star 500 light-years away, they are reading the chemical composition of that star's atmosphere. When they examine the spectrum of a nebula in the Andromeda Galaxy, they can identify the hydrogen, oxygen, nitrogen, and sulfur glowing within it. When they analyze the spectrum of a comet, they can detect water vapor and organic molecules. The spectral fingerprint technique also allows astronomers to measure the relative abundance of elements — roughly how much of each element is present.
The dominant elements in the universe turn out to be hydrogen and helium, a finding that emerged from spectroscopy. Roughly three-quarters of ordinary matter in the universe by mass is hydrogen, and most of the rest is helium. All the heavier elements — carbon, oxygen, nitrogen, iron, and everything else — make up only a small fraction. Spectroscopy made this discovery possible.
In the late 1800s, Annie Jump Cannon worked at the Harvard Observatory and, together with colleagues including Williamina Fleming and Antonia Maury, classified the spectra of over 350,000 stars. Their system — still used today — organized stars by their spectral line patterns, which turned out to correlate with temperature. Cecilia Payne-Gaposchkin then showed in 1925 that these patterns meant stars are overwhelmingly made of hydrogen and helium — a conclusion that was initially resisted but proved entirely correct. The spectral classification of stars is one of the great achievements of observational astronomy, built on the careful reading of chemical fingerprints.
You already know from everyday experience that hot objects glow, and that hotter objects glow differently than cooler ones. A heating element on an electric stove glows deep red when warm; the filament of an incandescent light bulb glows bright white-yellow when very hot. The color of a glowing object is directly connected to its temperature, and this connection is systematic and predictable.
Cooler objects emit light that peaks at longer wavelengths — toward the red and infrared end of the spectrum. Hotter objects emit light that peaks at shorter wavelengths — toward the blue and ultraviolet end of the spectrum.
| Star Color | Surface Temperature (K) | Example |
|---|---|---|
| Red | ~3,000 – 4,000 K | Betelgeuse in Orion |
| Orange-Yellow | ~5,000 – 6,000 K | The Sun (~5,778 K) |
| White | ~7,500 – 10,000 K | Sirius A (~9,940 K) |
| Blue-White | ~10,000 – 30,000 K | Rigel in Orion (~12,000 K) |
| Blue | >30,000 K | Zeta Puppis (~42,000 K) |
The temperature scale used in astronomy and physics is the Kelvin scale. It starts at absolute zero (0 K), the coldest possible temperature, and uses degree-intervals the same size as degrees Celsius. To convert from Celsius to Kelvin, add 273. Water freezes at 273 K, boils at 373 K. The Sun's surface is about 5,778 K.
When you look at a star's color in the sky, you are getting real temperature information — but color alone is a rough indicator. A precise temperature measurement comes from studying the full shape of the spectrum and applying Wien's law, introduced in Section 7.7. Also note that a star's apparent brightness has nothing to do with its temperature. A very dim red star is not necessarily cool; it might simply be very far away.
The term blackbody sounds strange — it doesn't mean something black or cold. A blackbody is an idealized object that absorbs all electromagnetic radiation falling on it and emits radiation purely based on its temperature. Real objects are imperfect blackbodies, but dense glowing objects — like the interiors and surfaces of stars — behave approximately like blackbodies.
A blackbody at any given temperature produces a characteristic, smooth blackbody curve (also called a Planck curve): a graph showing how much energy is radiated at each wavelength. The shape of the curve has two important features worth learning now.
The peak wavelength of a blackbody spectrum is inversely proportional to the temperature:
λ_peak × T = 2,900,000 nm·K
Or equivalently: λ_peak = 2,900,000 / T
If you double the temperature, the peak wavelength is cut in half — the object glows at shorter, bluer wavelengths. If you halve the temperature, the peak shifts to longer, redder wavelengths.
A hotter blackbody does not just peak at a bluer wavelength — it also emits dramatically more total energy. The total energy output is proportional to the fourth power of the temperature. This means a star twice as hot radiates 2⁴ = 16 times as much energy per unit of surface area. A star three times as hot radiates 3⁴ = 81 times as much. This explains why hot blue stars are so enormously luminous compared to cool red stars of similar size.
T = 2,900,000 nm·K ÷ 290 nm
T = 10,000 K
λ_peak = 2,900,000 nm·K ÷ 3,600 K
λ_peak ≈ 806 nm
So far you have learned that a spectrum reveals temperature (from the shape of the blackbody curve and the peak wavelength) and chemical composition (from the pattern of spectral lines). There is a third piece of information hidden in a spectrum: motion.
When a source of waves — sound, light, or any other wave — is moving relative to an observer, the observed wavelength is shifted. This is the Doppler effect, named after Christian Doppler, who described it mathematically in 1842.
You have almost certainly heard the Doppler effect for sound. When an ambulance approaches, its siren sounds higher-pitched — the sound waves are compressed together in the direction of motion. When the ambulance passes and moves away, the pitch drops — the sound waves are stretched out behind it. The same physical principle applies to light.
| Motion of Source | Effect on Wavelength | Name |
|---|---|---|
| Moving toward observer | Waves compressed; wavelength decreases; lines shift to shorter wavelengths | Blueshift |
| Moving away from observer | Waves stretched; wavelength increases; lines shift to longer wavelengths | Redshift |
| No motion along line of sight | No wavelength change | No shift |
Δλ / λ₀ = v / c
Where: Δλ = change in wavelength (observed − rest wavelength) | λ₀ = rest wavelength | v = radial velocity of source | c = speed of light ≈ 3 × 10⁸ m/s = 3 × 10⁵ km/s
This formula applies for speeds much less than the speed of light (non-relativistic). A positive Δλ means the wavelength increased → redshift → moving away. A negative Δλ means the wavelength decreased → blueshift → moving toward.
Δλ = 657.3 − 656 = 1.3 nm
v / c = Δλ / λ₀ = 1.3 / 656 ≈ 0.00198
v = 0.00198 × (3 × 10⁵ km/s) ≈ 594 km/s
An important limitation: the Doppler effect measures only the component of motion along the line of sight — toward or away from us. Motion perpendicular to the line of sight produces no Doppler shift at all. This component is called the radial velocity. A star moving rapidly sideways across the sky would show no Doppler shift. Astronomers must use other methods (such as tracking the position of a star over years) to measure motion across the line of sight.
The terms redshift and blueshift play an enormously important role throughout the rest of this course — especially in understanding galaxies and the expanding universe. It is worth understanding them carefully.
Blueshift means spectral lines have shifted to shorter wavelengths compared to their rest values. It indicates that the source is moving toward the observer.
Redshift means spectral lines have shifted to longer wavelengths. It indicates the source is moving away from the observer — or, importantly, that the space between the source and the observer is expanding.
In 1929, the astronomer Edwin Hubble observed that almost all galaxies beyond our immediate neighborhood have redshifted spectra. Not just slightly redshifted — the more distant a galaxy, the greater its redshift. Galaxies are not simply moving through space; the space itself is expanding, and distant galaxies are being carried away from us as the universe expands. This is one of the foundational pieces of evidence for the expanding universe, explored in Chapter 22.
Redshift is often quantified using the symbol z, defined as:
z = Δλ / λ₀
A small positive value of z (e.g., z = 0.01) means the source is moving away slowly. A z of 1 means the observed wavelength is twice the rest wavelength — a very large recession. Distant quasars have been observed with z values of 7, 8, and even greater, meaning the universe has expanded enormously since that light was emitted. For these large redshifts, the expansion of space itself — not just motion through space — is responsible for the shift.
This chapter has introduced you to a powerful set of ideas. It is worth pausing to appreciate just how much information is compressed into the light reaching a spectrograph from a distant star or galaxy.
| Physical Quantity | How It Is Read from a Spectrum |
|---|---|
| Surface temperature | From the peak wavelength and overall shape of the blackbody curve, using Wien's law |
| Chemical composition | From the pattern of absorption or emission lines, compared to known laboratory fingerprints |
| Radial velocity | From the Doppler shift of spectral lines relative to their rest wavelengths |
| Rotation | From broadening of spectral lines — the approaching limb is blueshifted, the receding limb redshifted, blurring the line |
| Surface gravity and pressure | From the width and shape of spectral lines — pressure in the stellar atmosphere affects electron behavior |
| Luminosity class | From subtle line shapes that distinguish giant stars from main-sequence stars of similar temperature |
| Binary stars | From double-peaked or periodically shifting spectral lines, revealing two orbiting stars even when unresolved visually |
| Cosmic distance and expansion | From the magnitude of galaxy redshifts, which trace both recession speed and distance in the expanding universe |
All of this information arrives at Earth as photons of light, detected by an instrument, and decoded through the physics of spectra.
The spectroscopic method represents one of science's greatest achievements: turning information that was thought to be forever inaccessible — the composition of distant suns — into something measurable and knowable. The French philosopher Auguste Comte wrote in 1835 that learning the chemical composition of stars would forever be beyond human knowledge. A few decades later, Fraunhofer's lines and Kirchhoff's laws had proven him wrong.
This is a useful lesson about science: limits that seem permanent sometimes dissolve when the right method is found.
Each statement below contains an error. Identify the error and write the correct explanation.
Correction hint: Consider what atomic transitions are involved in each process. What determines the wavelength of a spectral line?
Correction hint: Consider the expansion of space and what redshift measures in a cosmological context. Is the recession of distant galaxies the same as motion through space?
Correction hint: Consider the nature of a blackbody curve. A blackbody at any temperature emits across all wavelengths — the curve peaks, but it never drops to zero.
Correction hint: This is circular reasoning. How do astronomers actually determine that hydrogen is present in a specific star? What is the observational evidence?
Correction hint: The Doppler effect measures only one component of motion. Which component? What does it miss?
Correction hint: What does a blackbody emit at lower temperatures? At what wavelengths would a very cool star still radiate — even if it cannot be seen with the human eye?
These questions draw on earlier chapters as well as Chapter 7.
Chapter 7 has given you the physical tools to read the light arriving from space — extracting temperature, composition, and motion from a spectrum. But spectra alone cannot explain why stars and planets exist in the first place, why moons stay in orbit, why galaxies hold together, or why the universe has the large-scale structure it does. All of these phenomena trace back to a single force: gravity. Chapter 8 introduces gravity as the universal force that organizes everything in the cosmos — from the fall of an apple to the orbit of the Moon to the motion of galaxies. You will learn Newton's law of universal gravitation, what an orbit really is, how Kepler's laws describe planetary motion, and why escape velocity is the boundary between staying and leaving. The concepts in Chapter 8 will carry you through planetary science, stellar physics, and cosmology for the rest of the course.