Consider a ray of light incident from air onto a slab of glass (refractive index n) of width d