Sub topic 1
Waves: Frequency, Wavelength, and Wave Speed
This chapter builds the vocabulary and the one equation that the rest of the tutorial relies on. Sound intensity, decibels, and the Doppler effect all start from the relationship between how often a wave oscillates, how long each cycle is in space, and how fast the pattern moves.
Prerequisites
This chapter assumes you already have the following:
- Basic algebra, including solving for one variable in an equation and working with powers.
- A rough idea of what a wave is: a disturbance that repeats and carries energy from place to place.
- Familiarity with units such as meters, seconds, and hertz.
- Comfort reading short Python programs. The code uses only the standard library.
You do not need calculus. Later chapters use logarithms for the decibel scale, but this chapter does not.
What a periodic wave looks like
A periodic wave is a disturbance that repeats in both time and space. Picture a long rope tied to a post. If you shake your end up and down steadily, a pattern of crests and troughs travels along the rope. Two things are happening at once:
- At any single point on the rope, the rope moves up and down repeatedly. That is repetition in time.
- At any single instant, a photograph of the rope shows a repeating shape. That is repetition in space.
Each kind of repetition has its own measure. The chapter introduces them in pairs.
Time measures: period and frequency
The period T is the time for one complete cycle at a fixed point. It is measured in seconds.
The frequency f is the number of complete cycles per second. Its unit is the hertz (Hz), where 1 Hz means one cycle per second. The two are reciprocals:
f = 1 / T
A 440 Hz tone has a period of 1/440 s, about 2.27 ms. Human hearing in young adults spans roughly 20 Hz to 20 kHz.
Space measures: wavelength
The wavelength λ (Greek letter lambda) is the distance over which the pattern repeats. It is the distance from one crest to the next crest, or from any point on the wave to the next point in the same state. It is measured in meters.
Amplitude
The amplitude A is the maximum displacement from equilibrium. For a rope it is a height. For sound it is a pressure change, which later chapters connect to intensity. Amplitude does not appear in the wave speed relation below, and that fact matters.
The wave speed relation
During one period T, the pattern advances by exactly one wavelength. Speed is distance divided by time, so:
v = λ / T = f λ
This is the fundamental wave equation. It holds for every periodic wave: sound, light, water waves, and waves on a string. Rearranged, it gives whichever quantity you lack:
- λ = v / f
- f = v / λ
- v = f λ
def wavelength(speed_m_s, frequency_hz):
"""Wavelength in meters from wave speed and frequency."""
return speed_m_s / frequency_hz
def period(frequency_hz):
"""Period in seconds."""
return 1.0 / frequency_hz
v_air = 343.0 # m/s, sound in air near 20 degrees C
for f in (20, 440, 20_000):
print(f"{f:>6} Hz period = {period(f)*1000:8.3f} ms "
f"wavelength = {wavelength(v_air, f):8.4f} m")Running this prints:
20 Hz period = 50.000 ms wavelength = 17.1500 m
440 Hz period = 2.273 ms wavelength = 0.7795 m
20000 Hz period = 0.050 ms wavelength = 0.0172 mAudible sound in air therefore has wavelengths from about 17 m down to about 1.7 cm. That range explains many everyday effects. Bass notes bend around corners and through doorways easily because their wavelengths are large compared with the obstacles. High-pitched sounds are easily blocked, because their wavelengths are small.
Who controls what: source versus medium
The equation v = f λ has three quantities, but they are not equal partners. Two different things fix them.
- The source sets the frequency. A loudspeaker cone that moves back and forth 440 times per second produces a 440 Hz wave, whatever the surroundings are.
- The medium sets the wave speed. The speed depends on properties of the material, such as its stiffness and density, and not on how the wave was made. For a wave on a string under tension Ts with mass per unit length μ, the speed is v = √(Ts / μ). Chapter 3 gives the corresponding results for sound.
- The wavelength follows. Once f and v are fixed, λ = v / f is determined.
Beginners often try to change wavelength and frequency independently while keeping the speed fixed. That is impossible in a given medium. If you double the frequency, the wavelength halves.
What happens at a boundary
When a wave passes from one medium into another, the frequency stays the same, because each cycle that arrives at the boundary must leave it. Otherwise cycles would pile up or vanish at the interface. The speed changes because the new medium has different properties. Therefore the wavelength changes.
f = 440.0 # Hz, set by the source and unchanged at the boundary
v_air = 343.0 # m/s
v_water = 1480.0 # m/s, approximate for fresh water near room temperature
lam_air = v_air / f
lam_water = v_water / f
print(f"in air: {lam_air:.4f} m")
print(f"in water: {lam_water:.4f} m")
print(f"ratio: {lam_water / lam_air:.3f}")This prints wavelengths of 0.7795 m in air and 3.3636 m in water, a ratio of 4.315. That ratio is exactly the ratio of the speeds, 1480 / 343. A 440 Hz tone is the same note in both media. Only the spacing of its crests changes.
Angular quantities: ω and k
Physics texts often write a traveling wave in a compact form. For a wave moving in the positive x direction, the displacement at position x and time t is:
y(x, t) = A sin(k x − ω t)
Here ω is the angular frequency and k is the wave number:
- ω = 2π f, measured in radians per second.
- k = 2π / λ, measured in radians per meter.
These are the same two ideas as before, rescaled so that one cycle corresponds to 2π radians of phase. The wave speed becomes:
v = ω / k
You can check this by substitution: (2π f) / (2π / λ) = f λ. The form with ω and k is convenient because the argument of the sine is then a simple phase with no stray factors of 2π.
import math
f = 440.0
v = 343.0
omega = 2 * math.pi * f
k = omega / v # same as 2*pi / wavelength
print(f"omega = {omega:.2f} rad/s")
print(f"k = {k:.3f} rad/m")
print(f"v = {omega / k:.1f} m/s")The output is ω = 2764.60 rad/s, k = 8.060 rad/m, and v = 343.0 m/s.
Reading the sign in the wave function
The sign between kx and ωt tells you the direction of travel.
| Wave function | Direction of travel |
|---|---|
| sin(k x − ω t) | toward +x |
| sin(k x + ω t) | toward −x |
To see why, follow a crest, a point where the phase kx − ωt stays constant. Then k dx = ω dt, so dx/dt = ω/k = +v. With the plus sign the same reasoning gives −v. You will use this direction convention again when the Doppler formula needs signs for moving sources.
Transverse and longitudinal waves
Waves are classified by how the medium moves compared with how the wave travels.
- In a transverse wave, the medium moves perpendicular to the direction of travel. A wave on a rope is the standard example.
- In a longitudinal wave, the medium moves back and forth parallel to the direction of travel. A compressed region and a stretched region move along a spring. Sound in air is longitudinal, which the next chapter develops.
The equation v = f λ does not care which type you have. Wavelength for a longitudinal wave is the distance between successive compressions (or between successive stretched regions).
A common misconception is that the medium itself travels along with the wave. It does not. Each small piece of the medium oscillates around a fixed position, and only the pattern and its energy move. Wave speed v is the speed of the pattern. It is not the speed of the particles, which changes continuously as they oscillate.
Common errors and edge cases
Several mistakes show up repeatedly when learners apply v = f λ.
- Mixing up Hz and rad/s. If a problem gives ω, convert with f = ω / 2π before using v = f λ. Using ω directly makes your wavelength too small by a factor of 2π, about 6.28.
- Unit slips. Frequencies in kHz or MHz and wavelengths in cm or mm must be converted to Hz and m before use. A 2 kHz tone in air has λ = 343 / 2000 = 0.1715 m, not 0.1715 mm.
- Assuming amplitude changes speed. For ordinary sound at everyday loudness and for small waves on a string, a larger amplitude does not make the wave faster. Extreme amplitudes are an exception: a very strong sound wave, such as a shock wave, can travel faster than the normal speed of sound. Chapter 12 returns to this.
- Treating frequency as fixed across a boundary but forgetting that wavelength changes. When a wave enters a new medium, keep f and recompute λ with the new speed.
- Dispersion. In some media the speed depends on frequency, so different frequencies travel at different speeds and v = f λ must be applied with the speed for that frequency. Water waves and light in glass are dispersive. Sound in air at audible frequencies is very close to non-dispersive, so one value of v serves for all pitches. In dispersive cases, the phase speed ω/k (how fast a single crest moves) can differ from the group speed (how fast a pulse's overall envelope moves). This tutorial uses only non-dispersive cases.
- Using a single speed for all conditions. The speed of a wave depends on its medium and its state, such as temperature. The value 343 m/s is a convenient figure for air near 20 °C and will be refined in Chapter 3.
Worked example: a string and a tuning fork
A guitar string under 100 N of tension has a mass per unit length of 0.010 kg/m. The wave speed on it is:
v = √(100 / 0.010) = √10000 = 100 m/s
If the string vibrates at 250 Hz, the wavelength on the string is:
λ = v / f = 100 / 250 = 0.40 m
The string drives the surrounding air at the same 250 Hz, because the source sets the frequency. In air at 343 m/s, the sound wavelength is:
λ_air = 343 / 250 = 1.372 m
So the same vibration has a 0.40 m wavelength on the string and a 1.372 m wavelength in the air. The frequency is the quantity that carries over, and both wavelengths come from the same relation with different speeds.
import math
tension = 100.0 # N
mu = 0.010 # kg/m
f = 250.0 # Hz
v_string = math.sqrt(tension / mu)
print(f"string: v = {v_string:.1f} m/s, wavelength = {v_string / f:.3f} m")
print(f"air: v = 343.0 m/s, wavelength = {343.0 / f:.3f} m")This prints a string wavelength of 0.400 m and an air wavelength of 1.372 m.
Summary
- Period and frequency are reciprocals: f = 1 / T.
- Wavelength is the spatial repeat distance, and the wave speed obeys v = f λ.
- The source sets the frequency, the medium sets the speed, and the wavelength follows from λ = v / f.
- At a boundary the frequency stays the same while speed and wavelength change together.
- In angular form, ω = 2π f and k = 2π / λ, with v = ω / k.
- The sign in sin(kx ∓ ωt) tells the direction of travel.
Exercise
A tone of 85 Hz travels through air at 343 m/s. Find its period and its wavelength. Then say whether this wave would bend around a doorway 1 m wide more or less easily than a 4000 Hz tone.
Show answer
The period is T = 1/85 ≈ 0.0118 s (11.8 ms). The wavelength is λ = 343/85 ≈ 4.04 m. For the 4000 Hz tone, λ = 343/4000 ≈ 0.086 m. The 85 Hz wave has a wavelength much larger than the 1 m doorway, so it spreads out and bends around it easily. The 4000 Hz wave has a wavelength much smaller than the doorway, so it passes through more like a beam and bends less.
Exercise
A 1000 Hz sound wave in air (343 m/s) enters water, where the speed is 1480 m/s. What are its frequency and wavelength in the water, and by what factor did the wavelength change?
Show answer
The frequency stays at 1000 Hz because the source sets it and cycles cannot pile up at the boundary. In air the wavelength is 343/1000 = 0.343 m. In water it is 1480/1000 = 1.48 m. The wavelength grew by a factor of 1480/343 ≈ 4.31.
Exercise
A wave is described by y(x, t) = 0.02 sin(12.0 x − 4080 t), with x in meters and t in seconds. Find its wave speed and frequency, and state its direction of travel.
Show answer
Here k = 12.0 rad/m and ω = 4080 rad/s. The speed is v = ω/k = 4080/12.0 = 340 m/s. The frequency is f = ω/2π = 4080/6.283 ≈ 649 Hz. The wavelength is 2π/12.0 ≈ 0.524 m, and 649 × 0.524 ≈ 340 m/s, which confirms the result. The minus sign between kx and ωt means the wave travels toward +x.