1. Concept
Spreading starlight into a spectrum shows dark lines; they are the fingerprints that tell us what stars are made of.
How Can We Learn About a Star Without Visiting It?
The stars are so far away that, for almost all of them, we cannot travel to them, touch their surfaces, or collect a piece of their material. Yet astronomers can learn a surprising amount about a star simply by studying the light that reaches us from it. Light is therefore much more than something that makes a star visible—it carries information about the star.
Think of the light from a star as a message travelling across space. Hidden within that light are clues about the star’s temperature, chemical composition, motion, and other physical properties. The challenge is learning how to read those clues. Astronomers do this by carefully examining how the light is distributed among different wavelengths.
One particularly useful method is to spread the starlight out into its different wavelengths, producing what is called a spectrum. A spectrum can look like a smooth band of colours, or it can contain bright or dark lines. Those lines are not random. They are produced by the interaction of light with atoms and can reveal what the star is made of and what is happening in its atmosphere.
So our first major idea in this section is:
A star’s light carries information about the star itself.
We do not need to visit a star to study it. We need to learn how to decode its light.
That is the purpose of spectroscopy—the study of the spectrum of light.
Turning Starlight into a Spectrum
The light coming from a star contains many different wavelengths mixed together. If we look at that light as it arrives, they are combined and appear simply as light. But suppose we separate those different wavelengths so that each is spread out according to its wavelength. The resulting arrangement of light is called a spectrum.
A familiar example is a rainbow. What looks like white sunlight can be separated into a range of colours, from red through violet. Each colour corresponds to a different range of wavelengths. A spectrum is therefore not a new kind of light; it is a way of showing the different wavelengths present in light separately.
Astronomers use this idea to study starlight. Instead of asking only, “How bright is this star?”, we can ask a much richer question:
What does the star’s light contain?
When the starlight is spread into a spectrum, it may appear as a smooth band of colours, or it may contain particular bright or dark lines. These lines are extremely important because they are produced by the interaction of light with atoms. By studying their positions and strengths, astronomers can learn about the physical conditions and composition of the star.
So a spectrum is like a more detailed version of the light we normally see. Instead of treating all the light as one thing, we separate it into its wavelength components and examine the pattern.
There are three basic ways in which this pattern can appear: as a continuous spectrum, as a series of bright emission lines, or as dark absorption lines. Understanding the difference between these three is the key to understanding how spectra reveal the secrets of stars.
A Continuous Spectrum: A Complete Rainbow
Let us begin with the simplest kind of spectrum. When a hot, dense object emits light, that light can contain a broad, uninterrupted range of wavelengths. When this light is spread out, we see a smooth band of colours rather than separate gaps or lines. This is called a continuous spectrum.
A simple example is a glowing piece of hot, dense material. Its radiation contains a continuous range of wavelengths, so one colour gradually changes into the next. There are no particular wavelengths missing and no isolated bright lines standing out.
The important point is that a continuous spectrum tells us that a broad range of wavelengths is being emitted. We are not yet interested in identifying individual elements here; we are simply recognizing the overall background of light.
This becomes particularly important for stars. The hot, dense inner regions of a star produce a nearly continuous background of radiation. But this is not always the complete spectrum that finally reaches us. As the light passes through the star’s cooler outer atmosphere, certain wavelengths can be removed, producing dark lines. We will come to that shortly.
For now, remember:
Continuous spectrum → a smooth, uninterrupted range of wavelengths.
But what happens when the source is not a hot, dense object, but instead a thin, glowing gas? It produces a very different kind of spectrum.
An Emission Spectrum: Bright Lines from a Thin Gas
Now imagine a very different situation. Instead of a hot, dense object, suppose we have a thin cloud of gas that has been given energy and is glowing. When its light is spread into a spectrum, we do not get a complete rainbow. Instead, we see a set of separate bright lines at particular wavelengths. This is called an emission spectrum.
Why do only certain wavelengths appear? The atoms in the gas can emit light only at particular wavelengths determined by their internal energy structure. Each bright line therefore corresponds to a particular transition within an atom. We will understand the atomic reason for this more carefully later; for now, the important idea is that the pattern of bright lines depends on the atoms present in the gas.
This makes emission spectra extremely useful. Different elements produce different sets of spectral lines. In that sense, each element has its own characteristic spectral fingerprint. If we observe a set of bright lines and recognize the pattern, we can identify the element responsible for them.
For example, a thin glowing gas containing hydrogen will produce the characteristic wavelengths associated with hydrogen. A gas containing another element will produce a different pattern. The lines therefore carry information about the matter through which the light was produced.
So we now have two different situations:
Hot, dense source → continuous spectrum
Thin, glowing gas → emission spectrum
But stars usually present us with a third and especially interesting possibility: a continuous background of light passing through cooler gas. In that case, instead of gaining bright lines, certain wavelengths disappear and appear as dark lines.
An Absorption Spectrum: Missing Colours
Now imagine that a source is producing a continuous spectrum, but before that light reaches us, it passes through a relatively cool, thin gas. Something interesting happens: the gas absorbs certain wavelengths of the incoming light. When the remaining light is spread into a spectrum, we see a continuous background crossed by dark lines at specific wavelengths. This is called an absorption spectrum.
The dark lines appear because particular atoms in the gas absorb particular wavelengths. Those wavelengths are therefore missing, or greatly reduced, from the light that reaches us. The rest of the wavelengths continue through the gas, so the overall background remains continuous.
The important point is that the same atoms that can produce particular bright lines when they emit light can also remove those same characteristic wavelengths when they absorb light. Thus, the positions of the dark lines can reveal which atoms are present in the gas.
This is extremely useful for studying stars because their light passes through their outer atmospheres before reaching us. The continuous radiation from the hot inner regions provides the bright background, while the cooler gas in the outer atmosphere removes particular wavelengths and produces dark absorption lines.
So we now have the three basic kinds of spectra:
Continuous spectrum → smooth range of wavelengths
Emission spectrum → bright lines
Absorption spectrum → dark lines on a continuous background
Why Do Stars Usually Show Absorption Lines?
We have now seen that an absorption spectrum is produced when light from a hot, bright source passes through a cooler, thinner gas. A typical star provides almost exactly this arrangement. Its hot, dense inner regions produce a broad, continuous background of radiation. Before this radiation escapes into space, it passes through the star’s cooler outer atmosphere.
As the light travels through this atmosphere, the atoms in the cooler gas absorb particular wavelengths. Those wavelengths are then missing from the continuous background that reaches us. When we spread the light into a spectrum, the result is therefore a continuous spectrum crossed by dark absorption lines.
This is why a stellar spectrum is usually not just a smooth rainbow. The dark lines are actually useful clues. Their positions tell us which wavelengths have been absorbed, and because different elements absorb different characteristic wavelengths, the pattern of lines can reveal what elements are present in the star’s atmosphere.
The spectrum can also tell us about the physical conditions in the star’s atmosphere. The strengths and patterns of the lines depend on factors such as temperature. If the star is moving toward or away from us, the wavelengths of its spectral lines can also shift, allowing us to determine its radial velocity—its motion along our line of sight.
So a stellar spectrum is much more than a collection of colourful lines. It is a kind of encoded record of the star’s atmosphere.
We now know what the lines can tell us. But a deeper question remains:
Why do particular atoms absorb only particular wavelengths in the first place?
Why Do Atoms Produce Specific Lines?
We have seen that different elements produce different patterns of spectral lines. But why does an atom absorb or emit only certain wavelengths instead of any wavelength it happens to encounter?
To understand this, we need a simple picture of the atom. An atom has a tiny nucleus surrounded by electrons. These electrons cannot have just any arbitrary amount of energy. Instead, they can occupy particular energy levels, which we can imagine as the steps of a staircase.
An electron can move from one energy level to another only by gaining or losing a specific amount of energy. When it absorbs light, it takes in the required energy and moves to a higher allowed level. When it later releases energy, it can move to a lower level and emit light.
Because the allowed energy changes are specific, the corresponding wavelengths of light are also specific. That is why an atom does not produce a random collection of lines. It produces a characteristic pattern determined by its energy levels.
This also explains why different elements have different spectral fingerprints. Their electrons have different allowed energy levels, so the wavelengths they absorb or emit are different. By studying these wavelengths, we can identify the atoms responsible for them.
For our study of stars, one particular example is especially important: hydrogen. Hydrogen has its own set of spectral lines, including a group of visible lines called the Balmer lines. To understand why these lines change in strength from one star to another, we need to look more closely at the energy levels involved in hydrogen.
Why Are Spectra Like a Fingerprint?
We have seen that atoms can absorb or emit only particular wavelengths because of their allowed energy levels. Since different elements have different energy-level structures, they also produce different patterns of spectral lines. Each element therefore leaves behind a characteristic pattern in a spectrum, much like a fingerprint can identify a person.
This gives astronomers a useful way to study stars. When the spectrum of a star is examined, the positions of its absorption or emission lines can reveal which elements are present in the star’s atmosphere. The relative strengths of the lines also contain information about the physical conditions, including the star’s surface temperature.
The spectrum can even tell us whether the star is moving toward or away from us. If the star moves along our line of sight, its spectral lines are shifted from their usual wavelengths. By measuring this shift, astronomers can determine the star’s radial velocity—its velocity toward or away from the observer. The spectrum cannot show the motion across the sky (the proper motion); that is found by measuring the slow change in the star’s position.
So a single spectrum can act as a kind of information-rich message from a distant star. It can tell us what the star contains, something about its temperature, and how it is moving along our line of sight.
But there is a deeper question. If temperature affects the physical state of atoms, then stars with different temperatures should not produce identical spectral patterns. This is why the spectra of different stars look different—and why astronomers can use those differences to classify stars.
Key results.
- hot dense gas: continuous spectrum; thin hot gas: emission lines; cool gas in front of a hot source: absorption lines
- each element has its own set of lines, like a fingerprint
Common mistakes. Each of these is false:
- ✗ Dark lines mean the star gives no light at all at those colours (only less light).
- ✗ Spectra show only the colour of a star (they show its make-up too).
2. Explore it
Try it. Look at a CD or a street light through a diffraction grating. What do you see?
3. Worked example
What is the physical cause of the dark lines present in a typical stellar spectrum?
(a) The hot, dense core absorbing its own light
(b) A cool gas cloud in the star’s atmosphere absorbing specific wavelengths from the bright continuum background
(c) Interstellar dust blocking all light from the star
(d) Complete ionization of the star’s atmosphere
Solution. Answer: (b). A cool gas cloud in the star’s atmosphere absorbing specific wavelengths from the bright continuum background
The dark lines appear because the cooler gas in the star’s outer atmosphere absorbs specific wavelengths from the bright continuous background radiation.
These are the same wavelengths that the gas would emit if it were heated and observed under suitable conditions.
Therefore, the correct option is (b).
4. From a past paper
NSEA 2023, Question 6 (official paper: IAPT). A cloud of cool gas lies in front of a bright source that glows like a blackbody. What does the spectrum show? (a) bright emission lines on a continuous background (b) only a continuous spectrum (c) dark absorption lines on a continuous background (d) bright lines only
Our solution. Answer: (c). dark lines (absorption lines) against a continuum emission background
This is Kirchhoff’s law of absorption: a cooler gas in front of a hot continuous source absorbs at its characteristic wavelengths.
Ready for more? At NSEA level this topic continues in Atoms and spectral lines; the Balmer series, Supernovae, and reading a star from its light.