Sub topic 10
Fermat's Principle: Reflection and Refraction from Least Time
Assume you know how to measure angles from a surface normal, use sine and inverse sine, and calculate speed as distance divided by time. You should also have a basic picture of light as rays or wavefronts.
Fermat's principle says that a light ray follows a path for which the travel time is stationary compared with nearby paths. In many ordinary situations, this path takes the least time. “Stationary” means that a small change in the path produces no first-order change in travel time. The path may be a local minimum, although “least time” is the useful idea for simple mirrors and interfaces.
Reflection from the shortest route
Imagine a ray travelling from point A to point B and reflecting from a flat mirror at point P. The ray could strike the mirror at many different points. Each choice gives a different total distance:
- Distance from A to P.
- Distance from P to B.
- Total distance divided by the speed of light.
The speed is the same before and after reflection, so minimizing travel time is equivalent to minimizing total distance.
To find the shortest route, reflect point B across the mirror to make an imaginary point B′. A reflected path from A to P to B has the same length as the straight path from A to P to B′. The shortest route between two points is a straight line. Therefore, the correct reflection point is where the line from A to B′ crosses the mirror.
This construction gives the law of reflection:
θᵢ = θᵣ
The angle of incidence, θᵢ, is the angle between the incoming ray and the normal. The angle of reflection, θᵣ, is the angle between the outgoing ray and the normal. The two angles are equal. They are not measured from the mirror surface.
Refraction from the fastest route
Now suppose light travels from one transparent material into another. The speed changes at the boundary. The route with the smallest geometric distance is not necessarily the fastest route.
For example, light may travel through air and then glass. It can spend more distance in air, where it travels faster, to reduce the distance in glass, where it travels slower. Fermat's principle selects the balance between distance and speed.
For a possible crossing point P, the total travel time is
t = d₁/v₁ + d₂/v₂
where d₁ and d₂ are the distances travelled in the two materials, and v₁ and v₂ are the light speeds in those materials.
Changing P changes both distances. The minimum-time condition leads to
sin θ₁ / v₁ = sin θ₂ / v₂
The refractive index of a material is
n = c/v
where c is the speed of light in vacuum. Substituting this relation gives Snell's law:
n₁ sin θ₁ = n₂ sin θ₂
If the second material has a larger refractive index, light travels more slowly there and bends toward the normal. If the second material has a smaller refractive index, it bends away from the normal.
| Boundary | Speed change | Direction of bending |
|---|---|---|
| Air to glass | Speed decreases | Toward the normal |
| Glass to air | Speed increases | Away from the normal |
| Equal indices | No speed change | No change in direction |
import math
def travel_time(x, source, target, boundary_y, v1, v2):
"""Return travel time through a flat boundary at y = boundary_y."""
source_to_boundary = math.hypot(x - source[0], boundary_y - source[1])
boundary_to_target = math.hypot(target[0] - x, target[1] - boundary_y)
return source_to_boundary / v1 + boundary_to_target / v2
source = (0.0, 2.0)
target = (6.0, 3.0)
boundary_y = 0.0
# Use equal speeds to model reflection-like shortest distance.
speeds = (1.0, 1.0)
candidates = [i / 10 for i in range(61)]
best_x = min(
candidates,
key=lambda x: travel_time(
x, source, target, boundary_y, speeds[0], speeds[1]
),
)
print(f"Best sampled crossing position: x = {best_x:.1f}")The program tests possible points on the boundary and chooses the one with the smallest travel time. A finer spacing gives a more accurate numerical estimate. Calculus gives the exact stationary condition.
Common errors and limits
A common error is to minimize distance when the two media have different speeds. The correct quantity is travel time. Another error is measuring angles from the interface instead of the normal.
The phrase “least time” also has limits. In complicated optical systems, a ray can follow a stationary path that is not the absolute shortest route. The principle still works when stated as stationary optical travel time. It also explains why a ray can change direction at a boundary without violating a straight-line rule: the speed changes, so the time-minimizing path changes.
Exercise
Light travels from air into glass with n₁ = 1.00, n₂ = 1.50, and θ₁ = 30°. Use Fermat's principle through Snell's law to find θ₂.
Show answer
Use 1.00 sin(30°) = 1.50 sin(θ₂). Thus sin(θ₂) = 1/3, so θ₂ ≈ 19.5°. The ray bends toward the normal because it enters the slower material.