Sub topic 3
Period and frequency
This chapter assumes you know Ohm's law, basic trigonometry (sine, radians, degrees), and the form v(t) = Vm sin(ωt + φ) from the earlier chapters. Here we pin down how fast a sinusoid repeats.
Period: the length of one cycle
The period T is the time one full cycle takes. It is measured in seconds (s). After T seconds the waveform has returned to the same value and is moving in the same direction, so for any time t:
v(t + T) = v(t)
The period is measured between any two matching points on the waveform, such as two consecutive rising zero crossings or two consecutive positive peaks. It does not matter which pair you pick, as long as the two points are equivalent.
Frequency: cycles per second
The frequency f is the number of complete cycles per second. Its unit is the hertz (Hz), where 1 Hz = 1 cycle per second. Period and frequency are reciprocals:
f = 1 / T and T = 1 / f
A short period means a high frequency. Mains power is 60 Hz in North America and 50 Hz in much of the rest of the world.
| Signal | Frequency | Period |
|---|---|---|
| Mains (North America) | 60 Hz | 16.67 ms |
| Mains (Europe) | 50 Hz | 20 ms |
| Audio tone (concert A) | 440 Hz | 2.27 ms |
| AM radio carrier | 1 MHz | 1 µs |
Metric prefixes are common here: 1 kHz = 10³ Hz, 1 MHz = 10⁶ Hz, 1 ms = 10⁻³ s, 1 µs = 10⁻⁶ s. A frequent error is to enter a period in milliseconds into f = 1/T without converting to seconds first.
In the plot, the peaks at 5 ms and 25 ms are 20 ms apart. That spacing is the period, so f = 1/0.020 s = 50 Hz.
Reading T and f from a formula
Suppose a voltage is given as v(t) = 311 sin(2π · 50 t + 0.5) volts. The number multiplying t inside the sine is the angular frequency ω = 2π · 50 rad/s. The next chapter treats ω in detail. For now, the useful fact is that ω = 2πf, so you can read f directly:
f = 50 Hz, so T = 1/50 = 20 ms.
Computing period and frequency in code
The following program recovers the period from sampled data by finding two consecutive rising zero crossings, then compares it with 1/f.
import numpy as np
f = 50.0 # frequency, hertz
fs = 100_000.0 # sampling rate, samples per second
t = np.arange(0, 0.1, 1 / fs) # 100 ms = 5 cycles
v = 311 * np.sin(2 * np.pi * f * t + 0.5)
# Indices where the signal goes from negative to non-negative
rising = np.where((v[:-1] < 0) & (v[1:] >= 0))[0]
T_measured = (rising[1] - rising[0]) / fs
print(f"measured period = {T_measured * 1000:.2f} ms")
print(f"expected period = {1000 / f:.2f} ms")
print(f"frequency = {1 / T_measured:.1f} Hz")The measured value matches the expected 20 ms to within one sample interval (10 µs here). With a coarser sampling rate the error grows, which is the same limit you meet when reading a period off an oscilloscope screen.
Exercises
Exercise
A sinusoidal current completes 12 full cycles in 40 ms. What are its period and frequency?
Show answer
Period T = 40 ms / 12 = 3.33 ms. Frequency f = 1 / T = 12 / 0.040 s = 300 Hz.
Exercise
A signal has a period of 2.5 µs. Give its frequency in MHz, and say how many cycles occur in 1 ms.
Show answer
f = 1 / (2.5 × 10⁻⁶ s) = 400 000 Hz = 0.4 MHz. In 1 ms there are 0.001 s × 400 000 Hz = 400 cycles.