Sub topic 5
Why light bends when it crosses a boundary
This chapter explains the cause of refraction, the bending of light at an interface between two transparent media. It assumes you know basic trigonometry (sine and inverse sine), how to measure angles, and that speed is distance divided by time. It also assumes you have read the previous chapters on the surface normal and the refractive index. The next chapter turns the result into Snell's law. Here the goal is to understand why the bending happens, so the formula is not a memorized rule.
What refraction is
Refraction is the change in direction of a wave when it passes from one medium into another in which its speed is different. A ray of light going from air into water changes direction at the surface. A ray that hits the surface head-on does not change direction.
Three observations describe every case:
- The refracted ray stays in the plane formed by the incident ray and the normal.
- When light enters a medium where it travels more slowly (higher refractive index), the ray bends toward the normal. The refraction angle is smaller than the incidence angle.
- When light enters a medium where it travels faster (lower refractive index), the ray bends away from the normal.
Angles are always measured from the normal, not from the surface. Mixing these up is the most common error in refraction problems.
The key fact: speed changes, frequency does not
A light wave has a frequency f (how many wave crests pass a point each second), a wavelength λ (the distance between crests), and a speed v. They are linked by:
v = f × λ
When light crosses a boundary, the source of the wave on the far side is the wave arriving at the boundary. The crests cannot pile up or vanish at the surface, so the number of crests arriving per second equals the number leaving per second. Therefore:
- The frequency stays the same in both media.
- The speed changes to v = c / n, where n is the refractive index of the new medium.
- The wavelength must change to keep v = f × λ true: λ in the medium = λ in vacuum / n.
The following table uses typical values for visible light.
| Medium | Refractive index n | Speed of light (m/s) | Wavelength of 589 nm light (nm) |
|---|---|---|---|
| Vacuum | 1.000 | 2.998 × 10^8 | 589 |
| Water | 1.33 | 2.25 × 10^8 | 443 |
| Glass (crown) | 1.50 | 2.00 × 10^8 | 393 |
| Diamond | 2.42 | 1.24 × 10^8 | 243 |
Color, as your eye perceives it, is tied to frequency. That is why light from a yellow lamp still looks yellow when you view it through water, even though its wavelength has shrunk.
The wavefront picture
A wavefront is a line (in 2D) or surface (in 3D) connecting points of the wave that are in the same phase, such as all the crests. A ray is a line drawn perpendicular to the wavefronts, pointing in the direction the wave travels. For a plane wave, the wavefronts are straight and parallel, and rays are parallel lines.
Suppose a plane wave strikes a flat boundary at an angle. The wavefront does not reach the boundary all at once. One end of it touches the surface first. From that moment, the part of the wavefront at that end is in the new medium and moves at the new speed, while the rest is still travelling in the old medium at the old speed.
Think of a row of marchers walking from pavement onto mud at an angle. The marcher who reaches the mud first slows down. The others keep their pace until they too reach the mud. During this time the line pivots, and the marching direction changes. The line is the wavefront, and the marchers' direction of travel is the ray.
Deriving the amount of bending
You can work out the exact bending from geometry and the definition of speed. Consider one wavefront as it crosses the boundary.
- Point A on the wavefront is the end that is already in medium 2. Point B is the other end, still in medium 1 and just about to reach the surface.
- During a time Δt, the wavefront at A travels a distance v2 × Δt in medium 2. During the same time, the wavefront at B travels a distance v1 × Δt in medium 1 and reaches the surface.
- Call the distance along the boundary between the two contact points L. This segment is the shared side of two right triangles, one on each side of the boundary.
The angle between a wavefront and the boundary equals the angle between its ray and the normal, because both pairs of lines are perpendicular to each other. So in the medium 1 triangle, the angle at the boundary is θ1, and in the medium 2 triangle it is θ2. In each triangle L is the hypotenuse, so:
- sin θ1 = (v1 × Δt) / L
- sin θ2 = (v2 × Δt) / L
Dividing the first equation by the second cancels both Δt and L:
sin θ1 / sin θ2 = v1 / v2
This is the core result of the chapter. The ratio of the sines of the angles equals the ratio of the speeds. Because v = c / n, it follows that v1 / v2 = n2 / n1, which gives the relation you will meet in the next chapter as Snell's law.
Some consequences follow directly from the ratio:
- If v2 < v1 (a slower medium), then sin θ2 < sin θ1, so θ2 < θ1 and the ray bends toward the normal.
- If v2 > v1 (a faster medium), then θ2 > θ1 and the ray bends away from the normal.
- If θ1 = 0, then sin θ2 = 0, so the ray goes straight through. The whole wavefront reaches the boundary at once, so no part of it gets ahead of the rest, and nothing pivots.
- If the speeds are equal, the ratio is 1 and there is no bending, which is what happens across a boundary between two identical materials.
Calculating from speeds
The code below uses only the speeds of light in the two media, as in the derivation, and does not use refractive indices directly. It also reports the wavelength and the frequency to confirm that the frequency is the same in both media.
import math
C = 299_792_458.0 # speed of light in vacuum, m/s
def refract_from_speeds(v1, v2, theta1_deg):
"""Refraction angle in degrees from the speeds in the two media.
Uses sin(theta1) / sin(theta2) = v1 / v2.
Returns None if no refracted wave exists (sin(theta2) > 1).
"""
s = (v2 / v1) * math.sin(math.radians(theta1_deg))
if s > 1:
return None
return math.degrees(math.asin(s))
n_glass = 1.5
v_air = C # air is close enough to vacuum for this example
v_glass = C / n_glass
theta2 = refract_from_speeds(v_air, v_glass, 30)
print(f"Refraction angle: {theta2:.2f} degrees")
wavelength_vacuum = 589e-9 # metres
frequency = C / wavelength_vacuum
wavelength_glass = v_glass / frequency
print(f"Frequency: {frequency:.3e} Hz")
print(f"Wavelength in vacuum: {wavelength_vacuum * 1e9:.1f} nm")
print(f"Wavelength in glass: {wavelength_glass * 1e9:.1f} nm")Running it prints a refraction angle of 19.47 degrees, a frequency of about 5.090e+14 Hz, and wavelengths of 589.0 nm in vacuum and 392.7 nm in glass. The ray bends toward the normal because glass is the slower medium.
The None return is worth noticing. When light goes from a slow medium into a fast one, the quantity (v2 / v1) * sin(theta1) can exceed 1 for large incidence angles. No real angle has a sine greater than 1, so no refracted wave can exist. That situation is total internal reflection, covered in a later chapter.
Common errors
- Measuring from the surface. If a problem gives the angle between the ray and the boundary, subtract it from 90° to get the angle from the normal before using any refraction formula.
- Thinking the frequency changes. Speed and wavelength change at the boundary. Frequency does not.
- Reversing the direction of bending. The ray bends toward the normal in the slower medium. A quick check: the medium with the larger n has the smaller angle.
- Confusing the wavefront angle with the ray angle. A wavefront is perpendicular to its ray, but the angle that matters is the one between the ray and the normal. In the derivation, that same angle shows up between the wavefront and the surface.
- Assuming that all of the light is refracted. At every boundary some light is also reflected. The law of reflection still applies to that part. How much goes each way is the subject of the final chapter, which looks at the Fresnel equations.
- Using a single n for all colors. The refractive index depends slightly on wavelength, so different colors bend by slightly different amounts. This is the subject of the dispersion chapter. For a single-color (monochromatic) beam, one value of n is enough.
Checking the model against a real case
A beam passes from air into water at an incidence angle of 45°. Using n = 1.33 for water:
- The speed ratio is v2 / v1 = 1 / 1.33 = 0.752.
- sin 45° = 0.707, so sin θ2 = 0.752 × 0.707 = 0.532.
- θ2 = asin(0.532) ≈ 32.1°.
The ray bends from 45° to about 32° from the normal, toward the normal, as expected for a slower medium. This is why a straw in a glass of water seems to break at the surface. The rays from the submerged part bend away from the normal as they leave the water, so your eye places that part of the straw at a different position than where it really is.
Exercise
A plane wave travels from glass (v1 = 2.00 × 10^8 m/s) into air (v2 = 3.00 × 10^8 m/s). The ray makes an angle of 20° with the normal in the glass. Does it bend toward or away from the normal, and what is the refraction angle to the nearest degree?
Show answer
The wave enters a faster medium, so the ray bends away from the normal. sin θ2 = (v2 / v1) × sin 20° = 1.5 × 0.342 = 0.513, so θ2 = asin(0.513) ≈ 31°.
Exercise
Red light of frequency 4.5 × 10^14 Hz enters water (n = 1.33) from air. What is its frequency in the water, and what is its wavelength in the water? Use c = 3.00 × 10^8 m/s.
Show answer
The frequency does not change, so it is still 4.5 × 10^14 Hz. In air the wavelength is c / f = 3.00 × 10^8 / 4.5 × 10^14 ≈ 667 nm. In water it is 667 nm / 1.33 ≈ 501 nm.
Exercise
A student measures that a ray makes an angle of 60° with the surface of a pool where it enters the water. A formula needs the incidence angle. What value should the student use, and why does a ray with an incidence angle of 0° not bend?
Show answer
The student should use 90° − 60° = 30°, because incidence angles are measured from the normal. A ray at 0° travels along the normal, so its whole wavefront reaches the boundary at the same moment. No part of the wavefront gets ahead of the rest, so the wavefront does not pivot and the direction does not change, even though the speed does.