Fourier Transform
The Math Behind Extracting Signals
#The Core Problem
A real-world signal is almost never a single clean wave. It is a mixture of many frequencies layered on top of each other.
Looking at in time, you see one messy wiggle. The question is — how do you pull the individual frequencies back out?
#The Key Idea: Binding Rate
The Fourier Transform works by asking a very specific question for each candidate frequency :
"How much does my signal vibrate at exactly this rate?"
It does this by multiplying the signal by a test wave and integrating:
The test wave rotates at frequency . When matches a frequency inside , something special happens — the product stops cancelling and the integral accumulates into a spike.
#Why a Spike? The Orthogonality Argument
Two sinusoids at different frequencies are orthogonal — they cancel perfectly over time:
This is the entire mechanism. When the test frequency sweeps across all values:
- No match → product oscillates, positive and negative parts cancel → integral
- Match found → product becomes a constant positive value → integral accumulates → spike at
#Worked Through: A Two-Frequency Signal
Take a signal made of two pure tones:
Apply the transform with test frequency :
The second term integrates to zero. Only the first survives. The output is a spike of height proportional to — the amplitude of that frequency.
Sweep across all frequencies and you get the full spectrum:
#The Resonance Analogy
Think of the integral as a resonance detector:
Signal f(t) ──────┐
├──→ multiply ──→ integrate ──→ F(ω)
Test wave e^{-iωt} ┘
- If test frequency does not resonate with anything in → output stays near zero
- If test frequency resonates (matches a component) → energy builds up → spike
This is exactly like pushing a swing. If you push at the wrong rate, nothing happens. Push at the natural frequency and amplitude grows. The Fourier Transform is pushing at every possible frequency and recording where the swing responds.
#The Spike in the Spectrum
For a pure sine , the spectrum looks like:
|F(ω)|
│
A ┤ ▲ ▲
│ │ │
└──────────┴──────────────┴──────────→ ω
-f₀ +f₀
Two symmetric spikes at . Each spike location = what frequency, spike height = how much of it.
For a composite signal with three components:
Three spikes. Three frequencies extracted. Clean.
#Euler's Formula — The Bridge
The test wave is not mysterious — it is just sine and cosine together:
Multiplying by this simultaneously tests for both cosine and sine components at frequency . The result is complex:
The amplitude of frequency in the signal is:
The phase (timing offset) of that frequency is:
#In One Line
The Fourier Transform extracts frequency from a composite signal by:
Multiply by a rotating test wave → integrate → if frequencies match, they bind and accumulate → spike. If they don't match, they cancel → silence.
That's the entire mechanism. Everything else — DFT, FFT, spectrograms — is just this idea applied efficiently to discrete data.