Geometrical Optics as the Short-Wavelength Limit: Eikonal Equation and Ray Tracing
Anchor (Master): Jackson, Classical Electrodynamics, 3rd ed. (1999), Ch. 3; Born & Wolf, Principles of Optics, 7th ed. (1999), Ch. 3-4
Intuition Beginner
When the wavelength of light is far smaller than the objects and openings it encounters, light behaves as though it travels in straight lines. These straight-line paths are called rays, and the body of theory that uses them is geometrical optics (also called ray optics).
The wavelength of visible light is roughly 400 to 700 nanometres. A typical lens is centimetres across, a doorway is about a metre wide, and a room is several metres across. In all these cases the wavelength is millions of times smaller than the relevant structure. Light passing through a doorway casts a sharp shadow, not a diffraction pattern. Light entering the eye is focused by the cornea and lens onto the retina with pinpoint accuracy. These are geometrical-optics phenomena.
Three rules suffice for most ray-tracing problems:
- Rectilinear propagation. In a uniform medium, rays are straight lines.
- Law of reflection. At a mirror surface, the angle of incidence equals the angle of reflection, both measured from the surface normal.
- Snell's law of refraction. When a ray crosses a boundary from a medium of refractive index into one of index :
A ray entering a denser medium () bends toward the normal. A ray entering a less dense medium bends away from the normal.
A lens uses refraction at curved surfaces to redirect rays. A converging (convex) lens causes parallel incoming rays to meet at the focal point, a distance (the focal length) behind the lens. A diverging (concave) lens causes parallel rays to spread apart as though they originated from a virtual focal point in front of the lens. Given the object distance and image distance , the thin lens equation holds:
When , a real inverted image forms at distance . When , the lens acts as a magnifying glass and produces a virtual upright image.
Geometrical optics breaks down when the wavelength is no longer negligible compared to the obstacles or apertures. Light then diffracts 10.08.03: it bends around edges, spreads through narrow slits, and produces interference fringes. A shadow cast by light through a pinhole does not have a sharp boundary; instead the intensity tapers off in a pattern governed by the wave equation. The boundary between ray optics and wave optics is set by the ratio of wavelength to aperture size. When this ratio is small, geometrical optics is an excellent approximation. When it is of order unity, the full wave treatment is required.
This unit develops the mathematical framework that makes these statements precise. The central object is the eikonal equation, which emerges from the wave equation in the limit of vanishing wavelength and encodes the rule that rays travel along the direction of steepest increase in optical path length.
Visual Beginner
| Regime | Condition | Behaviour | Examples |
|---|---|---|---|
| Ray optics | much smaller than objects | Straight rays, sharp shadows | Cameras, eyeglasses, telescopes |
| Wave optics | comparable to objects | Diffraction, interference, fringes | Pinholes, gratings, holograms |
| Optical element | Effect on rays | Governing rule |
|---|---|---|
| Flat mirror | Reflects at equal angle | |
| Refracting surface | Bends ray per Snell's law | |
| Converging lens | Brings parallel rays to focal point | |
| Curved mirror | Focuses or defocuses like a lens |
Worked example Beginner
Example 1: Refraction through a glass prism.
A beam of monochromatic light in air () enters one face of a glass prism () at an angle of incidence measured from the surface normal.
From Snell's law:
The ray bends toward the normal as it enters the denser glass. When the ray exits through the second face, Snell's law is applied again (now from glass to air), and the ray bends away from the normal. The total angular deviation depends on the apex angle of the prism and the refractive index. A prism disperses white light into its constituent colours because the refractive index depends on wavelength: blue light has a higher than red light and bends more, separating the spectrum.
Example 2: Total internal reflection and optical fibres.
A ray inside a glass fibre () approaches the glass-air boundary () at angle from the normal. Snell's law gives:
Since cannot exceed 1, there is a critical angle beyond which no refracted ray exists:
For the ray is entirely reflected back into the glass. This is total internal reflection. An optical fibre confines light through repeated total internal reflections along its length, carrying signals over kilometres with minimal loss. The numerical aperture of the fibre determines the maximum entrance angle for which light remains trapped.
Example 3: The thin lens equation.
An object is placed 30 cm in front of a converging lens of focal length 10 cm. Using the thin lens equation:
A real image forms 15 cm behind the lens. The magnification is , so the image is inverted and half the size of the object.
Check your understanding Beginner
Formal definition Intermediate+
The scalar wave equation in an inhomogeneous medium with position-dependent refractive index is:
For a monochromatic wave , this reduces to the Helmholtz equation:
where is the free-space wavenumber.
Eikonal ansatz. Write the solution as:
where is the free-space wavenumber, is the slowly varying amplitude, and is the eikonal (the optical path length function). The phase varies rapidly in the short-wavelength limit , while and vary on the scale of , which is assumed large compared to .
Eikonal equation. Substituting the ansatz into the Helmholtz equation and collecting the leading-order terms in yields:
This is the eikonal equation. Surfaces of constant are wavefronts. Rays are curves perpendicular to the wavefronts, directed along .
Transport equation. The next-order terms (linear in ) give energy conservation along a ray:
This is the transport equation for the amplitude . It ensures that the energy flowing through a ray tube is conserved.
Ray equation. Differentiating the eikonal equation along a ray curve parametrised by arc length gives:
This is the ray equation. In a uniform medium (, ), it gives : straight-line rays. In a graded-index medium, rays curve toward regions of higher refractive index.
Fermat's principle. The ray equation is the Euler-Lagrange equation for the variational principle:
Light travels along paths of stationary optical path length . This is Fermat's principle (sometimes called the principle of least time, since makes the optical path length proportional to the travel time).
Paraxial approximation. When all rays make small angles with a preferred axis (say ), the arc length and the ray equation simplifies to:
where is the transverse coordinate. This linearised equation is the workhorse of laser cavity design and fibre optics.
ABCD (ray-transfer) matrices. In the paraxial regime, a ray at height with angle (small) relative to the axis is described by the column vector . Each optical element acts on this vector by a matrix:
| Element | ABCD matrix |
|---|---|
| Free-space propagation, distance | |
| Thin lens, focal length | |
| Flat interface, | |
| Curved mirror, radius |
A compound system of elements has an overall ABCD matrix equal to the product (matrices multiplied in reverse order of traversal). The determinant of each matrix satisfies , which equals 1 in a uniform medium.
Key derivation Intermediate+
Derivation (The eikonal equation from the Helmholtz equation).
Theorem. In the limit , the Helmholtz equation reduces to the eikonal equation , where is defined by the ansatz .
Proof. Compute the Laplacian of :
Substitute into the Helmholtz equation and divide through by :
Separate real and imaginary parts:
- Real part:
- Imaginary part:
In the short-wavelength limit , the terms dominate in the real part. The term is of order 1 (assuming varies on the scale of ), while is of order . Setting the leading-order coefficient of to zero:
This is the eikonal equation. The imaginary part gives the transport equation at order :
which determines the amplitude once is known. The transport equation expresses energy conservation along a ray tube: as a bundle of rays converges (), the amplitude must decrease to conserve flux; as it diverges (), the amplitude increases.
Derivation (The ray equation from the eikonal equation).
Theorem. The characteristic curves of the eikonal equation satisfy the ray equation .
Proof. Define the ray direction as (unit vector along the ray). Parametrise the ray by arc length so that .
Differentiate with respect to :
The right side is the directional derivative of along the ray:
Using the eikonal equation , take the gradient of both sides:
Therefore , and:
This is the ray equation. In a uniform medium , giving , so the ray travels in a straight line. In a graded medium, the ray curves toward regions of higher .
Bridge. The eikonal equation is a first-order nonlinear PDE of Hamilton-Jacobi type. Its characteristics are the rays, which satisfy the ray equation. The foundational insight is that geometrical optics is the leading-order term in an asymptotic expansion of the wave equation in inverse powers of the wavenumber ; higher-order corrections capture diffractive effects 10.08.03. The central message is that the eikonal encodes the phase (wavefront geometry), while the amplitude is determined by energy conservation along rays via the transport equation. Putting these together, Fermat's principle emerges as the variational formulation of the ray equation, and Snell's law, the lens maker's equation, and the ABCD matrix formalism all follow as consequences. The connection to Hamilton-Jacobi theory in classical mechanics 09.04.09 reveals that ray optics and Newtonian mechanics share the same mathematical structure -- a correspondence that was the historical seed of wave mechanics.
Exercises Intermediate+
Lean formalization Intermediate+
Mathlib has no formalisation of the eikonal equation, the ray equation, Fermat's principle, ABCD matrices, the lens maker's formula, or the Hamiltonian optico-mechanical analogy. The eikonal equation is a Hamilton-Jacobi PDE whose characteristics give the rays; this requires the method of characteristics for first-order nonlinear PDEs, which is not in Mathlib. lean_status: none.
References and further reading Intermediate+
- Griffiths, D. J., Introduction to Electrodynamics, 4th ed. (Cambridge, 2017), Ch. 9.2-9.3.
- Jackson, J. D., Classical Electrodynamics, 3rd ed. (Wiley, 1999), Ch. 3.3.
- Hecht, E., Optics, 5th ed. (Pearson, 2017), Ch. 4-5 (geometrical optics), Ch. 6 (ABCD matrices).
Advanced results Master
Hamilton's optico-mechanical analogy. The eikonal equation and the ray equation have exact counterparts in classical mechanics 09.04.09. The Hamilton-Jacobi equation for a particle of mass and energy in potential is:
The mechanical eikonal corresponds to the optical eikonal ; the momentum corresponds to the refractive index ; and the particle trajectories (solutions of Hamilton's equations) correspond to the light rays (solutions of the ray equation). The correspondence table is:
| Optics | Mechanics |
|---|---|
| Eikonal | Hamilton's principal function |
| Refractive index | Momentum magnitude |
| Ray equation | Hamilton's equations / Newton's second law |
| Fermat's principle | Maupertuis's principle |
| Wavelength | Planck's constant |
Hamilton discovered this analogy in 1833-1834. It was later recognised that the eikonal expansion is identical in structure to the WKB approximation in quantum mechanics, and the semiclassical limit of quantum mechanics corresponds to the short-wavelength limit of wave optics. This analogy was the historical motivation for de Broglie's matter waves and Schrodinger's wave equation.
Spherical aberration. The paraxial approximation assumes all rays make small angles with the axis. For a lens with spherical surfaces, rays at large heights (marginal rays) are refracted more strongly than the paraxial formula predicts. A ray at height is focused at distance:
The focal length depends on : marginal rays focus closer to the lens than paraxial rays. The transverse ray aberration (distance from the paraxial focal point) scales as for a thin spherical lens. This is third-order (Seidel) spherical aberration. It can be reduced by using aspheric surfaces or by choosing the lens shape that minimises aberration for a given object distance (the "best-form" lens).
Chromatic aberration. The refractive index depends on wavelength (dispersion). Blue light has higher than red light in most glasses, so a converging lens focuses blue light at a shorter distance than red light. The longitudinal chromatic aberration is the difference in focal length between two wavelengths:
where . An achromatic doublet corrects this by combining a converging lens (crown glass, low dispersion) with a diverging lens (flint glass, high dispersion). The two elements have equal and opposite chromatic aberrations, cancelling to first order while maintaining a net positive power.
Graded-index (GRIN) media. In a medium with , the ray equation describes curved ray paths. For the parabolic profile (which approximates the more realistic for small ), the ray equation gives sinusoidal trajectories with period . GRIN lenses (flat pieces of graded-index glass) can focus light without curved surfaces, and GRIN fibres are the standard transmission medium in optical communications because the parabolic profile equalises the path lengths of different modes, minimising intermodal dispersion.
Connection to semiclassical mechanics. The eikonal expansion can be carried to higher order:
This is identical to the WKB expansion in quantum mechanics. The leading order gives the eikonal (Hamilton-Jacobi) equation, the next order gives the transport equation (probability current conservation), and higher orders give corrections that account for diffraction, tunnelling, and caustics. The semiclassical limit is the same mathematical limit as in quantum mechanics. The Keller-Maslov index and the Gutzwiller trace formula, which count classical periodic orbits in the semiclassical quantisation of chaotic systems, have direct optical analogues in the phase shifts accumulated by rays at caustics.
Full proof set Master
Proposition (Fermat's principle implies the ray equation). The Euler-Lagrange equation for the functional with is the ray equation.
Proof. Parametrise the curve by arc length so that . The Lagrangian is where dots denote . Since , the Lagrangian simplifies to .
However, it is more convenient to use an arbitrary parameter and write where dots now denote . The Euler-Lagrange equation is:
Since :
Choose (arc length) so that and :
This is the ray equation.
Proposition (Fermat's principle gives Snell's law). For a planar interface between media and , the stationary optical path condition gives .
Proof. (See Exercise 3.) The optical path length is . Setting and recognising the geometric sines gives . The second derivative is positive for , confirming this is a minimum.
Proposition (Determinant of ABCD matrices). For any ABCD matrix representing a sequence of optical elements in a medium with entrance index and exit index , the determinant satisfies .
Proof. Each individual element satisfies this: free-space propagation (), thin lens (), and flat interface (). For a sequence of elements: . For the internal elements, each entrance index equals the exit index of the previous element, so the product telescopes to . In a uniform medium, all indices are equal and .
Connections Master
- Electromagnetic waves
10.04.02provide the wave equation from which the eikonal equation is derived in the short-wavelength limit. - Diffraction
10.08.03is the complementary regime where the wavelength is not small; the Kirchhoff integral reduces to geometrical optics in the short-wavelength limit, and the eikonal expansion provides the systematic connection. - Hamiltonian mechanics
09.04.09shares the mathematical structure of ray optics through the optico-mechanical analogy: the eikonal equation is a Hamilton-Jacobi equation, and the ray equation is Hamilton's equations. - Scalar wave equation in acoustics and quantum mechanics obeys the same eikonal/WKB asymptotic expansion, so the results of this unit apply to semiclassical mechanics, seismic ray theory, and underwater acoustics.
- Semiclassical mechanics uses the WKB method, which is the quantum-mechanical analogue of the eikonal expansion; the classical limit corresponds to the ray-optics limit .
Historical and philosophical context Master
The law of reflection was known in antiquity (Euclid, c. 300 BCE). Snell's law of refraction was discovered experimentally by Thomas Harriot (1601) and Willebrord Snellius (1621), and published by Descartes (1637) using a particle model of light.
Fermat's principle (1662) was the first variational principle in physics. Fermat postulated that light takes the path of least time (not least distance), from which he derived Snell's law. This was controversial: the Cartesian school believed light travels faster in denser media, while Fermat's principle requires light to travel slower (which is correct). Huygens (1678) confirmed Fermat's prediction using the wave theory.
Hamilton's optico-mechanical analogy (1833-1834) was developed before quantum mechanics existed. Hamilton showed that the equations of ray optics and classical mechanics have identical mathematical structure, with the eikonal playing the role of the action. This was a mathematical curiosity until de Broglie (1924) proposed that particles have wave-like properties with wavelength , and Schrodinger (1926) developed wave mechanics by literally replacing the refractive index in the eikonal equation with the momentum and interpreting the result as a wave equation. The Hamiltonian analogy is the historical bridge between classical and quantum physics.
Kirchhoff (1882) showed that geometrical optics emerges from the wave equation as the short-wavelength limit, using the asymptotic expansion that Sommerfeld and Runge (1911) formalised as the eikonal equation. This established geometrical optics as an approximation to wave optics, valid when is small compared to all relevant length scales.
Luneburg (1964) and Kline and Kay (1965) developed the modern asymptotic theory of wave propagation, extending the eikonal expansion to higher orders and treating caustics, evanescent waves, and Gaussian beams systematically.
Bibliography Master
Primary sources
- Fermat, P. de, "Synthesis ad refractiones" (1662), in Oeuvres de Fermat, Vol. 1 (1891).
- Hamilton, W. R., "On a general method of expressing the paths of light, and of the planets, by the coefficients of a characteristic function," Dublin Univ. Review 1, 795-826 (1833).
- Sommerfeld, A. and Runge, J., "Anwendung der Vektorrechnung auf die Grundlagen der geometrischen Optik," Ann. Phys. 340, 277-298 (1911).
- Luneburg, R. K., Mathematical Theory of Optics (Univ. of California Press, 1964).
- Kline, M. and Kay, I. W., Electromagnetic Theory and Geometrical Optics (Wiley, 1965).
Textbooks and monographs
- Born, M. and Wolf, E., Principles of Optics, 7th ed. (Cambridge, 1999), Ch. 3-4.
- Hecht, E., Optics, 5th ed. (Pearson, 2017).
- Jackson, J. D., Classical Electrodynamics, 3rd ed. (Wiley, 1999), Ch. 3.3.
- Griffiths, D. J., Introduction to Electrodynamics, 4th ed. (Cambridge, 2017), Ch. 9.2-9.3.
- Guenther, R. D., Modern Optics (Wiley, 1990).
- Stavroudis, O. N., The Optics of Rays, Wavefronts, and Caustics (Academic Press, 1972).