Fourier methods · fast algorithms
Inverse Fast Fourier Transform (IFFT)
The inverse fast Fourier transform returns a signal from its spectrum, producing exactly what the inverse discrete Fourier transform defines, but in about N·log₂N operations instead of N². For a vector of a million points that is the difference between a fraction of a second and hours. Nothing new needs to be implemented to get it: a forward FFT routine and two complex conjugations are enough. Spectral methods of this kind fill much of signal processing.
The conjugation trick
The inverse transform differs from the forward one only by the sign in the exponent and the factor 1/N. Conjugating a sum conjugates every term, which flips that sign. So
x = conj( FFT( conj(X) ) ) / N
Conjugate the spectrum, run the forward FFT, conjugate the result, divide by N. If the final signal is known to be real, the last conjugation can be skipped and only the real part kept. The definition behind this identity, with the matrix form, is on the inverse discrete Fourier transform page.
How the forward FFT is built
The radix-2 algorithm splits a length-N vector into its even-indexed and odd-indexed entries, transforms each half at length N/2, and combines them. With E(k) and O(k) the half-length transforms and W = e−j2π/N,
X(k) = E(k) + Wk · O(k) X(k + N/2) = E(k) − Wk · O(k)
for k = 0 to N/2 − 1. Each pair costs one complex multiplication and two additions, and halving can continue log₂N times. This requires N to be a power of two, which is why padding lengths matters; see nextpow2 and FFT lengths.
A worked 4-point inverse
Take the spectrum X = [10, −2 + 2j, −2, −2 − 2j]. It was produced from x = [1, 2, 3, 4], so the answer is known and can be checked.
Step 1, conjugate: [10, −2 − 2j, −2, −2 + 2j].
Step 2, forward FFT of that vector by radix-2. The even-indexed entries are 10 and −2. Their half-length transform is E(0) = 10 + (−2) = 8 and E(1) = 10 − (−2) = 12. The odd-indexed entries are −2 − 2j and −2 + 2j, giving O(0) = −4 and O(1) = (−2 − 2j) − (−2 + 2j) = −4j.
For N = 4, W = −j, so W⁰ = 1 and W¹ = −j. The combination step gives:
- Y(0) = E(0) + O(0) = 8 − 4 = 4
- Y(1) = E(1) + W·O(1) = 12 + (−j)(−4j) = 12 − 4 = 8
- Y(2) = E(0) − O(0) = 8 + 4 = 12
- Y(3) = E(1) − W·O(1) = 12 + 4 = 16
Step 3, conjugate (the values are already real) and divide by 4: [1, 2, 3, 4]. The input returns exactly, which verifies both the algorithm and the 1/N placement.
Scaling and conventions
The 1/N factor sits in the inverse in the convention above. Some packages scale both directions by 1/√N, and some leave scaling to the user. A round trip of forward and then inverse must reproduce the input, so whichever way a particular routine is documented, test it with a short vector like the one above before trusting amplitudes. When a Parseval check matters, remember that with the 1/N-in-inverse convention the energy relation is ∑|x|² = (1/N)∑|X|².
For the example, ∑|x|² = 1 + 4 + 9 + 16 = 30. The spectrum gives 100 + 8 + 4 + 8 = 120, and 120/4 = 30, so the relation holds.
Practical points
Rounding makes the imaginary part of a real signal’s inverse nonzero at around 10⁻¹⁶ relative size in double precision, which is noise rather than information, and discarding it is standard. If the imaginary part is large, the spectrum lost its conjugate symmetry somewhere, often because fftshift was applied on the way in and never undone.
The usual use of the IFFT is to finish a fast convolution of vectors: transform both inputs with zero padding, multiply the spectra, then invert. Length rules for that padding are the only subtlety; the product spectrum has to be sampled finely enough that the circular wraparound does not overlap the true result.