When the medium through which a wave travels abruptly
changes, the wave may be partially or totally reflected. When
studying
mechanical waves we found that when a wave pulse traveling along a
rope reaches the end of the rope, it is totally reflected. The
details of the reflection depend on if the end of the rope is tied down
and fixed, or if it is allowed to swing loose. A wave pulse, which is totally reflected from a rope with a fixed end is inverted upon reflection. The phase shift of the reflected wave with respect to the incident wave is π or 180^{o}.


A wave pulse, which is totally reflected from a rope with a loose end is not inverted upon reflection. The phase shift of the reflected wave with respect to the incident wave is zero. When a periodic wave is totally reflected, then the incident wave and the reflected wave travel in the same medium in opposite directions and interfere. 

We observe a similar phenomenon with light waves.
When a light wave reflects from a medium with a larger index of
refraction, then the phase shift of the reflected wave with respect to
the incident wave is π or 180^{o}.
When a light wave reflects from a medium with a smaller index
of refraction, then the phase shift of the reflected wave with respect
to the incident wave is zero. The reflected and the incident wave
interfere. Constructive and destructive interference of reflected light waves causes the colorful patterns we often observe in thin films, such as soap bubbles and layers of oil on water. Thinfilm interference is the interference of light waves reflecting off the top surface of a film with the waves reflecting from the bottom surface. If the thickness of the film is on the order of the wavelength of light, then colorful patterns can be obtained, as shown in the image on the right. 

Consider the case of a thin film of oil of thickness t
floating on water. For simplicity, assume that the light is
incident normally, so that the angle of incidence and the angle of
reflection are zero In the air, the light reflecting off the airoil interface will have a 180° phase shift with respect to the incident light. A 180^{o} phase shift is equivalent to the light having traveled a distance of ½ wavelength. In the oil, the light reflecting from the oilwater interface will have no phase shift with respect to the light incident on the interface. For the light reflected off the oil and the light reflected off the water to constructively interfere we need the two reflected waves to have a phase shift of an integer multiple of 2π or 360^{o}. If the light reflected off the oilwater interface travels an additional distance equal to ½ the wavelength of the light in oil, then the total phase shift with respect to the light reflected off the airoil interface will be 2π. This happens if the thickness of the film is equal to 1/4 the wavelength of the light in oil, since the light has to traverse this thickness twice. We also get constructive interference if the thickness of the film is equal to 3/4, 5/4, ..., the wavelength of the light in oil. For constructive interference we need 2t = (m+½)λ_{n}, m = 0,1,2,…, where λ_{n} is the wavelength of the light in oil. 

In vacuum we have λf = c. In a medium with index of refraction n we have λ_{n}f = c/n. The frequency of oscillation is the same in vacuum and in a medium, therefore
λ_{n }= λ/n.
For constructive interference we therefore need
2 n_{oil }t = (m+½)λ, m = 0,1,2,….
Destructive interference occurs when the thickness of the oil film is equal to (½)λ_{n}, λ_{n}, (3/2)λ_{n}, etc.
For destructive interference we therefore need
2 n_{oil }t = mλ, m = 1,2,….
If the thickness of the film is (1/4)λ_{n}, the phase of the wave reflected off the top surface is shifted by π by the reflection. The phase of the wave traveling through the film is not shifted by reflection off the bottom surface, but the wave travels an extra distance of λ_{n}/2. It will therefore be in phase with the wave reflected off the top surface. If, on the other hand, the film thickness is ½λ_{n}, then the wave traveling through the film travels an extra distance of 1 wavelength. It will therefore be out of phase with the wave reflected off the top surface and the two waves will cancel each other out.
Waves incident at an angle θ_{i}
on the air oil interface are refracted as they enter the oil. The angle
of refraction θ_{t} is found from
Snell's law, n_{air}sinθ_{i
}= n_{oil}sinθ_{t}. If they are reflected off the second interface, then they travel a
distance 2t/cosθ_{t} in the oil.
When they emerge again from the oil into the air and propagate parallel
to the waves reflected at the airoil interface, then the total optical
path length difference is
2 n_{oil }t/cosθ_{t}  2d tanθ_{t}sinθ_{i} = 2 n_{oil }t/cosθ_{t}  2d tanθ_{t}(n_{oil}/n_{air})sinθ_{t} = 2n_{oil}t/cosθ_{t}(1  sin^{2}θ_{t}) = 2 n_{oil }t cosθ_{t}. For constructive interference we therefore need 2 n_{oil}tcosθ_{t }= (m+½)λ, m = 0,1,2,…, and for destructive interference we need 2 n_{oil }t cosθ_{t }= mλ, m = 1,2,…. Constructive and destructive interference occur at different angles for different wavelength. The observer sees colored bands. 
The destructive interference of reflected light waves is utilized to make nonreflective coatings. Such coatings are commonly found on camera lenses and binocular lenses, and often have a bluish tint. The coating is put over glass, and the coating material generally has an index of refraction less than that of glass. Then the phase shift of both reflected waves is 180°, and a film thickness equal to 1/4 of the wavelength of light in the film produces a net shift of ½ wavelength, resulting in cancellation. For such nonreflective coatings the minimum film thickness t required is
t = λ/4n,
where n is the index of refraction of the coating material. A coating with thickness t = λ/4n prevents the reflection of most of the light with a wavelength λ close to λ = 4nt. The coating does not reflect a specific range of wavelengths. Often that range is chosen to be in the yellowgreen region of the spectrum, where the eye is most sensitive. Lenses coated for the yellowgreen region reflect in the blue and red regions, giving the surface a familiar purple color.
Problem:
When sunlight reflects from a thin film of soapy water, the film appears multicolored, in part because destructive interference removes different wavelengths from the light reflected at different places, depending on the thickness of the film. As the film becomes thinner and thinner, it looks darker and darker in reflected light, appearing black just before it breaks. The blackness means that destructive interference removes all wavelengths from the reflected light when the film is very thin. Explain.
Problem:
A thin film of a material is floating on water (n = 1.33). When the material has a refractive index of n = 1.20, the film looks bright in reflected light as its thickness approaches zero. But when the material has a refractive index of n = 1.45, the film looks black in reflected light as the thickness approaches zero. Explain these observations in terms of constructive and destructive interference and the phase changes that occur when light waves undergo reflection.
The colorful patterns that you see when light reflects
off a compact disk are produced by thin film interference.


A compact disc is made of a polycarbonate wafer which
is coated with a metallic film, usually an aluminum alloy. The aluminum
film is then covered by a plastic polycarbonate coating. The coatings
are less than 100 nm thick and each coating partially reflects and
partially transmits incident light. Light rays reflected from different
coating boundaries interfere with each other to produce the colorful
patterns. The reflectance of the CD is not uniform, because CD disk
contains a long string of pits written helically on the disk. These pits
encode the information stored on the CD. Thin film interference is used in industry as a noncontact, nondestructive way to measure film thicknesses. 
