Module 5 · 13 min read · Free chapter
Fourier series, Fourier transform and the sampling theorem
A periodic signal is a sum of harmonics, and a one-off signal has a continuous Fourier spectrum. Convolution in time becomes multiplication in frequency, and multiplying by a cosine shifts the spectrum. A signal band-limited to f_m can be rebuilt from samples taken faster than 2f_m, the Nyquist rate; slower sampling causes aliasing.
Start from zero: hearing a chord
When a guitarist plays a chord, your ear does something remarkable. It hears one sound, yet it can pick out the separate notes inside it. The air pressure is a single wiggly curve in time, but it is really a sum of pure tones at different frequencies.
In 1807 Joseph Fourier claimed that this is true of almost any signal: it can be built from sines and cosines. For a repeating signal you need only a set of harmonics, which gives the Fourier series. For a one-off signal you need a continuous spread of frequencies, which gives the Fourier transform.
Why bother? The previous chapter showed that an LTI system treats a complex exponential very simply: it just multiplies it by . So if we break an input into exponentials, the system's effect on each is a single multiplication. Hard convolution in time becomes easy multiplication in frequency.
The same view explains the sampling theorem, the rule behind every digital audio file, mobile call and digital oscilloscope. It tells us how fast we must sample a signal so that nothing is lost.
Why it matters. Fourier ideas appear in every communication, filter and DSP question, and GATE EC tests Fourier pairs, properties and Nyquist rate nearly every year.
The Fourier series of a periodic signal
Let repeat with period , so its fundamental frequency is . The exponential Fourier series writes it as a sum of harmonics:
Each is a complex number giving the size and phase of the -th harmonic. The term is just the average value of , its DC level. For a real signal, is the complex conjugate of , so the spectrum's magnitude is even and its phase is odd.
The same series can be written with real sines and cosines, the trigonometric form . The two forms are linked by and . Use whichever makes the integral easier.
Symmetry saves work. An even signal has only cosine terms, so all . An odd signal has only sine terms and no DC. A signal with half-wave symmetry, , has only odd harmonics.
Parseval's relation says the average power equals the sum of the powers in the harmonics:
Worked example. A square wave switching between and is odd and half-wave symmetric. Its series is . The harmonics fall as , slowly, because the wave has sharp jumps.
Near each jump, a truncated series overshoots by about 9% of the jump height. Adding more terms makes the overshoot narrower but not smaller; this is the Gibbs phenomenon.
Why it matters. Questions ask for a particular coefficient, the DC value, the power in some harmonics, or which harmonics are missing; symmetry rules answer many in one line.
The Fourier transform and key pairs
Now let the period grow without limit, so the signal happens only once. The harmonics crowd together into a continuous spectrum, and the sum becomes an integral. This gives the Fourier transform pair:
tells how much of each frequency the signal contains. Some books use in hertz instead, with and no in the inverse. Check which convention a question uses.
A handful of pairs answer most questions. For , the decaying exponential gives
A rectangular pulse of height 1 and width , centred at zero, gives a sinc-shaped spectrum . Its first zeros are at , so a shorter pulse has a wider spectrum.
The impulse is perfectly short, so its spectrum is perfectly flat: . By the same logic a constant has all its energy at zero frequency: . A cosine puts two impulses at : .
Two more pairs are useful. The signum function gives , and the unit step gives . The impulse at zero carries the step's DC value of one half.
Worked example. Find the spectrum magnitude of at rad/s. , which is of its value at .
Why it matters. The time-bandwidth trade-off seen in the rectangle-sinc pair is the reason short pulses need wide channels, a fact used throughout digital communication.
Properties that do the heavy lifting
Very few transforms are worked out from the integral. Most come from a known pair plus a property. Here are the ones that matter.
Time shift. Delaying a signal changes only the phase: . The magnitude spectrum is unchanged.
Frequency shift and modulation. Multiplying by slides the spectrum: . With a cosine this gives the modulation property, the basis of AM radio:
Scaling. . Compress a signal in time and its spectrum spreads out; playing a recording at double speed raises every pitch by an octave.
Duality. If , then . So a sinc in time gives a rectangle in frequency, which is the ideal low-pass filter.
Convolution and multiplication. Convolution in time is multiplication in frequency, . The reverse also holds: .
Differentiation and integration. , so differentiating boosts high frequencies. Integration divides by , plus a DC term .
Parseval's theorem. Energy is the same in both domains:
Worked example. Find the transform of . It is delayed by 3, so .
Why it matters. Property-based questions are fast if you spot the known pair inside the signal; modulation and convolution properties are also the language of the communication modules.
Filtering and distortionless transmission
Because , an LTI system acts as a frequency-by-frequency gain. It can pass some frequencies, block others and shift their phases. This is what a filter does.
When we want a signal to arrive unchanged, only scaled and delayed, we need . Taking transforms gives the condition for distortionless transmission:
So the magnitude must be flat and the phase must be a straight line through the origin, over the band the signal occupies. A non-flat magnitude causes amplitude distortion, and a non-linear phase causes phase distortion, because different frequencies are delayed by different amounts.
An ideal low-pass filter passes everything below a cut-off with gain 1 and blocks everything above. By duality, its impulse response is a sinc, . This sinc extends to negative time, so the ideal filter is non-causal and cannot be built exactly; real filters approximate it with a transition band.
Ideal high-pass and band-pass filters have the same problem. Practical designs such as Butterworth and Chebyshev trade sharpness of cut-off against ripple and phase linearity.
Worked example. A channel has for rad/s. A signal band-limited to 5,000 rad/s comes out doubled and delayed by 1 ms, with no distortion.
Why it matters. The distortionless condition and the non-causality of ideal filters are favourite one-line conceptual questions in GATE and ESE.
The sampling theorem
To process a signal on a computer, we keep only its values at regular instants , at a sampling rate . The question is whether those samples hold all the information.
Model ideal sampling as multiplying by a train of impulses spaced apart. By the multiplication property, the spectrum of the sampled signal is the original spectrum repeated at every multiple of :
Suppose is band-limited to , with nothing above . If , the copies do not overlap, and a low-pass filter with cut-off between and recovers the original exactly. This is the sampling theorem, and is the Nyquist rate.
If , neighbouring copies overlap, and high frequencies fold back and pose as low ones. This is aliasing, and once it happens no filter can undo it. A tone at shows up at , for whichever integer brings it into the range 0 to .
Real systems add three practical steps. An anti-aliasing filter before the sampler removes content above . Sampling a bit above the Nyquist rate leaves a guard band so a realistic reconstruction filter can work. Flat-top sampling, where each sample is held for a short time, shapes the spectrum by a sinc; this aperture effect is corrected with an equaliser.
The bandwidth of a signal can change before sampling. A product has a bandwidth equal to the sum of the two bandwidths, so has twice the bandwidth of .
Worked example. Find the Nyquist rate of . The highest frequency is 300 Hz, so the Nyquist rate is 600 Hz. If is sampled at 400 Hz, the 300 Hz tone aliases to Hz.
Why it matters. Nyquist-rate and aliased-frequency questions appear in almost every GATE EC paper and again in the PCM chapter; the reasoning is the replicated spectrum shown here.
Descriptive lens
Written papers ask about this topic in four ways:
- Derive the Fourier series of a given waveform, using symmetry, and comment on how fast the harmonics fall.
- State and prove Fourier transform properties such as time shift, modulation, convolution and Parseval's theorem.
- Explain the sampling theorem with spectra, including aliasing, anti-aliasing filters and the aperture effect.
- Compute Nyquist rates and aliased frequencies, or the output spectrum of a filter for a given input.
Practice questions (our own, not previous-year questions).
- Find the exponential Fourier series of a periodic train of rectangular pulses of height , width and period . Sketch the line spectrum for . (15 marks)
- State and prove the modulation property of the Fourier transform. Use it to sketch the spectrum of for a band-limited . (10 marks)
- State the sampling theorem. With spectral sketches, explain aliasing and the role of the anti-aliasing filter, and find the minimum sampling rate for , taking . (15 marks)
Answer plan for question 3.
- State the theorem: a signal band-limited to is recovered from samples at .
- Sketch the replicated spectrum for and the overlapping one for , marking the folded region.
- Explain that aliasing is irreversible and that an analog low-pass filter before the sampler limits the band to .
- Note that has a rectangular spectrum up to 50 Hz, so its square has a triangular spectrum up to 100 Hz.
- Conclude that the Nyquist rate is 200 Hz.
Quick revision
- Fourier series: , and is the average value.
- Even signals give cosines, odd signals give sines, and half-wave symmetry gives only odd harmonics.
- Parseval: for series and for transforms.
- , , , and a rectangle gives a sinc.
- Time shift multiplies by , and modulation by a cosine shifts half copies to .
- Convolution in time is multiplication in frequency.
- Distortionless transmission needs : flat magnitude and linear phase.
- Ideal filters have sinc impulse responses and are non-causal.
- Nyquist rate is , and an alias appears at .
- A product of signals adds bandwidths, so doubles the Nyquist rate.