When a wave, including light, passes from one medium to another, its frequency remains constant. The speed of light is greater in a rarer medium than in a denser medium. The relationship between speed (\(v\)), frequency (\(f\)), and wavelength (\(\lambda\)) is \(v = f\lambda\). Since \(f\) is constant and \(v\) increases as light enters the rarer medium, the wavelength (\(\lambda\)) must also increase to maintain the equality.