In optics, a ray is an idealized narrow beam of light. Rays are used to model the propagation of light through an optical system, by dividing the real light field up into discrete rays that can be computationally propagated through the system by the techniques of ray tracing. This allows even very complex optical systems to be analyzed mathematically or simulated by computer. Ray tracing uses approximate solutions to Maxwell's equations that are valid as long as the light waves propagate through and around objects whose dimensions are much greater than the light's wavelength. Ray theory does not describe phenomena such as interference and diffraction, which require wave theory (involving the phase of the wave).

## Interaction with surfaces[]

- An incident ray is a ray of light that strikes a surface. The angle between this ray and the perpendicular or normal to the surface is the angle of incidence.
- The reflected ray corresponding to a given incident ray, is the ray that represents the light reflected by the surface. The angle between the surface normal and the reflected ray is known as the angle of reflection. The Law of Reflection says that for a specular (non-scattering) surface, the angle of reflection always equals the angle of incidence.
- The refracted ray or transmitted ray corresponding to a given incident ray represents the light that is transmitted through the surface. The angle between this ray and the normal is known as the angle of refraction, and it is given by Snell's Law. Conservation of energy requires that the power in the incident ray must equal the sum of the power in the transmitted ray, the power in the reflected ray, and any power absorbed at the surface.
- If the material is birefringent, the refracted ray may split into ordinary and extraordinary rays, which experience different indexes of refraction when passing through the birefringent material.