Skip to main content
UNDER REVIEW
Optional sections
Reading width
Color theme

Spectra & Composition

Complete lesson

Spectrum as Data

By the end of this reading, you will be able to:

Atoms are nature’s barcode readers — each element absorbs and emits light at a unique set of wavelengths determined by its electron energy levels. By measuring where spectral lines appear and how they shift, we read a star’s composition and velocity from across the galaxy. And the same physics that decodes starlight explains why adding CO₂ to an atmosphere warms a planet.

Spectrum

The intensity of light as a function of wavelength, obtained by dispersing light through a prism or diffraction grating. A spectrum is quantitative data: its continuum slope, emission peaks, and absorption lines each encode physical conditions of the source.

Source Geometry

Part 1: Kirchhoff’s Laws — Why Stars Show Absorption Spectra

Three Types of Spectra

In Lecture 4 (Module 1), you saw a preview of spectral types. Now we formalize the physics. Light sources produce three distinct spectral signatures, depending on their structure:

Diagram showing three scenarios: (1) continuous spectrum from hot dense object producing rainbow, (2) absorption spectrum with dark lines when cool gas absorbs from continuous source, (3) emission spectrum with bright lines from hot thin gas cloud.
Figure 1Three spectrum types encode different physics. Continuous = hot dense source. Absorption = cool gas in front of hot source. Emission = hot thin gas. Same atoms, different conditions, different spectra.JWST/STScI

Continuous spectrum (blackbody continuum): a hot, dense source — a solid, liquid, or dense gas — emits light at all wavelengths, producing a smooth rainbow. The shape follows the Planck function you studied in Lecture 4 (Module 1). Examples: the Sun’s photosphere, an incandescent filament, the interior of a kiln.

Emission spectrum (bright lines on a dark background): a hot, low-density gas emits photons only at specific wavelengths — those corresponding to transitions between its atoms’ energy levels. The background is dark; you see isolated bright lines. Examples: nebulae excited by nearby hot stars, neon signs, gas discharge tubes.

Absorption spectrum (dark lines in a continuous rainbow): a cooler gas in front of a hotter continuum source absorbs photons from the continuum at exactly the wavelengths it would emit if heated. You see the rainbow interrupted by dark lines — a photographic negative of the emission spectrum. Examples: stellar spectra, the solar spectrum (Fraunhofer lines).

Kirchhoff’s Laws of Spectroscopy

These three observations codify into Kirchhoff’s laws:

  1. A hot, dense object emits a continuous spectrum — all wavelengths, shaped by .
  2. A hot, low-density gas emits an emission-line spectrum — bright lines at wavelengths determined by its atomic composition.
  3. A cooler gas in front of a hot continuum source produces an absorption-line spectrum — the continuum minus specific wavelengths, at the same positions the gas would emit if heated.
Kirchhoff's laws

Three rules linking the appearance of a spectrum to the physical conditions of its source: (1) a hot dense object yields a continuous spectrum; (2) a hot low-density gas yields bright emission lines; (3) a cool gas in front of a hotter continuum yields dark absorption lines at the same wavelengths it would emit. Worked backward, a spectrum’s appearance reveals the source’s configuration.

Observable

Dark lines at specific wavelengths in a star's spectrum

A stellar spectrum is a continuous rainbow scored by dark absorption lines at precise, repeatable wavelengths.

Model

Kirchhoff's third law

A cooler gas in front of a hotter continuum source absorbs at its characteristic wavelengths — the star’s atmosphere absorbs from the photosphere below.

Inference

A hot interior wrapped in a cooler atmosphere

The star has a hot, dense continuum source (the photosphere) surrounded by a cooler absorbing layer (the atmosphere) — the two-layer structure that produces every stellar absorption line.

Why Stars Show Absorption Spectra: The Two-Layer Model

A star has a steep temperature gradient. Deep in the interior, temperatures reach millions of kelvin. The photosphere — the visible “surface,” meaning the depth where the star becomes opaque (optical depth ) — sits at thousands of kelvin (about 5,800 K for the Sun). Just above it lies the stellar atmosphere, a thin layer of gas slightly cooler than the photosphere below it.

Photosphere

The visible “surface” of a star — the depth at which it becomes opaque (optical depth ) and from which the continuous spectrum escapes. For the Sun it sits near 5,800 K; the slightly cooler atmosphere just above it carves the absorption lines.

The light we observe is emitted by the photosphere (Kirchhoff’s law 1, a continuous spectrum). As this light travels outward through the cooler atmosphere, atoms there absorb photons at their characteristic wavelengths (Kirchhoff’s law 3, dark absorption lines appear). The result: a continuous spectrum scored by dark absorption lines.

Cross-section of a stellar photosphere with curved layers labeled about 5800 K deeper and 4500 K higher up across roughly 500 km. Dashed sight lines from different depths connect to a spectrum panel showing a dark absorption line dip versus wavelength and intensity.
Figure 2Different wavelengths form at different depths in the photosphere, so absorption lines encode atmospheric structure, not just composition.cococubed.com

Quick check

  1. You observe a smooth rainbow with no dark lines. What type of source are you looking at?
  2. You observe bright colored lines on a dark background. What produces this?
  3. You observe a rainbow interrupted by dark lines at specific wavelengths. What’s happening physically?

Part 1 takeaway: Kirchhoff’s three laws connect the appearance of a spectrum to the physical conditions of the source. Stars produce absorption spectra because their cooler atmospheres absorb from the hotter photosphere — and those dark lines are the key to everything that follows.

Atomic Fingerprints

Part 2: Spectral Lines as Atomic Fingerprints

The Bohr Model and Discrete Energy Levels

Why do atoms absorb and emit at specific wavelengths rather than at all wavelengths? The answer comes from quantum mechanics: electrons in an atom occupy discrete energy levels — quantized rungs on an energy ladder. They cannot hover between rungs.

Left: Bohr model of hydrogen with electron energy levels 1-6. Right top: energy level diagram showing electron absorbing photons and jumping up. Right bottom: absorption spectrum with dark lines at specific wavelengths corresponding to transitions.
Figure 3Hydrogen absorbs specific wavelengths because electrons jump UP between quantized energy levels. Each dark line = one electron transition. E = h*nu determines which wavelengths.JWST/STScI

Now look at the reverse process — what happens when excited electrons fall back down through the energy levels:

Left: Bohr model of hydrogen with electron falling between levels. Right top: energy level diagram showing electron emitting photons while dropping down. Right bottom: emission spectrum with bright lines at specific wavelengths.
Figure 4Hydrogen emits specific wavelengths because electrons fall DOWN between energy levels. Each bright line = one electron transition. The Balmer series (visible) comes from transitions to level 2.JWST/STScI

The same energy gaps produce the same wavelengths whether the photon is absorbed (electron jumps up) or emitted (electron falls down). This is why an absorption line and an emission line appear at identical wavelengths — a fact Kirchhoff noticed empirically decades before quantum mechanics explained it.

Absorption line

A dark feature in a spectrum where a cool gas absorbs photons from a hotter background source at a specific wavelength set by an atomic energy-level gap. It appears at the same wavelength the gas would emit if heated.

The Bohr model (1913) captures the essential idea for hydrogen. The energy of the -th level is:

Here is the principal quantum number and 13.6 eV is the ionization energy of hydrogen — the energy needed to completely free the electron.

Bohr model

A quantum model of hydrogen in which the electron occupies discrete energy levels and absorbs or emits a photon only when it transitions between levels. Approximate for multi-electron atoms, but the core idea — discrete levels yield discrete lines — is exactly right.

Key observations from this equation:

  • (ground state): — the most tightly bound level (most negative energy).
  • (first excited state): — less tightly bound.
  • As increases: levels crowd together and approach (the ionization threshold, where the electron is free).
  • Negative sign: the electron is bound. You must add energy to free it.

When an electron transitions between levels, it absorbs or emits a photon whose energy equals the difference between the two levels:

The photon’s wavelength is set by the energy-wavelength relation:

Rearranging for wavelength gives .

This is the key insight: each transition produces a photon at a specific wavelength, set entirely by the energy gap between levels. Different elements have different energy-level structures (different nuclear charges, different electron configurations), so each element produces a unique set of spectral lines — a fingerprint as distinctive as DNA.

Absorption and emission spectra for sodium, nitrogen, hydrogen, and oxygen showing matching line patterns. Absorption spectra show dark lines on continuous rainbow; emission spectra show same-position bright lines on black background.
Figure 5Each element has a unique spectral fingerprint. The dark lines in absorption exactly match the bright lines in emission — same energy transitions, opposite directions.JWST/STScI

The Hydrogen Balmer Series: Visible Fingerprints

The most famous set of spectral lines in astronomy is the Balmer series — transitions where electrons fall to (emission) or jump from (absorption) the level in hydrogen:

TransitionNameWavelength (nm)Color
656.3Deep red
486.1Blue-green
434.0Violet
410.2Near-UV
Balmer series

Hydrogen spectral lines from transitions to or from the level. The visible members are Hα (656 nm), Hβ (486 nm), Hγ (434 nm), and Hδ (410 nm) — the most prominent features in many stellar spectra.

These four lines are the most prominent features in the visible spectra of many stars. They fall in the visible range because the energy differences (about 1.9–3.0 eV) match the energy of visible photons.

Worked Example 1Calculating Hα's Wavelength

Problem

Use the Bohr model to predict the wavelength of the transition in hydrogen. Compare to the observed Hα wavelength of 656.3 nm.

StepFind the energy levels

StepCompute the energy difference

StepConvert to CGS ($1\ \text{eV} = 1.602 \times 10^{-12}\ \text{erg}$)

StepApply $\lambda = hc/\Delta E$ and convert to nm

Dimensional check

✓.

Result

The Bohr model predicts Hα at 656 nm — within 0.3 nm of the precise laboratory value (656.28 nm). The small difference comes from rounding the ionization energy to 13.6 eV (the exact Rydberg value is 13.5984 eV). This agreement was one of the Bohr model’s great early triumphs, and the 1.89 eV gap lands squarely in the deep red.

Quick check

  1. An absorption line appears at 486.1 nm in a star’s spectrum. Which element and transition does it correspond to?
  2. If a hydrogen atom’s electron jumps from to , does the atom absorb or emit a photon? Is it visible?
  3. Why can’t hydrogen atoms absorb photons at any arbitrary wavelength?

Part 2 takeaway: atoms absorb and emit at specific wavelengths because electrons occupy discrete energy levels. Each element’s unique level structure creates a unique spectral fingerprint. By matching observed absorption lines to laboratory wavelengths, we identify which elements are present in a star’s atmosphere — without ever visiting the star.

Line Strengths

Part 3: The OBAFGKM Sequence — Temperature, Not Composition

A Temperature Sequence in Disguise

In the early 1900s, astronomers at Harvard Observatory — led by Annie Jump Cannon and Williamina Fleming — classified hundreds of thousands of stellar spectra by eye, sorting them by the appearance and strength of their spectral lines. After much rearranging, the sequence settled into O, B, A, F, G, K, M — from strongest helium lines to strongest molecular bands. The classic mnemonic: “Oh Be A Fine Guy/Girl, Kiss Me.”

The breakthrough came when Cecilia Payne-Gaposchkin showed in her 1925 PhD thesis — arguably the most important doctoral dissertation in the history of astronomy — that stars are overwhelmingly hydrogen and helium, and that the spectral sequence is fundamentally a temperature sequence, not a composition sequence. This was so radical that her advisor, Henry Norris Russell, initially urged caution (he later acknowledged she was right). Stellar composition is remarkably uniform (about 74% hydrogen, 25% helium, 1–2% heavier elements by mass). What changes along the sequence is not what atoms are present but which quantum states those atoms occupy — and that depends on temperature.

Before you read the sequence as letters in a table, look at the sky the way an observer does first: stars already announce that they are not thermally identical. A real star field shows blue-white, yellow, and orange-red stars sharing the same patch of sky. Spectroscopy explains why those colors differ, but the diversity is visible before any prism enters the story.

Dense star field image with a bright cluster near the center and many stars of different apparent colors, including blue-white, yellow, and red-orange stars scattered across the frame.
Figure 7Real star fields are not monochrome. Even before we spread starlight into spectra, blue-white and orange-red stars tell us that stellar surfaces come in different temperature regimes.NASA/ESA/Hubble
Composite image of stellar spectra arranged vertically from O6.5 at top to M5 at bottom, with wavelength increasing left to right across the visible band. Each horizontal strip shows a rainbow-colored spectrum with dark absorption lines at different positions. Star catalog identifiers (HD numbers) are labeled on the right. Three additional spectra at the bottom show an F4 metal-poor star, an M4.5 emission star, and a B1 emission star.
Figure 8The spectral sequence from O (top, hottest) to M (bottom, coolest). Dark absorption lines shift across the sequence — hydrogen Balmer lines peak at A-type, helium lines dominate O and B, metal lines crowd in at G and K, and molecular bands appear at M. The bottom three rows show special cases: a metal-poor F star, an M star with emission lines, and a B star with emission.NOAO/AURA/NSF
Spectral TypeColorTemperature RangeMS PrevalenceDominant FeaturesExample
OBlue-violet0.00003%He II, weak HO4I (ζ Puppis), O9.5V (10 Lac)
BBlue-white10,000–30,000 K0.13%He I, strong HB8Ia (Rigel), B1III (Spica)
AWhite7,500–10,000 K0.6%Strongest H Balmer linesA1V (Sirius), A0V (Vega)
FYellow-white6,000–7,500 K3%Moderate H, weak metalsF5IV (Procyon A)
GYellow5,200–6,000 K7.6%Weak H, strong metal linesG2V (Sun)
KOrange3,700–5,200 K12.1%Very weak H, strong metals, molecular bands appearK1.5III (Arcturus)
MRed-orange76.5%Molecular bands (TiO), very weak HM2Ia (Betelgeuse), M5V (Proxima Cen)

Several examples are giants or supergiants rather than main-sequence dwarfs — those are the ones bright enough to have names. The prevalence column refers to main-sequence stars only.

Look at the prevalence column: M dwarfs make up over three-quarters of all main-sequence stars, yet they’re too faint to see with the naked eye. The bright stars that fill constellations — Rigel (B supergiant), Sirius (A dwarf), Arcturus (K giant) — are the rare luminous ones. The galaxy is dominated by cool, dim, long-lived M dwarfs.

Why Temperature Controls Line Strength

This is a critical conceptual point that trips up beginners: spectral type does NOT directly reflect composition. All main-sequence stars have roughly the same composition. What changes is which atomic transitions are active — and that depends on temperature through the Boltzmann distribution.

For an atom to absorb a photon at a given wavelength, an electron must already be in the right starting energy level. The fraction of atoms in any given level depends on temperature through the Boltzmann distribution:

where is the excitation energy — the energy above the ground state needed to reach level (always positive) — and is Boltzmann’s constant. For hydrogen, (the energy to excite from to ). Note is not the Bohr energy used earlier — it’s the gap , which is always positive.

Boltzmann distribution

The rule that the fraction of atoms in an excited level scales as , where is the excitation energy above the ground state. Its exponential sensitivity to temperature is why spectral type is a temperature sequence: temperature, not abundance, sets which levels are populated and therefore which lines appear.

The exponential is ruthless: even modest temperature changes dramatically shift which levels are populated. Higher excitation energy demands higher temperature for significant population. As a rough guide, every factor-of-two increase in temperature can boost high-energy level populations by orders of magnitude.

(More precisely, the full Boltzmann expression includes degeneracy factors and a partition function in the denominator, but the key physics — exponential sensitivity to — is captured above.)

Predict First

Commit to an answer before reading on.

The star-by-star walkthrough below confirms your reasoning.

How this creates the spectral sequence:

O stars (30,000+ K): so hot that collisions ionize most hydrogen — electrons are stripped free. No neutral hydrogen means weak Balmer lines. Instead we see lines of ionized helium (He II), which requires extreme temperatures. (The governing physics is the Saha equation, which we won’t derive — but the idea is simple: hot enough collisions knock electrons free entirely.)

A stars (7,500–10,000 K): the Goldilocks temperature for hydrogen Balmer absorption. Balmer strength reflects a competition between excitation and ionization: the Boltzmann factor sets what fraction of neutral atoms are in , while the Saha equation sets what fraction are neutral at all. At A-star temperatures, enough hydrogen stays neutral and enough of it is excited to that Balmer absorption is maximally efficient. H lines are strongest here.

G stars (5,800 K, like the Sun): Balmer lines are weaker — fewer atoms sit in . Metal absorption lines become prominent: ionized calcium (Ca II H & K at 393.4 and 396.8 nm), neutral iron, sodium (the D lines at 589.0 and 589.6 nm). The spectrum looks like a forest of metallic lines.

M stars (below 3,700 K): so cool that atoms stay neutral and even molecules form. Titanium oxide (TiO) produces broad absorption bands dominating the red and infrared. Balmer lines are very weak because almost no atoms are in .

Quick check

Your lab partner claims: “M stars have weak hydrogen lines because they have less hydrogen than A stars.” Construct a counterargument using the Boltzmann distribution. What fraction of hydrogen atoms are in at 3,000 K vs. 10,000 K?

Metallicity: A Secondary Effect

Metallicity () is the mass fraction of elements heavier than helium. The Sun has — about 1.4% of its mass is “metals” (everything heavier than He, in astronomical parlance; older references cite 0.02, since revised downward). High-metallicity stars show more and stronger metal absorption lines; low-metallicity stars appear “cleaner.” But metallicity is a second-order effect for classification: two stars at the same temperature with different metallicities have the same spectral type — the metal-line strengths differ, but the overall pattern is set by temperature.

Metallicity

The mass fraction of elements heavier than helium in a star or gas cloud (). It modulates the strength of metal absorption lines but, at fixed temperature, does not change a star’s spectral type — a second-order effect.

Quick check

  1. Which spectral type has the strongest hydrogen Balmer lines?
  2. Why are H lines weak in O stars — lack of hydrogen, or something else?
  3. Two stars have the same spectral type (G5). Must they have the same luminosity?
  4. A star’s spectrum shows strong TiO molecular bands. Is it hot or cool?

Part 3 takeaway: OBAFGKM is a temperature sequence. Composition is nearly uniform across stars — what changes is which energy levels are populated, exponentially sensitive to temperature. Spectral type tells you temperature; metallicity and luminosity class add refinement.

Select all that apply

Give two physically distinct reasons a star could show very weak H Balmer lines, other than having less hydrogen.

Line Shifts

Part 4: The Doppler Shift — Reading Stellar Motion from Light

The Doppler Effect for Light

You’ve experienced the Doppler effect with sound: an ambulance siren rises in pitch as it approaches and drops as it recedes. Light does the same. When a source moves toward or away from an observer, the observed wavelength shifts.

Diagram of a star with an orbiting exoplanet and three corresponding spectra labeled blueshift, neutral, and redshift, showing the same absorption lines moving to shorter or longer wavelengths as the star moves toward or away from the viewer.
Figure 11The same spectral lines slide left for blueshift and right for redshift. Even tiny wavelength shifts let us infer line-of-sight motion and detect an orbiting companion.JWST/STScI

If a source has radial velocity (positive = receding, negative = approaching), the observed wavelength relates to the laboratory rest wavelength by the Doppler shift formula:

Here , valid for (the non-relativistic limit), which covers virtually all stellar velocities in our galaxy.

Doppler shift

The change in observed wavelength caused by a source’s motion along the line of sight: . Receding sources shift to longer wavelengths (redshift); approaching sources shift to shorter wavelengths (blueshift).

Interpretation — shifts tell you direction:

  • Redshift (, ): source receding, .
  • Blueshift (, ): source approaching, .
Redshift

A shift of spectral lines to longer wavelengths (), indicating the source is receding from the observer.

Blueshift

A shift of spectral lines to shorter wavelengths (), indicating the source is approaching the observer.

Typical stellar radial velocities are 10–100 km/s; the speed of light is 300,000 km/s. The ratio to — tiny shifts, but measurable with precision spectrographs. For relativistic speeds (galaxies, jets, cosmology), a full relativistic formula is needed, and for the expanding universe the interpretation becomes cosmological redshift — a stretch of space itself, not simple motion. One crucial diagnostic: a real Doppler shift moves all lines by the same fractional amount . If only one line is shifted, it’s not motion — it’s a misidentification.

Worked Example 2A Star's Radial Velocity from Hα

Problem

A nearby star’s Hα absorption line is observed at . The rest wavelength is . Is the star approaching or receding, and at what speed?

StepDetermine direction

Since exceeds , the line is redshifted — the star is receding.

StepWavelength shift, then solve for $v_r$

StepPlug in numbers

Dimensional check

✓.

Result

The star recedes at about 91 km/s — typical for the galactic disk. A shift of only 0.2 nm out of 656.3 nm (0.03%) translates to nearly 100 km/s because light is so fast. Modern spectrographs detect shifts 1,000 times smaller, reaching velocities of — precise enough to feel the tug of an orbiting exoplanet.

Observable

Lines shifted from their laboratory wavelengths

Absorption lines in a stellar spectrum appear at slightly different wavelengths than laboratory measurements — and all lines shift by the same fractional amount.

Model

The non-relativistic Doppler effect

Motion along the line of sight shifts wavelengths by Δλ/λ0=vr/c\Delta\lambda/\lambda_0 = v_r/c, valid for vrcv_r \ll c.

Inference

The star's radial velocity

The measured shift gives vrv_r — the component of motion directly toward or away from us. Blueshift means approach; redshift means recession.

What Doppler Shifts Cannot Tell Us

The Doppler effect measures only the radial velocity — motion along the line of sight. A star moving sideways across the sky (transverse velocity, or “proper motion”) doesn’t shift its spectral lines at all. To get the full 3D velocity we need both Doppler (radial) and astrometric (transverse) measurements — the latter requires tracking the star’s position over years.

Radial velocity

The component of a star’s velocity along the observer’s line of sight, measured from the Doppler shift of its spectral lines. The perpendicular (transverse) motion produces no shift and must be measured astrometrically.

Also, if a star is rotating, one limb moves toward you and the other away. This doesn’t shift the line center — it broadens the line symmetrically. Line broadening tells us about rotation speed and turbulence, but it’s a separate measurement from the Doppler shift of the line center.

Problem

  1. A star’s Hβ line (rest 486.1 nm) is observed at 485.9 nm. Is the star approaching or receding?
  2. Calculate the radial velocity for the star in question 1.
  3. Can we determine a star’s rotation rate from a single Doppler shift? Why or why not?

Doppler Applied: Detecting an Unseen Companion

So far we’ve measured a single Doppler shift — one velocity at one moment. But suppose you observe the same star night after night and its radial velocity changes periodically: the Hα line oscillates back and forth around the rest wavelength on a regular cycle. What could cause that? If the star has an orbiting companion — another star or a planet — gravitational tugs pull it toward us during part of the orbit and away during the rest. The result is a periodic Doppler oscillation whose amplitude tells you how fast the star moves and whose period tells you the orbital period.

Worked Example 3A Star with a Periodic Wobble

Problem

You monitor a star over several weeks. Its Hα line () oscillates between 656.25 nm and 656.35 nm with a period of 4.0 days. (a) What is the velocity amplitude of the wobble? (b) What does the periodicity tell you?

Step(a) Convert the wavelength swing to a velocity

The line oscillates by around rest, so

Dimensional check

✓.

Result

(a) The radial velocity oscillates between (receding) and (approaching) — an amplitude of 23 km/s. (b) A periodic oscillation means the star orbits an unseen companion; the 4.0-day period is the orbital period. This is how the first exoplanet around a Sun-like star, 51 Pegasi b, was found in 1995 — its host wobbled with a 56 m/s amplitude over 4.23 days, 400 times smaller than this example. Repeated Doppler measurements reveal orbits, and orbits — through Kepler’s laws — give masses. This is the bridge to Lecture 4.

Part 4 takeaway: the Doppler shift formula converts tiny wavelength shifts into stellar velocities. Blueshifts mean approach; redshifts mean recession. This tool unlocks binary star masses in Lecture 4 and, on cosmological scales, reveals the expansion of the universe.

Spectrum Inference

Part 5: Putting It Together — Reading a Real Stellar Spectrum

You now have a complete spectroscopic toolkit. A single stellar spectrum gives you three independent pieces of information:

ObservableWhat we measureWhat we infer
Which lines appear (wavelength positions)Line wavelengths matched to lab dataComposition — which elements are present
How strong lines are (depth and pattern)Relative strengths of different speciesTemperature (spectral type) — which states are populated
Where lines are shifted (offset from lab)Doppler shift Radial velocity — motion toward/away

Additional information comes from line widths (pressure, rotation, turbulence) and line splitting (Zeeman effect from magnetic fields), but the three inferences above are the workhorses.

Spectra are powerful but limited. Spectroscopy alone does not directly give luminosity (need distance + photometry), mass (need binary orbits or asteroseismology), radius (need Stefan-Boltzmann with and ), distance (need parallax or standard candles), or transverse velocity (need astrometric tracking).

Now let’s use all three clues simultaneously on a real problem.

Worked Example 4Multi-Clue Stellar Diagnosis

Problem

You observe a star and measure: a blackbody continuum fit of ; strong Hα, Hβ, Hγ absorption; weak metal lines; and the Hα center at 656.1 nm (rest 656.3 nm). What can you infer?

Step(a) Spectral type

The temperature () and strong Balmer lines point to spectral type A — the Goldilocks temperature for hydrogen absorption. Weak metal lines are consistent.

Step(b) Radial velocity

Dimensional check

✓; the sign carries the direction.

Result

A hot A-type star, made mostly of hydrogen (like all stars), approaching at . To complete the picture you’d still need distance (parallax → luminosity), luminosity + temperature (→ radius via Stefan-Boltzmann), and time-series Doppler (→ binary companion → mass). Spectroscopy confirms and sharpens what color alone suggested.

Planetary Spectroscopy

Part 6: Spectroscopy Meets Climate — Why CO₂ Warms Planets

Everything you’ve learned about spectral absorption applies not only to stars but to planetary atmospheres. The same quantum physics that creates stellar absorption lines also creates the greenhouse effect — one of the most consequential applications of spectroscopy in all of science.

Planetary Energy Balance: Stefan-Boltzmann Applied to Planets

In Lecture 2, you learned the Stefan-Boltzmann law . It applies to any blackbody — and, to first approximation, a planet is one. A planet doesn’t generate its own luminosity; it absorbs sunlight and re-radiates that energy as thermal (blackbody) radiation in the infrared. The Sun and Earth are both approximate blackbodies, but at very different temperatures: the Sun’s Planck curve peaks in visible light (~0.5 μm), Earth’s in the thermal infrared (~10 μm). These two blackbody spectra barely overlap — and that spectral separation is what makes the greenhouse effect possible.

At energy balance, the planet radiates exactly as much as it absorbs. The power absorbed is built from three factors: the stellar flux at the planet’s distance ; the intercepted cross-section (the area of the shadow the planet casts, not its full surface); and the albedo correction , where the albedo is the fraction of incoming light reflected away. So . The power radiated, modeling the planet as a blackbody radiating from its full surface , is . Setting these equal and solving for the equilibrium temperature gives:

This is — the blackbody temperature the planet would have with no atmosphere. The planet’s radius cancels entirely; only , , and remain.

Albedo

The fraction of incident light a surface or planet reflects rather than absorbs. is perfect absorption; is a perfect mirror. The Moon has , Earth , Venus . Only the absorbed fraction heats the planet.

Equilibrium temperature

The temperature at which a planet radiates exactly as much energy as it absorbs from its star, assuming no atmosphere: . The greenhouse effect raises the real surface temperature above this baseline.

The Greenhouse Effect: Absorption Lines in the Atmosphere

Earth’s surface radiates as an approximate blackbody at 288 K. Wien’s law gives the peak wavelength:

This is deep in the thermal infrared — far from the visible band where sunlight arrives. The figure below makes the separation vivid: the Sun’s incoming Planck curve (peaking near 0.5 μm) and Earth’s outgoing curve (peaking near 10 μm) barely overlap.

Diagram showing the electromagnetic spectrum with two Planck curves. Left panel (yellow background): incoming solar radiation peaking near 1 micron in the visible band. Right panel (blue background): outgoing terrestrial radiation peaking near 10 microns in the thermal infrared, with deep absorption notches carved by atmospheric greenhouse gases. The full EM spectrum from gamma rays to long waves is labeled across the top.
Figure 12Two blackbodies, two very different temperatures. The Sun (~5,800 K) radiates a Planck curve peaking in visible light (~0.5 um). Earth (~288 K) re-radiates a Planck curve peaking in thermal infrared (~10 um). Greenhouse gases absorb in the infrared window where Earth is trying to radiate — not where the Sun's energy arrives. The sharp absorption features in the outgoing spectrum are the molecular fingerprints of CO2, H2O, and O3.NOAA JetStream

For Earth to maintain balance, this outgoing infrared must escape to space. But greenhouse gases — CO₂, H₂O, CH₄, N₂O — have molecular absorption bands in the infrared, precisely where Earth’s blackbody curve radiates. These molecules absorb outgoing infrared photons and re-emit them in random directions — some back downward. The surface receives extra energy and warms until it radiates enough to compensate.

This is Kirchhoff’s law 3 applied to a planet: the atmosphere is the “cool gas” absorbing from the “hot continuum” (Earth’s surface thermal emission). The physics is identical to stellar absorption lines — only the relevant wavelengths differ (infrared, not visible).

Greenhouse effect

Warming of a planet’s surface caused by atmospheric gases absorbing outgoing infrared radiation and re-emitting part of it back downward. It is Kirchhoff’s third law applied to a planet: a cool atmosphere absorbing from the warm surface continuum.

A Tale of Three Planets

Venus, Earth, and Mars orbit the same star and formed from the same disk — yet their surface temperatures are wildly different. Spectroscopy tells us why:

PlanetDistance (AU)Albedo (K)Actual (K)Greenhouse warming (K)Dominant greenhouse gas
Venus0.720.77227735+508CO₂ (96.5% of atmosphere)
Earth1.000.30255288+33H₂O + CO₂ (0.04%)
Mars1.520.25210210~0CO₂ (95%, but very thin)
Bar chart comparing equilibrium temperature (teal) and actual surface temperature (gold) for Venus, Earth, and Mars. Venus shows the largest greenhouse gap of +508 K, Earth shows +33 K, and Mars shows approximately zero. Dominant atmospheric greenhouse gases are labeled beneath each planet.
Figure 13Venus is closer to the Sun yet has a lower equilibrium temperature than Earth because its high albedo reflects 77% of sunlight. The greenhouse warming (mauve arrows) is what separates the equilibrium temperature from the actual surface temperature — Venus's massive CO2 atmosphere adds 508 K, Earth's adds 33 K, and Mars's thin atmosphere adds essentially nothing.ASTR 201 (generated)

Venus is closer to the Sun than Earth, yet its equilibrium temperature is lower (227 K vs. 255 K). How? Albedo. Venus’s thick sulfuric-acid clouds reflect 77% of incoming sunlight before it can be absorbed. The factor means only the absorbed fraction matters: Venus absorbs just 23%, Earth 70%. The higher albedo more than compensates for the shorter distance — making the +508 K greenhouse warming even more staggering. Venus’s massive CO₂ atmosphere creates a runaway greenhouse: surface temperatures hot enough to melt lead (735 K = 462°C). Mars has a CO₂-dominated atmosphere too, but it’s so thin (0.6% of Earth’s surface pressure) that its greenhouse effect is negligible. Earth sits in between — a modest greenhouse that makes the planet habitable.

Worked Example 5Earth's Equilibrium Temperature

Problem

Calculate Earth’s equilibrium temperature assuming no atmosphere. Use , , and .

StepNumerator

StepDenominator

StepSolve for $T_{\text{eq}}$

Dimensional check

✓.

Result

. Without an atmosphere, Earth would be a frozen world. The observed average of 288 K (+15°C) means the greenhouse effect warms Earth by 33 K — the difference between a habitable planet and an ice ball, supplied by the infrared absorption bands of water vapor, CO₂, and other trace gases.

Predict First

Think about Kirchhoff's third law applied to a planet.

The 15-micron band below is the key.

Why CO₂ Matters: The 15-Micron Band

Carbon dioxide has a particularly strong absorption band centered at (15,000 nm). This sits right near the peak of Earth’s outgoing thermal radiation. When CO₂ concentration increases, this band deepens and broadens — blocking more outgoing infrared and forcing the surface to warm until the planet radiates enough through the remaining transparent windows.

Graph showing reflectance vs wavelength (400-2400 nm) for snow (high, flat), vegetation (red edge jump at 700 nm), dry soil (rising toward IR), and water (absorbs in IR). Each material has distinct spectral signature.
Figure 14Different materials reflect different wavelengths. Snow reflects broadly; water absorbs IR; vegetation has a sharp 'red edge' at 700 nm. Spectra can identify surface composition — even on exoplanets.JWST/STScI

The physics has been understood since John Tyndall’s experiments (1861) and Svante Arrhenius’s calculations (1896): CO₂ absorbs infrared at specific wavelengths set by its molecular energy levels — the same quantum mechanics that produces hydrogen Balmer lines. Adding CO₂ to the atmosphere is, spectroscopically, equivalent to adding more absorbing atoms to a stellar atmosphere: the absorption features deepen.

Part 6 takeaway: the greenhouse effect is Kirchhoff’s third law applied to a planet — atmospheric molecules absorb infrared from the warm surface at specific wavelengths set by quantum mechanics. CO₂’s strong 15 μm band sits squarely in Earth’s thermal emission window. Increasing CO₂ deepens this absorption, traps more outgoing radiation, and warms the surface. The same spectroscopy that tells us what stars are made of tells us why our planet is warming.

Assumptions and Synthesis

Part 7: Assumptions and Limitations

Spectral classification assumes a single star. Unresolved binaries blend two spectra, complicating classification. Spectroscopic binaries are identified by two sets of absorption lines (double-lined) or periodic velocity oscillations (single-lined) — Lecture 4’s territory.

The Bohr model is approximate. It works beautifully for hydrogen but breaks down for multi-electron atoms, which need full quantum mechanics. The concept — discrete levels producing discrete lines — remains exactly right.

Line identification requires lab data. We match stellar lines to laboratory-measured wavelengths. If an element’s spectrum hasn’t been measured in the lab, we can’t identify it in a star. Historically, helium was found in the Sun’s spectrum before it was found on Earth — its lines matched no known element, so it was named for the Greek sun god (Helios).

Interstellar absorption adds extra lines. Gas and dust between us and a star imprint additional features (interstellar sodium D lines, diffuse interstellar bands). These are separated from the star’s own lines by checking whether they share the star’s Doppler shift (interstellar lines have their own, different velocity).

Part 7 takeaway: spectroscopy is robust but not foolproof. Binaries blend spectra, interstellar gas adds false lines, and precise composition requires careful modeling. These caveats don’t undermine the method — they refine it.

Summary: Observable → Model → Inference

We observeWe useWe infer
Dark lines at specific wavelengthsAtomic physics: each element has unique energy levels (Bohr model)Composition — which atoms are present
Relative strengths of different species’ linesBoltzmann distribution: temperature controls level populationsTemperature and spectral type (OBAFGKM)
Lines shifted from lab wavelengthsDoppler formula Radial velocity — motion toward/away
Width and shape of linesPressure broadening, rotation, turbulenceAtmospheric density, rotation, magnetic fields
Molecular bands in planetary spectraQuantum mechanics of molecular vibrationsAtmospheric composition and greenhouse effect

Self-Assessment Checklist

After working through this reading, you should be able to:

  • ☐ Sketch the three types of spectra and explain when each appears (Kirchhoff’s laws)
  • ☐ Explain why stars show absorption spectra using the two-layer model (photosphere + atmosphere)
  • ☐ Use the Bohr model to explain why spectral lines occur at specific wavelengths
  • ☐ Calculate the wavelength of a hydrogen transition from energy levels
  • ☐ Recite the OBAFGKM sequence and explain it as a temperature sequence
  • ☐ Explain why H Balmer lines peak in strength at A-type temperatures
  • ☐ Apply the Doppler formula to compute radial velocity from a line shift
  • ☐ Distinguish spectral type, luminosity class, and metallicity
  • ☐ Explain the greenhouse effect using Kirchhoff’s laws and molecular absorption bands
  • ☐ Calculate a planet’s equilibrium temperature using Stefan-Boltzmann

Key Equations Reference

EquationUseNotes
Hydrogen energy levels (Bohr model); negative = bound
Photon energy from wavelengthConnects quantum levels to spectral lines
Wavelength of a spectral line = energy gap between levels
Doppler shift (non-relativistic) receding (redshift); approaching (blueshift)
fraction in level Boltzmann distribution (qualitative) = excitation energy above ground state; explains spectral type = temperature
Planetary equilibrium temperatureNo greenhouse; bare energy balance
Solar-system shortcutFor planets orbiting the Sun

Key Constants

ConstantValueUnits
Planck’s constanterg·s
Speed of lightcm/s ( km/s)
Boltzmann’s constanteV/K
Stefan-Boltzmann constanterg cm⁻² s⁻¹ K⁻⁴
Wien’s constantnm·K
Hydrogen ionization energy13.6eV
erg
Solar luminosityerg/s
cm

Glossary

Absorption line

A dark feature in a spectrum where a cool gas absorbs photons from a hotter background source at a specific wavelength set by an atomic energy-level gap. It appears at the same wavelength the gas would emit if heated.

Albedo

The fraction AA of incident light a surface or planet reflects rather than absorbs. A=0A = 0 is perfect absorption; A=1A = 1 is a perfect mirror. The Moon has A0.12A \approx 0.12, Earth 0.30\approx 0.30, Venus 0.77\approx 0.77. Only the absorbed fraction (1A)(1-A) heats the planet.

Balmer series

Hydrogen spectral lines from transitions to or from the n=2n = 2 level. The visible members are Hα (656 nm), Hβ (486 nm), Hγ (434 nm), and Hδ (410 nm) — the most prominent features in many stellar spectra.

Blueshift

A shift of spectral lines to shorter wavelengths (Δλ<0\Delta\lambda \lt 0), indicating the source is approaching the observer.

Bohr model

A quantum model of hydrogen in which the electron occupies discrete energy levels En=13.6 eV/n2E_n = -13.6\ \text{eV}/n^2 and absorbs or emits a photon only when it transitions between levels. Approximate for multi-electron atoms, but the core idea — discrete levels yield discrete lines — is exactly right.

Boltzmann distribution

The rule that the fraction of atoms in an excited level nn scales as eχn/kBTe^{-\chi_n / k_B T}, where χn\chi_n is the excitation energy above the ground state. Its exponential sensitivity to temperature is why spectral type is a temperature sequence: temperature, not abundance, sets which levels are populated and therefore which lines appear.

Doppler shift

The change in observed wavelength caused by a source’s motion along the line of sight: Δλ/λ0=vr/c\Delta\lambda/\lambda_0 = v_r/c. Receding sources shift to longer wavelengths (redshift); approaching sources shift to shorter wavelengths (blueshift).

Equilibrium temperature

The temperature at which a planet radiates exactly as much energy as it absorbs from its star, assuming no atmosphere: Teq=(L(1A)/16πσd2)1/4T_{\text{eq}} = (L_\star(1-A)/16\pi\sigma d^2)^{1/4}. The greenhouse effect raises the real surface temperature above this baseline.

Greenhouse effect

Warming of a planet’s surface caused by atmospheric gases absorbing outgoing infrared radiation and re-emitting part of it back downward. It is Kirchhoff’s third law applied to a planet: a cool atmosphere absorbing from the warm surface continuum.

Kirchhoff's laws

Three rules linking the appearance of a spectrum to the physical conditions of its source: (1) a hot dense object yields a continuous spectrum; (2) a hot low-density gas yields bright emission lines; (3) a cool gas in front of a hotter continuum yields dark absorption lines at the same wavelengths it would emit. Worked backward, a spectrum’s appearance reveals the source’s configuration.

Metallicity

The mass fraction ZZ of elements heavier than helium in a star or gas cloud (Z0.014Z_\odot \approx 0.014). It modulates the strength of metal absorption lines but, at fixed temperature, does not change a star’s spectral type — a second-order effect.

Photosphere

The visible “surface” of a star — the depth at which it becomes opaque (optical depth τ1\tau \approx 1) and from which the continuous spectrum escapes. For the Sun it sits near 5,800 K; the slightly cooler atmosphere just above it carves the absorption lines.

Radial velocity

The component of a star’s velocity along the observer’s line of sight, measured from the Doppler shift of its spectral lines. The perpendicular (transverse) motion produces no shift and must be measured astrometrically.

Redshift

A shift of spectral lines to longer wavelengths (Δλ>0\Delta\lambda \gt 0), indicating the source is receding from the observer.

Spectrum

The intensity of light as a function of wavelength, obtained by dispersing light through a prism or diffraction grating. A spectrum is quantitative data: its continuum slope, emission peaks, and absorption lines each encode physical conditions of the source.