Sub topic 1
Light as rays
Every later chapter in this tutorial uses one simplification: light travels along straight lines called rays. This chapter defines what a ray is, states the rules of the ray model, and shows when the model is accurate enough to trust. You will also use it to solve a small problem.
Prerequisites
This chapter assumes you can do the following:
- Do basic algebra, including solving proportions.
- Use similar triangles: triangles with equal angles have sides in equal ratios.
- Read an angle from a diagram and know what sine is.
- Accept that light moves in a straight line through a uniform medium such as air or clear glass.
You do not need wave physics beyond knowing that light has a wavelength.
What a ray is
A ray is an idealized line that shows the direction in which light energy travels. A ray has no width, and you cannot isolate one in the lab. It is a drawing tool.
Real light comes as a beam with a finite width. You can think of a beam as a bundle of many rays side by side. A narrow flashlight beam or a laser spot is the nearest everyday picture of a single ray.
Light also has a wave nature. A wavefront is a surface joining points where the light wave has the same phase. In a uniform medium, a ray is a line perpendicular to the wavefronts, pointing the way they move. For a point source, the wavefronts are spheres and the rays spread out radially.
The rules of the ray model
The ray model rests on a short list of rules:
- In a uniform medium, a ray is a straight line.
- Rays from different sources cross without affecting each other.
- A ray can be reversed. If light goes from A to B along a path, light can go from B to A along the same path.
- At a boundary between two media, a ray can be reflected, refracted (bent), or both. The next chapters give the exact laws.
- A point source sends rays in every direction. An extended object is treated as many point sources, each sending its own rays.
Rule 2 is why you can look through a window and see two people's faces without the light from one person scrambling the other. Rule 3, called reversibility, is useful later. If you know how rays leave a lens from a point, you also know how rays entering from the other side behave.
How you see an object
You see a point on an object when rays from that point enter your eye. Each point on an illuminated surface scatters light in many directions, so rays from it reach any observer who has a line of sight.
Optical devices work by redirecting those rays. A mirror or lens takes the bundle from one object point and changes its direction. If the bundle converges to one point, or appears to diverge from one point, the device has formed an image of the object point. Chapters ahead are about locating that point.
Worked example: the pinhole camera
The simplest image-forming device has no lens. A pinhole camera is a dark box with a tiny hole in one wall and a screen on the opposite wall.
Each point on the object sends rays in all directions. Only the ray that passes through the hole reaches the screen, so each object point lights one spot on the screen. The result is an inverted image.
The geometry gives two similar triangles that share the hole as a vertex. Let h_o be the object height, d_o the distance from object to hole, d_i the distance from hole to screen, and h_i the image height. Then:
hi / ho = di / do
Suppose a tree 2 m tall stands 10 m from a pinhole camera whose screen is 0.1 m behind the hole. The image height is 2 × 0.1 / 10 = 0.02 m, or 2 cm.
def pinhole_image_height(h_o, d_o, d_i):
"""Image height on the screen of an ideal pinhole camera.
h_o: object height, d_o: object-to-hole distance, d_i: hole-to-screen distance.
All lengths use the same unit. The image is inverted.
"""
return h_o * d_i / d_o
print(round(pinhole_image_height(2, 10, 0.1), 6)) # 0.02 (metres)
print(round(pinhole_image_height(2, 10, 0.2), 6)) # 0.04, a deeper box gives a larger imageThe ratio di / do also appears later as the magnitude of the lateral magnification, with the same similar-triangle reasoning.
A pinhole image is dim, because the hole passes very little light. Making the hole larger brightens the image but blurs it, since each object point then lights a spot the size of the hole. Lenses solve this trade-off by bending many rays from one point back to one point.
When the ray model is valid
The ray model is an approximation of wave behavior. It works when the openings and objects that light meets are much larger than the wavelength. Visible light has wavelengths of about 400 to 700 nm, so for lenses, mirrors, and windows measured in millimetres or larger, the model is excellent.
When light passes through an opening of width a, diffraction spreads it by an angle of roughly wavelength / a radians. The code below shows how fast that spreading grows as the opening shrinks.
wavelength = 550e-9 # green light, in metres
for a in (1e-2, 1e-3, 1e-5, 1e-6): # opening width in metres
spread = wavelength / a # approximate angular spread in radians
print(f"a = {a:.0e} m spread ~ {spread:.1e} rad")Running it prints spreads of about 5.5e-05, 5.5e-04, 5.5e-02, and 5.5e-01 rad. A 1 cm opening spreads light by a negligible 0.00006 rad, so rays stay straight. A 1 µm opening spreads it by about half a radian, so the ray picture fails.
This also explains why a pinhole cannot be made arbitrarily small. Below a certain size, diffraction blurs the image more than the hole's geometry does.
Common errors
- Treating a drawn ray as a physical object. A ray shows a direction. Rays are not particles, and you can draw as many as you like. In practice you pick the few that are easiest to trace.
- Forgetting that rays go in all directions. A diagram shows only two or three rays from each point. The point actually sends light everywhere, and the other rays also pass through the image point.
- Assuming the ray model works at any scale. Check the opening size against the wavelength first.
- Assuming rays bend in uniform glass. They bend only at a boundary or where the material's properties change gradually, as in a mirage.
What comes next
The next two chapters give the laws for the rules in item 4 of the list. Reflection comes first, then refraction. After that, you will see how those laws, combined with the paraxial approximation, produce the mirror and lens equations.
Exercise
A pinhole camera has a screen 0.15 m behind the hole. It photographs a building 30 m tall that is 120 m from the hole. How tall is the image, and is it upright or inverted? Then explain why using a hole of width 1 µm would not give a sharper image.
Show answer
Using hi = ho × di / do, the image height is 30 × 0.15 / 120 = 0.0375 m, or 3.75 cm. The image is inverted, because rays through the hole cross. A 1 µm hole is only about twice the wavelength of visible light, so diffraction spreads the light by roughly half a radian. Each object point would light a large blurred patch, so the image would be less sharp, not more.
Exercise
Name two of the rules of the ray model and give one everyday observation that each explains.
Show answer
Rays from different sources cross without affecting each other, which is why two flashlight beams can cross in a dark room and each beam looks unchanged afterward. Rays travel in straight lines in a uniform medium, which is why a sharp-edged shadow forms behind an opaque object lit by a small bright lamp. Reversibility also works: if you can see someone's eyes in a mirror, they can see yours.