In optics, a prism is a transparent optical element with flat, polished surfaces that refract light. The exact angles between the surfaces depend on the application. The traditional geometrical shape is that of a triangular prism with a triangular base and rectangular sides, and in colloquial use "prism" usually refers to this type.
Some types of optical prism are not in fact in the shape of geometric prisms. Prisms are typically made out of glass, but can be made from any material that is transparent to the wavelengths for which they are designed.
A prism can be used to break light up into its constituent spectral colors (the colors of the rainbow). Prisms can also be used to reflect light, or to split light into components with different polarizations.
[b]How prisms work[/b]
Light changes speed as it moves from one medium to another (for example, from air into the glass of the prism). This speed change causes the light to be refracted and to enter the new medium at a different angle (Huygens principle). The degree of bending of the light's path depends on the angle that the incident beam of light makes with the surface, and on the ratio between the refractive indices of the two media (Snell's law). The refractive index of many materials (such as glass) varies with the wavelength or color of the light used, a phenomenon known as dispersion. This causes light of different colors to be refracted differently and to leave the prism at different angles, creating an effect similar to a rainbow. This can be used to separate a beam of white light into its constituent spectrum of colors. Prisms will generally disperse light over a much larger frequency bandwidth than diffraction gratings, making them useful for broad-spectrum spectroscopy. Furthermore, prisms do not suffer from complications arising from overlapping spectral orders, which all gratings have.
Prisms are sometimes used for the internal reflection at the surfaces rather than for dispersion. If light inside the prism hits one of the surfaces at a sufficiently steep angle, total internal reflection occurs and all of the light is reflected. This makes a prism a useful substitute for a mirror in some situations.