From Fermat’s principle to Snell’s lawInvestigate and explain ↓

Orange: selected curve · green dashed: stationary solution.

Geometry is in metres; axis scales are equal.

Drag the orange interface point or use the crossing control. A=(0,2 m), B=(4 m,−2 m).

Settings

Record measurement

No measurements yet.

Investigate and explain

  1. Which way does the optimal crossing move as n₂ increases?
  2. First set n₁=n₂, then increase n₂ and move the orange point to the minimum.
  3. Relate the zero first derivative at stationarity to the angle ratios.

Notes are saved in this browser.

Mathematics step by step

Two homogeneous isotropic media, flat interface y=0. Fixed A=(0,2 m), B=(4 m,−2 m). Each segment is straight in its medium. This explores transmitted paths, not total internal reflection or wave interference. Both angles are measured from the normal.

  1. Since light speed is c/n, optical path cT is the index-weighted sum of the two segment lengths.

    cT(x)=n1x2+h12+n2(X−x)2+h22cT(x)=n_1\sqrt{x^2+h_1^2}+n_2\sqrt{(X-x)^2+h_2^2}
  2. Vary the crossing x and set the derivative to zero. The first segment lengthens as the second shortens.

    cT′(x)=n1xx2+h12−n2(X−x)(X−x)2+h22=0cT'(x)=\frac{n_1x}{\sqrt{x^2+h_1^2}}-\frac{n_2(X-x)}{\sqrt{(X-x)^2+h_2^2}}=0
  3. Right triangles identify these ratios as sines of angles from the normal, yielding Snell’s law.

    sin⁡θ1=xx2+h12,sin⁡θ2=X−x(X−x)2+h22⟹n1sin⁡θ1=n2sin⁡θ2\sin\theta_1=\frac{x}{\sqrt{x^2+h_1^2}},\quad\sin\theta_2=\frac{X-x}{\sqrt{(X-x)^2+h_2^2}}\quad\Longrightarrow\quad n_1\sin\theta_1=n_2\sin\theta_2
  4. For this flat two-medium setup, the second derivative is strictly positive: the unique stationary crossing is a minimum. General Fermat means stationary time, not an absolute minimum in every setup.

    cT′′=n1h12(x2+h12)3/2+n2h22((X−x)2+h22)3/2>0cT''=\frac{n_1h_1^2}{(x^2+h_1^2)^{3/2}}+\frac{n_2h_2^2}{((X-x)^2+h_2^2)^{3/2}}>0

Source and target are fixed in opposite media; this is not a critical-angle experiment for a prescribed incident ray.

Primary teaching sources

Experiment purpose and introduction

Classical Mechanics · δJ = 0

From Fermat’s principle to Snell’s law

Drag the interface crossing; derive refraction by making optical travel time stationary.

Constraints and model

Two homogeneous isotropic media, flat interface y=0. Fixed A=(0,2 m), B=(4 m,−2 m). Each segment is straight in its medium. This explores transmitted paths, not total internal reflection or wave interference. Both angles are measured from the normal.