Two-point 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= \frac{1}{\sqrt{2}} \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix} The first row performs the sum, and the second row performs the difference. The factor of 1/\sqrt{2} is to make the transform unitary (see below).
Four-point The four-point clockwise DFT matrix is as follows: : W = \frac{1}{\sqrt{4}} \begin{bmatrix} \omega^0 & \omega^0 &\omega^0 &\omega^0 \\ \omega^0 & \omega^1 &\omega^2 &\omega^3 \\ \omega^0 & \omega^2 &\omega^4 &\omega^6 \\ \omega^0 & \omega^3 &\omega^6 &\omega^9 \\ \end{bmatrix} = \frac{1}{\sqrt{4}} \begin{bmatrix} 1 & 1 & 1 & 1\\ 1 & -i & -1 & i\\ 1 & -1 & 1 & -1\\ 1 & i & -1 & -i\end{bmatrix} where \omega = e^{-\frac{2 \pi i}{4}} = -i.
Eight-point The first non-trivial integer power of two case is for eight points: :W= \frac{1}{\sqrt{8}} \begin{bmatrix} \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^{10} &\omega^{12} & \omega^{14} \\ \omega^0 & \omega^3 &\omega^6 &\omega^9 &\omega^{12} &\omega^{15} &\omega^{18} & \omega^{21} \\ \omega^0 & \omega^4 &\omega^8 &\omega^{12} &\omega^{16} &\omega^{20} &\omega^{24} & \omega^{28} \\ \omega^0 & \omega^5 &\omega^{10} &\omega^{15} &\omega^{20} &\omega^{25} &\omega^{30} & \omega^{35} \\ \omega^0 & \omega^6 &\omega^{12} &\omega^{18} &\omega^{24} &\omega^{30} &\omega^{36} & \omega^{42} \\ \omega^0 & \omega^7 &\omega^{14} &\omega^{21} &\omega^{28} &\omega^{35} &\omega^{42} & \omega^{49} \\ \end{bmatrix} = \frac{1}{\sqrt{8}} \begin{bmatrix} 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{bmatrix} where :\omega = e^{-\frac{2 \pi i}{8}} = \frac{1}{\sqrt{2}} - \frac{i}{\sqrt{2}} (Note that \omega^{8 + n} = \omega^{n}.) Evaluating for the value of \omega, gives: W=\frac{1}{\sqrt{8}} \begin{bmatrix} 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\ 1 & \frac{1-i}{\sqrt2} & -i & \frac{-1-i}{\sqrt2} & -1 & \frac{-1+i}{\sqrt2} & i & \frac{1+i}{\sqrt2} \\ 1 & -i & -1 & i & 1 & -i & -1 & i \\ 1 & \frac{-1-i}{\sqrt2} & i & \frac{1-i}{\sqrt2} & -1 & \frac{1+i}{\sqrt2} & -i & \frac{-1+i}{\sqrt2} \\ 1 & -1 & 1 & -1 & 1 & -1 & 1 & -1 \\ 1 & \frac{-1+i}{\sqrt2} & -i & \frac{1+i}{\sqrt2} & -1 & \frac{1-i}{\sqrt2} & i & \frac{-1-i}{\sqrt2} \\ 1 & i & -1 & -i & 1 & i & -1 & -i \\ 1 & \frac{1+i}{\sqrt2} & i & \frac{-1+i}{\sqrt2} &-1 & \frac{-1-i}{\sqrt2} & -i & \frac{1-i}{\sqrt2} \\ \end{bmatrix} 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} for unitarity), so it "measures" the
DC component in the input signal. The next row is eight samples of negative one cycle of a complex exponential, i.e., a signal with a
fractional frequency of −1/8, so it "measures" how much "strength" there is at fractional frequency +1/8 in the signal. Recall that a
matched filter compares the signal with a time reversed version of whatever we're looking for, so when we're looking for fractional frequency 1/8 we compare with fractional frequency −1/8 so that is why this row is a
negative frequency. The next row is negative two cycles of a complex exponential, sampled in eight places, so it has a fractional frequency of −1/4, and thus "measures" the extent to which the signal has a fractional frequency of +1/4. The following summarizes how the 8-point DFT works, row by row, in terms of fractional frequency: • 0 measures how much DC is in the signal • −1/8 measures how much of the signal has a fractional frequency of +1/8 • −1/4 measures how much of the signal has a fractional frequency of +1/4 • −3/8 measures how much of the signal has a fractional frequency of +3/8 • −1/2 measures how much of the signal has a fractional frequency of +1/2 • −5/8 measures how much of the signal has a fractional frequency of +5/8 • −3/4 measures how much of the signal has a fractional frequency of +3/4 • −7/8 measures how much of the signal has a fractional frequency of +7/8 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. ==Unitary transform==