Derive Snell's law from Fermat's principle of least time. Write travel time as a…
- User
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
Deriving Snell’s law via Fermat’s principle
The travel time as a function of interface crossing point x is defined and its derivative set to zero, yielding the classic Snell’s law relation n₁ sinθ₁ = n₂ sinθ₂ through geometric interpretation of the derivative terms as sines of incident and refracted angles. Take the interface to be the (x)–axis, the upper half–plane (y>0) filled with index (n_1) and the lower half–plane (y<0) with index (n_2). Let (A=(0,a)) in medium 1 and (B=(L,-b)) in medium 2. If the ray crosses the interface at (P=(x,0)) its travel time is [ T(x);=;\frac{1}{v_1},\sqrt{x^2+a^2}+\frac{1}{v_2},\sqrt{(L-x)^2+b^2} ;=;\frac{n_1}{c},\sqrt{x^2+a^2}+\frac{n_2}{c},\sqrt{(L-x)^2+b^2}, ] with (v_i=c/n_i).
Fermat’s principle says that the physical path makes (T) stationary. Differentiating with respect to (x) and setting the result to zero gives [ \frac{n_1}{c},\frac{x}{\sqrt{x^2+a^2}}-\frac{n_2}{c},\frac{L-x}{\sqrt{(L-x)^2+b^2}}=0. ] The ratios (x/\sqrt{x^2+a^2}) and ((L-x)/\sqrt{(L-x)^2+b^2}) are just (\sin\theta_1) and (\sin\theta_2), where (\theta_1) and (\theta_2) are the angles the ray makes with the normal in media 1 and 2. Thus the stationarity condition reduces to [ n_1\sin\theta_1 = n_2\sin\theta_2, ] which is Snell’s law.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.