Skip to main content
Physics LibreTexts

3.2: Spectroscopy

  • Page ID
    155926
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \(\newcommand{\longvect}{\overrightarrow}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\ket}[1]{\left| #1 \right>}\)
    \(\newcommand{\bra}[1]{\left< #1 \right|}\)
    \(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
    \(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
    \(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
    \(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
    \(\newcommand{\expect}[1]{\langle #1 \rangle}\)
    \(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    The Visible Spectrum

    Rainbows are an excellent example of the visible spectrum. In 1672, Sir Isaac Newton described an experiment in which he permitted sunlight to pass through a prism. Newton found that sunlight, which looks white to us, is actually made up of a mixture of all the colors of the rainbow, Figure \(\PageIndex{1}\).

    White light passing through a prism to form a rainbow. Details in caption.
    Figure \(\PageIndex{1}\) : Prism Refraction. When white sunlight passes through a prism, the light is broken into a rainbow-colored band. (CC BY 4.0; Fraknoi, et al. via Openstax Astronomy 2nd ed.) Accessible description of Figure \(\PageIndex{1}\).

    When light passes through a material, the path of the light is changed or bent, in a process called refraction. Light is separated into different colors by a prism, a piece of glass in the shape of a triangle with refracting surfaces. Upon entering one face of the prism, the path of the light is refracted, but not all of the colors are changed by the same amount. The bending of the light depends on the wavelength of the light as well as the properties of the material. As a result, different wavelengths follow slightly different paths through the prism. The violet light is bent more than the red.

    If the light leaving the prism is focused on a screen, the different wavelengths or colors that make up white light are lined up side by side just like a rainbow, Figure \(\PageIndex{2}\). Because this array of colors is a spectrum of light, the instrument used to form the spectrum is called a spectrometer. The spectrum of white light, ranging from roughly 400 to 700 nanometers (nm), is called a continuous spectrum.

    Continuous spectrum of visible light. Details in caption.
    Figure \(\PageIndex{2}\) : Visible Spectrum. When white light passes through a prism, it is dispersed and forms a continuous spectrum of all the colors from violet to red. (CC BY 4.0; Fraknoi, et al. via Openstax Astronomy 2nd ed.) Accessible description of Figure \(\PageIndex{2}\).

    The Spectrum of the Sun

    When Newton described the laws of refraction and dispersion in optics, and observed the solar spectrum, all he could see was a continuous band of colors. If the spectrum of the white light from the Sun and stars were simply a continuous rainbow of colors, astronomers would have little interest in the detailed study of a star’s spectrum once they had learned its average surface temperature. In 1802, however, William Wollaston built an improved spectrometer that included a lens to focus the Sun’s spectrum on a screen. With this device, Wollaston saw that the colors were not spread out uniformly, but instead, some ranges of color were missing, appearing as dark bands in the solar spectrum. He mistakenly attributed these lines to natural boundaries between the colors. In 1815, German physicist Joseph von Fraunhofer, upon a more careful examination of the solar spectrum, found almost 600 such dark lines, or missing colors, which led scientists to rule out the boundary hypothesis, Figure \(\PageIndex{3}\). To determine how these gaps were made, scientists had to learn more about how light interacts with matter at the atomic scale.

    The spectrum of the Sun. Details in caption.
    Figure \(\PageIndex{3}\) : Visible Spectrum of the Sun. This simulation of the spectrum of the Sun as Wollaston and von Fraunhofer would have seen it in the early 19th century appears similar to a continuous spectrum, except for the many narrow, dark gaps. (CC0; Phrood~commonswiki, et al. via Wikimedia Commons) Accessible description of Figure \(\PageIndex{3}\).

    Atomic Transitions

    All normal matter is made of atoms. Each atom contains a very small nucleus composed of positively charged protons and uncharged neutrons, surrounded by a much larger volume of space containing negatively charged electrons. The nucleus contains the majority of an atom's mass because protons and neutrons are much heavier than electrons, while electrons occupy almost all of an atom's volume. The diameter of an atom is on the order of 10-10 m, while the diameter of the nucleus is roughly 10-15 m, about 100,000 times smaller.

    Elements, such as oxygen and iron, are defined by the number of protons in their nucleus. The simplest possible element is hydrogen. In Figure \(\PageIndex{4}\), the nucleus of hydrogen contains a single proton. Moving around this proton is a single electron. The mass of an electron is nearly 2000 times smaller than the mass of a proton. The electron carries an amount of charge exactly equal to that of the proton but opposite in sign. Opposite charges attract each other, so it is an electromagnetic force that holds the proton and electron together.

    Hydrogen atom with one proton at the center and one electron at the edge. Details in caption.
    Figure \(\PageIndex{4}\) : Hydrogen Atom. This illustration represents a hydrogen atom as a circle with the proton at the center and the electron at the radius, or outer part of the circle. The proton is positive and the electron is negative. The distances are not to scale. (CC BY 4.0; Fraknoi, et al. via Openstax Astronomy 2nd ed.)

    Electron Energy Levels

    Unlike planets, the electrons in atoms can't be at any distance from the nucleus. In fact, electrons can only orbit at specific distances from the nucleus, corresponding to specific energies that scientists call energy levels. Electrons can move, or transition, from one energy level to another by absorbing or releasing energy. The energy of these transitions is also fixed. Think of transitions as stair steps. When using steps, the height of the step is fixed, so you can only move upwards or downwards by a fixed amount. If, instead, you were walking on a ramp, you could move up or down any amount because movement on a ramp is not fixed to specific amounts.

    Figure \(\PageIndex{5}\) depicts the energy levels of hydrogen as black concentric circles within the light blue area that represents the atom of hydrogen. The proton is not included, but would be in the center of the circles. The quantum number, n, represents the possible energy levels. The lowest allowed value of n is 1, because the electron is as close to the proton as it can get and has the lowest amount of energy. This is the most stable state of the hydrogen atom and is called the ground state. The ground state, n = 1, is the central circle in Figure \(\PageIndex{5}\). The next energy level is n = 2, which represents a higher energy level and is represented by a circle larger than the circle for n = 1. The next larger circle represents n = 3. The levels for n = 4 and n = 5 are represented by partial circles on the left side of the atom that are cut short because they represent circles that are larger than the figure.

    Bohr model of hydrogen with electron orbits and three spectral line transitions. Details in caption.
    Figure \(\PageIndex{5}\) : Energy Levels. In this simplified model of a hydrogen atom, the concentric circles represent permitted orbits or energy levels. (CC BY 4.0; Fraknoi, et al. via Openstax Astronomy 2nd ed.) Accessible description of Figure \(\PageIndex{5}\).

    When an electron moves to a higher energy level, it is called excitation. If a hydrogen atom absorbs an amount of energy that corresponds to the difference between that of n = 1 and some higher value of n, the electron moves to the higher orbit and the atom is said to be in an excited state. Excited states are unstable and quickly drop to the ground state, but not always in a single step. For example, the electron, represented by a light blue dot in Figure \(\PageIndex{5}\), is initially located in the n = 3 state. This electron can move either directly to the ground state or to the n = 2 state, and then move to n = 1. The difference between each energy level is a unique amount. That means that the change in energy from n = 3 → 2 is not the same as the change in energy from n = 2 → 1.

    All of these electronic transitions require the absorption or loss of energy in the form of light. All electromagnetic waves contain an amount of energy directly related to their frequency. The energy of an individual photon can be calculated using the equation: E = hf, where E is the amount of energy, h is the Planck constant, 6.626 x 10-34 J s, and f is the frequency of the photon. The wavelength of a photon, λ, is equal to the speed of light, c, divided by the photon's frequency. We can rewrite the equation for the energy of a photon to: E = hc/λ. Photons can have almost any energy, and some of them can be exactly equal to the energy of electronic transitions.

    Suppose a beam of white light, which consists of photons of all visible wavelengths, shines through a gas of hydrogen. A photon of wavelength 656 nanometers has just the right energy to raise an electron in a hydrogen atom from the second to the third orbit. Thus, as all the photons of different energies stream by the hydrogen atoms, photons with this particular wavelength can be absorbed by those atoms whose electrons are orbiting on the second level. When they are absorbed, the electrons on the second level will move to the third level, and a number of the photons of this wavelength and energy will be missing from the general stream of white light. The lack of photons at the specific wavelength will produce a dark gap in the spectrum, called a spectral line. Other photons will have the right energies to raise electrons from the second to the fourth orbit, or from the first to the fifth orbit, and so on. Only photons with these exact energies can be absorbed. All of the other photons will stream past the atoms untouched. Thus, hydrogen atoms absorb light at only certain wavelengths and produce dark spectral lines at those wavelengths in the spectrum.

    Note that this model of specific energy levels is a simplification of reality. The energy levels are not truly an exact value, but a range of values. More complicated and accurate models of the atom belong in a higher-level course. For the purposes of this textbook, this model is good enough.

    Identifying Elements

    The science of spectroscopy starts in the lab, where scientists observe the spectra of different elements with a spectrometer. What scientists noted is that each element or compound has its own signature spectrum. This agreed with the models predicting that electrons orbit at specific energy levels. Some elements may share the energy of a few transitions, but each element has a unique set of possible energy levels. Therefore, the spectrum of each element is unique. In other words, each particular gas can absorb or emit only certain wavelengths of the light peculiar to that gas. It is the precise pattern of wavelengths that makes the signature of each element unique.

    How did they make these measurements? Researchers did this by passing light through various elements, using containers with a small amount of a gas in them. This produced a continuous spectrum with gaps, also known as an absorption spectrum. When they heated the gas, they observed an overall dark spectrum with individual bright lines, or an emission spectrum. In both types of experiments on the same type of gas, for example hydrogen, the dark gaps or bright lines were at the same position. They concluded that each element has its own characteristic spectrum, which can be used to identify the element, like a fingerprint.

    In these experiments, if the gas was pure hydrogen, it would emit one pattern of lines. When it was pure sodium, it would emit a different pattern. A mixture of hydrogen and sodium emitted both sets of spectral lines. From such experiments, scientists began to understand that different substances showed distinctive spectral signatures by which their presence could be detected. In Figure \(\PageIndex{6}\), the wavelength range is from 3800 to 7500 angstroms. Visible spectra can also measure wavelength in nanometers instead of angstroms. One nanometer is equal to 10 angstroms, so just remove a zero from the angstrom value to get the value in nanometers (nm). For example, hydrogen has a single red line at 656 nm or 6560 angstroms.

    Emission line spectra of sodium, hydrogen, calcium, and mercury. Details in caption.
    Figure \(\PageIndex{6}\) : Spectra of Several Elements. The spectra of sodium, hydrogen, calcium, and mercury gases have different patterns of lines. (CC BY 4.0; Fraknoi, et al. via Openstax Astronomy 2nd ed.) Accessible description of Figure \(\PageIndex{6}\).

    Using the results of these types of experiments, astronomers were eventually able to determine the composition of the Sun and other stars. This will be discussed in the chapter about the Sun. The good news is that spectroscopy is not limited to gases. Liquids and solids can also generate spectral lines, but they can be broader and less well defined and more difficult to interpret. Spectroscopy can, for example, be applied to light reflected off the surface of a nearby asteroid or comet. We have gone into detail regarding analysis of the visible spectrum. Spectroscopy is also useful at different wavelengths. For example, infrared light is absorbed by vibrating molecules, combinations of different elements, so infrared spectroscopy can be used to detect more complex types of matter.

    Further Exploration
    • These resources may not be accessible to assistive technologies:
      • Explore the AstroSims Hydrogen Atom simulation to visualize the structure of a hydrogen atom and investigate how electron energy levels are related to the absorption and emission of light.
      • Explore the AstroSims Spectrum Constructor simulation to investigate how continuous, emission, and absorption spectra are formed and how spectral lines can be used to identify the composition of gases.

    3.2: Spectroscopy is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?