A751 of 56
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A7 · Lesson 51 · The Fourier matrix

The Fourier matrix, a change to a basis of tones

A block of N samples is a vector in ℂN, and so far its natural coordinates have been the samples themselves. A different basis is far more useful for signals: N 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 k of the 8-point Fourier matrix: the real part (a sampled cosine) and the imaginary part (a sampled negative sine).
  • Step k from 0 to 7. Column 0 is constant, column 1 makes one cycle across the block, column 4 alternates sign every sample.
  • Compare columns k and 8−k: their real parts are the same, and their imaginary parts are opposite.

Predict

How are columns k and 8−k of the 8-point Fourier matrix related?

Name it

Complex inner products

For complex vectors, length uses the conjugate: |𝐱|2=∑|xi|2=𝐱H𝐱, where 𝐱H is the conjugate transpose. The inner product is 𝐱H𝐲, and 𝐱 and 𝐲 are perpendicular when it's zero. Without the conjugate, (1,j) would have length zero.

Hermitian and unitary matrices

  • Hermitian: AH=A. The complex version of symmetric: real eigenvalues, perpendicular eigenvectors.
  • Unitary: UHU=I. The complex version of orthogonal: the columns are orthonormal, U−1=UH, and |U𝐱|=|𝐱| for every 𝐱. Every eigenvalue has magnitude 1.

The Fourier matrix

With w=e−2πj/N, the N×N Fourier matrix has entries Fkn=wkn, for k,n=0,…,N−1. The DFT of a sample vector 𝐱 is 𝐗=F𝐱:

Xk=∑n=0N−1xne−2πjkn/N

Its columns are perpendicular, each with length squared N, so FHF=NI:

  • the inverse DFT is 𝐱=1NFH𝐗;
  • Parseval's theorem: ∑|xn|2=1N∑|Xk|2;
  • 1NF 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 𝐱=(1,2,3,4) and check Parseval's theorem.

Show the solution
  1. The DFT matrix. For N=4, w=e−jπ/2=−j, and F=[11111−j−1j1−11−11j−1−j]
  2. Multiply. F𝐱=[10−2+2j−2−2−2j]
  3. Read the entries. X0=10 is the sum, X2=1−2+3−4=−2, and X3 is the conjugate of X1, as it must be for real samples.
  4. Parseval's theorem. The energies match: ∑|xn|2=1+4+9+16=3014∑|Xk|2=14(100+8+4+8)=30

Answer the DFT is (10,−2+2j,−2,−2−2j), and both sides of Parseval's theorem give 30.

Worked example

Check that U=12[11j−j] is unitary.

Show the solution
  1. Column lengths. Each column has length squared 12(1+|j|2)=1
  2. Inner product of the columns. It uses the conjugate of the first: 12(1⋅1+j¯⋅(−j))=12(1+j2)=0 So UHU=I.
  3. Why the conjugate matters. Without it, the second calculation would give 12(1−j2)=1, and the perpendicular columns would look parallel.

Answer UHU=I, so U is unitary.

Worked example

A 4-point circular two-sample average has first column (12,12,0,0). What are its gains at the four DFT frequencies?

Show the solution
  1. Eigenvalues of a circulant. They are the DFT of its first column: Hk=12(1+wk),w=−j
  2. The four gains. H0=1H1=12(1−j)H2=0H3=12(1+j) The magnitudes are 1, 0.707, 0 and 0.707.
  3. What the filter does. A constant passes untouched, the alternating signal (1,−1,1,−1) 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 (1,2,6,8).

(a)

What is X0?

(b)

What is X2?

Check

An N = 8-point DFT has ∑|Xk|2 = 64. What is ∑|xn|2?

Check

U is unitary and |𝐱| = 5. What is |U𝐱|?

Check

An N = 8-point circular two-sample average has gains Hk=12(1+wk). What is |Hk| for k = 1?

Check

A real 4-point signal (1,3,1,3) repeats every two samples.

(a)

What is X0?

(b)

What is X2?

Check

Find the eigenvalues of the Hermitian matrix [ab+jcb−jcd].

Step 1

What is its determinant? (Note (b+jc)(b−jc)=b2+c2.)

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°.

Explain why

Why is it useful that the Fourier matrix's columns are perpendicular?

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.