Discrete Fourier Transform
The DFT as a linear transformation
For a length-N sequence x_0 through x_(N-1), the discrete Fourier transform maps the sample vector to frequency coefficients X_k.
With omega = exp(-2 pi i / N), the matrix entry in row k and column n is omega raised to kn, so X_k is the sum of x_n omega raised to kn.
The k=0 row contains only ones, so X_0 is the sum of all samples.
For a real-valued length-N input sequence, the coefficients have conjugate symmetry: X_(N-k) is the complex conjugate of X_k for k = 1, ..., N-1; equivalently, X_((-k) mod N) = conjugate(X_k), which also covers k=0 and shows X_0 is real.
This is a property of the transform, not a claim that every coefficient is itself real.
Thinking in matrix-vector terms is valuable because each row is a basis pattern measured against the same input vector. The transform is linear: transforming a sum of signals gives the sum of their transforms, and scaling the signal scales every coefficient.
For x = [2, -1, 4, 1], use the unnormalized DFT convention. What is X_0?
For x = [1, 3, 1, 3] and N = 4, what is X_2 under the unnormalized DFT?