Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Abstract

In this chapter, we explore how light from sources such as the sun or a lamp can be dispersed into its spectral components. We discuss various dispersive elements, including gratings and prisms, and the phenomena of refraction and diffraction that allow these elements to spatially separate light. The chapter explores blackbody radiation and the historical significance of the ultraviolet catastrophe. Additionally, we introduce the concepts of absorption and emission lines, which provide insights into atomic and molecular energy levels.

Keywords: Spectrum · Blackbody radiation · Diffraction · Refraction · Gratings · Absorption spectroscopy · Spectral analysis

Learning Goals

By the end of this chapter, you should be able to understand:

2.1 Breaking Light into a Spectrum

Definitions

A spectrometer only needs two items: a dispersive element and a screen. A dispersive element is anything that takes light and spatially separates it into its spectral components. A common dispersive element is a prism, as shown in Figure 1, which works due to refraction. If you send white light into a dispersive prism, you will see a rainbow exiting because each spectral component refracts at a different angle. For a prism, the smaller the wavelength of light, the larger the refraction angle. So, blue light (λb=\lambda _{\text{b}} = 400–490 nm) refracts at a larger angle than red light (λr=\lambda _{\text{r}} = 620–750 nm). If you calibrate the prism so that you know at what angle each wavelength refracts, you can send in an unknown wavelength, measure the angle of refraction, and use math to determine the wavelength of the light. You can also send in light from, for example, a hydrogen lamp and see what wavelengths or spectral components are in that light. Knowing how each wavelength refracts allows you to determine what wavelengths make up the hydrogen lamp spectrum.

A dispersive prism takes white light, which enters the prism from the left, and makes a rainbow. Each wavelength is refracted at a different angle. The white light source I used to make this picture is a tungsten lamp

Figure 1:A dispersive prism takes white light, which enters the prism from the left, and makes a rainbow. Each wavelength is refracted at a different angle. The white light source I used to make this picture is a tungsten lamp

In spectroscopy, the most common dispersive element is an optical grating, which works due to diffraction. Optical gratings commonly come in two types: transmission and reflection, see Figure 2. Either way, the optical grating is a dispersive element that will spatially separate light into its spectral components because each spectral component diffracts at a different angle.

(a) An example of white light, which is composed of many spectral components, reflecting off a reflection grating. For illustrative purposes, d, which is usually very small, is greatly enlarged. We also only show one order to keep the example a little cleaner. (b) An example of white light diffracting through a transmission grating. Again, d is greatly enlarged and we only show one order. (c) An example of blue light with \lambda =455\,\text{nm} hitting perpendicular to the transmission grating and being diffracted. In this example, we show all diffraction orders. The angles of diffraction are calculated using

Figure 2:(a) An example of white light, which is composed of many spectral components, reflecting off a reflection grating. For illustrative purposes, d, which is usually very small, is greatly enlarged. We also only show one order to keep the example a little cleaner. (b) An example of white light diffracting through a transmission grating. Again, d is greatly enlarged and we only show one order. (c) An example of blue light with λ=455nm\lambda =455\,\text{nm} hitting perpendicular to the transmission grating and being diffracted. In this example, we show all diffraction orders. The angles of diffraction are calculated using (1)

To create the diffraction, both types of gratings have small structures separated by a distance d. A reflection grating has a bunch of small tilted mirrors called rulings while a transmission grating has a bunch of small slits. The only physical criterion for a grating is that d>λd>\lambda. The size of d in Figure 2 has been greatly enlarged for visual purposes. While d must be larger than λ\lambda, in practice we also make sure that d is typically less than about 5λ5 \lambda to ensure suitable diffraction angles.

We will start with the equations that describe how spectral components are diffracted through a transmission grating; we will find that each spectral component can be diffracted at multiple, but well defined, angles. The math behind the next equation is a little complicated, but the end result is really what we care about. Let’s start by keeping things simple and assume the incoming light is perpendicular to the grating, see Figure 2c. The light diffracts through the grating according to the equation:

dsinθm=mλfor incident light perpendicular to a transmission grating\begin{array}{c} d \sin \theta_{m} =m\lambda \\ \text{for incident light perpendicular to a transmission grating} \end{array}

In this equation, d is the distance between the slits, m is an integer known as the diffraction order (the fact that a spectral component diffracts at multiple but well defined angles is mathematically represented by m), λ\lambda is the wavelength of a spectral component of the light, and θm\theta _{m} is the angle of diffraction for order m. m can be a negative integer, zero, or a positive integer. If you know d and m, you can then measure θm\theta _{m} and use that to calculate λ\lambda.

Example

A transmission grating has d=1 μmd = 1~\mu \text{m}. There are three laser pointers: a blue laser pointer with λb=450nm\lambda _{b} = 450\,\text{nm}, a green laser pointer with λg=532nm\lambda _{g} = 532\,\text{nm}, and a red laser pointer with λr=650nm\lambda _{r} = 650\,\text{nm}. All three lasers hit the grating perpendicular. What angles do the three lasers diffract for m = +1, 0, -1, and +2?

First, we use the diffraction equation to solve for θm\theta _{m}: θm=sin1(mλ/d)\theta _{m}=\sin ^{-1}{(m\lambda /d)}, where sin1\sin ^{-1} is the inverse sine function. For m=0m=0, we plug in numbers to find θ0,b=0\theta _{0,b}=0^{\circ }, θ0,g=0\theta _{0,g}=0^{\circ }, θ0,r=0\theta _{0,r}=0^{\circ }. So, let’s not use the m=0m=0 diffraction order since we can’t learn anything here!

For m=+1m=+1, we plug in numbers to find θ+1,b=26.7,θ+1,g=32.1,θ+1,r=40.5\theta _{+1,b}=26.7^{\circ },\theta _{+1,g}=32.1^{\circ },\theta _{+1,r}=40.5^{\circ }. That is a pretty big difference! Your light only needs to travel a short distance to separate out the three colors.

Quick Math Aside

Let’s put the screen 10cm10\,\text{cm} from the grating. On the screen is a ruler that will serve as our z-axis. If the grating wasn’t in place, all spectral components would hit the screen at the same place. Let’s call this spot z=0cmz = 0\,\text{cm}. With the grating in place and the white light hitting the grating perpendicular, the blue light, which diffracts at 26.726.7^\circ, hits the screen at z=(10cm)tan26.7=5.04cmz=(10 \,\text{cm})\tan 26.7^\circ =5.04\,\text{cm} while the green light hits the screen z=6.28cmz=6.28\,\text{cm}. You could also skip the angle calculation and use the formula:

z=±L(dmλ)21for incident light perpendicular to a transmission grating,\begin{array}{c} z=\pm\frac{L}{\sqrt{(\frac{d}{m \lambda})^2-1}} \\ \text{for incident light perpendicular to a transmission grating}, \end{array}

where L is the distance between the diffraction grating and the screen. z is positive for positive m and negative for negative m. You have the opportunity to derive this formula in problem 2.4. Notice that the diffraction order in the denominator is squared, so the sign of m only determines the sign of z.

For m=1m=-1, we plug in numbers to find θ1,b=26.7\theta _{-1,b}=-26.7^{\circ }, θ1,g=32.1\theta _{-1,g}=-32.1^{\circ }, θ1,r=40.5\theta _{-1,r}=-40.5^{\circ }.

For m=+2m=+2, we find something interesting when we plug numbers into a calculator: θ+2,b=64.2,θ+2,g=(9020.4i),θ+2,r=(9043.3i))\theta _{+2,b}=64.2^{\circ },\theta _{+2,g}=(90-20.4i)^{\circ },\theta _{+2,r}=(90-43.3i))^{\circ }. Blue light diffracts at 64.264.2^\circ, but the other two have weird looking answers that came out of my calculator. These numbers are called complex numbers. Complex numbers are a huge topic in both math and physics, but what it means for us is that green and red light cannot diffract into the m=+2m=+2 order. Experimentally, we would see blue light diffracted at 64.264.2^\circ, but we would not see second order diffraction for red light and green light. They just wouldn’t be there. In general, whenever you calculate a number that is supposed to represent something physical and you get a complex number, that means this is something you cannot measure or it doesn’t exist.

From this example, we would want to design our spectrometer to use either m=+1m=+1 or m=1m=-1 because all spectral components diffract with a real, measurable angle (i.e. not a complex number). In the end, it doesn’t matter which diffraction order we pick. As long as we know the angle at which a spectral component diffracts, we can use that information to determine the wavelength of an unknown spectral component.

A reflection grating does a similar job as a transmission grating, but the equation looks slightly different:

dsinθm=mλfor incident light perpendicular to a reflection grating\begin{array}{c} d \sin \theta_{m} =-m\lambda \\ \text{for incident light perpendicular to a reflection grating} \end{array}

All that is different is the minus sign on the righthand side. Finally, let’s suppose the incoming light isn’t perpendicular to the grating but hits the grating at an angle θi\theta _{i} with respect to the perpendicular (in optics, the perpendicular is called the “normal”), see Figure 2b. The formula describing the diffraction of a spectral component is:

d(sinθmsinθi)=±mλ(use +m for transmission and m for reflection)\begin{array}{c} d (\sin \theta_{m} -\sin \theta_{i} )=\pm m\lambda \\ \text{(use }+m\text{ for transmission and }-m\text{ for reflection)} \end{array}

While this formula is more complicated, it is important to note that the concept is far more important than the formula. The concept is simply this:

Take Home Message

If you know how your dispersive optic bends (diffracts or refracts) different wavelengths of light, you can use that information to determine the wavelength of an unknown spectral component from any light source.

Fun History

2.2 Blackbody Radiation

I pointed a commercial spectrometer at the sky, see Figure 3. Collecting this data was spectroscopy! A few important notes before we continue:

The spectral components of light from the sun after it passes through the atmosphere

Figure 3:The spectral components of light from the sun after it passes through the atmosphere

Historically, it was a fun journey to figure out the overall shape. Physics known in the 1800s predicted a far different shape. In fact, when challenged with describing the overall shape, physics failed hard. When physicists tried to predict the spectrum in Figure 3, the model was close for large wavelengths but very, very wrong for small wavelengths. Starting at the larger wavelengths and moving to shorter wavelengths, the math says the spectrum should get larger and larger and larger instead of turning around and getting smaller, which would require infinite energy. The dramatic result of the math is this: the universe doesn’t exist. Whenever the model says the universe doesn’t exist, there is something we don’t understand.[1] This result is now known as the “ultraviolet catastrophe.” It is a dramatic name, but the predictions from the mathematical model were also dramatic. We clearly needed a better model!

A Short Aside

Imagine you had a room with perfectly reflecting, parallel walls. Only light with particular wavelengths that create standing waves (perfect constructive interference like in Figure 8) can exist in this room. Even though only certain wavelengths are allowed in the room, there are still an infinite number of them (you can always add one more loop to the standing wave). According to classical thermodynamics, a well tested and very successful theory, each standing wave has the same amount of energy. If you learned about heat capacity in high school chemistry, this classical thermodynamics model predicted an infinite heat capacity. Yikes!

According to the model, since each mode has the same energy, Figure 3 should keep going up and up at small wavelengths. As a practical example, this mathematical model says that if you stood in a closed room and lit a match, the entire room and everything in it would burst into flames due to the infinite energy density at short wavelengths. Ultraviolet catastrophe indeed!

In 1901, after a lot of thought and model development, German physicist Max Planck eventually figured out that if light was composed of photons, then there would be way fewer higher-energy photons than lower-energy ones, which solved the problem. In 1905, German born physicist Albert Einstein built upon this idea with the photoelectric effect. The mathematical result of this new model predicted the shape in Figure 3, which is modeled by the complicated formula:

M(λ,T)=2πhc2λ51ehcλkBT1,M(\lambda,T)=\frac{2\pi hc^2}{\lambda^5} \frac{1}{e^{\frac{hc}{\lambda \: k_B T}}-1},

where h=6.626×1034Jsh=6.626\times 10^{-34}\,\text{Js} is Planck’s constant, c is the speed of light, kB=1.38×1023J/Kk_{B}=1.38\times 10^{-23}\,\text{J/K} is a constant known as Boltzmann’s constant,[2] and T is the temperature of the object. For temperature, we use the unit kelvin, which is named after British mathematician, physicist, and engineer Lord William Thomson. The unit for Boltzmann’s constant is joule/kelvin. Using this model to fit the data from the spectrometer, we can measure the temperature of the surface of the sun to be about 5800 kelvin. We call M(λ,T)M(\lambda ,T) “spectral radiant exitance”, and it tells us how much radiant energy per second is leaving the object per unit area per unit wavelength.[3] The units for M(λ,T)M(\lambda ,T) are W/m3\text{W}/\text{m}^{3}. I should note that this equation is for a “perfect” blackbody, which doesn’t exist in real life. Not having a perfect blackbody is equivalent to saying there is no such thing as a room with perfectly parallel and reflective walls. However, it still does a pretty good job with modeling the spectrum emitted by objects.

It isn’t just the sun that emits a blackbody spectrum. A hot pan on the stove does, you do, and I do as well. The amount of light that is emitted as well as the peak wavelength of the blackbody spectrum only depends upon the temperature of the object. Remarkably, everything else in this model is either a constant or wavelength, which is our horizontal axis. Figure 4 shows a few different plots of the spectral radiant exitance for different temperatures. For objects near 5000 K, like the sun, they emit light that is visible to our human eye. For cooler objects, like us, the maximum spectral radiant exitance occurs more near 10,000nm10{,}000\,\text{nm}, which is 10μm10\,\mu \text{m}. There are special cameras that can see this wavelength of light. You may have seen thermal imaging or watched the Predator movies. I did not include the vertical scale in this plot because the numbers are big and hard to interpret without really digging into the spectral radiant exitance formula. But hotter objects do emit more light. The maximum spectral radiant exitance for a 6000 K object is about 3 million times larger than for a 310 K object.

Left: Blackbody spectrum for very hot objects. The surface of the sun is 5800 K. Right: Your blackbody spectrum, assuming you are human (310 K is about 98 F). Notice the horizontal axis is a very different scale

Figure 4:Left: Blackbody spectrum for very hot objects. The surface of the sun is 5800 K. Right: Your blackbody spectrum, assuming you are human (310 K is about 98 F). Notice the horizontal axis is a very different scale

The Stefan–Boltzmann Law and Wien’s Displacement Law

Imagine you have a blackbody with surface area A. Besides the spectrum of the blackbody, you can also measure the total power emitted by the object. The total power emitted is proportional to the area under a spectral radiant exitance graph. After some math (calculus), the total power emitted by a blackbody:

P=σϵAT4,σ=2π515kB4c2h3=5.67×108 Wm2K4\begin{array}{c} P=\sigma \epsilon A T^4, \\ \sigma=\frac{2\pi^5}{15}\frac{k_B^4}{c^2h^3} =5.67\times10^{-8} ~\frac{W}{m^2 K^4} \end{array}

where σ\sigma is a constant known as the Stefan–Boltzmann constant,[4] ϵ\epsilon is the emissivity, and A is the surface area of the object. Emissivity is a number between 0 and 1 indicating how closely the object behaves like a blackbody. If it is a perfect blackbody, ϵ=1\epsilon = 1. For a sphere, like the sun, the surface area is 4πR24\pi R^2, where R is the radius of the sphere. The emissivity of the sun is about 0.99, so it is nearly a blackbody.

Several years before Max Planck solved the ultraviolet catastrophe, German physicist Wilhelm Wien experimentally noticed that the wavelength of the maximum spectral radiant exitance graph, see Figure 4, was inversely proportional to temperature. He discovered that a blackbody with a temperature of 6000 K had a maximum around λpeak=484\lambda _{\text{peak}} = 484 nm, 5000 K had a maximum around 580 nm, 4000 K around 725 nm, etc. After studying the trend between temperature and peak wavelength, he determined:

λpeak=bT,\lambda_{\text{peak}}=\frac{b}{T},

where b=2.898×106nm K.b=2.898\times 10^{6}\,\text{nm K}. This formula was later derived from the spectral radiant exitance formula. If you have the calculus background to find the maximum of a function and want to derive this formula, you should know that, unfortunately, the resulting equation is a transcendental equation and thus does not have an analytical solution. However, you can find a numerical solution.

What About Those Dips?

Let’s return to the experimental data we took for the spectrum of the sky, see Figure 3. Blackbody radiation explains the overall shape, but what about the dips? What do you think is making those dips? The answer is below the fun little puzzle in Figure 5.

A fun little puzzle to separate the question from the answer

Figure 5:A fun little puzzle to separate the question from the answer

There are two sources of the dips: atoms and molecules in our atmosphere and the sun itself. For example, the dip near 750 nm is due to oxygen molecules in the atmosphere. There are photons coming from the sun that have the perfect energy to excite oxygen molecules. Because oxygen molecules absorb only photons with the perfect energy, some light is lost at very specific wavelengths before it reaches our spectrometer.

The second source for the dips is the sun itself. While the sun emits blackbody radiation, that light passes through gas at the surface of the sun. That gas absorbs light just like atoms and molecules in our atmosphere. If we wanted just the composition of the sun, we should collect this data from space!

This leads to one method of performing spectroscopy with a spectrometer. You take a light source, which can be a blackbody, a flashlight, or really any light source you want, and send it into your spectrometer. Record this spectrum. Next, place an atomic sample between the light source and the spectrometer and record this spectrum. Comparing the two spectra tells you which wavelengths got absorbed. Each wavelength that is lost from the light due to absorption is the same wavelength needed to excite the atom from one energy level to another. So measuring these absorption dips gives you information about the energy levels of the atoms.

2.3 Discharge Lamps

Another method of spectroscopy using a spectrometer is to point the spectrometer at a lamp filled with an element. Figure 6 shows the spectrum of a helium discharge lamp collected using a commercial spectrometer. The spectrum is not continuous like that of a blackbody. Instead, we observe individual spikes at very specific wavelengths. And, we already know the source of these spikes! Atoms have energy levels, and the atoms will only absorb and emit at specific wavelengths. Filling a lamp with a specific element, or the combination of a few elements, and collecting the emitted light with a spectrometer was the most common form of spectroscopy before the invention of the laser. After the spectrum was collected, physicists had to be very clever to back out the energy levels from all of those lines.

Spectrum collected from a helium discharge lamp collected using a spectrometer with an accuracy of 0.5 nm

Figure 6:Spectrum collected from a helium discharge lamp collected using a spectrometer with an accuracy of 0.5 nm

Whether you use a white light source and look for lost photons or you collect light from a discharge lamp, you gain the same information, which is the wavelengths of light needed to have an atom go from one energy level to another.

In the lab, spectrometers are still really useful tools, but they are not great for certain applications. Below are a few pros and cons to using spectrometers for spectroscopy.

Pros:

Cons:

For high precision spectroscopy, most spectroscopy groups use a laser to study a single transition instead of collecting light from many transitions at once. As we will find in 4. Atoms in Motion, having atoms moving around (i.e., a hot gas) is a bad thing if we want to measure something like the energy difference between two energy states to really high precision. Clever physicists developed a neat technique to still use hot atoms to measure properties to high precision, which is the topic of 5. Saturated Absorption Spectroscopy, but we need multiple lasers to do so.

Problems

Table 2.1 Helium energy levels

Level #Energy (cm1\text{cm}^{-1})Lines with this lower level
10
2159,856.0389 nm
3166,277.4502 nm
4169,086.8447, 471, and 707 nm
5171,134.9492 and 728 nm
6183,236.8
7184,864.8
8185,564.6
9186,209.4
10190,298.1
11191,446.5

```{exercise}
:label: prob-2-7
:enumerator: 2.7

You want to design your own spectrometer to measure light collected from a lamp. You need to collect data for light with wavelengths between 1000 and 3000 nm. You have a number of different gratings that you can pick from, each with a different *d*. What are a few examples of a bad choice for *d*? What is an example of a good choice for *d*?

```{exercise}
:label: prob-2-10
:enumerator: 2.10

**(Advanced Problem)**

- (a) Using your favorite numerical program, numerically find and plot the wavelength of maximum spectral wavelength ($\lambda _{\text{peak}}$) for temperatures between 3000 and 6000 K in steps of 100 K.[^6]
- (b) Fit your data to b/T to find b. Be sure to use the speed of light accurate to, at least, 5 digits.
Footnotes
  1. I feel like this might be the understatement of the millennium.

  2. Boltzmann’s constant was named by Max Planck in honor of the Austrian physicist and philosopher Ludwig Boltzmann.

  3. The units are, admittedly, confusing! As a rough interpretation, you can think of these units as telling you how much light is being emitted from a blackbody at a given wavelength. If you look at Figure 3, there is more light being emitted at 500 nm than 700 nm, so the spectral radiant exitance is larger at 500 nm. This is what we mean by “per unit wavelength.”

  4. Named after the Carinthian Slovene physicist, mathematician, and poet Josef Stefan, who empirically found the relationship, and Austrian physicist and philosopher Ludwig Boltzmann, who derived the equation.

  5. Spectral radiant exitance is the radiant flux emitted by a surface per unit area per unit wavelength. Spectral irradiance is the radiant flux received by a surface per unit area per unit wavelength. You can think of spectral radiant exitance as what leaves the sun and spectral irradiance as what hits the earth.