The Spectrum
Land the line on the target frequency
The top is the time waveform of a pure sinusoid; below is its spectrum. The sinusoid appears as a single line at its frequency. Move the frequency slider to land the blue line exactly on the dashed target frequency. The wiggle rate in time and the line’s position move together.
The spectrum is an address book of frequencies
The spectrum is a plot with frequency across and magnitude up. It shows which frequencies a signal contains, and how much, as the height of a bar standing at that frequency. A pure sinusoid has just one frequency, so it shows as a single line whose horizontal position is the frequency and whose height is the amplitude. Change the frequency and the line slides sideways.
Magnitude and phase, two plots
To record a component fully, magnitude alone is not enough. You also need its phase — when that sinusoid reaches its peak. So the spectrum comes in two plots. The magnitude spectrum |X| shows how strong each frequency is; the phase spectrum ∠X shows how far each frequency is shifted. Both together pin the signal down completely. Here phase is set to 0, so only the magnitude plot is drawn.
Time and frequency are one pair
The time waveform and the spectrum are two faces of the same signal, and you can move between them. Add the components back from the spectrum and you get the time waveform (synthesis); measure how much of each frequency is in the waveform and you get the spectrum (analysis). A periodic signal, as in the last unit, has a discrete spectrum with lines only at the harmonics. What happens for a signal that is not periodic? That answer is the next unit, the Fourier transform.
Back to the first screen
As you moved the frequency slider, the waveform’s wiggle sped up or slowed down, and at the same time the spectral line slid to that frequency. The two changes always happened together, because both are the same signal seen on the time axis and on the frequency axis. The line’s horizontal position was the frequency, its height the magnitude. The spectrum rewrites the signal in the language of frequency, a partner holding exactly the same information as the time waveform.
A periodic signal’s spectrum was a discrete picture with lines only at the harmonics. So what spectrum does a non-repeating signal, like a single pulse, have? The next unit, the Fourier transform, follows the limit of stretching the period to infinity. As the spacing between harmonics narrows to 0, the separate lines melt into a gap-free continuous spectrum. That moment, where a discrete sum becomes an integral, is the birth of the Fourier transform.