Sub topic 5
Period and frequency: the cycle in time
The previous chapter described a wave's cycle in space, using wavelength. This chapter describes the same cycle in time. Two quantities do this: the period and the frequency. They carry the same information in two forms. You will need both to use the wave equation in the next chapter.
What you should already know
This chapter assumes the following:
- You can rearrange simple equations such as
y = 1/xforx. - You are comfortable with units of time (s) and with metric prefixes such as milli- and kilo-.
- You can read a sine-shaped graph and identify a crest and a trough.
- You know that a mechanical wave is a disturbance moving through a medium. You also know that a point in the medium oscillates about a fixed position as the wave passes.
One cycle in time
Watch a single point in a medium while a periodic wave passes. This could be a cork floating on a pond or a spot on a guitar string. The point moves up, returns to its starting position, moves down, and returns again. After that, the motion repeats. One complete repetition is one cycle.
Two quantities describe how fast the cycles happen:
- The period
Tis the time for one complete cycle. Its unit is the second (s). - The frequency
fis the number of complete cycles per second. Its unit is the hertz (Hz), where 1 Hz = 1 cycle per second = 1 s⁻¹.
The two quantities are reciprocals of each other:
f = 1 / T T = 1 / fA source with a short period completes many cycles per second, so it has a high frequency. A source with a long period completes few cycles per second, so it has a low frequency.
"Cycle" is a counting unit, not a physical dimension. That is why the hertz is written as 1/s. When you check units, f = 1/T gives s⁻¹ = Hz, as it should.
A worked example
A buoy rises and falls 12 complete times in 30 s.
- The frequency is the number of cycles divided by the time:
f = 12 / 30 s = 0.40 Hz. - The period is the time divided by the number of cycles:
T = 30 s / 12 = 2.5 s. - Check the reciprocal:
1 / 0.40 Hz = 2.5 s. ✓
Both routes give the same answer, which is the point of the reciprocal relationship. Use whichever is easier from the data you have.
Reading the period from a graph
A displacement-time graph plots the displacement of one point in the medium against time. The horizontal axis is time. This is different from the displacement-position graph in the wavelength chapter, where the horizontal axis is distance. The two graphs look the same for a sine wave, but they measure different things:
| Graph | Horizontal axis | Distance between repeating features |
|---|---|---|
| Snapshot of the whole wave | Position (m) | Wavelength λ |
| History of one point | Time (s) | Period T |
The graph below shows one point in a medium over 8 ms. The wave has an amplitude of 2 mm.
To find the period from a graph like this:
- Pick a distinctive feature, such as a crest.
- Find the next identical feature, which is the next crest.
- Read the time between the two. Here the crests are at 1 ms and 5 ms, so
T = 4 ms. - Convert:
f = 1 / 0.004 s = 250 Hz.
Several habits make this measurement more reliable:
- Measure crest to crest or trough to trough. Do not measure from a crest to the next trough. That is only half a period.
- Measure across several cycles and divide. If 5 crests span 16 ms, there are 4 periods between them, so
T = 16 / 4 = 4 ms. Reading across several cycles reduces the effect of a small reading error at either end. Count intervals between crests, not crests themselves. - Do not use the amplitude. The peak height says nothing about the period. A louder or taller wave can have the same period as a quieter one.
Units and prefixes
Real frequencies range from slow ocean swells to billions of cycles per second. You will work with prefixes constantly, and prefix errors are the most common source of wrong answers in this topic.
| Quantity | Typical value | In SI base units | Period |
|---|---|---|---|
| Ocean swell | 0.1 Hz | 0.1 Hz | 10 s |
| Mains electricity (Europe) | 50 Hz | 50 Hz | 20 ms |
| Concert A | 440 Hz | 440 Hz | 2.27 ms |
| Upper limit of human hearing | 20 kHz | 20 000 Hz | 50 µs |
| FM radio | 98.1 MHz | 98 100 000 Hz | 10.2 ns |
The frequency and period prefixes run in opposite directions. When frequency goes up by a factor of 1000 (Hz to kHz), period goes down by a factor of 1000 (ms to µs). Always convert to hertz and seconds before applying f = 1/T. Otherwise, a period in milliseconds gives a frequency in "per millisecond", which is kHz. The numbers match, but only if you keep track of the prefix.
The next program computes periods for a list of frequencies and picks a sensible unit for each result.
def period_from_frequency(frequency_hz):
"""Return the period in seconds for a frequency in hertz."""
if frequency_hz <= 0:
raise ValueError("frequency must be positive")
return 1 / frequency_hz
def format_time(seconds):
"""Format a time using s, ms, µs or ns, whichever reads best."""
for unit, scale in (("s", 1), ("ms", 1e-3), ("µs", 1e-6)):
if seconds >= scale:
return f"{seconds / scale:.2f} {unit}"
return f"{seconds / 1e-9:.2f} ns"
sources = [
("US mains", 60.0),
("European mains", 50.0),
("Concert A", 440.0),
("Lowest audible", 20.0),
("Highest audible", 20_000.0),
("FM radio", 98_100_000.0),
]
for name, frequency in sources:
period = period_from_frequency(frequency)
print(f"{name}: {frequency:,.0f} Hz -> T = {format_time(period)}")
# US mains: 60 Hz -> T = 16.67 ms
# European mains: 50 Hz -> T = 20.00 ms
# Concert A: 440 Hz -> T = 2.27 ms
# Lowest audible: 20 Hz -> T = 50.00 ms
# Highest audible: 20,000 Hz -> T = 50.00 µs
# FM radio: 98,100,000 Hz -> T = 10.19 nsThe function rejects zero and negative frequencies. A frequency of zero would mean no oscillation at all, and its period would be infinite. Treating that as an error is more useful than returning a huge number.
Other ways frequency is quoted
Frequency is not always given in hertz. Check units before you compute.
- Revolutions per minute (rpm) is common for rotating machinery. Divide by 60 to get hertz. A fan at 1200 rpm turns at
1200 / 60 = 20 Hz, so its period is 50 ms. - Beats per minute (bpm) is used for music tempo. It is a rate in the same sense, but it counts beats, not oscillations of a sound wave. A tempo of 120 bpm is 2 Hz. A concert A within that music is still 440 Hz.
- Angular frequency
ωis measured in radians per second. One cycle is 2π radians, soω = 2πf = 2π / T. You will see this in physics texts that write waves assin(ωt). Do not confuseωwithf. A source at 250 Hz hasω ≈ 1571 rad/s. If a formula usesω, it will say so explicitly.
Counting frequency from data
A measurement system often records signal values at regular time steps, not a clean graph. You can recover the period by finding the times where the signal crosses zero going upward. One upward crossing marks the same point in each cycle. The time between the first and last crossing, divided by the number of cycles between them, is the period.
import math
true_frequency = 250.0 # Hz, used only to generate test data
sample_interval = 0.0002 # s between samples (5000 samples per second)
sample_count = 200 # 40 ms of data, about 10 cycles
# A sine wave with an arbitrary starting phase, as a real measurement would have.
samples = [
math.sin(2 * math.pi * true_frequency * k * sample_interval + 0.3)
for k in range(sample_count)
]
def upward_crossings(values, dt):
"""Return the times where the signal rises through zero.
Linear interpolation between two samples places each crossing
more accurately than just using the sample times.
"""
times = []
for k in range(len(values) - 1):
before, after = values[k], values[k + 1]
if before < 0 <= after:
fraction = -before / (after - before)
times.append((k + fraction) * dt)
return times
crossings = upward_crossings(samples, sample_interval)
cycles = len(crossings) - 1
period = (crossings[-1] - crossings[0]) / cycles
frequency = 1 / period
print(f"cycles measured = {cycles}")
print(f"period = {period * 1000:.2f} ms")
print(f"frequency = {frequency:.1f} Hz")
# cycles measured = 8
# period = 4.00 ms
# frequency = 250.0 HzThe code divides by cycles, the number of intervals between crossings, not by the number of crossings. This is the same "count intervals, not crests" rule from the graph-reading section. Dividing by 9 here would give a period that is too short by about 11%.
This method has limits. It needs at least two crossings. It assumes the signal is close to a single steady sine wave, because noise near zero can create false crossings. The sampling must also be fast enough. If the samples are spaced further apart than about half a period, the data cannot represent the wave, and the computed frequency will be wrong.
What sets the frequency
A periodic wave has a frequency because something is oscillating. That something is the source: a vibrating tuning fork, a hand shaking a rope, or a loudspeaker cone. Each cycle of the source launches one cycle of the wave into the medium.
For this reason the frequency of a wave is the frequency of its source. If a tuning fork vibrates 440 times per second, it produces 440 compressions per second in the air around it. Every point in the air that the wave passes then oscillates at 440 Hz as well. The medium cannot make its points oscillate faster than the source feeds them, so it does not change the frequency.
This has a consequence you will use later. The medium decides how fast the wave travels, but it does not decide how often the source repeats. When a wave moves from one medium into another, the source is unchanged, so the frequency is unchanged. The chapter on boundaries works this out in full. The rule to remember now is this:
- The source sets the frequency and the period.
- The medium sets the speed.
Preview: how the period connects to speed
In one period, the wave pattern moves forward by exactly one wavelength. That follows from what the two quantities mean: T is the time for one cycle at a point, and λ is the distance one cycle occupies in space. The wave therefore covers a distance λ in a time T, which gives:
v = λ / T = f λThe next chapter develops this fully. For now, check it against the buoy example. If the crests of the buoy's waves are 5 m apart and T = 2.5 s, the wave speed is 5 m / 2.5 s = 2.0 m/s. The wave moves forward 5 m during each 2.5 s the buoy needs for one bob.
Edge cases and common errors
- Pulses have no period. A single bump sent down a rope does not repeat, so it has no period or frequency. These quantities apply to periodic waves, which repeat identically.
- Real sounds are not single sine waves. A violin note at 440 Hz contains the fundamental at 440 Hz plus components at 880 Hz, 1320 Hz and higher. When people call the note "440 Hz", they mean the fundamental. The overall pattern repeats every 1/440 s, which is the period of the fundamental.
- Half a cycle is not a period. Crest to trough is
T/2. Doubling the apparent period gives the wrong frequency by a factor of 2. - Period is not delay. The period is the time between repeats at one point. The delay before a sound reaches you is distance divided by speed, which depends on the medium and distance. A wave can have a short period and still take a long time to arrive.
- Frequency is not speed. A high-frequency wave is not necessarily a fast wave. Sound at 20 000 Hz and sound at 20 Hz travel at the same speed in the same air.
- Rounding. If
T = 2.27 ms, thenf = 440.5 Hz, not exactly 440. Keep extra digits during intermediate steps and round only the final result.
Exercise
A speaker produces a tone. A microphone trace shows 7 crests, and the first and the last are 21 ms apart. (a) What is the period? (b) What is the frequency?
Show answer
Seven crests have 6 intervals between them, so 6 periods span 21 ms. (a) T = 21 ms / 6 = 3.5 ms. (b) f = 1 / 0.0035 s ≈ 286 Hz. Dividing by 7 instead of 6 would give 3.0 ms and 333 Hz, which is wrong.
Exercise
A motor shaft turns at 4500 rpm and makes a hum at the shaft's rotation frequency. (a) What is the frequency of the hum in hertz? (b) What is the period? (c) The sound travels through air at 343 m/s. Use v = λ/T to find the distance between successive compressions.
Show answer
(a) f = 4500 / 60 = 75 Hz. (b) T = 1/75 s ≈ 13.3 ms. (c) λ = vT = 343 m/s × (1/75 s) ≈ 4.57 m. Equivalently, λ = v/f = 343/75 ≈ 4.57 m.
Exercise
The period of a wave is written on a graph as 0.8 µs. Convert it to a frequency in MHz. Why is the answer not 1.25 Hz?
Show answer
T = 0.8 µs = 0.8 × 10⁻⁶ s, so f = 1 / (0.8 × 10⁻⁶ s) = 1.25 × 10⁶ Hz = 1.25 MHz. The value 1.25 Hz would come from computing 1 / 0.8 without converting microseconds to seconds, which drops the factor of 10⁶.