Skip to main content

Grating Challenge

The Grating Challenge

side by side photo of two gratings with the SUNY Cortland logo, one with a white border and one with a red border

This page contains hints, solutions, and advanced challenges for our diffraction grating challenge. If you would like a grating (or a set for your class if you are a teacher), please contact us at physics@cortland.edu with a request and we will get that sent to you asap.


Our challenge to you: Find a way to measure the spacing between the grooves in this grating. Note that the challenge printed on the back of the slides suggests that you use an LED. A white light also works very well, and is the path shown in the hints below.

The larger idea is that once you know the groove spacing or, equivalently, the number of grooves per centimeter or inch, you could use this grating as a simple spectrometer to make detailed studies of spectra of light from different sources. For example, many satellite observatories (James Webb, Hubble, Kepler, TESS, Pandora, Ariel) have sensitive spectrometers that can measure very faint variations in light spectra due to molecules in the atmospheres of extra-solar planets (that is, planets around far-away stars), which can help us determine whether these planets can possibly sustain life!

Hints

What is a grating, actually?

A grating (or more properly, a diffraction grating) is an object with a patterned surface that causes light to diffract. For visible light, these structures are microscopic, but tall buildings in a city can act like a diffraction grating for radio waves. Gratings can be made by creating variations in the thickness of an object (physically etching a surface), by creating variations in the material composition or density, or by creating variations in the opacity (transmission or tint) of a surface. Your grating has a surface that is textured with small grooves that change the thickness ever so slightly.

a diffraction grating observed under a microscope

The image at the left is the surface of one of our gratings under 80x magnification, taken by Physics Department Lab Technician, Zach Eridani. The image shows many microscopic grooves. The variations in thickness of the surface intoduce a spatial modulation of the phase of the wave, which results in a bending of the wavefront (the direction of propagation) of light, where the magnitude of the effect depends on wavelength.


How do I use a grating?

WARNING: Do not look at the sun or any other bright light with the grating - it does not offer any kind of protection for your eyes.

The obvious way to use the grating is look through the grating at a light source. If you look at a white light, you will see a rainbow pattern to the sides of the light source.

fluorescent lights in Bowers hall viewed through a diffraction grating

The fluorescent lights in Bowers hall show clear rainbow patterns, with surprisingly sharp lines between the colors (why is this?).


an EXIT sign in Bowers hall viewed from below and through a diffraction grating

An EXIT sign viewed from below creates a line source of red light. The diffraction pattern also only shows red light.

Where do I start?

A good place to start with a new puzzle is to play around with it and learn a thing or two. You can start by looking at a light source (not the sun and nothing very bright) through the grating and changing the setup to infer how it behaves.

Click to reveal some starter questions

  • Is the pattern of colors repeatable? That is, does red always appear in the same location relative to blue (for example), independent of which kind of light you look at, or is it more complicated than this?
  • How does the pattern vary as the grating is moved closer to or further from the light source?
  • How does the pattern vary the grating is moved closer to or further from your eye?
  • What happens to the pattern as you tilt the grating relative to the plane of your face?
  • Is there a proper orientation to the grating? That is, what happens when the grating is rotated? What happens when the grating is flipped over and you look through the back of the slide?

The grating equation

Let's start by examining the equation that is printed on the back of the slide we sent you. That equation is

d sin(θ) = λ,

where d is the spacing between the grating lines, θ is the angle at which the light bends (measured relative to the straight-forward direction), and λ is the wavelength of light. If you are familiar with this equation, you may notice that the right-hand side of this equation is often written as n λ, where n is a positive or negative integer (including zero). While that is entirely correct, we are going to limit this analysis to the case where n=1, which is referred to as the first-order diffraction band. If you put the grating close to your eye you should be able to another band further to the side that is fainter - this is the the second order (or n=2) band, but it is not useful for the purposes of this challenge.

The not-so-obvious way to use the grating

While holding the grating in front of your eye is a good demonstration of the effect of the grating, it does not work particularly well for measuring an angle. If passing light through the grating toward our eyes is not the path to the solution, it must be that the path to a solution requires that we turn the system around and let the light head away from our eyes.

Click to reveal a picture of our measurement setup

our grating setup

The bands you will be looking for are fairly faint, so you will likely want to set this up in a dark room or use the inside of a cardboard box. We used the darkened space of our planetarium for this project. Our light source is the flashlight on a cell phone, which is leaning against a brick. Light passes through the grating and onto an observation screen, which was 20 cm from the grating. We taped a ruler across the image so that we could directly measure the band positions from the photos, but you can just mark the color bands with a pencil on a paper and measure afterward.

Help! I only see only white light on my observation screen.

picture showing a broad white light pattern on a screen when using the full diffraction grating

You are seeing a broad white pattern because the wide area of the grating is admitting too much light and your diffraction pattern is getting washed out by the broad background light. To make this work you have to limit the region through which light passes.


How do I limit the amount of light through the grating?

picture showing a the grating with an a linear aperature formed from two sticky notes attachd to the slide

An object that limits the amount or extent of light entering an optical system is called an aperture. You can create an simple and effective linear aperture by attaching two sticky notes to the grating. Note that the direction of the aperture matters. It might be interesting to see what happens with the aperture oriented perpendicular to that shown here.


Measuring the angle

To determine the angle from the grating to the observation point you will need to make some measurements. A good way to do this is to make some marks on a paper and then measure the positions afterward. If you aren't sure how to do this, take a look at our setup under the previous hint and consider doing something similar.

I can measure position, but how do I get an angle?

For this, we will need to use some trigonometry. Or a protractor if you have one, but getting a good estimate of the angle might not be so easy given that you protractor is on one plane and the observation screen is on another plane.

To do this using trig, we also need to know the distance from the grating to the observation screen. Calling the position of a particular color x and the distance from the grating to the screen L, we have tan(θ) = x/L. You can now solve this equation for θ by using the inverse tangent function (arctan). Alternatively, since we know that we need sin(θ), we can use the Pythagorean theorem to get the hypotenuse of the triangle, which allows us to develop an equation for sin(θ).

Click here for the trigonometry

trig analysis for the measurements

For small angles, we can use the approximation that sin(θ) ≈ x/L. Of course, this is not perfect, but the error from this approximation is likely quite a bit less than the uncertainty from our experimental setup, so it doesn't make sense to worry about it.

What values do I use for the wavelengths?

Unless you have a calibrated light source, this part takes a little guesswork or some further research. Very roughly, the visible spectrum spans 400 nm (violet) to 750 nm (red). Below that is the UV spectrum and above that is the IR spectrum. To start, you can mark off the boundaries of your spectrum. If you don't see violet, but see something more of a blue color, then you may want to adjust the short wavelength limit to be about 475 nm (blue is considered to be in the range of about 450-500 nm). The greens are roughly in the range of 500 to 570 nm. If you have normal vision (not color blind), then you can mark off the green region as well and use that for additional data points.

Further research

The flashlight on your cell phone likely uses a single white LED that produces a continuous spectrum of light of different color. Using this light means that we have to make some educated guesses about the wavelengths we see. While decent, they are nonetheless guesses.

close-up image of RGB pixels in a computer screen

Alternatively, if you were to use the light from a white image on the screen of your cell phone, you would see that the diffraction pattern has three distinct color bands in the red, green, and blue. This is because color on our screens is produced by a combination of red, green, and blue pixels. When these pixels are small enough, they blend together to create what appears to us to be a uniform color.
Image credit: The Exploratorium


You could do some research on the wavelengths of these LEDs (they are pretty standard) and try to use the light from a white screen to make more precise measurements.


Solutions

Analyzing the data

The simplest place to start is to calculate d for each color using the angle and wavelength data. There are more sophisticated ways to do this kind of analysis that attempt to eliminate systematic errors (bias), and one could include additional data points, but this is good enough for a start.

Solving the grating equation for the groove spacing gives d = λ / sin(θ). Recalling that sin(θ) ≈ x / L for small angles, an approximate solution combining all measured terms is d ≈ λ L / x.

Click here for a sample calculation

photo of the diffraction pattern from a white light source

The picture of our setup, using the grating with a linear aperture, shows nice bands of color to either side of the white part in the middle. We added a black strip of paper down the center so that the photo did not saturate due to the bright light reflected from this region, but you won't need to do that. The center of the diffraction pattnern is close to the 14 cm mark. We see that the nearest edge of the violet band is about 4.0 cm from the center and the far edge of the red band is about 7.5 cm from the center. The grating was placed 20 cm from the observation plane.


violet light: d ≈ (400 nm)(20 cm)/(4.0 cm) ≈ 2.0 μm

red light: d ≈ (750 nm)(20 cm)/(7.5 cm) ≈ 2.0 μm

Alternatively, had we used the exact formula for sin(θ) we would have calculated 2.0 μm and 2.1 μm, respectively. Note that μm is a micrometer, which is equal to 1 /1000th of a mm. Expressed as a number of lines per unit length, 2.0 μm between lines is equivalent to 500 lines/mm, 5000 lines/cm, or 1970 lines/inch.

What is the actual answer?

According to the manufacturer, these gratings have 500 lines per mm, equivalent to 2.0 μm between lines.

The moral of the story

Hopefully you learned something new as you worked on this project. This kind of thing is representative of what we aim to teach you in the Physics program at SUNY Cortland. There are a few important "morals" to this story:

  1. Seemingly simple things get deep very quickly, especially if one has ambition to do something precise and quantitative. This is why scientists and engineers get paid good money to do what they do.
  2. Success in a project like this requires a combination of (1) theoretical understanding that allows us to see the relationships between different things and allows us to simplify models, and (2) physical intuition that allows us to do real things in the real world.
  3. Don't expect your first go at something to lead you to instant success. Physics is best approached as an iterative process. Patience and perseverance are the real keys to success, in physics and life more generally.