Part I, Chapter 1

Geometrical Optics

In the limit where the wavelength of light is much smaller than the scale of optical elements, light propagates as rays governed by Fermat's principle and Snell's law.

1.1 Fermat's Principle

Pierre de Fermat (1662) proposed that light travels between two points along the path that takes the least time. More precisely, the optical path length is stationary (usually a minimum):

$$\delta \int_A^B n(\mathbf{r})\, ds = 0$$

where n(r) is the refractive index at position r and ds is the arc-length element. This variational principle is analogous to Hamilton's principle in mechanics, and it forms the foundation of geometrical optics. In a homogeneous medium (constant n), light travels in straight lines. In an inhomogeneous medium, rays curve toward regions of higher refractive index.

1.1.1 Derivation of Snell's Law from Fermat's Principle

Derivation: Snell's Law

Step 1. Consider a ray crossing a planar interface between media with indices n1 and n2. The ray travels from point A at height h1 above the interface to point B at height h2 below it, hitting the interface at horizontal position x.

Step 2. The total optical path length is:

$$L(x) = n_1 \sqrt{h_1^2 + x^2} + n_2 \sqrt{h_2^2 + (d-x)^2}$$

Step 3. Setting dL/dx = 0:

$$\frac{n_1 x}{\sqrt{h_1^2 + x^2}} - \frac{n_2 (d-x)}{\sqrt{h_2^2 + (d-x)^2}} = 0$$

Step 4. Recognizing sinθ1 = x/√(h1² + x²) and sinθ2 = (d-x)/√(h2² + (d-x)²):

Result: Snell's Law

$$n_1 \sin\theta_1 = n_2 \sin\theta_2$$

1.1.2 Total Internal Reflection

When n1 > n2, there exists a critical angle θcbeyond which no refracted ray exists:

$$\theta_c = \arcsin\!\left(\frac{n_2}{n_1}\right)$$

For θ1 > θc, the ray is totally internally reflected. This phenomenon is the basis of optical fiber waveguiding (Part IV) and prism-based retroreflectors.

1.2 Mirrors and Lenses

Curved mirrors and thin lenses are the workhorses of optical system design. In the paraxial approximation (small angles), the imaging properties are governed by simple algebraic relations.

1.2.1 Mirror Equation

For a spherical mirror with radius of curvature R, the focal length is f = R/2. The image and object distances satisfy:

$$\frac{1}{s'} + \frac{1}{s} = \frac{2}{R} = \frac{1}{f}$$

1.2.2 Thin Lens Equation

The lensmaker's equation relates the focal length of a thin lens to its radii of curvature and refractive index:

$$\frac{1}{f} = (n-1)\left(\frac{1}{R_1} - \frac{1}{R_2}\right)$$

The thin lens imaging equation has the same form as the mirror equation: 1/s′ - 1/s = 1/f (with sign conventions). The transverse magnification is m = -s′/s.

1.2.3 Compound Systems

For two thin lenses separated by distance d, the combined focal length is:

$$\frac{1}{f_{\text{eff}}} = \frac{1}{f_1} + \frac{1}{f_2} - \frac{d}{f_1 f_2}$$

This result can be derived systematically using the ABCD matrix formalism (next section).

1.3 ABCD Matrix Optics

In the paraxial approximation, a ray is described by its height y and angle θ relative to the optical axis. The effect of any optical element is a 2×2 matrix:

$$\begin{pmatrix} y_2 \\ \theta_2 \end{pmatrix} = \begin{pmatrix} A & B \\ C & D \end{pmatrix} \begin{pmatrix} y_1 \\ \theta_1 \end{pmatrix}$$

1.3.1 Elementary Matrices

Common ABCD Matrices

Free-space propagation (distance d):

$$M_{\text{prop}} = \begin{pmatrix} 1 & d \\ 0 & 1 \end{pmatrix}$$

Thin lens (focal length f):

$$M_{\text{lens}} = \begin{pmatrix} 1 & 0 \\ -1/f & 1 \end{pmatrix}$$

Curved mirror (radius R):

$$M_{\text{mirror}} = \begin{pmatrix} 1 & 0 \\ -2/R & 1 \end{pmatrix}$$

Refraction at a flat interface:

$$M_{\text{refr}} = \begin{pmatrix} 1 & 0 \\ 0 & n_1/n_2 \end{pmatrix}$$

1.3.2 System Composition

A sequence of optical elements is represented by the product of their matrices (in reverse order of traversal). For a ray passing through element 1, then 2, then 3:

$$M_{\text{sys}} = M_3 \cdot M_2 \cdot M_1$$

The imaging condition is B = 0 (all rays from a point converge regardless of angle). The stability condition for a resonator with two mirrors is:

$$0 \le g_1 g_2 \le 1, \qquad g_i = 1 - \frac{L}{R_i}$$

1.4 Aberrations

Real optical systems deviate from ideal paraxial behavior. Seidel (1856) classified the five primary monochromatic aberrations by expanding the wavefront error to fourth order in the ray coordinates.

The Five Seidel Aberrations

  • 1. Spherical aberration: Marginal rays focus closer to the lens than paraxial rays. Proportional to h&sup4; where h is the ray height.
  • 2. Coma: Off-axis points produce comet-shaped images. Different zones of the lens produce circles of different size.
  • 3. Astigmatism: Off-axis points have different foci for tangential and sagittal rays.
  • 4. Field curvature (Petzval): The image of a flat object lies on a curved surface.
  • 5. Distortion: Magnification varies with field position, producing barrel or pincushion distortion.

1.4.1 Chromatic Aberration

Because refractive index depends on wavelength (dispersion), white light produces color-dependent focal lengths. The Abbe number quantifies dispersion:

$$V_d = \frac{n_d - 1}{n_F - n_C}$$

where nd, nF, nC are the refractive indices at the Fraunhofer d, F, and C spectral lines. An achromatic doublet combines a crown-glass lens with a flint-glass lens to cancel chromatic aberration at two wavelengths.

1.5 Python Simulation: ABCD Matrix Ray Tracing

This simulation traces rays through a two-lens optical system using the ABCD matrix formalism. It visualizes the ray paths, demonstrates image formation, and computes the system properties.

ABCD Matrix Ray Tracing Through a Two-Lens System

Python
script.py159 lines

Click Run to execute the Python code

Code will be executed with Python 3 on the server