A7 · Lesson 51 · The Fourier matrix
The Fourier matrix, a change to a basis of tones
A block of samples is a vector in , and so far its natural coordinates have been the samples themselves. A different basis is far more useful for signals: sampled complex tones, one for each frequency that fits a whole number of cycles in the block. Changing to that basis is the discrete Fourier transform, and its matrix is the most important complex matrix in engineering. Its columns are perpendicular, which makes it a scaled unitary matrix: its inverse is just its conjugate transpose, and it keeps energy the same in both bases.
- The stems are column of the 8-point Fourier matrix: the real part (a sampled cosine) and the imaginary part (a sampled negative sine).
- Step from 0 to 7. Column 0 is constant, column 1 makes one cycle across the block, column 4 alternates sign every sample.
- Compare columns and : their real parts are the same, and their imaginary parts are opposite.
Predict
How are columns and of the 8-point Fourier matrix related?
Conjugates. , since for whole . Sampled, a tone at cycles per block is indistinguishable from one at . That's why the DFT of a real signal has , and only half of it carries new information.
Name it
Complex inner products
For complex vectors, length uses the conjugate: , where is the conjugate transpose. The inner product is , and and are perpendicular when it's zero. Without the conjugate, would have length zero.
Hermitian and unitary matrices
- Hermitian: . The complex version of symmetric: real eigenvalues, perpendicular eigenvectors.
- Unitary: . The complex version of orthogonal: the columns are orthonormal, , and for every . Every eigenvalue has magnitude 1.
The Fourier matrix
With , the Fourier matrix has entries , for . The DFT of a sample vector is :
Its columns are perpendicular, each with length squared , so :
- the inverse DFT is ;
- Parseval's theorem: ;
- is unitary.
Circulant matrices
A circulant matrix has each row equal to the one above shifted one place right, wrapping around. Multiplying by it is a circular convolution. Every circulant matrix has the Fourier columns as eigenvectors, and its eigenvalues are the DFT of its first column. That's the convolution theorem: in the Fourier basis, filtering is a diagonal matrix, one gain per frequency.
Worked example
Find the 4-point DFT of and check Parseval's theorem.
Show the solution
- The DFT matrix. For , , and
- Multiply.
- Read the entries. is the sum, , and is the conjugate of , as it must be for real samples.
- Parseval's theorem. The energies match:
Answer the DFT is , and both sides of Parseval's theorem give 30.
Worked example
Check that is unitary.
Show the solution
- Column lengths. Each column has length squared
- Inner product of the columns. It uses the conjugate of the first: So .
- Why the conjugate matters. Without it, the second calculation would give , and the perpendicular columns would look parallel.
Answer , so is unitary.
Worked example
A 4-point circular two-sample average has first column . What are its gains at the four DFT frequencies?
Show the solution
- Eigenvalues of a circulant. They are the DFT of its first column:
- The four gains. The magnitudes are 1, 0.707, 0 and 0.707.
- What the filter does. A constant passes untouched, the alternating signal is wiped out, and the in-between frequencies lose 3 dB: a two-sample average is a low-pass filter.
Answer the gains are 1, 0.707, 0 and 0.707 in magnitude, a low-pass filter.
Check
Find the 4-point DFT of .
(a)
What is ?
(b)
What is ?
Check
An = 8-point DFT has = 64. What is ?
Check
is unitary and = 5. What is ?
Check
An = 8-point circular two-sample average has gains . What is for = 1?
Check
A real 4-point signal repeats every two samples.
(a)
What is ?
(b)
What is ?
Check
Find the eigenvalues of the Hermitian matrix .
Step 1
What is its determinant? (Note .)
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is the larger eigenvalue?
Explain why
Why is it useful that the Fourier matrix's columns are perpendicular?
Perpendicular columns mean each coordinate in the new basis can be found on its own, by an inner product with one column, without solving a system: is just the correlation of the signal with tone . The same property makes the inverse almost free (), keeps energy accounted for exactly (Parseval), and means that changing one frequency's coefficient changes the signal only along that tone. A skewed basis would give coordinates that depend on every other coordinate and an inverse that amplifies rounding errors; the Fourier basis, like any orthogonal one, has condition number 1.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.