Double Slit Diffraction Modified
Effective Path Difference
Sometimes you will encounter problems where there are materials other than air in a two-slit experiment. For example, a piece of glass may be placed in front of one of the slits, or a layer of water, etc.

The the new effective path difference for the problem is given by:
where a is the thickness of the material placed in front of the slit.
Using the small angle approximation we get:
This means that the distance on the screen is now smaller than what it used to be without the material added in front of the slit, and the pattern in shifted downwards.
Example: Two Media
Two identical light rays (550 nm) are separated and then combined to interfere destructively. While they are separated, one of the rays travels through a material with index of refraction 1.6 while the other still travels in air. What is the minimum thickness of the material?

The speed of light inside the second material is v=nc , which means it's reduced by a factor of 1.6, and there will be more wavelengths inside that material than through air, over the same distance.
The minimum thickness occurs when exactly half a wavelength more is being fit inside the material compared to the light ray outside:
λT+21=λ′T
Here T is the thickness of the material. Use λ′=nλ for the wavelength inside the material:
λT+21=λTn
Rearrange and solve for the thickness T:
λTn−λT=21
λT(n−1)=21
T=2(n−1)λ
Plug the numbers is:
=2(1.6−1)550×10−9
=4.58×10−7 (m)
=458 (nm)
Effective Path Difference
Sometimes you will encounter problems where there are materials other than air in a two-slit experiment. For example, a piece of glass may be placed in front of one of the slits, or a layer of water, etc.
There are two equivalent methods to find the new effective path difference.
Method 1: Phase differences
Consider a setup where the bottom slit is covered by a layer of water of thickness T. Like with other interference problems, we need to consider the phase difference between the two rays.
Let's use the wave equation u=Asin(kΔx−ωt) for each of our two waves:
u1=Asin(kairT+kairΔx1−ωt+ϕ1)
u2=Asin(kwaterT+kairΔx2−ωt+ϕ2)
The wavelength and wave number of light will be modified in water:
λwater=nλair and kwater=nkair
where n is the index of refraction of water (or any other material).
We will say they are initially in sync (that is, ϕ1=ϕ2). The phase difference is:
phase difference=
=(kwaterT+kairΔx2−ωt+ϕ2)−(kairT+kairΔx1−ωt+ϕ1)
=(kwaterT+kairΔx2)−(kairT+kairΔx1)
=T(kwater−kair)+kair(Δx2−Δx1)
=T(λwater2π−λ2π)+λ2π(Δx2−Δx1)
=T(λ2πn−λ2π)+λ2π(Δx2−Δx1)
=λ2π[T(n−1)+dsinθ′]
For example, if we apply this when looking at constructive interference, we need the phase angle to be a multiple of 2π (we write 2πm):
2πm=λ2π[T(n−1)+dsinθ′]
mλ=T(n−1)+dsinθ′
Method 2: Speed of light reduced in a material
If light travels through water, its speed decreases to:
vwater=nc
where n is the index of refraction of water (or any other material).
We need to consider how much further ahead the light from the top slit got while the bottom-slit-light was going through water. In the extra time Δt that it takes the light to go through the water thickness T, the light travels a distance cΔt:
Δt=twater−tair
Δt=vT−cT
Δt=c/nT−cT
Δt=cT(n−1)
cΔt=T(n−1)
Again, for constructive interference in air we have mλ=dsinθ. How does this equation change with a layer of water? We need to add the extra cΔt distance traveled by light to the path difference:
mλ=dsinθ′+cΔt
mλ=dsinθ′+T(n−1)
This is the new effective path difference for the problem.