Sub topic 1
Waves, wavelength and phase
Every result in this tutorial comes from adding up waves, so we start with the vocabulary for describing a single wave. This chapter fixes the symbols and conventions used later. Its most important result is the link between a path length and a phase angle, because the double slit turns on exactly that link.
Prerequisites
This chapter assumes you already know the following:
- Basic trigonometry: sine and cosine, radians, and the small-angle approximation.
- Wave properties at the level of a first physics course: wavelength, frequency, amplitude and wave speed.
- Light as an electromagnetic wave, at a conceptual level. You don't need Maxwell's equations.
- Basic Python and NumPy, only if you want to run the optional code.
You don't need complex numbers here. Later chapters may mention them as a shortcut, but everything in this chapter works with cosines.
What a wave description has to capture
A travelling wave is a disturbance that repeats in both space and time. For light, the disturbance is the electric field. At a fixed position the field oscillates up and down over time. At a fixed instant it varies along the direction of travel. A complete description has to say how fast the pattern repeats in each of these two ways and where in its cycle the wave is.
For a wave moving in the +x direction, the standard form is:
E(x, t) = A cos(kx − ωt + φ)
The symbols in this expression are defined below.
| Symbol | Name | Meaning | Unit |
|---|---|---|---|
| A | Amplitude | Maximum size of the disturbance | field units |
| λ | Wavelength | Distance over which the pattern repeats in space | m |
| k = 2π/λ | Wave number | Phase gained per metre of travel | rad/m |
| f | Frequency | Complete oscillations per second at a fixed point | Hz |
| T = 1/f | Period | Time for one oscillation | s |
| ω = 2πf | Angular frequency | Phase change per second at a fixed point | rad/s |
| v | Wave speed | Speed at which the pattern moves | m/s |
| φ | Phase constant | Starting point in the cycle at x = 0, t = 0 | rad |
The quantities are linked by one relation, which holds for every wave:
v = fλ
Equivalently, ω = vk. In a vacuum the speed of light is c = 299 792 458 m/s, so a given wavelength fixes the frequency and the other way round.
Wavelength: the period in space
The wavelength λ is the distance between two neighbouring points that are in the same state of oscillation, for example two adjacent crests. Visible light has wavelengths from about 400 nm (violet) to about 700 nm (red). The red helium-neon laser used in the code examples of this tutorial has λ = 633 nm.
These wavelengths are small compared with everyday objects but not compared with the openings in this tutorial. A slit a fraction of a millimetre wide is only a few hundred wavelengths across. That size ratio is why light shows wave effects in these experiments and seems to travel in straight lines elsewhere.
Wavelength depends on the medium
When light enters a material, its frequency stays the same. The source sets the frequency, and the field at a boundary has to oscillate continuously across it. The speed drops to v = c/n, where n is the refractive index. Since v = fλ with f fixed, the wavelength shrinks:
λ_medium = λ₀ / n
Here λ₀ is the vacuum wavelength. Red light at 633 nm has a wavelength of about 422 nm inside glass with n = 1.5. Always check which wavelength a problem gives you. Tables and laser labels quote the vacuum value.
Phase: where you are in the cycle
The whole argument of the cosine, kx − ωt + φ, is called the phase. It is an angle in radians. Each time it increases by 2π, the wave has gone through one complete cycle and looks the same again.
Phase is the quantity that interference depends on. Two waves of the same wavelength can have the same amplitude and still behave very differently when combined, depending on how their phases compare.
Phase has three parts:
- kx changes with position. Moving forward by one wavelength adds k·λ = 2π.
- −ωt changes with time. Waiting one period subtracts ω·T = 2π.
- φ is a fixed offset that sets the starting point.
The minus sign between kx and ωt is what makes the wave travel forward. A point of constant phase satisfies kx − ωt = constant, so x = (ω/k)t + constant. That point moves at speed ω/k = v in the +x direction.
Phase difference and path difference
Take two waves with the same wavelength that leave a source together and reach the same point after travelling different distances. The wave on the longer route has had more distance over which to accumulate phase. If the routes differ in length by Δ, the phase difference is:
Δφ = (2π/λ) · Δ = kΔ
This conversion from length to angle is used throughout the tutorial. A path difference of one whole wavelength gives Δφ = 2π, which is the same as no difference at all. A path difference of half a wavelength gives Δφ = π, which puts the two waves exactly opposite in step.
| Path difference Δ | Phase difference Δφ | Relative timing |
|---|---|---|
| 0 | 0 | In step |
| λ/4 | π/2 | A quarter cycle apart |
| λ/2 | π | Opposite |
| λ | 2π | In step again |
| 3λ/2 | 3π | Opposite again |
Only the phase difference modulo 2π matters physically. A difference of 3π looks identical to one of π.
Optical path in a material
If one of two routes passes through glass, counting metres is not enough. Inside the glass the wavelength is shorter, so the same thickness holds more wavelengths and adds more phase. The fix is the optical path length, which is the geometric length multiplied by n for each section. Then Δφ = 2π · (optical path difference) / λ₀, with λ₀ the vacuum wavelength. Optical path comes up again when a thin film or a glass sheet covers one slit, and it is just the phase rule with the refractive index folded in.
Wavefronts and rays
A wavefront is a surface joining points of equal phase. For a point source in uniform space the wavefronts are spheres. Far from the source, a small patch of a sphere is almost flat, and we call it a plane wave. The line perpendicular to the wavefronts is a ray, and it shows the direction of travel.
Two wavefront shapes matter in this tutorial:
- Plane waves, produced by a distant source or a lens-collimated laser, hit a pair of slits all at once with the same phase.
- Spherical (or, for a long slit, cylindrical) waves spread out from each opening afterwards.
Intensity depends on amplitude squared
Detectors and eyes do not follow the field at 10¹⁴ oscillations per second. They respond to the time-averaged power, which is proportional to the square of the amplitude:
I ∝ A²
Doubling the amplitude of a wave multiplies its intensity by four. Keep this in mind. Phases combine by adding the waves, but brightness is read off from the square of the resulting amplitude. The next chapter takes up that addition.
Worked example in code
The script below computes the frequency of a 633 nm laser, its wavelength inside glass, and the phase difference produced by a given path difference.
import numpy as np
c = 299_792_458 # m/s, speed of light in vacuum
wavelength0 = 633e-9 # m, red helium-neon laser (vacuum value)
n_glass = 1.5 # refractive index of the glass
f = c / wavelength0
wavelength_glass = wavelength0 / n_glass
k = 2 * np.pi / wavelength0
omega = 2 * np.pi * f
print(f"Frequency: {f:.3e} Hz")
print(f"Wavelength in glass: {wavelength_glass * 1e9:.1f} nm")
print(f"Wave number k: {k:.3e} rad/m")
print(f"Angular frequency: {omega:.3e} rad/s")
# Phase difference from a path difference, in air or vacuum
path_difference = 0.5e-6 # m
delta_phi = k * path_difference
print(f"Phase difference: {delta_phi:.3f} rad")
print(f"Reduced to one cycle: {delta_phi % (2 * np.pi):.3f} rad")
print(f"In wavelengths: {path_difference / wavelength0:.3f}")The script prints a frequency of about 4.74 × 10¹⁴ Hz, a wavelength in glass of 422.0 nm, and a phase difference of about 4.96 rad. That is 0.79 of a wavelength, a little less than the π-radian (half-wavelength) offset of the table above would suggest if you compare it with 3π/2 ≈ 4.71 rad.
Common errors
- Using a wavelength in a medium where the vacuum value belongs, or the reverse. The formula Δφ = kΔ needs the wavelength that matches the medium the path runs through.
- Mixing degrees and radians. Phase in the formulas above is in radians. Set your calculator and NumPy calls accordingly.
- Believing frequency changes in glass. Wavelength and speed change. Frequency does not.
- Confusing f with ω. A frequency of 5 × 10¹⁴ Hz corresponds to ω ≈ 3.1 × 10¹⁵ rad/s, which is a different number.
- Dropping the modulo. A phase of 5π and a phase of π describe the same situation for interference.
Exercise
Two beams of red light (vacuum wavelength 600 nm) start in step. One travels 2.4 µm through air, the other 2.7 µm through air. What is the phase difference at the end, as a multiple of π, and are the beams in step or opposite?
Show answer
The path difference is 0.3 µm = 300 nm, which is half a wavelength (λ/2). Then Δφ = 2π × (300 nm / 600 nm) = π. The beams are opposite in phase.
Exercise
Light of vacuum wavelength 500 nm enters glass with n = 1.5. Give its wavelength in the glass and its frequency in the glass.
Show answer
The wavelength is 500 nm / 1.5 ≈ 333 nm. The frequency is unchanged: f = c/λ₀ = (3.00 × 10⁸ m/s) / (500 × 10⁻⁹ m) = 6.0 × 10¹⁴ Hz.
Exercise
A path difference of 4.25 wavelengths separates two waves. What is the phase difference reduced to the range 0 to 2π?
Show answer
Δφ = 2π × 4.25 = 8.5π. Subtracting four full cycles (8π) leaves 0.5π, so the waves differ by π/2, a quarter cycle.