Why does a clear prism spread a white beam into a rainbow on the wall?
Shine a thin beam of white light through a glass prism and a band of colours appears on the wall. Where were those colours before the beam reached the glass?
Start with the boundary between air and glass. The dashed normal is at right angles to the surface. Follow the ray into the glass: it slows down and bends towards the normal. You measure both the angle of incidence and the angle of refraction from that dashed line.
Send a narrow white beam straight into the first face so it enters without bending. At the sloping face, the rays bend away from the dashed normal as they leave the glass. Follow red and violet to the screen. Violet turns farther from the original beam direction than red.
Use the original direction of the white beam as your reference. After the light leaves the prism you've just seen, which colour has turned through the greater angle? Pick one answer.
This separation is called dispersion. In ordinary glass, refractive index depends on wavelength. Violet has a shorter wavelength in air than red and a higher glass index, so it bends more here. Does the prism make colours? A single red wavelength still comes out red. The wavelengths were already there.
Apply Snell’s law at the exit face. Take the air index as one. The sine of the incidence angle is zero point six for both rays. Multiply by the glass index for red, then for violet. Use inverse sine to find each exit angle from the normal. Violet’s is larger.
Keep the glass index for violet at one point five six and take the air index as one. This time the sine of the angle of incidence is zero point five. Pick the sine of the angle the violet ray makes with the normal as it leaves.
The visible band is one part of the electromagnetic spectrum. Read down from radio waves: wavelengths generally get shorter and frequencies higher. Compare the uses and where ionisation becomes possible. The highest-energy ultraviolet can ionise, as can X-rays and gamma rays. The X-ray and gamma ray ranges can overlap.
If the exam asks you to explain dispersion, start with the wavelengths already present in white light. At the exit face, they refract by different amounts because the glass index depends on wavelength. Violet has a higher index than red, so it bends more. The prism separates the existing colours.