I understand the relationship between velocity and wavelength when the refractive index changes but I can't fully understand why frequency cannot change. What would happen if it did? why can't the speed of light stay constant as frequency and wavelength change to keep it. Is it because of experiments that we know it is constant? I want a better understanding of why it cannot change.