01 / 20

Spectral Types &
Composition

Reading the rainbow fingerprints of starlight to learn what stars are made of and how hot they burn.

Astronomy

Light Carries a Hidden Message

Star Prism Spectrum

A spectrum is light spread out by wavelength. When you split starlight with a prism or grating, you see colors arranged from violet (short wavelength) to red (long wavelength).

Three Kinds of Spectra

Continuous smooth rainbow Emission bright lines on dark Absorption dark lines on rainbow

Kirchhoff's Three Laws

1
Continuous: A hot, dense solid, liquid, or dense gas emits light at all wavelengths.
2
Emission: A hot, thin (low-density) gas emits light only at specific wavelengths, producing bright lines.
3
Absorption: A cool, thin gas in front of a hot continuous source removes specific wavelengths, producing dark lines.

Why Lines Appear at Fixed Wavelengths

Electron jumps between fixed energy levels Energy gap fixed
\( E = h\nu = \frac{hc}{\lambda} \)

Electrons in atoms occupy only certain energy levels. When an electron jumps between levels, it absorbs or emits a photon of a precise energy, and therefore a precise wavelength \( \lambda \).

Emission vs Absorption

Emission Lines
Bright lines on a dark background. The gas adds photons at its element's wavelengths. Seen when hot thin gas glows.
Absorption Lines
Dark lines on a rainbow. Cooler gas removes photons at the same wavelengths from a continuous source.

Stars Show Absorption Spectra

Hot interior (continuous) cooler outer gas Absorption spectrum

A star's dense hot interior emits a continuous spectrum. Light then passes through the cooler outer atmosphere, where atoms absorb specific wavelengths, carving dark lines.

The OBAFGKM Sequence

O B A F G K M
hot \( \sim 40{,}000 \text{ K} \)
cool \( \sim 3{,}000 \text{ K} \)
blue → white → yellow → orange → red

Stars are sorted by surface temperature into classes O, B, A, F, G, K, M (hottest to coolest). The pattern of absorption lines changes with temperature, which is how we assign the class.

How to Read a Spectrum

1
Identify the type. Smooth rainbow? Bright lines on dark? Dark lines on rainbow?
2
Measure line wavelengths. Note where lines appear along the spectrum.
3
Match to elements. Compare line positions to known lab fingerprints to identify composition.
4
Infer conditions. Use line strengths and pattern to estimate temperature and density.

Worked Example: A Nebula

A few bright lines on a dark background

You observe a glowing cloud showing only a few bright colored lines with darkness in between. What is it?

Worked Example: A Star

Dark lines cut into a full rainbow

A star's spectrum shows a full rainbow with several dark lines. The strongest lines belong to hydrogen, and the star is bluish-white.

Worked Example: Temperature Clues

Two stars both show absorption spectra. Star X has very strong hydrogen lines; Star Y has weak hydrogen but strong lines from molecules like titanium oxide. Which is hotter?

Common Mistakes

✕ Mixing up the types
Bright lines = emission; dark lines = absorption. Don't confuse the two.
✕ Color = composition
A star's color tells temperature, not what it's made of. Lines reveal composition.
✕ OBAFGKM backwards
O is hottest, M is coolest, not the other way around.
✕ Lines move randomly
Each element's lines sit at fixed wavelengths set by its energy levels.

Spectra Summary

Continuous Emission Absorption
SourceHot denseHot thin gasCool gas + source
AppearanceFull rainbowBright linesDark lines
RevealsTemperatureCompositionComposition
ExampleStar interiorNebulaStar surface

Question 1 of 5

You see bright colored lines on a dark background. What kind of spectrum is this?

Question 2 of 5

According to Kirchhoff's laws, what produces an absorption spectrum?

Question 3 of 5

Why does each element produce a unique set of spectral lines?

Question 4 of 5

In the OBAFGKM classification, which class is the hottest?

Question 5 of 5

A star shows strong molecular bands (like titanium oxide) and a red color. What can you conclude?

Light Tells the Whole Story