= Fermat's principle
{c}
{title2=$\delta\int n\,ds=0$}
{wiki}
= Fermat principle
{c}
{synonym}
<Fermat's principle> characterizes a <light ray> between fixed endpoints by stationary travel time, or stationary <optical path length> in a stationary isotropic medium. With <refractive index> $n(\mathbf x)$ and path element $ds$, the travel time is $T=c^{-1}\int n\,ds$, so an allowed ray has vanishing first variation of this integral. Stationary does not always mean the globally shortest time.
For a planar interface between two uniform media, vary the point at which a broken straight path crosses the interface. Setting the travel-time <derivative> to zero gives $n_1\sin\theta_1=n_2\sin\theta_2$, <Snell's law>, with angles measured from the normal. This makes the link between a variational statement and an observable direction of <refraction> explicit. The <geometrical optics> description requires scales large enough compared with the <wavelength>; <diffraction> supplies effects that a single ray cannot describe.
Back to article page