“The diffraction grating is a useful device for analyzing light sources. It consists of a large number of equally spaced…