# How does light know which path is fastest?

We know from Fermat's principle of least time that light follows the fastest path. But how does light know which path is the fastest?

-
Use semiclassical expansion of QED to derive Fermat's principle. Related: physics.stackexchange.com/q/2041/2451 and physics.stackexchange.com/q/29528/2451 – Qmechanic Mar 31 '13 at 18:50

A way to understand this, is to imagine that light actually follows all paths. However, most paths experience destructive interference with other paths. The only paths that do not experience destructive interference are those in the neighbourhood of paths with stationary (e.g., minimal) action (time).

I strongly recommend reading Feynman's QED: The Strange Theory of Light and Matter. In the link you'll also find a link to video.

-
I would like a mathematical explanation please.. – TanMath Jan 17 '15 at 6:48
@TAbraham Perhaps start reading here: en.wikipedia.org/wiki/… – Keep these mind Jan 17 '15 at 10:42
@TAbraham Fermat's principle is the mathematical explanation. – Chris Mueller May 12 '15 at 15:56

The Fermat principle does not say light ray follows the fastest path, it says when there is a light ray, the optical path (length divided by index of refraction) is stationary with respect to small variations in the shape of the ray that preserve the position of the boundary points.

It is not as if light got everywhere the fastest way possible; it goes where directed by the source and surrounding medium. The effect of the medium is such that the resulting path obeys the criterion of stationarity with respect to small variations. In some cases, the optical path is the shortest for the pair of boundary points, in other cases (less common) it is the longest and there may be cases where it is neither (like when stationary point is a saddle point).

-