Sub topic 5
Refraction and Snell's law
This chapter assumes you are comfortable with the sine function and with solving simple equations for an unknown angle. It also assumes you know that light travels in straight lines in a uniform medium. Reflection, plane mirrors, and real versus virtual images came earlier. Here the question is what happens to a ray that crosses into a different material.
Why light bends
Light travels at speed c in a vacuum. In a material it travels more slowly, at a speed v. The index of refraction n of the material measures this slowdown:
n = c / v
A vacuum has n = 1 exactly. Every material has n greater than 1, because light is always slower in matter than in a vacuum.
When a wave crosses a boundary, its frequency stays the same, because the source sets the frequency. The speed changes, so the wavelength changes too, and the relation v = f·λ gives λmaterial = λvacuum / n. A wavefront that hits the boundary at an angle slows down on one side before the other, and this pivots the wavefront. The ray, which is perpendicular to the wavefronts, changes direction. This bending is refraction.
| Material | Approximate n (visible light) |
|---|---|
| Vacuum | 1 (exactly) |
| Air (sea level) | 1.0003 |
| Water | 1.33 |
| Ordinary glass | 1.5 |
| Diamond | 2.42 |
Most problems treat air as n = 1.00. The error is about 0.03%, far below the precision of typical data.
Snell's law
Draw the normal, the line perpendicular to the surface at the point where the ray hits. Measure every ray angle from this normal, not from the surface. Let n₁ and θ₁ describe the incident side, and n₂ and θ₂ the transmitted side. Then:
n₁ sin θ₁ = n₂ sin θ₂
The incident ray, the refracted ray, and the normal all lie in one plane, the plane of incidence.
The law gives two rules of thumb:
- Going into a higher index (air to glass), the ray bends toward the normal, so θ₂ is less than θ₁.
- Going into a lower index (glass to air), the ray bends away from the normal, so θ₂ is greater than θ₁.
A ray along the normal (θ₁ = 0) does not bend at all. It still slows down and its wavelength shrinks.
Snell's law is reversible. If a ray travels from A to B along some path, a ray sent from B back along the same line retraces the path to A. This matters later, when we trace rays through lenses in both directions.
A procedure for any boundary
The diagram below shows the steps in order. The test for |s| greater than 1 is where total internal reflection appears. The next chapter covers it in detail.
Worked example in code
The function below follows that procedure exactly.
import math
def refract(n1, n2, theta1_deg):
"""Return the refraction angle in degrees, or None for total internal reflection."""
s = n1 * math.sin(math.radians(theta1_deg)) / n2
if abs(s) > 1:
return None
return math.degrees(math.asin(s))
print(refract(1.0, 1.5, 30)) # about 19.47 degrees, bending toward the normal
print(refract(1.5, 1.0, 60)) # None, beyond the critical angle of about 41.8 degreesBy hand, the first case is sin θ₂ = (1.0 × 0.5) / 1.5 = 0.3333, so θ₂ = 19.47°. The ray bends toward the normal, as the rule of thumb predicts. In the second case, going from glass to air at 60°, the quantity s = 1.5 × 0.866 / 1.0 = 1.30. No angle has a sine above 1, so no refracted ray exists.
Partial reflection
At a boundary between two transparent materials, refraction is not the whole story. Some of the light always reflects, and the reflected ray obeys the law of reflection from earlier. For light hitting glass head-on, about 4% reflects. This is why you see a faint reflection in a shop window. Snell's law gives the direction of the transmitted ray. It says nothing about how much light is transmitted.
A parallel-sided slab
Light that enters a flat glass slab and leaves through the parallel back face comes out parallel to its original direction. The reason is that the angle inside the glass at the second surface equals θ₂ from the first. Applying Snell's law there returns the ray to θ₁. The ray is not undeviated, though. It is shifted sideways by a distance
d = t · sin(θ₁ − θ₂) / cos θ₂
where t is the slab thickness.
import math
def slab_shift(t, n, theta1_deg, n_outside=1.0):
"""Sideways shift of a ray crossing a parallel-sided slab of thickness t."""
th1 = math.radians(theta1_deg)
th2 = math.asin(n_outside * math.sin(th1) / n)
return t * math.sin(th1 - th2) / math.cos(th2)
print(slab_shift(2.0, 1.5, 45)) # about 0.658 (same units as t)This lateral shift is why objects seen through a window at an angle look slightly displaced. A lens is different from a slab because its two surfaces are not parallel, so the exit ray points in a new direction. This is the basis of image formation by lenses.
Dispersion
The index n depends slightly on wavelength. In glass, blue light has a larger n than red light, so blue bends more. White light entering a surface at an angle therefore spreads into colors. Chapter material on chromatic aberration returns to this effect. For most calculations here, use a single n for the material.
Common errors
- Measuring from the surface. Snell's law uses angles from the normal. A problem that says the ray makes 30° with the surface gives θ₁ = 60°.
- Calculator in radians. Check that your calculator is in degree mode, or convert. The code above converts explicitly.
- Swapping n₁ and n₂. n₁ always belongs to the side the ray comes from, paired with θ₁.
- Assuming angles are proportional. Snell's law relates sines, not angles. Only for small angles does sin θ ≈ θ, so that n₁θ₁ ≈ n₂θ₂. This small-angle form is the basis of the paraxial approximation, covered later.
- Ignoring the arcsine domain. If the sine value exceeds 1, stop and recognize total internal reflection. Do not force an answer.
Summary of the model
- Light slows to v = c/n in a material, and its frequency stays the same.
- At a boundary, n₁ sin θ₁ = n₂ sin θ₂, with angles measured from the normal.
- Entering a higher index bends the ray toward the normal. Entering a lower index bends it away.
- The path is reversible, and a parallel slab shifts a ray sideways without changing its direction.
- When n₁ sin θ₁ / n₂ exceeds 1, no refracted ray exists.
Exercise
A ray in air (n = 1.00) hits the surface of water (n = 1.33) at 40° from the normal. Find the refraction angle. Then say whether the ray bends toward or away from the normal, and explain how you know without calculating.
Show answer
sin θ₂ = (1.00 × sin 40°) / 1.33 = 0.6428 / 1.33 = 0.4833, so θ₂ = arcsin(0.4833) ≈ 28.9°. The ray bends toward the normal. The light enters a material with a higher index (1.33 greater than 1.00), so it slows down, and θ₂ must be smaller than θ₁.
Exercise
A laser beam crosses a 3.0 cm thick glass slab (n = 1.5) in air at an incidence angle of 60°. Use slab_shift from this chapter, or the formula, to find the sideways shift of the beam.
Show answer
sin θ₂ = sin 60° / 1.5 = 0.8660 / 1.5 = 0.5774, so θ₂ ≈ 35.26°. The shift is d = 3.0 × sin(60° − 35.26°) / cos 35.26° = 3.0 × sin(24.74°) / 0.8165 ≈ 3.0 × 0.4184 / 0.8165 ≈ 1.54 cm. The beam exits parallel to its original direction, displaced by about 1.5 cm.