ENG5027 Chap.4 The DFT and FFT for Real Spectra
The DFT and FFT for Real Spectra
The DFT and FFT for Real Spectra turns a finite record into a list of frequency coefficients and teaches how to read it. The discrete Fourier transform maps N samples to N complex values, and the inverse returns them with a one over N factor.
Each index k corresponds to a physical frequency of k times the sampling rate over N, so the bin spacing equals the sampling rate divided by the number of points, which is one over the record length. The output array is stored in index order rather than signed-frequency order: bins up to N/2 hold positive frequencies, bin N/2 is half the sampling rate, and the bins above it hold negative frequencies.
For a real signal the coefficient in bin N minus k is the conjugate of the one in bin k, so every tone appears twice with equal magnitude. Because N frequency samples imply a periodic time sequence, a record that is too long for the transform overlaps itself, which is time-domain aliasing.
The fast Fourier transform computes the same result by splitting the samples into even and odd halves, transforming each half and recombining with twiddle factors, repeating until only two-point transforms remain. The work then grows as N log N instead of N squared, about a hundredfold saving at 1024 points. The chapter closes with the FFT tutorial's checklist for a recorded vowel spectrum and the rules of the first lab.
What this chapter covers
- 01
The DFT and inverse DFT
- 02
Bin index, bin spacing and record length
- 03
Index order and mirror bins
- 04
Conjugate symmetry of real spectra
- 05
Time-domain aliasing
- 06
Twiddle factors and the even-odd split
- 07
FFT cost and reading recorded spectra
Worked example · free
Read a spectrum and plan a coefficient edit
- 1N = 8000 × 1.5 = 12,000 samples.
- 1The bin spacing is 8000 / 12,000 = 0.667 Hz, the reciprocal of the 1.5 s record.
- 2The whistle is in bin 1200 / 0.667 = 1800, and its mirror is 12,000 − 1800 = 10,200.
- 1Half the sampling rate, 4 kHz, sits in bin N/2 = 6000.
Key terms
- Mirror bin
- The DFT index N − k that holds the conjugate of bin k for a real signal.
- Twiddle factor
- The complex exponential that recombines the even and odd sub-transforms in the FFT.
- Butterfly
- The sum-and-difference operation that combines two values in one FFT stage.
- Time-domain aliasing
- The overlap of periodic copies of a sequence that occurs when the transform length is too short.
The DFT and FFT for Real Spectra FAQ
Why does a real signal produce two peaks for one tone?
A real cosine is the sum of two complex exponentials at plus and minus its frequency. The DFT stores the negative one in the upper half of the array, so one tone appears in bin k and again in bin N minus k.
Does a higher sampling rate give finer frequency resolution?
Not on its own. The bin spacing is the rate divided by the number of points, which equals one over the record length, so only a longer record gives finer bins. Raising the rate with N fixed makes the bins wider.
What can the first lab use from the FFT toolbox?
The lab brief allows the FFT and the inverse FFT and bans higher-level helper calls, such as building the frequency axis automatically, as well as FIR or IIR filtering. The frequency axis and the coefficient edits have to be written by hand.
Exam move
Make bin arithmetic second nature. For several combinations of rate and record length, write N, the bin spacing, the bin of a given tone, its mirror and the bin of half the rate, and check each answer by converting back to hertz. Compute a few small DFTs by hand, a two-point and a four-point transform, then repeat the four-point case with the even-odd split so that the butterfly structure is clear.
Count the operations for direct and fast transforms at 256, 1024 and 4096 points to see how the saving grows. Then rehearse spectrum reading as the tutorial frames it: read the axes, locate the fundamental and its harmonics, identify a narrow interfering tone, decide which coefficients to change, and give two reasons why a decibel axis might mislead.
Finally, write out the procedure you would follow in the first lab to remove noise with the FFT and inverse FFT, including the mirror edit, so that it is ready when you sit down at the bench.
Working through The DFT and FFT for Real Spectra in ENG5027? Sia is AskSia’s AI Electrical Engineering tutor — ask any ENG5027 The DFT and FFT for Real Spectra question and get a clear, step-by-step explanation grounded in how ENG5027 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.