DFT Matrix
   HOME

TheInfoList



OR:

In applied mathematics, a DFT matrix is an expression of a
discrete Fourier transform In mathematics, the discrete Fourier transform (DFT) converts a finite sequence of equally-spaced samples of a function into a same-length sequence of equally-spaced samples of the discrete-time Fourier transform (DTFT), which is a comple ...
(DFT) as a
transformation matrix In linear algebra, linear transformations can be represented by matrices. If T is a linear transformation mapping \mathbb^n to \mathbb^m and \mathbf x is a column vector with n entries, then T( \mathbf x ) = A \mathbf x for some m \times n matrix ...
, which can be applied to a signal through
matrix multiplication In mathematics, particularly in linear algebra, matrix multiplication is a binary operation that produces a matrix from two matrices. For matrix multiplication, the number of columns in the first matrix must be equal to the number of rows in the s ...
.


Definition

An ''N''-point DFT is expressed as the multiplication X = W x, where x is the original input signal, W is the ''N''-by-''N''
square In Euclidean geometry, a square is a regular quadrilateral, which means that it has four equal sides and four equal angles (90- degree angles, π/2 radian angles, or right angles). It can also be defined as a rectangle with two equal-length a ...
DFT matrix, and X is the DFT of the signal. The transformation matrix W can be defined as W = \left(\frac\right)_ , or equivalently: : W = \frac \begin 1&1&1&1&\cdots &1 \\ 1&\omega&\omega^2&\omega^3&\cdots&\omega^ \\ 1&\omega^2&\omega^4&\omega^6&\cdots&\omega^\\ 1&\omega^3&\omega^6&\omega^9&\cdots&\omega^\\ \vdots&\vdots&\vdots&\vdots&\ddots&\vdots\\ 1&\omega^&\omega^&\omega^&\cdots&\omega^ \end , where \omega = e^ is a primitive ''N''th root of unity in which i^2=-1. We can avoid writing large exponents for \omega using the fact that for any exponent x we have the identity \omega^ = \omega^. This is the
Vandermonde matrix In linear algebra, a Vandermonde matrix, named after Alexandre-Théophile Vandermonde, is a matrix with the terms of a geometric progression in each row: an matrix :V=\begin 1 & x_1 & x_1^2 & \dots & x_1^\\ 1 & x_2 & x_2^2 & \dots & x_2^\\ 1 & x_ ...
for the roots of unity, up to the normalization factor. Note that the normalization factor in front of the sum ( 1/\sqrt ) and the sign of the exponent in ω are merely conventions, and differ in some treatments. All of the following discussion applies regardless of the convention, with at most minor adjustments. The only important thing is that the forward and inverse transforms have opposite-sign exponents, and that the product of their normalization factors be 1/''N''. However, the 1/\sqrt choice here makes the resulting DFT matrix
unitary Unitary may refer to: Mathematics * Unitary divisor * Unitary element * Unitary group * Unitary matrix * Unitary morphism * Unitary operator * Unitary transformation * Unitary representation * Unitarity (physics) * ''E''-unitary inverse semigrou ...
, which is convenient in many circumstances. 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(N^2). Similar techniques can be applied for multiplications by matrices such as
Hadamard matrix In mathematics, a Hadamard matrix, named after the French mathematician Jacques Hadamard, is a square matrix whose entries are either +1 or −1 and whose rows are mutually orthogonal. In geometric terms, this means that each pair of rows ...
and the
Walsh matrix In mathematics, a Walsh matrix is a specific square matrix of dimensions 2, where ''n'' is some particular natural number. The entries of the matrix are either +1 or −1 and its rows as well as columns are orthogonal, i.e. dot product i ...
.


Examples


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 \begin 1 & 1 \\ 1 & -1 \end The first row performs the sum, and the second row performs the difference. The factor of 1/\sqrt is to make the transform unitary (see below).


Four-point

The four-point clockwise DFT matrix is as follows: : W = \frac \begin \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 = \frac \begin 1 & 1 & 1 & 1\\ 1 & -i & -1 & i\\ 1 & -1 & 1 & -1\\ 1 & i & -1 & -i\end where \omega = e^ = -i.


Eight-point

The first non-trivial integer power of two case is for eight points: :W= \frac \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^ = \frac - \frac (Note that \omega^ = \omega^.) 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 for unitarity), so it "measures" the
DC component DC, D.C., D/C, Dc, or dc may refer to: Places * Washington, D.C. (District of Columbia), the capital and the federal territory of the United States * Bogotá, Distrito Capital, the capital city of Colombia * Dubai City, as distinct from th ...
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 A fraction is one or more equal parts of something. Fraction may also refer to: * Fraction (chemistry), a quantity of a substance collected by fractionation * Fraction (floating point number), an (ambiguous) term sometimes used to specify a part ...
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 fracfreq. 1/8 we compare with fracfreq. −1/8 so that is why this row is a
negative frequency The concept of signed frequency (negative and positive frequency) can indicate both the rate and sense of rotation; it can be as simple as a wheel rotating clockwise or counterclockwise. The rate is expressed in units such as revolutions (a.k.a. ''c ...
. 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

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, so that the energy in the physical domain will be the same as the energy in the Fourier domain, i.e., to satisfy
Parseval's theorem In mathematics, Parseval's theorem usually refers to the result that the Fourier transform is unitary; loosely, that the sum (or integral) of the square of a function is equal to the sum (or integral) of the square of its transform. It originates ...
. (Other, non-unitary, scalings, are also commonly used for computational convenience; e.g., the
convolution theorem In mathematics, the convolution theorem states that under suitable conditions the Fourier transform of a convolution of two functions (or signals) is the pointwise product of their Fourier transforms. More generally, convolution in one domain (e.g ...
takes on a slightly simpler form with the scaling shown in the
discrete Fourier transform In mathematics, the discrete Fourier transform (DFT) converts a finite sequence of equally-spaced samples of a function into a same-length sequence of equally-spaced samples of the discrete-time Fourier transform (DTFT), which is a comple ...
article.)


Other properties

For other properties of the DFT matrix, including its eigenvalues, connection to convolutions, applications, and so on, see the
discrete Fourier transform In mathematics, the discrete Fourier transform (DFT) converts a finite sequence of equally-spaced samples of a function into a same-length sequence of equally-spaced samples of the discrete-time Fourier transform (DTFT), which is a comple ...
article.


A limiting case: The 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 mathematics, an integral transform maps a function from its original function space into another function space via integration, where some of the properties of the original function might be more easily characterized and manipulated than i ...
. 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 The Fourier operator is the kernel of the Fredholm integral of the first kind that defines the continuous Fourier transform, and is a two-dimensional function when it corresponds to the Fourier transform of one-dimensional functions. It is complex ...
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.


See also

*
Multidimensional transform In mathematical analysis and applications, multidimensional transforms are used to analyze the frequency content of signals in a domain of two or more dimensions. Multidimensional Fourier transform One of the more popular multidimensional tran ...
* Clock and shift matrices


References


The Transform and Data Compression Handbook by P. C. Yip, K. Ramamohan Rao
– See chapter 2 for a treatment of the DFT based largely on the DFT matrix


External links



{{Matrix classes Fourier analysis Digital signal processing Matrices