If the integrand has no explicit dependence on its independent variable , its Euler-Lagrange equations imply the displayed first integral. Indeed, differentiate the left side and cancel the second-derivative terms to obtain . This is the several-variable form of the Beltrami identity. Applied to Fermat principle, it expresses conservation of the component of the optical momentum of a ray along a translation-invariant direction.
For height and horizontal position , Fermat principle in a positive index profile , , conserves on a graph . For positive magnitude of the horizontal optical momentum, integration gives the displayed catenary. Its minimum height is , at . Thus produces a smooth turning ray wholly above a road at . The two graph branches have opposite signs of ; continues smoothly through their common horizontal tangent. For a signed negative graph constant, use in the prefactor; gives a vertical ray separately.
Figure 1.
A catenary light ray turns smoothly above a hot road
. Dimensionless coordinates and show the case . The refractive index increases with height, and the light ray turns at . Details.
For speed , Fermat principle and the Beltrami identity yield circular light rays whose centres lie on . The ray between in the upper half-plane is .
For a positive refractive index depending only on , Fermat principle applied to has as a cyclic coordinate. The Euler-Lagrange equation therefore makes the displayed quantity constant along a stationary ray. When , its slope is . If is the angle to the axis, this is conservation of , the stratified-medium form of Snell's law. For fixed endpoint values, the integrand has second derivative with respect to . Its strict convexity and the constant momentum show, by the tangent-line inequality and integration, that any such ray is the unique minimum among competing graph paths with the same endpoints.
Geometrical optics Created 2026-10-05 Updated 2026-10-14
Geometrical optics describes propagation by rays and Snell's law, neglecting diffraction on scales much larger than the wavelength.
A light ray is a path in an approximation, not a physical thread of zero width. In a transparent, homogeneous, isotropic medium it is straight and perpendicular to a wavefront; boundaries redirect it by the law of reflection or Snell's law. The approximation is useful when the wavelength is small compared with relevant apertures, surface curvature scales, and distances over which the refractive index changes. For an illustrative wavelength of and a aperture, their ratio is . That small ratio supports ray tracing for image location, but does not eliminate diffraction when calculating the fine structure of a focused spot. At a wave caustic, geometrical optics can fail despite large optical elements. [ref].
The mechanism of refraction is a change in phase velocity. For transparent isotropic media at the chosen frequency, the refractive index is
where is the vacuum speed of light and the angles are measured from the interface normal vector. At a stationary planar interface the frequency and tangential wavevector match across the boundary. Since the wavenumber is , that matching gives Snell's law. The transmitted wavelength changes while the frequency stays fixed. Here uses phase velocity, which need not equal group velocity. [ref]. [ref].
Choose model air with and model glass with , without claiming these are exact values for every sample or wavelength. At , Snell's law gives
The transmitted light ray bends toward the normal vector; its phase velocity is , and its wavelength is two thirds of the air value. By reversibility of an optical ray, incidence from glass at returns the outgoing air angle .
Incidence from glass at is a different experiment. It would require , so there is no real transmitted angle. The critical angle for total internal reflection is
Above this angle, an ideal lossless glass-air boundary produces total internal reflection. The physical optics description still permits an evanescent wave in the air, although no propagating transmitted light ray crosses the boundary. [ref]. [ref].
Figure 1.
Refraction into glass and total internal reflection on incidence from glass; all angles are measured from the normal
. Details.
The usefulness of geometrical optics is that complicated instruments can be assembled from these local rules. Applying Snell's law at successive curved surfaces changes a spreading bundle into a converging one. The Fermat principle unifies the construction through stationary optical path length; stationarity does not require a global minimum. [ref]. Fang's MIT notes explicitly connect this principle to specular reflection, refraction, and thin lens imaging, providing a route from individual paths to complete instruments. [ref].
For a positive refractive index in cylindrical coordinates, a light ray with constant radius and varying axial coordinate has the form when it exists. Fermat principle makes stationary. Conservation of the momentum conjugate to the cyclic angle makes constant along a constant-radius path. The radial Euler-Lagrange equation is then
giving the displayed formula. A nonzero real helix requires . If , gives a straight axial light ray; a generic radial profile need not support a constant-radius helix. Its helical pitch is . This ray model is useful for a graded-index optical fiber when the refractive index varies smoothly and geometrical optics applies; it does not by itself impose wave-mode quantization or boundary confinement.
Light ray Created 2026-10-07 Updated 2026-10-14
A path of light propagation in the geometrical optics approximation. In a smoothly varying propagation speed, Fermat principle makes its travel time stationary.
Optical momentum of a ray 2026-10-20
For a light ray parametrized by arc length , with unit tangent vector in a smooth positive refractive index , the optical momentum is . This is the momentum for optical path-length normalization. The Euler-Lagrange equation for Fermat principle, , gives . Therefore an index independent of conserves . In coordinates this is , the first integral supplied by the Beltrami identity for several dependent variables.
Optical rays in a reciprocal-height refractive index Created 2026-10-20 Updated 2026-10-24
For the refractive index on the upper half-plane, Fermat principle and the Beltrami identity give . The nonvertical rays are arcs of circles centered on ; vertical lines are the remaining rays. These are also geodesics of the Poincaré half-plane model. A ray entering the strip toward decreasing at angle to the vertical has limiting horizontal displacement , at most one. The line is approached only after infinite optical path length because the refractive index diverges there.
For positive differentiable speed and a smooth ray written as a graph , the Fermat principle minimizes travel time
A variation vanishing at the endpoints gives the Euler-Lagrange equation for . Its derivatives are and . Thus
and multiplying by gives
The displayed differential equation requires differentiability, beyond mere continuity of . For constant positive speed it reduces to , so rays are straight lines; a straight segment minimizes travel time because it has the shortest Euclidean length.
For in the positive-height region, the Beltrami identity gives . Hence , whose nonvertical solutions are . Formally imposing the given boundary points fixes , , and gives the ray in a linear-speed medium
It is the upper semicircle of diameter one, with vertical limiting tangents at its endpoints.
Figure 1.
Formal semicircular ray with zero-speed ideal endpoints in the linear-speed medium
. Details.
There is a necessary endpoint qualification. The speed is zero at the two stated endpoints. For any rectifiable path entering positive height, , and its travel time diverges logarithmically on leaving or approaching height zero. Thus the semicircle is the formal interior ray, but there is no finite-time minimizer between the zero-speed endpoints. For endpoints at height the circular ray has radius and finite travel time , which tends to infinity as . This explains the intended semicircle as a limiting hyperbolic geodesic, without asserting finite travel time where .
For an integrand with no explicit dependence, the Euler-Lagrange equation is . Differentiate the proposed first integral:
Thus is constant along an extremal, the Beltrami identity.
For the optical path the Fermat principle uses the travel-time integrand , in the stated speed units. Its first integral is
Set . Then , and integration gives on a positive arch. The symmetric endpoint conditions require and . For and , the resulting ray in an exponential-speed medium is
It is above zero inside the endpoints. Substitution also verifies the Euler-Lagrange equation , so the first-integral construction does not accidentally select a spurious constant-height path.
Figure 1.
Stationary light rays in an exponential-speed medium, including a near-critical arch
. Details.
Here . For close to , the endpoint slopes are steep and the central height is large. The travel time evaluates directly to
It tends to as the arch height diverges. Positive is the increasing-speed interpretation needed for a ray arching into ; for the same algebraic expression bends below that region and is not an admissible interior path. At zero the limiting straight boundary path has travel time .
For variations with , integration by parts gives . Since this vanishes for every such variation, the Euler-Lagrange equation is
When is independent of , it has the first integral .
For a ray represented as a graph traversed with increasing , the travel time is , with . By Fermat principle, use . The first integral becomes
The sign of is constant, and makes it positive. Write with and solve to obtain
A finite slope requires in the interior; a limiting vertical tangent is possible at an endpoint.
For and , positive speed on the whole interval and select and . The slope is . Integrating backwards from gives
so , with the branch . The endpoint integral is finite despite the vertical tangent. The specified value fits the first endpoint precisely when ; for other endpoint data the preceding integral determines a different .
The Euler-Lagrange equation is . Since has no explicit dependence,
Thus a stationary curve satisfies the Beltrami identity, .
By Fermat principle, the light ray makes the travel time stationary. Its Beltrami identity becomes
Writing and integrating the resulting first-order equation gives . Both endpoints have height zero, so subtracting their equations gives , and then . The arc lying in is
Its maximum height is . The ray rises into the faster region before returning to the boundary; its circle centre is . The prescribed boundary endpoints are understood by continuity from the open half-plane. This is the circular light ray in a linear speed profile.
Figure 1.
Circular light ray arching into a region where propagation speed increases with height
. Details.
First integral. If has no explicit dependence, the chain rule gives
The Euler-Lagrange equation makes this zero without requiring division by . Hence the Beltrami identity is
Optical paths. By Fermat principle, a ray makes the optical path length stationary. Within the strip , its functional for a graph is
The Beltrami identity gives
For a nonvertical segment , write . Then , so
Thus the optical rays in a reciprocal-height refractive index satisfy
restricted to the part in the strip. They are arcs of circles centered on . Vertical lines are the additional solutions, obtained as a limiting case or directly from the constant horizontal optical momentum. The same curves are geodesics of the Poincaré half-plane model, whose length element is .
Horizontal displacement. Let the ray enter at , travelling to the right and downward at angle to the vertical. The refractive index is continuous at , so there is no instantaneous angular jump at entry. The tangent has ; hence . The first integral gives , or . The circle derivative then fixes .
As , the rightward ray approaches . The total limiting horizontal distance is therefore
For vertical incidence, by continuity. For a leftward ray the displacement has the opposite sign, with the same magnitude. Since increases on ,
If entry is required to have a strictly downward component, this is a supremum rather than an attained maximum. A horizontal tangent at entry gives the limiting unit-radius arc, which immediately bends downward in the medium.
Figure 1.
Light rays entering a medium with refractive index equal to reciprocal height
. Original circular-ray construction for entry at x equal to zero and y equal to one. Rays bend toward the singular lower boundary; their limiting horizontal displacements are tan of half the entry angle, bounded by one. Details.
The lower boundary is a limit, rather than a point reached in finite optical travel time. On a nonvertical circular ray, as . Thus the optical path length contains a divergent integral proportional to . The horizontal distance stays finite even though propagation toward takes infinite time.
Vary by with . The first variation of the functional is
The boundary term from integration by parts is zero. The fundamental lemma of the calculus of variations therefore gives . For , independently vary and with zero endpoint variations; the two Euler-Lagrange equations are
For the optical path, Fermat principle makes stationary. In cylindrical coordinates its integrand is , with . There is no explicit dependence. The Beltrami identity for several dependent variables gives
The conserved quantity is the axial component of the optical momentum of a ray. As , squaring and inverting yields
Now suppose and seek a path of radius . The angle is a cyclic coordinate, so is conserved. At fixed radius this is strictly increasing in , forcing constant. The radial Euler-Lagrange equation reduces to
Consequently the helical rays in a radially graded refractive index have
A real nonzero helix exists at such a radius when , and its helical pitch is . If , the solution is instead a straight axial light ray. Thus radial dependence permits constant-radius rays for suitable profiles; an arbitrary radial profile need not support a nonzero real helix. This qualification is necessary, for example when the refractive index increases with radius.
For fixed endpoint values, the Euler-Lagrange equation is . Along a stationary curve, the chain rule gives
When , the Beltrami identity therefore takes the requested sign convention
By Fermat principle, the elapsed-time integrand for the given speed is . Thus
The constant is negative for a finite regular ray. Squaring gives . At a maximum height , the slope is zero, so . Hence
Separate variables on either side of the turning point. Integration gives the parabolic light rays in a reciprocal-square-root speed profile
The quadratic opens downwards, with its greatest height at . The positive index condition holds throughout the layer because . Vertical rays are a separate zero-horizontal-momentum case, outside the regular graph representation ; they are not returning rays of the type considered below.
Equal endpoint heights at force . Setting gives
For nonzero separation, a real returning ray requires and has candidate turning heights
Only choices satisfying are rays wholly within the specified layer. Depending on its thickness there may be two, one, or no admissible choices; at zero discriminant the two algebraic candidates coincide. The entry and exit points at are interpreted as limiting boundary points of the open medium.
Figure 1.
Two possible returning parabolic rays, subject to the optical layer height
. Details.
For endpoint-preserving variations of a functional, the Euler-Lagrange equation is
Along an extremal, the chain rule gives . Thus when has no explicit dependence, the Beltrami identity is
For a positive speed profile, the elapsed-time integrand in Fermat principle is . Its first integral gives
Integrating each monotone-height branch yields
Real branches require . Turning points are joined in the original graph , even though the inverse derivative is singular there.
For the inverse-height speed profile, this becomes , with . Integration gives , so the light rays are catenaries
Equal endpoint heights at opposite values force , since the real hyperbolic cosine is even and strictly increases with the absolute value of its argument. The remaining endpoint condition is . One exact solution is , giving
Here and account for the squared hyperbolic cosine in the time integral.
The stated endpoints also allow a second stationary ray. Set . The function decreases and then increases: its derivative has the sign of , whose derivative is . Its unique minimum occurs where , at . Since the known root lies below this minimum's location, there is exactly one further root, . Thus the two stationary catenary rays in an inverse-height speed profile also include
No extra condition in the question selects uniquely between these rays. The minimum height is a minimum along the chosen ray, not a global travel-time assertion. Indeed, competitors descending vertically to height , crossing horizontally, and rising again have time . As this tends to , below both stationary times. Their corners can be smoothed, so Fermat principle here must be understood as stationarity rather than unrestricted global minimization.
Figure 1.
Two stationary light rays through the same endpoints in an inverse-height speed profile
. Details.
By Fermat principle, a light ray makes optical travel time stationary. Multiplication by the constant vacuum speed of light does not change the stationary paths, so the functional can be taken to be the refractive index integrated over arc length. The constant denoted below is an integration constant, not that vacuum speed.
Assume is differentiable along the ray, with sufficient regularity for the following variation, and fix the endpoints. Fermat principle makes the travel time stationary:
For the variational integrand , the Euler-Lagrange equation is
Expanding the derivative and multiplying by gives
and therefore
Equivalently, the Beltrami identity gives . Mere continuity of , as stated in the wording, does not by itself justify the appearance of ; the displayed classical ray equation requires this additional differentiability.
Fermat principle states that the optical path length , or equivalently travel time , is stationary under small variations of the ray with fixed endpoints. Stationarity need not mean a global minimum.
For a plane ray written as , use , with . Its stationary paths obey the Euler-Lagrange equation
It follows by taking the first variation, integrating the term in by parts, and using zero endpoint variations.