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.
Circular light ray in a linear speed profile 2026-10-07
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 .
Conserved transverse optical momentum 2026-10-18
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 iswhere 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 givesThe 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 isAbove 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]
https://openstax.org/books/university-physics-volume-3/pages/1-4-total-internal-reflection. OpenStax: Total internal reflection
. [ref].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]
https://www.feynmanlectures.caltech.edu/I_26.html. Feynman Lectures: The principle of least time, section 26-5
. 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 thengiving 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.
Past exam of the mathematics course of the University of Cambridge 2003 ib Paper 1 2D Solution Created 2026-09-24 Updated 2026-10-14
For positive differentiable speed and a smooth ray written as a graph , the Fermat principle minimizes travel timeA variation vanishing at the endpoints gives the Euler-Lagrange equation for . Its derivatives are and . Thusand multiplying by givesThe 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 mediumIt is the upper semicircle of diameter one, with vertical limiting tangents at its endpoints.
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 .
Past exam of the mathematics course of the University of Cambridge 2004 ib Paper 3 18D Solution Created 2026-09-24 Updated 2026-10-14
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 isSet . Then , and integration gives on a positive arch. The symmetric endpoint conditions require and . For and , the resulting ray in an exponential-speed medium isIt 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.
Here . For close to , the endpoint slopes are steep and the central height is large. The travel time evaluates directly toIt 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 .
Past exam of the mathematics course of the University of Cambridge 2008 ib Paper 1 14D Solution Created 2026-09-24 Updated 2026-10-14
For variations with , integration by parts gives . Since this vanishes for every such variation, the Euler-Lagrange equation isWhen 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 becomesThe sign of is constant, and makes it positive. Write with and solve to obtainA 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 givesso , 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 .
Past exam of the mathematics course of the University of Cambridge 2013 ib Paper 2 15A Solution Created 2026-09-24 Updated 2026-10-14
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 becomesWriting and integrating the resulting first-order equation gives . Both endpoints have height zero, so subtracting their equations gives , and then . The arc lying in isIts 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.
Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge 2001 Paper 1 10 Solution Created 2026-10-18 Updated 2026-10-20
First integral. If has no explicit dependence, the chain rule givesThe 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 isThe Beltrami identity givesFor a nonvertical segment , write . Then , soThus the optical rays in a reciprocal-height refractive index satisfyrestricted 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 thereforeFor 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.
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.
Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge 2003 Paper 1 9 Solution Created 2026-10-18 Updated 2026-10-20
Vary by with . The first variation of the functional isThe 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 areFor 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 givesThe conserved quantity is the axial component of the optical momentum of a ray. As , squaring and inverting yieldsNow 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 toConsequently the helical rays in a radially graded refractive index haveA 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 givesWhen , the Beltrami identity therefore takes the requested sign convention
By Fermat principle, the elapsed-time integrand for the given speed is . ThusThe constant is negative for a finite regular ray. Squaring gives . At a maximum height , the slope is zero, so . HenceSeparate variables on either side of the turning point. Integration gives the parabolic light rays in a reciprocal-square-root speed profileThe 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 givesFor nonzero separation, a real returning ray requires and has candidate turning heightsOnly 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.
For endpoint-preserving variations of a functional, the Euler-Lagrange equation isAlong an extremal, the chain rule gives . Thus when has no explicit dependence, the Beltrami identity isFor a positive speed profile, the elapsed-time integrand in Fermat principle is . Its first integral givesIntegrating each monotone-height branch yieldsReal 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 catenariesEqual 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 , givingHere 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 includeNo 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.
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 isExpanding the derivative and multiplying by givesand thereforeEquivalently, 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 equationIt follows by taking the first variation, integrating the term in by parts, and using zero endpoint variations.







