Sub topic 3
Period and frequency
Prerequisites
This chapter assumes you know the following:
- Ohm's law, voltage, current, and power P = V·I.
- Sine and cosine, and the difference between radians and degrees.
- Basic algebra, enough to rearrange a reciprocal relationship.
You do not need calculus here. The previous chapters introduced the form v(t) = Vm sin(ωt + φ) and the amplitude Vm. This chapter covers the two quantities that say how fast the waveform repeats: the period and the frequency.
What "periodic" means
A signal is periodic if it repeats its shape exactly after a fixed time. A sinusoid is the simplest case. If you shift it forward in time by one full cycle, you get the same waveform back. In symbols:
v(t + T) = v(t) for every t
The smallest positive T that satisfies this is the period. If a signal also repeats after 2T, 3T and so on, those are not the period. The period is the shortest repeat time.
Period
The period T is the time for one complete cycle of the waveform. Its unit is the second (s). In practice you will often see milliseconds (ms), microseconds (µs) and nanoseconds (ns).
You can measure the period between any two matching points on the waveform. Two consecutive positive peaks work. So do two consecutive upward zero crossings. Choose points that are easy to read. Zero crossings are usually sharper on an oscilloscope than peaks, which are rounded.
Frequency
The frequency f is the number of complete cycles per second. Its unit is the hertz (Hz), where 1 Hz = 1 cycle per second. Frequency and period are reciprocals:
f = 1/T and T = 1/f
Common multiples are kilohertz (kHz, 10³ Hz), megahertz (MHz, 10⁶ Hz) and gigahertz (GHz, 10⁹ Hz).
The table below shows some familiar frequencies and their periods.
| Source | Frequency | Period |
|---|---|---|
| Mains power (Americas, parts of Asia) | 60 Hz | 16.67 ms |
| Mains power (Europe, much of Asia and Africa) | 50 Hz | 20 ms |
| Audio tone, concert A | 440 Hz | 2.27 ms |
| AM radio carrier (example) | 1 MHz | 1 µs |
| Wi-Fi (2.4 GHz band) | 2.4 GHz | 0.417 ns |
Notice the pattern. A high frequency means a short period, and a low frequency means a long period. Doubling the frequency halves the period.
Where the period appears in the equation
In v(t) = Vm sin(ωt + φ), the sine function repeats when its argument increases by 2π radians. So the waveform repeats when ωt increases by 2π. That happens when t increases by T, so:
ωT = 2π
This gives T = 2π/ω. Combined with f = 1/T, it gives ω = 2πf. The next chapter treats angular frequency in detail. For now, the useful point is that the period is not an extra parameter. It is fixed by the number multiplying t inside the sine.
Worked examples
Example 1: Period from frequency
A 60 Hz mains voltage has a period of
T = 1/60 = 0.016667 s = 16.67 ms
So the voltage completes one cycle every 16.67 ms. In one second, it completes 60 cycles.
Example 2: Frequency from an oscilloscope trace
An oscilloscope shows a sinusoid. The time base is set to 2 ms per division. Two consecutive rising zero crossings are 5 divisions apart.
- Compute the period: T = 5 × 2 ms = 10 ms.
- Compute the frequency: f = 1/0.010 s = 100 Hz.
Example 3: Cycles in a given interval
How many cycles does a 2 kHz signal complete in 5 ms?
The number of cycles is f × time = 2000 × 0.005 = 10 cycles.
This is a useful check. If you multiply frequency by a time and the result is not a sensible count of cycles, you have probably mixed up the units.
Checking the numbers in code
The short script below samples a waveform and measures its period from the zero crossings. It confirms the reciprocal relationship between f and T.
import numpy as np
f = 60.0 # frequency, hertz
T_expected = 1.0 / f # expected period, seconds
fs = 100_000 # sampling rate, samples per second
t = np.arange(0, 0.2, 1 / fs) # 0.2 s of data, 12 cycles
v = 170.0 * np.sin(2 * np.pi * f * t)
# Find upward zero crossings: previous sample < 0 and current sample >= 0
idx = np.where((v[:-1] < 0) & (v[1:] >= 0))[0] + 1
crossing_times = t[idx]
# The period is the spacing between consecutive upward crossings
periods = np.diff(crossing_times)
T_measured = np.mean(periods)
print(f"expected period = {T_expected * 1000:.4f} ms")
print(f"measured period = {T_measured * 1000:.4f} ms")
print(f"measured frequency = {1 / T_measured:.3f} Hz")The measured value will be close to 16.6667 ms, but not exact. The samples are spaced 10 µs apart, so each crossing is only located to within one sample. Averaging many periods reduces this error.
Edge cases and common errors
Confusing hertz with radians per second
A frequency of 60 Hz is not ω = 60. The angular frequency is ω = 2π × 60 ≈ 377 rad/s. Mixing these two is the most common error with this topic. If a formula has ωt inside a sine, ω must be in rad/s. If a problem gives "f" in hertz, convert it first.
Reading the period from the wrong points
Measure from one point to the next matching point. If you measure from a positive peak to the next negative peak, you have only half a period. Double it to get T. If you measure from a rising zero crossing to a falling zero crossing, that is also T/2.
Unit prefixes
Convert prefixes before you take the reciprocal. For example, T = 250 µs gives f = 1/(250 × 10⁻⁶ s) = 4000 Hz = 4 kHz. A slip of 10³ here changes the answer by a factor of a thousand.
Rounded values
Do not round T before taking its reciprocal. If you round 16.67 ms and compute 1/0.01667, you get 59.99 Hz rather than 60 Hz. Keep the exact fraction, or carry extra digits, until the last step.
Non-sinusoidal signals
Frequency and period are defined for any periodic waveform, not only sinusoids. A 1 kHz square wave has a period of 1 ms. But a non-sinusoidal waveform contains more than one frequency component. The repetition rate is called the fundamental frequency. The other components are at whole-number multiples of it, called harmonics. This matters later when you measure RMS values of such waveforms.
Signals that are not periodic
A signal made of two sinusoids at unrelated frequencies might never repeat exactly. For instance, sin(t) + sin(√2 t) has no finite period, because the ratio of the two frequencies is irrational. In this tutorial we deal only with single-frequency sinusoids, or sums of sinusoids with the same frequency. Those always have a well-defined period.
Relating period to phase and time
The period links the phase angle to a time shift. One full period corresponds to 360° (or 2π rad). So a phase of φ degrees corresponds to a time shift of
Δt = (φ / 360) × T = φ / (360 f)
For example, 45° at 50 Hz is 45/360 × 20 ms = 2.5 ms. The chapter on phase angle develops this idea. It is worth seeing here because it shows why the period is the natural clock for everything else in the waveform.
Summary of relationships
| Quantity | Symbol | Unit | Relationship |
|---|---|---|---|
| Period | T | s | T = 1/f = 2π/ω |
| Frequency | f | Hz | f = 1/T = ω/2π |
| Angular frequency | ω | rad/s | ω = 2πf = 2π/T |
Exercises
Exercise
A sinusoidal current has a period of 8 ms. What is its frequency in hertz, and how many complete cycles occur in 50 ms?
Show answer
The frequency is f = 1/T = 1/0.008 s = 125 Hz. The number of cycles in 50 ms is f × t = 125 × 0.050 = 6.25 cycles.
Exercise
On an oscilloscope set to 50 µs per division, a sinusoid has two consecutive positive peaks 4 divisions apart. What is its frequency?
Show answer
The period is T = 4 × 50 µs = 200 µs. The frequency is f = 1/(200 × 10⁻⁶ s) = 5000 Hz = 5 kHz.
Exercise
A student reads a signal as v(t) = 10 sin(120t) volts and says its frequency is 120 Hz. Is the student correct? If not, give the correct frequency and period.
Show answer
No. The number multiplying t is the angular frequency, so ω = 120 rad/s. The frequency is f = ω/(2π) = 120/(2π) ≈ 19.10 Hz, and the period is T = 1/f = 2π/120 ≈ 52.36 ms.