Two light rays having same wavelength \(\lambda\) in vacuum are in phase initially. Then the first ray travels a path \(l_1\) through a medium of refractive index \(n_1\) while the second ray travels a path of length \(l_2\) through a medium of refractive index \(n_2\). The two waves are combined to observe interference. The phase difference between the two waves is
Show Hint
Phase difference comes from optical path difference: \(\Delta = n_1l_1 - n_2l_2\). Then \(\Delta\phi=\dfrac{2\pi}{\lambda}\Delta\).