Fermat’s principle is a principle of optics stating that the path followed by a light ray between fixed endpoints makes the optical path length stationary with respect to small variations of the path. In a stationary, isotropic, nondispersive medium, this is equivalent to making the travel time stationary. Although traditionally called the principle of least time, it does not require every physical ray to take the absolute shortest time: stationary paths may be local minima, maxima, or saddle points. The principle provides a unified description of straight-line propagation, reflection, and refraction.
Mathematical formulation
For a path connecting points and , the optical path length is
where is the refractive index at position , and is an element of geometrical distance. Optical path length has dimensions of length; it equals geometrical length multiplied by refractive index in a uniform medium.
Fermat’s principle is expressed as
with the endpoints held fixed. The symbol denotes a variation of the entire path, rather than a change in a single coordinate.
If the local propagation speed is , where is the speed of light in vacuum, then
Thus stationary optical path length and stationary travel time are equivalent under these assumptions. The interpretation requires more care in dispersive media, where phase propagation and pulse propagation have different velocities.
What “stationary” means
Consider a family of nearby paths , with representing the ray. Stationarity means
The first-order change in optical path length therefore vanishes. This does not establish whether the second-order change is positive, negative, or dependent on the direction of variation.
The distinction matters in systems containing curved mirrors, focusing elements, or multiple ray paths. More than one stationary path may connect the same endpoints, and the observed ray need not be the global minimum among all imaginable curves. For reflected or transmitted rays, the variations must also respect the relevant optical configuration, such as encountering a specified reflecting surface.
Reflection and refraction
Straight-line propagation
In a homogeneous, isotropic medium, is constant, so stationarity reduces to that of geometrical path length:
In ordinary Euclidean space without additional constraints, the resulting ray is a straight line. This explains why light propagates rectilinearly in a uniform medium but may curve when the refractive index varies with position.
Law of reflection
Suppose a ray travels from , reflects at a point on a plane mirror, and reaches . In a uniform medium, its optical path length is
Varying along the mirror and requiring stationarity yields
where the angles of incidence and reflection are measured from the surface normal. The incident ray, reflected ray, and normal lie in the same plane.
For a plane mirror, the construction can also be understood by reflecting one endpoint across the mirror: the broken reflected path then corresponds to a straight path to the reflected endpoint.
Snell’s law
For refraction at a plane interface between two homogeneous media,
where and are the distances traveled in the two media. Varying the crossing point along the interface gives Snell’s law:
A ray entering a medium with a higher refractive index bends toward the normal. The stationary path balances geometrical distance against the different propagation speeds; it generally is not the shortest geometrical route.
When , a real transmitted ray exists only when
Beyond the critical angle, geometrical transmission is replaced by total internal reflection. The electromagnetic field near the boundary still includes an evanescent field, which the elementary ray-path description does not represent.
Rays in continuously varying media
Fermat’s principle also describes propagation through a smoothly varying refractive index. Parameterizing a path by an arbitrary parameter gives
Applying the calculus of variations yields the ray equation
where is arc length. Writing the unit tangent as , this becomes
Only the component of the refractive-index gradient perpendicular to the ray changes its direction. In an isotropic medium, rays therefore curve locally toward increasing refractive index.
This behavior underlies atmospheric mirages and graded-index optical systems. Variations in temperature and pressure can produce refractive-index gradients in the atmosphere; deliberately engineered gradients can guide light in lenses and optical fibers.
Connection with wave optics
Fermat’s principle belongs primarily to geometrical optics, the approximation in which wavelength is small compared with the characteristic scales of the optical system. Its physical basis can be understood through wave phase and interference.
For monochromatic light of vacuum wavelength , the accumulated propagation phase along a path is
Nearby paths generally have different phases. In high-frequency wave descriptions, contributions from paths whose phase changes rapidly tend to cancel through interference, while neighborhoods of stationary-phase paths can contribute prominently. The stationary-phase condition is therefore equivalent to stationary optical path length.
This is an asymptotic connection, not a claim that light consciously selects a route or that a ray is an exact description at every scale.
The eikonal equation
A monochromatic scalar field can be approximated by
where varies slowly, , and is the optical eikonal. At leading order in the short-wavelength approximation,
This is the eikonal equation. In an isotropic medium, rays are normal to surfaces of constant , which are wavefronts.
The eikonal description can be derived from wave equations associated with Maxwell’s equations. It connects Fermat’s variational statement to the local evolution of optical phase.
Historical development
Ancient treatments of reflection already connected reflected paths with shortest-distance constructions. Heron of Alexandria is associated with a minimum-distance argument for reflection from a plane mirror.
In the seventeenth century, Pierre de Fermat extended this style of reasoning from distance to travel time. In 1662, he used a least-time principle to derive the law of refraction, taking light to travel more slowly in the optically denser medium.
The principle subsequently became part of a broader mathematical relationship between optics and mechanics. In classical mechanics, variational principles identify physical trajectories through stationarity of action. Optical path length plays an analogous role for rays. This correspondence was developed particularly through Hamilton’s work on optics and dynamics and helped establish the methods of Hamiltonian mechanics.
The modern term stationary optical path is more general and precise than the historical phrase least time.
Applications
Fermat’s principle is used to derive and analyze ray trajectories rather than merely to restate individual optical laws.
- Optical design: Stationary optical paths determine how rays pass through combinations of lenses and mirrors. Equal optical path lengths from a point source to an ideal image point are associated with coherent focusing.
- Ray tracing: Numerical methods calculate ray trajectories through piecewise-uniform or continuously varying media, using interface laws or differential ray equations.
- Graded-index systems: Spatially controlled refractive-index profiles can bend rays without requiring a sequence of sharply curved interfaces.
- Atmospheric propagation: Index variations explain curved ray paths, mirages, and changes in the apparent positions of distant objects.
- Travel-time methods: Analogous stationary-time principles are used for acoustic and seismic rays, with wave speed replacing optical propagation speed.
In gravitational lensing, a generalized Fermat principle identifies images with stationary points of an arrival-time function. Such stationary points may be minima, maxima, or saddles. Its formulation involves curved spacetime and gravitational time delays, rather than simply a material refractive index.
Scope and limitations
Dispersion and pulse travel time
In a medium exhibiting dispersion, refractive index depends on frequency. At a fixed frequency, the usual optical-path formulation uses the phase refractive index:
The travel time of a narrowband pulse instead depends on group propagation. In a transparent isotropic medium, the group index is
Consequently, stationary phase optical length must not automatically be interpreted as a minimum pulse travel time.
Diffraction and caustics
When apertures, obstacles, or material structures have dimensions comparable to the wavelength, diffraction becomes important. A single ray path cannot describe the full field.
At a caustic, neighboring rays converge or form an envelope, and elementary ray-amplitude formulas can become singular. Wave treatments remain necessary to calculate the finite field and its interference structure.
Anisotropic and more general media
The scalar expression assumes isotropic propagation. In anisotropic materials, such as crystals exhibiting birefringence, propagation depends on direction and polarization. Energy-flow direction need not coincide with the wave normal, and generalized variational formulations are required.
Absorbing, moving, or time-dependent media also require additional care. The elementary fixed-endpoint expression alone does not determine attenuation, frequency changes, or the full electromagnetic behavior.
Finally, Fermat’s principle determines possible ray paths, not their intensities, phases upon reflection, polarization changes, or division of energy at an interface. Those properties require additional wave and electromagnetic relations.