In applied mathematics, a DFT matrix is an expression of a discrete Fourier transform (DFT) as a transformation matrix, which can be applied to a signal through matrix multiplication.
An N-point DFT is expressed as the multiplication
X=Wx
x
W
X
The transformation matrix
W
W=\left(
\omegajk | |
{\sqrt{N |
W=
1 | |
\sqrt{N |
where
\omega=e-2\pi
i2=-1
\omega
x
\omegax=\omegax.
1/\sqrt{N}
1/\sqrt{N}
Fast Fourier transform algorithms utilize the symmetries of the matrix to reduce the time of multiplying a vector by this matrix, from the usual
O(N2)
The two-point DFT is a simple case, in which the first entry is the DC (sum) and the second entry is the AC (difference).
W= | 1 |
\sqrt{2 |
The first row performs the sum, and the second row performs the difference.
The factor of
1/\sqrt{2}
The four-point clockwise DFT matrix is as follows:
W=
1 | |
\sqrt{4 |
\omega=
| ||||
e |
=-i
The first non-trivial integer power of two case is for eight points:
W=
1 | |
\sqrt{8 |
\begin \omega^0 & \omega^0 &\omega^0 &\omega^0 &\omega^0 &\omega^0 &\omega^0 & \omega^0 \\ \omega^0 & \omega^1 &\omega^2 &\omega^3 &\omega^4 &\omega^5 &\omega^6 & \omega^7 \\ \omega^0 & \omega^2 &\omega^4 &\omega^6 &\omega^8 &\omega^ &\omega^ & \omega^ \\ \omega^0 & \omega^3 &\omega^6 &\omega^9 &\omega^ &\omega^ &\omega^ & \omega^ \\ \omega^0 & \omega^4 &\omega^8 &\omega^ &\omega^ &\omega^ &\omega^ & \omega^ \\ \omega^0 & \omega^5 &\omega^ &\omega^ &\omega^ &\omega^ &\omega^ & \omega^ \\ \omega^0 & \omega^6 &\omega^ &\omega^ &\omega^ &\omega^ &\omega^ & \omega^ \\ \omega^0 & \omega^7 &\omega^ &\omega^ &\omega^ &\omega^ &\omega^ & \omega^ \\\end = \frac\begin 1 &1 &1 &1 &1 &1 &1 &1 \\ 1 &\omega &-i &-i\omega &-1 &-\omega &i &i\omega \\ 1 &-i &-1 &i &1 &-i &-1 &i \\ 1 &-i\omega &i &\omega &-1 &i\omega &-i &-\omega \\ 1 &-1 &1 &-1 &1 &-1 &1 &-1 \\ 1 &-\omega &-i &i\omega &-1 &\omega &i &-i\omega \\ 1 &i &-1 &-i &1 &i &-1 &-i \\ 1 &i\omega &i &-\omega &-1 &-i\omega &-i &\omega \\\end
where
\omega=
| ||||
e |
=
1 | |
\sqrt{2 |
(Note that
\omega8=\omegan
Evaluating for the value of
\omega
W= | 1 |
\sqrt{8 |
The following image depicts the DFT as a matrix multiplication, with elements of the matrix depicted by samples of complex exponentials:
The real part (cosine wave) is denoted by a solid line, and the imaginary part (sine wave) by a dashed line.
The top row is all ones (scaled by
1/\sqrt{8}
The following summarizes how the 8-point DFT works, row by row, in terms of fractional frequency:
Equivalently the last row can be said to have a fractional frequency of +1/8 and thus measure how much of the signal has a fractional frequency of −1/8. In this way, it could be said that the top rows of the matrix "measure" positive frequency content in the signal and the bottom rows measure negative frequency component in the signal.
The DFT is (or can be, through appropriate selection of scaling) a unitary transform, i.e., one that preserves energy. The appropriate choice of scaling to achieve unitarity is
1/\sqrt{N}
For other properties of the DFT matrix, including its eigenvalues, connection to convolutions, applications, and so on, see the discrete Fourier transform article.
See main article: article and Fourier operator. The notion of a Fourier transform is readily generalized. One such formal generalization of the N-point DFT can be imagined by taking N arbitrarily large. In the limit, the rigorous mathematical machinery treats such linear operators as so-called integral transforms. In this case, if we make a very large matrix with complex exponentials in the rows (i.e., cosine real parts and sine imaginary parts), and increase the resolution without bound, we approach the kernel of the Fredholm integral equation of the 2nd kind, namely the Fourier operator that defines the continuous Fourier transform. A rectangular portion of this continuous Fourier operator can be displayed as an image, analogous to the DFT matrix, as shown at right, where greyscale pixel value denotes numerical quantity.