- Practice · 5+3 marks
Fourier series of square wave and DFT
Short answer
Fourier series of ±A square wave: only odd harmonics, f(t) = (4A/π)(sin ω₀t + 1/3 sin 3ω₀t + …). 4-point DFT of {1,3,2,0}: X = {6, -1-j3, 0, -1+j3}. FFT reduces operations from N² to (N/2)log₂N, enabling fast real-time spectral analysis.
(a) Derive the Fourier series of a square wave of amplitude and period , defined as for and for .
(b) Four equally spaced samples of a signal are . Compute the 4-point DFT and state why the FFT is preferred for large .
(a) Fourier series of the square wave
A periodic signal of period and is written as
with , , .
+A +---------+ +---------+
| | | |
0 --+---------+---------+---------+---> t
| | | |
-A | +---------+ +----
0 T/2 T 3T/2
The wave has zero mean over a period, so . With the origin at the rising edge it is an odd function (about , over ), so all .
So for odd and for even . Therefore
Only odd harmonics exist, and their amplitudes fall as .
(b) 4-point DFT
Using for :
| k | Magnitude | Phase | |
|---|---|---|---|
| 0 | 6 | 6 | 0 |
| 1 | 3.16 | ||
| 2 | 0 | 0 | - |
| 3 | 3.16 |
Answer: .
Why FFT
A direct DFT needs about complex multiplications. The FFT (Cooley-Tukey) repeatedly splits the sum into even and odd samples and needs only about . For this is about 5120 instead of about 1,000,000, so spectra can be obtained quickly, even in real time.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Harmonic signal parameters and RMS value · Instrumentation and Measurement, chapter 2
- Fourier series coefficients of a square wave · Data Communication, chapter 3
- 8-point DFT by FFT of {1,−1,2,2,1,1,2,2} · Digital Signal Analysis and Processing, chapter 7 · asked 4×
- 8-point DIF-FFT of {1/2,1/2,1/2,1/2,0,0,0,0} · Digital Signal Analysis and Processing, chapter 7
- Derive the discrete-time Fourier series · Signals and Systems, chapter 2 · asked 15×