Optical path length. Light slows inside a medium of refractive index n. A geometric distance d inside the film "costs" an optical distance nd, because what matters for phase is the number of wavelengths, and inside the medium λfilm=λ/n.
Reflection phase flip. When light reflects going from a rarer to a denser medium (low n → high n), it gains an extra phase of π, i.e. an extra half wavelengthλ/2. Reflecting off a rarer medium (high n → low n) gives no flip.
Take a film of index n, thickness t, with light incident at angle θi and refracting to angle θr inside.
Step 1 — Geometric extra path.
Ray 2 goes down and back up inside the film. The extra path over ray 1 (after accounting for the wavefront geometry) is
Δgeo=2tcosθr
Why this step? The ray inside travels a slant length t/cosθr each way (down and up), giving 2t/cosθr of slant path. But the two emerging rays must be compared along a common wavefront (perpendicular to the rays). Dropping that wavefront from the exit point cuts off a piece of the slant path; the part of the in-film travel that actually counts is its projection onto the film normal, 2tcosθr. Geometrically: (2t/cosθr)−(2tsinθr⋅tanθr)=2tcosθr. The cosine (not secant) survives.
Step 2 — Convert to optical path.
Inside the film light is slowed, so multiply by n:
Δopt=2ntcosθr
Why? Phase counts wavelengths; inside the film wavelengths are shorter by factor n, so the optical path is n times the geometric path.
Step 3 — Add the reflection phase term.
Consider a film (index n) sitting on a less dense backing, with denser film than the medium above (typical: air–soap–air, or air–oil–water style cases differ — check each interface!).
For air–film–air (e.g. soap bubble): top reflection air→film is rarer→denser ⇒ flip λ/2. Bottom reflection film→air is denser→rarer ⇒ no flip. Net extra: one λ/2.
Imagine light is two runners that split at a soap bubble. One bounces off the front; the other dives in, bounces off the back, and comes out. The diver ran a little extra distance. Also, bouncing off a "harder wall" (denser stuff) gives the runner a tiny hiccup — half a step out of rhythm. When both runners come back in step, the color shines bright; when they're out of step, that color disappears. That's why bubbles show rainbows: different colors get in-step at different bubble thicknesses. And a bubble so thin it's about to pop turns black — because the hiccup alone puts the runners exactly out of step.
Socho ek soap bubble par light girti hai. Light do hisson mein bant jaati hai: ek part upar wali surface se reflect hota hai (Ray 1), aur doosra part andar jaata hai, neeche wali surface se reflect hokar wapas aata hai (Ray 2). Ray 2 ne thoda extra distance travel kiya — yeh extra optical path hai 2ntcosθr. Yahan n isliye lagta hai kyunki film ke andar light slow ho jaati hai aur wavelength chhoti ho jaati hai. Aur dhyan rakho: angle θr (refracted angle) use karna hai, incident wala nahi.
Geometry samajhne ke liye: film ke andar slant path 2t/cosθr hota hai, par dono rays ko ek common wavefront (rays ke perpendicular) par compare karna padta hai. Wavefront drop karne par jo part bachta hai wo film ke normal par projection hai, yani 2tcosθr. Isliye cosine aata hai, secant nahi. Yeh ek subtle but important point hai.
Sabse important cheez hai phase flip. Jab light rarer (kam n) se denser (zyada n) medium par reflect hoti hai, to ek extra λ/2 ka jhatka lagta hai (phase π se ulat). Isliye condition likhne se pehle dono surfaces par flips count karo. Soap film (air–soap–air) mein sirf top par flip hota hai — ek odd flip — to bright aur dark conditions swap ho jaati hain: bright tab jab 2ntcosθr=(m+21)λ. Yahi reason hai ki bahut patli bubble (jo phootne wali hai) reflection mein kaali dikhti hai.
Exam tip: pehle flips gino (odd ya even), phir formula 2ntcosθr likho, phir λ ko hamesha air/vacuum wavelength rakho. Reflected vs transmitted pattern ek doosre ke opposite hote hain (energy conservation). Anti-reflection coating mein dono surfaces flip karti hain (even), isliye thinnest coating t=λ/4n hoti hai jo reflection cancel karti hai.