In
optics,
Fermat's principle or the
principle of least time is the principle that the path taken between two points by a
ray of light is the path that can be traversed in the least time. This principle is sometimes taken as the definition of a ray of light.
[1] However, this version of the principle is not general; a more modern statement of the principle is that rays of light traverse the path of stationary optical length with respect to variations of the path.
[2] In other words, a ray of light prefers the path such that there are other paths, arbitrarily nearby on either side, along which the ray would take almost exactly the same time to traverse.
[3]