2.5.4Optics

Snell's law — derivation from Fermat's principle

1,675 words8 min readdifficulty · medium6 backlinks

WHAT is Fermat's Principle?

  • Optical path length (OPL): OPL=nd\text{OPL} = n \cdot d, where nn is the refractive index and dd is the geometric distance.
  • WHY nn appears: speed of light in a medium is v=c/nv = c/n. Time to cross distance dd is t=d/v=nd/ct = d/v = nd/c. So minimizing time \Leftrightarrow minimizing ndnd = OPL (since cc is constant).

HOW to derive Snell's law

We send light from point AA in medium 1 (index n1n_1) to point BB in medium 2 (index n2n_2). The boundary is a flat horizontal line. Let the ray cross the boundary at horizontal position xx.

Figure — Snell's law — derivation from Fermat's principle

Setup (Why these variables?): We let xx be the crossing point — it is the one free choice light makes. Everything else (heights aa, bb, total width ww) is fixed by where AA and BB are.

  • Path length in medium 1: 1=a2+x2\ell_1 = \sqrt{a^2 + x^2}
  • Path length in medium 2: 2=b2+(wx)2\ell_2 = \sqrt{b^2 + (w-x)^2}

Total time (Why n/cn/c? because t=nd/ct = nd/c): T(x)=n1ca2+x2+n2cb2+(wx)2T(x) = \frac{n_1}{c}\sqrt{a^2 + x^2} + \frac{n_2}{c}\sqrt{b^2 + (w-x)^2}

Minimize: light picks the xx that makes TT stationary, so set dTdx=0\dfrac{dT}{dx}=0.

Why this step? Stationary = the derivative vanishes; this is the mathematical translation of "least time."

dTdx=n1cxa2+x2+n2c(wx)b2+(wx)2=0\frac{dT}{dx} = \frac{n_1}{c}\cdot\frac{x}{\sqrt{a^2+x^2}} + \frac{n_2}{c}\cdot\frac{-(w-x)}{\sqrt{b^2+(w-x)^2}} = 0

Why this step? Each square root differentiates by the chain rule: ddxa2+x2=xa2+x2\frac{d}{dx}\sqrt{a^2+x^2}=\frac{x}{\sqrt{a^2+x^2}}.

Now read the geometry: sinθ1=xa2+x2,sinθ2=wxb2+(wx)2\sin\theta_1 = \frac{x}{\sqrt{a^2+x^2}}, \qquad \sin\theta_2 = \frac{w-x}{\sqrt{b^2+(w-x)^2}}

Why this step? θ1\theta_1 is the angle from the normal (vertical). The opposite side is the horizontal run xx; the hypotenuse is 1\ell_1. So sinθ1=x/1\sin\theta_1 = x/\ell_1 — pure right-triangle trig.

Substitute, cancel cc: n1csinθ1n2csinθ2=0\frac{n_1}{c}\sin\theta_1 - \frac{n_2}{c}\sin\theta_2 = 0


Worked Examples


Common Mistakes


Recall Feynman: explain it to a 12-year-old

Light is in a hurry but it can't go fast through thick stuff like water or glass. So when it has to cross from fast air into slow glass, it's clever: it spends less of its trip inside the slow glass and more in the fast air. That makes its path bend at the surface, like a lifeguard who runs farther on the beach before splashing into the slow water. The exact amount of bending follows one neat rule: n1sinθ1=n2sinθ2n_1\sin\theta_1 = n_2\sin\theta_2.


Flashcards

What does Fermat's principle state?
Light travels the path for which the travel time (optical path length) is stationary, usually minimum.
Why does minimizing time equal minimizing ndn\cdot d?
Because t=d/v=nd/ct = d/v = nd/c, and cc is constant, so minimizing time ⇔ minimizing the optical path length ndnd.
State Snell's law.
n1sinθ1=n2sinθ2n_1\sin\theta_1 = n_2\sin\theta_2, angles measured from the normal.
In the derivation, what is the single free variable?
The horizontal crossing point xx on the boundary; setting dT/dx=0dT/dx=0 gives Snell's law.
How does sinθ1\sin\theta_1 appear from the geometry?
sinθ1=x/a2+x2\sin\theta_1 = x/\sqrt{a^2+x^2} = (horizontal run)/(path length) in a right triangle with the normal.
Entering a denser medium, does light bend toward or away from the normal?
Toward the normal (larger nn ⇒ smaller sinθ\sin\theta ⇒ smaller angle).
What is the critical angle condition?
When θ2=90\theta_2 = 90^\circ: sinθc=n2/n1\sin\theta_c = n_2/n_1 (going from dense to rare).
Snell's law in terms of speeds?
sinθ1v1=sinθ2v2\dfrac{\sin\theta_1}{v_1} = \dfrac{\sin\theta_2}{v_2}, since n=c/vn = c/v.
From which line is the angle of incidence measured?
From the normal (perpendicular to the surface), not the surface itself.

Connections

Concept Map

minimize

gives t = nd/c

defines

so n appears in

stationary path

requires

produces

identifies

substitute and cancel c

reference for angles

Fermat's Principle of Least Time

Optical Path Length n·d

Speed v = c/n

Travel time T x

Set dT/dx = 0

Chain rule derivative

Right-triangle trig

sin θ = run / hypotenuse

Snell's Law n1 sinθ1 = n2 sinθ2

Angles from normal

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, idea bilkul simple hai: light hamesha woh raasta choose karti hai jisme time sabse kam lage — distance kam nahi, time kam. Jab light kisi dense medium (glass, paani) me jaati hai to uski speed kam ho jaati hai (v=c/nv = c/n). Isliye light thoda chalaak ban jaati hai: slow medium me kam chalti hai aur fast medium me zyada, taaki total time bach jaaye. Yahi chालakी ki wajah se boundary par ray mud jaati hai (bend hoti hai).

Derivation me hum sirf ek cheez free rakhte hain — woh point jahan ray boundary cross karti hai, usse xx bolte hain. Total time T(x)T(x) likhte hain dono parts ka (n11/c+n22/cn_1 \ell_1/c + n_2 \ell_2/c), aur minimum time ke liye dT/dx=0dT/dx = 0 set karte hain. Calculus karne ke baad jo terms aate hain woh exactly sinθ1\sin\theta_1 aur sinθ2\sin\theta_2 ban jaate hain (right-triangle geometry se). Result: n1sinθ1=n2sinθ2n_1\sin\theta_1 = n_2\sin\theta_2 — yahi Snell's law hai.

Yaad rakhne wali baat: angle hamesha normal se naapo, surface se nahi. Aur ek rule — "Slow medium me jao to normal ki taraf jhuko". Jaise denser glass me ghuste hi ray normal ke paas aa jaati hai. Yeh poora concept fibre optics, lenses, prism, mirage — sab me kaam aata hai, isliye base strong rakho.

Go deeper — visual, from zero

Test yourself — Optics

Connections