Some things can make rainbows. 

Tiny lines can split light. 

A diffraction grating is a tool that splits light. It has many tiny, repeating parts. These parts can be small slits or tiny ridges. 
When light hits the grating, it spreads out. This spreading is called diffraction. The light travels in different directions. These directions are called diffraction orders.
Some gratings are reflective, like a mirror. Others are transmissive, which means light passes through them. 
This tool makes rainbow colors. This happens because different colors of light bend at different angles. You can see this on a CD. The tiny tracks on a CD act like a grating. 
People have studied this for a long time. James Gregory saw these patterns in bird feathers. Later, David Rittenhouse made the first human-made grating. He used hairs between two screws. Scientists like Joseph von Fraunhofer used gratings to study light. He was the first to measure the wavelengths of light lines.
A diffraction grating is a special tool used to split light. It has a repeating structure made of many tiny parts. These parts can be narrow slits or small ridges. 
How does a grating work? It all depends on how the light waves interact with the tiny slits or ridges. The light hits the grating and acts like many tiny sources of waves. 
People have studied these patterns for a long time. James Gregory observed these patterns in bird feathers in 1673. He found a natural version of a grating. 
Many famous scientists used gratings to learn more about our world. Joseph von Fraunhofer used a wire grating in 1821. He was the first to use a grating to find line spectra. He also measured the wavelengths of those lines.
You can see diffraction in your own home. A CD or DVD has tiny tracks that act like a grating. These tracks create rainbow colors when light hits them. 

A diffraction grating is an optical tool with a periodic structure of a specific scale. This structure allows it to diffract light or other electromagnetic radiation into several beams. These beams travel in different directions, which are known as diffraction orders. 
The mechanism of a grating relies on how light waves interact with its surface. A grating can be either reflective, like a mirror, or transmissive, like a lens. 
To understand the physics, we look at the grating equation. This equation relates the grating spacing, the angle of the incident light, and the angle of the diffracted wave. 
There are several distinct types of gratings based on how they affect light. Transmission amplitude gratings periodically modulate the intensity of light passing through them. Reflection amplitude gratings modulate the intensity of light that is reflected. There are also phase gratings, which can be either transmission or reflection types. These gratings modulate the phase of the waves rather than just the intensity. Most gratings feature parallel lines, but two-dimensional or three-dimensional gratings also exist. These complex structures are used for specialized tasks like wavefront measurement.
The history of diffraction is filled with important discoveries. James Gregory observed diffraction patterns in bird feathers around 1673. This was the first discovery of a natural diffraction grating.
Scientific progress in grating manufacturing led to incredible precision. Joseph von Fraunhofer was the first to use a grating to obtain line spectra. He was also the first to measure the wavelengths of those spectral lines.
You can see the effects of diffraction in many everyday objects. A compact disc (CD) or DVD contains a spiral of finely spaced data tracks. These tracks act as a grating and create rainbow-like colors when light hits them. 
🖼️ Images & Media (14)
+ 2 more
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.