1. Adding Waves and Separating Them
Even a complicated sound or vibration can often be understood as a combination of sine and cosine waves at different frequencies. Building a periodic waveform from such components introduces the idea of a Fourier series. A Fourier transform asks the reverse question: which frequencies are present in the original signal?
Let us add just two waves and compare their time-domain waveform with the frequency-domain picture.
2. Example: Add a 5 Hz and a 12 Hz Wave
Construct a one-second signal from a 5 Hz sine wave of amplitude 1 and a 12 Hz cosine wave of amplitude 0.5.
The first component oscillates five times per second; the second oscillates twelve times. At t = 0, their sum is 0.5. At t = 0.25 s, both reach a positive crest, giving 1.5. The red dots mark these values.
3. Look at the Frequency Spectrum
Sample this one-second signal 64 times per second to obtain 64 values s[n]. For a finite set of samples, we use the discrete Fourier transform (DFT).
Because the observation lasts one second, adjacent frequency bins are 1 Hz apart. Plotting the positive-frequency amplitude 2|X[k]|/64 for 1 ≤ k ≤ 31 reveals peaks at exactly 5 Hz and 12 Hz.
| Component | Frequency | Amplitude | Phase |
|---|---|---|---|
| Sine wave | 5 Hz | 1.0 | −90° |
| Cosine wave | 12 Hz | 0.5 | 0° |
The amplitude spectrum tells us how strongly each frequency is present, but it does not tell us where each wave starts. Reconstructing the original waveform also requires the phase values in the table.
4. Fourier Transform, DFT, and FFT
The Fourier transform describes the frequency content of a continuous signal. The DFT applies the idea to a finite set of samples. The fast Fourier transform (FFT) is an efficient algorithm for computing the same DFT result.
The two peaks are especially clean here because exactly five and twelve cycles fit into the one-second observation window. In real data, the observation length and where the window is cut can spread energy into neighboring bins. This is called spectral leakage.
Adding components produces a time-domain waveform; the DFT takes us back to frequency components. That round trip underlies the analysis of sound, vibration, and images.