Pulses along a rope when reflected off a
fixed-end are
inverted, and when reflected off a
free-end, remain
in phase. Light waves also exhibit these behaviors when they encounter an interface between two mediums.
Click picture to enlarge
These reflective properties are critical to our understanding of the colors in such thin films as soap bubbles, coatings on camera lenses, colors in a butterfly's wings or peacock's feathers, or oil spills.
Below is a diagram of a thin film and the light rays associated with the reflections and refractions as light impinges on the film.
When
ray 1 strikes the top interface, some of the light is partially reflected,
ray 2, and the rest is refracted,
ray 3.
When
ray 3 strikes the bottom interface, some of it is reflected,
ray 4, and the remainder is refracted,
ray 6.
When
ray 4 strikes the top interface from underneath, some is reflected (not shown) and some is refracted,
ray 5.
It is the interference between
rays 2 and 5 that produces a thin film's color when the film is viewed from above.
The refracted rays remain in-phase with their initial rays.
A good method for analyzing a thin-film problem involves these steps:
Step 1
Find the shift for the wave reflecting off the top surface of the film,
Step 2
Find the shift for the wave reflecting off the film's bottom surface,
Step 3
Calculate the relative shift by subtracting the individual shifts:
Step 4
Set the relative shift equal to the condition for constructive interference, or the condition for destructive interference.
Constructive Interference:

Destructive Interference:

with
Step 5
Rearrange the equation.
Step 6
Since we are dealing with the behavior of the light in the thin film, we must ALWAYS use the light's wavelength IN THE FILM,

. The wavelength in a medium whose refractive index,
n is :
Step 7
Solve
Source:
physicslab.org,
physics.bu.edu
Example:
A thin soap film is formed by dipping a plastic rectangular wand into a solution of soapy water which has a refractive index of 1.4. When viewed in daylight, one portion of the film reflects blue light of wavelength 475 nm. Estimate the minimum thickness of that section of the film.
Will ray 2 be in-phase or out-of-phase with ray 1?
Air to Soap,

fixed-end reflector

rays 1 and 2 out-of-phase with a phase inversion of

Since refracted rays remain in-phase with their initial rays, it means ray 1 is also in-phase.