Derive Snell's law from Fermat's principle of least time. Write travel time as a function of interface crossing point and minimize by setting the derivative to zero.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
This is a classic derivation in optics. I'll walk through how to derive Snell's law from Fermat's principle of least time.
Setup:
Imagine light traveling from point P₁ in medium 1 (with refractive index n₁) to point P₂ in medium 2 (with refractive index n₂), crossing the interface between them at some point along the interface.
Let me set up a coordinate system:
Place the interface along the x-axis
The y-axis is perpendicular to the interface
Point P₁ is at position (0, y₁) where y₁ > 0 (in medium 1)
Point P₂ is at position (d, -y₂) where y₂ > 0 (in medium 2)
The light crosses the interface at point (x, 0)
Speed of light in each medium:
In vacuum, the speed of light is c.
The refractive index n is defined as n = c/v, where v is the speed of light in the medium.
So: v₁ = c/n₁ and v₂ = c/n₂
Distance calculations:
Distance from P₁ to crossing point:
r₁ = √(x² + y₁²)
Distance from crossing point to P₂:
r₂ = √((d-x)² + y₂²)
Travel time:
The travel time is distance divided by speed:
T(x) = r₁/v₁ + r₂/v₂
T(x) = n₁√(x² + y₁²)/c + n₂√((d-x)² + y₂²)/c
We can ignore the factor of 1/c for minimization purposes:
T(x) = n₁√(x² + y₁²) + n₂√((d-x)² + y₂²)
Minimize the travel time:
To find the path light actually takes, I need to minimize T by setting dT/dx = 0:
Looking at the geometry, I can recognize these terms as sines of the angles. If θ₁ is the angle of incidence and θ₂ is the angle of refraction (both measured from the normal), then x/√(x² + y₁²) = sin(θ₁) and (d-x)/√((d-x)² + y₂²) = sin(θ₂).
Substituting these into my minimization condition yields n₁ sin(θ₁) = n₂ sin(θ₂), which is Snell's Law. The principle of least time naturally produces the law of refraction.
Deriving Snell's Law from Fermat's Principle
Setup
Consider light traveling from point P₁ in medium 1 to point P₂ in medium 2, crossing the interface at point A.
Coordinates: Interface at y = 0; P₁ at (0, y₁); P₂ at (d, -y₂); crossing point at (x, 0)
Travel Time Function
The optical path consists of two segments:
r1=x2+y
With speeds v1=c/n1 and v, the total travel time is:
T(x)=c
Minimize Travel Time
By Fermat's principle, the actual ray path minimizes T. Setting dxdT=0:
dxdT=
Therefore:
n1x
Geometric Identification
From the geometry, the angles from the normal satisfy:
sinθ1=
Substituting into the minimization condition:
n1sinθ1=n
Snell's Law ✓
This is the classic form of Snell's law of refraction, derived purely from the principle that light takes the path of minimum travel time through media with different optical densities.