In optics, a diffraction grating is an optical component with a periodic structure, which splits and diffracts light into several beams travelling in different directions. The directions of these beams depend on the spacing of the grating and the wavelength of the light so that the grating acts as the dispersive element. Because of this, gratings are commonly used in monochromators and spectrometers.
A photographic slide with a fine pattern of purple lines forms a complex grating. For practical applications, gratings generally have ridges or rulings on their surface rather than dark lines. Such gratings can be either transmissive or reflective. Gratings which modulate the phase rather than the amplitude of the incident light are also produced, frequently using holography.
The principles of diffraction gratings were discovered by James Gregory, about a year after Newton's prism experiments, initially with artifacts such as bird feathers. The first man-made diffraction grating was made around 1785 by Philadelphia inventor David Rittenhouse, who strung hairs between two finely threaded screws. This was similar to notable German physicist Joseph von Fraunhofer's wire diffraction grating in 1821.
Diffraction creates the "Rainbow" colors reflected from a Compact Disc (see Examples, below). A grating has parallel lines, while a CD has a spiral of finely-spaced data tracks. Diffraction colors also appear when one looks at a bright point source through a translucent fine-pitch umbrella-fabric covering. Decorative patterned plastic films based on reflective grating patches are very inexpensive to produce, and very commonplace.
Read more about Diffraction Grating: Theory of Operation, Gratings As Dispersive Elements, Fabrication, Examples