If denotes a unit vector along an incident ray, a unit vector along the refracted ray into a medium of refractive index ' ' and a unit vector normal to the boundary of the media directed towards the incident medium, then the law of refraction can be written as