Sub topic 6
Refraction and Snell's law
This chapter assumes you know the laws of reflection, the Cartesian sign convention, and basic trigonometry (sine and its inverse). It covers refraction at a flat boundary between two media. Apparent depth, total internal reflection, and curved surfaces come in later chapters.
What refraction is
Refraction is the bending of a ray as it passes from one transparent medium into another. It happens because light travels at different speeds in different media. The refractive index n of a medium is the ratio of the speed of light in vacuum to its speed in that medium:
n = c / v
Air is about 1.0, water about 1.33, and common glass about 1.5. A medium with larger n is called optically denser. Light is slower in it.
Laws of refraction
- The incident ray, the refracted ray, and the normal at the point of incidence lie in the same plane.
- Snell's law holds: for a given pair of media and a given colour of light, sin i / sin r is constant. In terms of refractive indices:
n₁ sin i = n₂ sin r
Here i is the angle of incidence in medium 1 and r is the angle of refraction in medium 2. Both angles are measured from the normal, not from the surface.
The relative index of medium 2 with respect to medium 1 is ₁n₂ = n₂ / n₁ = v₁ / v₂.
Worked example
A ray in air (n = 1) strikes a glass surface (n = 1.5) at 30° to the normal. Find the angle of refraction.
- Write Snell's law: 1 × sin 30° = 1.5 × sin r.
- So sin r = 0.5 / 1.5 = 0.333.
- Therefore r = sin⁻¹(0.333) ≈ 19.5°.
The ray bends toward the normal, as expected for rarer to denser.
The same calculation in code:
import math
def refraction_angle(n1, n2, i_deg):
"""Angle of refraction in degrees from Snell's law: n1 sin i = n2 sin r.
Returns None if total internal reflection occurs."""
s = n1 * math.sin(math.radians(i_deg)) / n2
if s > 1:
return None
return math.degrees(math.asin(s))
print(round(refraction_angle(1.0, 1.5, 30), 1)) # 19.5
print(round(refraction_angle(1.5, 1.0, 30), 1)) # 48.6The second call shows the reverse path. Going from glass to air at 30°, the ray bends away from the normal.
What changes at the boundary
Frequency is set by the source and does not change on refraction. Speed and wavelength both change, and they change in proportion:
- v = c / n
- λ = λ₀ / n, where λ₀ is the wavelength in vacuum
A ray striking the boundary along the normal (i = 0) passes straight through without bending, though its speed still changes.
Reversibility and a useful chain rule
Light paths are reversible. If a ray goes from medium 1 to medium 2 along some path, a ray sent back along the refracted path retraces the incident path. This gives ₁n₂ = 1 / ₂n₁.
For a stack of parallel layers, n₁ sin θ₁ = n₂ sin θ₂ = n₃ sin θ₃ = … The product n sin θ stays the same through every layer. Only the first and last media matter if you want the final angle.
Common errors
- Using the surface angle instead of the angle to the normal.
- Putting n₁ and n₂ on the wrong sides of the equation. The index of the medium containing the angle goes with that angle.
- Thinking wavelength stays fixed. Frequency stays fixed.
- Calling a medium "denser" because of mass density. Optical density refers to refractive index. The two do not always agree.
Exercise
Light of wavelength 600 nm in vacuum enters glass of refractive index 1.5 at an angle of incidence of 45°. Find the angle of refraction, the speed of light in the glass, and the wavelength in the glass. Take c = 3 × 10⁸ m/s.
Show answer
Snell's law gives sin r = sin 45° / 1.5 = 0.7071 / 1.5 = 0.471, so r ≈ 28.1°. The speed is v = c / n = 3 × 10⁸ / 1.5 = 2 × 10⁸ m/s. The wavelength is λ = 600 / 1.5 = 400 nm. The frequency is unchanged.
Exercise
A ray passes from air into water (n = 1.33) and then into glass (n = 1.5), through parallel boundaries. The angle in air is 40°. What is the angle in the glass?
Show answer
n sin θ is constant across parallel layers, so 1 × sin 40° = 1.5 × sin θ. Then sin θ = 0.6428 / 1.5 = 0.4285, so θ ≈ 25.4°. The water layer does not affect the final angle.