Lesson 6 of 15

Speed of Light in Media

Speed of Light in Media

Light travels at c=3×108m/sc = 3 \times 10^8\,\text{m/s} in vacuum. Inside a transparent medium, it slows down. The ratio of the vacuum speed to the medium speed defines the refractive index:

n=cvv=cnn = \frac{c}{v} \quad \Longrightarrow \quad v = \frac{c}{n}

Speed in Various Media

MediumnnSpeed (m/s)
Vacuum1.0003.000×1083.000 \times 10^8
Air1.00032.999×1082.999 \times 10^8
Water1.3332.25×1082.25 \times 10^8
Glass1.52.00×1082.00 \times 10^8
Diamond2.421.24×1081.24 \times 10^8

Wavelength Change

Light's frequency ff does not change when it enters a medium (it's set by the source). But since v=fλv = f\lambda, a lower speed means a shorter wavelength:

λn=λ0n\lambda_n = \frac{\lambda_0}{n}

Where λ0\lambda_0 is the wavelength in vacuum and λn\lambda_n is the wavelength in the medium.

Example: Yellow sodium light (λ0=589nm\lambda_0 = 589\,\text{nm}) entering glass (n=1.5n = 1.5):

λn=5891.5393nm\lambda_n = \frac{589}{1.5} \approx 393\,\text{nm}

The wavelength shortens, but the color we perceive is determined by frequency — so the light still looks yellow when it exits.

Finding the Refractive Index

If you measure the speed of light inside a medium:

n=cvn = \frac{c}{v}

Your Task

Implement the three functions below. Use c=3×108m/sc = 3 \times 10^8\,\text{m/s}.

Python runtime loading...
Loading...
Click "Run" to execute your code.