Fast Fourier Transform
- 97Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What does the Fast Fourier Transform (FFT) compute?
It computes the same Discrete Fourier Transform (DFT) as the direct method, but reuses overlapping work to do so much faster.
Or swipe the card
97 cards
What does the Fast Fourier Transform (FFT) compute?
It computes the same Discrete Fourier Transform (DFT) as the direct method, but reuses overlapping work to do so much faster.
What is the basic idea of a Fourier transform?
It represents a signal as a combination of pure waves at different frequencies; the spectrum describes how much of each frequency is present.
How can a pure wave be represented using circular motion?
The height of a point moving steadily around a circle traces a wave. A spinning complex number therefore represents a wave, with its rotation rate corresponding to frequency.
How are complex numbers represented geometrically?
As points in a plane: the real part gives the horizontal coordinate, and the imaginary part gives the vertical coordinate. For example, 3+2i is three units right and two units up.
What geometric effect does multiplying a complex number by i have?
It rotates the number by a quarter-turn counterclockwise without changing its length. Applying the rotation twice gives i2=−1.
What happens to lengths and angles when two complex numbers are multiplied?
Their lengths multiply, and their angles add.
What does Euler’s formula say, and how can it be visualized?
Euler’s formula is eiheta=cosθ+isinθ. It represents the point at angle θ on the unit circle, with coordinates (cosθ,sinθ).
What are the values of eiθ at θ=π and θ=2π?
At π, the point is −1; at 2π, it has returned to 1.
What does e−iθ represent geometrically?
A point rotating clockwise around the unit circle by angle θ.
What are the Nth roots of unity?
The N equally spaced points on the unit circle that return to 1 when each is raised to the power N.
How is the FFT’s basic twiddle factor defined, and what does it represent?
WN=e−2πi/N is one clockwise step around the unit circle divided into N equal steps. Its powers represent multiple steps.
How did the FFT’s key idea develop historically?
Gauss used a version around 1805 to calculate asteroid orbits but did not publish it. Cooley and Tukey rediscovered it in 1965, when computers made the efficient algorithm especially useful.
What does the Discrete Fourier Transform compute for a length-N signal?
For each frequency index k, it computes X[k]=∑n=0N−1x[n]WNnk.
What does a DFT output X[k] tell you?
It measures the signal’s contribution at frequency index k.
How many input samples contribute to each DFT output?
All N input samples contribute to each output.
How can a DFT output be interpreted as a sum of arrows?
Each sample becomes an arrow whose length is the sample value and whose direction is set by the corresponding twiddle factor. The DFT output is the sum of those arrows.
What does the winding interpretation of the DFT do?
It rotates each sample’s arrow by an amount determined by its position and a trial frequency. When the winding aligns with a signal component, the arrows reinforce rather than cancel.
Why do matching signal frequencies create peaks in the spectrum?
At a matching winding speed, the arrows from that component point in a coordinated direction, moving their sum away from the center and producing a peak.
Why can a signal with a nonzero average have a peak at zero frequency?
At zero winding, none of the arrows rotate. If the signal is above zero on average, the arrows collectively lean in one direction, producing a zero-frequency or DC component.
How does the DFT sum relate to the average position of the arrows?
The DFT output is the sum, not the average, so it is N times the arrows’ average position.
How does the height of a DFT peak depend on the duration of a tone?
For a sustained tone, the peak grows with the number of samples over which the tone lasts.
How is the DFT connected to polynomial evaluation?
For P(z)=∑n=0N−1x[n]zn, the DFT output is X[k]=P(WNk). Thus the DFT evaluates one polynomial at the N roots-of-unity points.
How much work does the direct DFT require, and why?
It requires N2 sample–twiddle multiplications: there are N outputs and each uses all N inputs.
What happens to direct DFT work when the signal length doubles?
The work increases by a factor of four because it grows proportionally to N2.
Why was the Fourier transform difficult to use efficiently before the FFT?
The mathematics was known, but the direct calculation required too much work for long signals.
How does the FFT begin dividing a DFT into smaller problems?
It separates the samples into even-indexed and odd-indexed groups, creating two DFTs of half the original size.
Why do the even and odd sample groups each form a half-size DFT?
Their twiddle factors involve WN2, which is one step around a circle with N/2 points: WN2=WN/2.
How does a one-sample delay affect a frequency component in the even–odd split?
It introduces a frequency-dependent phase shift. For frequency index k, the odd group’s contribution is adjusted by the twiddle factor WNk.
What is the even–odd decomposition formula for a DFT output?
X[k]=E[k]+WNkO[k], where E[k] and O[k] are the transforms of the even- and odd-indexed samples.
How is the odd-sample twiddle separated algebraically?
WN(2r+1)k=WN2rkWNk. Since WNk is independent of r, it can be factored out of the odd-indexed sum.
How does the even–odd split appear in the polynomial representation?
Grouping even and odd powers gives P(z)=Peven(z2)+zPodd(z2).
Why can the even and odd transforms be reused for the second half of the outputs?
The half-size transforms repeat every N/2 indices: E[k+N/2]=E[k] and O[k+N/2]=O[k].
What is the periodicity property of the twiddle factors?
They repeat after N steps: WNk+N=WNk.
What happens to a twiddle factor after an additional half-turn?
It changes sign: WNk+N/2=−WNk.
How does half-turn symmetry produce two outputs from one twiddle product?
The paired outputs are X[k]=E[k]+WNkO[k] and X[k+N/2]=E[k]−WNkO[k]. Compute the product once, then use it in both an addition and a subtraction.
What is a butterfly operation in the FFT?
Given inputs a and b and twiddle W, compute a+Wb and a−Wb.
Why is the FFT combine step called a butterfly?
Its diagram has crossing connections resembling butterfly wings, with two inputs and two outputs.
How many complex multiplications and arithmetic operations does one butterfly use?
One complex multiplication to form Wb, followed by one addition and one subtraction.
How many butterflies are needed to combine two half-size transforms into a size-N transform?
N/2 butterflies—one for each pair of outputs.
Why does a butterfly save work compared with the direct DFT?
It computes the shared twiddle product once and uses it for two outputs, rather than calculating each output independently.
What geometric effect does the twiddle have inside a butterfly?
It rotates the lower input without changing its length; the rotated value is then added to and subtracted from the upper input.
How many butterflies are performed per FFT stage for a size-N transform?
N/2 butterflies per stage, across all the subproblems at that level.
How many stages does a radix-2 FFT of length N have?
log2N stages, because each split halves the problem size until it reaches one sample.
What is the radix-2 FFT’s asymptotic time complexity?
O(NlogN): approximately N/2 butterflies at each of log2N levels.
What recurrence describes the cost of a radix-2 FFT?
T(N)=2T(N/2)+N: two half-size FFTs plus linear work to combine their results.
Why does the recurrence T(N)=2T(N/2)+N lead to O(NlogN) work?
Each level does O(N) total work, and the recursion tree has log2N levels.
How does the FFT compare with the direct DFT for N=8 in the presented count?
The direct DFT uses 64 multiplications; the FFT uses 12 butterflies, each with one twiddle multiplication before any simplifications.
Why can practical FFT multiplication counts be lower than the basic analysis suggests?
Many twiddle factors are 1 or −i, which can be handled with simple copying, sign changes, or swapping real and imaginary parts rather than general complex multiplication.
Why must radix-2 FFT inputs be arranged in bit-reversed order for the iterative DIT algorithm?
This arrangement places the sample pairs needed for the first butterfly stage next to each other and matches the leaf order produced by recursive even–odd splitting.
What is bit-reversed order for an eight-element input?
Write each index using three bits, reverse those bits, and order samples by the resulting indices. The index order is 0,4,2,6,1,5,3,7.
How does recursive even–odd splitting produce bit-reversed indices?
Successive splits test the index’s last bit, then its second-to-last bit, and so on. Reading those split decisions in order is equivalent to reading the index bits backward.
How can bit-reversal reordering be done in place?
Reverse each index’s bits and swap the corresponding entries only when needed; bit reversal pairs indices with each other.
What are the three stages of the iterative FFT’s nested loops?
Loop over transform stages, then groups within each stage, then butterflies within each group.
How does butterfly spacing change across iterative FFT stages?
It doubles at each stage: partners are one position apart, then two, then four, and so on.
What transform sizes are built by the iterative radix-2 FFT’s stages?
The size doubles at each stage: 2,4,8,…,N.
What does the base case of a recursive FFT return?
A length-one input is returned unchanged, because the DFT of a single sample is that sample itself.
Why can an FFT be implemented in place?
Each butterfly reads two values and writes the two results back into the same slots. After reading them, the original inputs are no longer needed.
What is the memory advantage of the in-place FFT?
It can use a single array of N values instead of storing extra copies or lists for intermediate stages.
What is the iterative FFT’s overall workflow?
Reorder the input into bit-reversed order, then process the butterfly stages from smaller groups to larger groups, overwriting the array in place.
Why can data movement matter as much as arithmetic in an FFT implementation?
Moving data around in memory can be much slower than performing arithmetic, so avoiding extra copies improves practical performance.
What does zero padding do when a signal length is not a power of two?
It appends zeros until the signal reaches a convenient power-of-two length, allowing a radix-2 FFT to process it.
Does zero padding add new information to a signal?
No. The added zeros do not change the signal samples; padding evaluates the spectrum on a finer frequency grid.
How does zero padding change the displayed spectrum?
It adds frequency samples between the original bins. With a length-16 transform of a signal padded from length 8, every second bin matches an original bin.
How does zero padding affect frequency-bin spacing?
The bin spacing becomes the sample rate divided by the padded transform length, rather than divided by the original signal length.
Can zero padding resolve two genuinely close frequencies that a longer recording cannot resolve?
No. Zero padding makes the spectrum appear on a finer grid but adds no information; separating close tones requires a longer recording.
Why does the radix-2 FFT get stuck on a length-six input?
It splits six samples into two groups of three, but a group of three cannot be repeatedly divided into equal even and odd halves.
What is wrong with truncating a length-six signal to four samples to use a radix-2 FFT?
It discards real input data, whereas zero padding preserves all the original samples.
What must be considered when interpreting frequency peaks after zero padding?
Use the padded transform length to calculate bin spacing; using the original length can lead to assigning the wrong frequency to a peak.
For the four samples 1,2,3,4, what is W4 and what is X[1]?
W4=−i. The terms are 1, −2i, −3, and 4i, so X[1]=−2+2i.
For the four samples 1,2,3,4, what are the two-point DFTs of the even and odd samples?
The even samples (1,3) transform to (4,−2); the odd samples (2,4) transform to (6,−2).
For the eight-sample input (1,2,1,0,0,0,0,0), what is the zero-frequency output?
X[0]=4, the sum of all the input samples.
For a real-valued input, how are the DFT outputs related across the spectrum?
They have conjugate symmetry: X[N−k]=X[k]. For example, in an eight-point transform, X[7] is the conjugate of X[1].
Why do many FFT libraries return only half the spectrum for real-valued signals?
The other half is determined by conjugate symmetry, so storing or returning both halves is redundant.
What does decimation in time (DIT) split?
It splits the input samples into even-indexed and odd-indexed groups.
What does decimation in frequency (DIF) split?
It splits the output frequency indices into even and odd groups, beginning by separating the input into its first and second halves.
What happens to the second-half input samples in the DIF derivation?
They are reindexed as x[n+N/2] so both sums use the same index range.
How does the half-turn twiddle identity simplify the second-half term in DIF?
Since WNN/2=−1, the factor becomes WNnk(−1)k, making it positive for even k and negative for odd k.
What input combinations produce the even-frequency outputs in DIF?
The sums x[n]+x[n+N/2] are transformed by a half-size DFT to produce the even-frequency outputs.
What input combinations produce the odd-frequency outputs in DIF?
The differences x[n]−x[n+N/2] are multiplied by WNn and then transformed by a half-size DFT.
How do DIT and DIF differ in the order of twiddling and combining?
DIT twiddles one input before adding and subtracting. DIF adds and subtracts first, then twiddles the difference.
What input and output orderings are associated with common radix-2 DIT and DIF algorithms?
DIT uses bit-reversed input and produces normal-order output; DIF uses normal-order input and produces bit-reversed output.
When can the bit-reversal step be skipped by combining DIF and DIT?
When an intermediate result can remain in scrambled order—for example, in fast convolution, using DIF forward and DIT on the way back.
How are the DIT and DIF butterfly diagrams related?
They are mirror images: the twiddle factor moves from the input side of the butterfly in DIT to the output side in DIF.
How is a spectrogram commonly computed?
Split audio into short, overlapping frames, take an FFT of each frame, and display the results over time; brightness represents frequency strength.
How are time, frequency, and magnitude represented in a spectrogram?
Time runs horizontally, frequency runs vertically, and brightness indicates how strong a frequency is.
Why do voice assistants use FFTs repeatedly?
They analyze audio in successive frames, often using spectral information to process the incoming sound.
What is convolution in the time domain?
It combines two signals by sliding one across the other and multiplying and adding their values at each position.
What does the convolution theorem say?
Convolution in time corresponds to point-by-point multiplication in frequency.
How can FFTs accelerate convolution?
Take the FFT of both signals, multiply the results point by point, then take an inverse FFT. This replaces direct, roughly quadratic work with a few FFTs and a linear pass of multiplications.
How is FFT-based convolution related to polynomial multiplication?
Multiplying polynomials is convolution of their coefficient sequences. FFTs evaluate both polynomials at roots of unity, multiply the values, and transform back to recover the product.
How can FFT-based polynomial multiplication help with large-integer multiplication?
Large integers can be represented using polynomial-like coefficient sequences, so fast polynomial multiplication techniques can accelerate integer multiplication.
How does JPEG use a fast transform for compression?
It transforms small image blocks with the Discrete Cosine Transform, keeps strong coefficients, and rounds away weak ones that are less noticeable.
Why can image blocks often be compressed by discarding weak frequency coefficients?
Nearby pixels are usually similar, so much of a block’s energy is concentrated in a few low-frequency patterns.
How do MP3 and AAC use transform methods?
They use cosine-transform methods for sound that apply divide-and-conquer ideas similar to those used in fast Fourier transforms.
How does Wi-Fi use the FFT and inverse FFT in OFDM?
A transmitter uses an inverse FFT to build a signal from many sub-carriers, and a receiver uses an FFT to separate those sub-carriers.
How is an MRI image related to the inverse Fourier transform?
An MRI scanner measures frequency content from the body, and the displayed image is reconstructed using a two-dimensional inverse FFT.
What are other applications of FFTs mentioned in the content?
Radar uses them to analyze echo distances and speeds; radio astronomy uses them to detect faint signals; seismology uses them to analyze earthquakes; cameras use them in image filters.

Ask anything
We've read this whole study set, so questions about it get the best answers.