Optical path length (OPL):OPL=n⋅d, jahan n refractive index hai aur d geometric distance hai.
WHY n appear karta hai: kisi medium mein light ki speed v=c/n hoti hai. Distance d cross karne ka time t=d/v=nd/c hota hai. Isliye time minimize karna ⇔nd = OPL minimize karna (kyunki c constant hai).
Hum light ko point A se medium 1 (index n1) se point B medium 2 (index n2) mein bhejte hain. Boundary ek flat horizontal line hai. Maano ray boundary ko horizontal position x pe cross karti hai.
Setup (ye variables kyun?): Hum x ko crossing point lete hain — yahi ek free choice hai jo light karti hai. Baaki sab kuch (heights a, b, total width w) fix hai, depending on kahan A aur B hain.
Medium 1 mein path length: ℓ1=a2+x2
Medium 2 mein path length: ℓ2=b2+(w−x)2
Total time (Why n/c? kyunki t=nd/c):
T(x)=cn1a2+x2+cn2b2+(w−x)2
Minimize: light woh x choose karti hai jisse T stationary ho, isliye dxdT=0 set karo.
Ye step kyun? Stationary = derivative zero ho jaata hai; yeh "least time" ka mathematical translation hai.
dxdT=cn1⋅a2+x2x+cn2⋅b2+(w−x)2−(w−x)=0
Ye step kyun? Har square root chain rule se differentiate hoti hai: dxda2+x2=a2+x2x.
Ab geometry padho:
sinθ1=a2+x2x,sinθ2=b2+(w−x)2w−x
Ye step kyun?θ1 woh angle hai jo normal (vertical) se banta hai. Opposite side horizontal run x hai; hypotenuse ℓ1 hai. Isliye sinθ1=x/ℓ1 — pure right-triangle trig.
Substitute karo, c cancel karo:
cn1sinθ1−cn2sinθ2=0
Light jaldi mein hoti hai par woh thick cheez jaise water ya glass mein fast nahi ja sakti. Isliye jab use fast air se slow glass mein cross karna hota hai, toh woh clever hoti hai: apni trip ka kam hissa slow glass ke andar aur zyada hissa fast air mein spend karti hai. Isse uska path surface pe bend ho jaata hai, bilkul uss lifeguard ki tarah jo slow paani mein koodne se pehle beach pe zyada door daudta hai. Bending ki exact maatra ek simple rule follow karti hai: n1sinθ1=n2sinθ2.