Make a complicated wave from simple ones
A musical note often contains a fundamental tone plus higher frequencies called harmonics. Fourier analysis turns that observation into a method: represent a periodic signal using sines and cosines at multiples of its fundamental frequency. The coefficients record how strongly each shape appears.
A square wave that jumps between −1 and 1 has only odd sine harmonics. With t measured in radians its series is:
Build a square wave
Add odd harmonics. Watch the flat regions improve while an overshoot remains near each jump.
Measure the amount of one frequency
Multiply the signal by a candidate sine and take its average over a full period. Distinct integer harmonics have zero average product. The chosen harmonic has a nonzero average product with itself. This orthogonality isolates its coefficient, much like taking the shadow of a vector along one axis.
At a jump the Fourier series of this square wave converges to the midpoint 0. Near the jump, oscillations become narrower as terms are added, while the peak overshoot persists. This is the Gibbs phenomenon.
When samples hide a frequency
A digital recording observes a signal at discrete times. With eight samples per second, 3 Hz and 11 Hz cosines give the same sample values because 11 − 3 = 8. This is aliasing. Ideal reconstruction of a band-limited signal calls for a sampling rate above twice its highest frequency. Practical systems use filters and guard bands.
The discrete Fourier transform (DFT) expresses a finite list of samples as a sum of complex waves. The fast Fourier transform (FFT) is a family of efficient algorithms for computing that transform.
Read the sources · MIT · Discrete-time Fourier representations · MIT · The discrete Fourier transform
From signals to images
In conventional MRI, spatially encoded measurements can be arranged as samples in frequency space, often called k-space. A Fourier reconstruction converts those measurements into an image. A practical decision is how much data to collect: fewer samples can shorten a scan while producing artifacts unless the reconstruction has enough information.
Compressed sensing tackles a related question. When an image has a sparse representation and measurements suit the chosen model, an optimization method can reconstruct useful detail from fewer samples. Researchers evaluate reconstruction quality against measurements, reference images and clinical needs.
Read the sources · Lustig, Donoho and Pauly · Sparse MRI
Listen for a missing harmonic
Why does a perfect symmetric square wave contain no second harmonic?
Reveal the explanation
The wave changes sign after half a period. An even harmonic keeps the same sign after that shift, so its average product with the square wave cancels between the two halves.