fbpx
Wikipedia

DFT matrix

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.

Definition edit

An N-point DFT is expressed as the multiplication  , where   is the original input signal,   is the N-by-N square DFT matrix, and   is the DFT of the signal.

The transformation matrix   can be defined as  , or equivalently:

 ,

where   is a primitive Nth root of unity in which  . We can avoid writing large exponents for   using the fact that for any exponent   we have the identity   This is the Vandermonde matrix for the roots of unity, up to the normalization factor. Note that the normalization factor in front of the sum (   ) 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   choice here makes the resulting DFT matrix unitary, 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  . Similar techniques can be applied for multiplications by matrices such as Hadamard matrix and the Walsh matrix.

Examples edit

Two-point edit

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

 

The first row performs the sum, and the second row performs the difference.

The factor of   is to make the transform unitary (see below).

Four-point edit

The four-point clockwise DFT matrix is as follows:

 

where  .

Eight-point edit

The first non-trivial integer power of two case is for eight points:

 

where

 

(Note that  .)

Evaluating for the value of  , gives:

 


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   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 fracfreq. 1/8 we compare with fracfreq. −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 edit

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  , 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. (Other, non-unitary, scalings, are also commonly used for computational convenience; e.g., the convolution theorem takes on a slightly simpler form with the scaling shown in the discrete Fourier transform article.)

Other properties edit

For other properties of the DFT matrix, including its eigenvalues, connection to convolutions, applications, and so on, see the discrete Fourier transform article.

A limiting case: The Fourier operator edit

 
Real part (cosine)
 
Imaginary part (sine)

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.

See also edit

References edit

  • 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 edit

  • Fourier Operator and Decimation In Time (DIT)

matrix, applied, mathematics, expression, discrete, fourier, transform, transformation, matrix, which, applied, signal, through, matrix, multiplication, contents, definition, examples, point, four, point, eight, point, unitary, transform, other, properties, li. 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 Contents 1 Definition 2 Examples 2 1 Two point 2 2 Four point 2 3 Eight point 3 Unitary transform 4 Other properties 5 A limiting case The Fourier operator 6 See also 7 References 8 External linksDefinition editAn N point DFT is expressed as the multiplication X W x displaystyle X Wx nbsp where x displaystyle x nbsp is the original input signal W displaystyle W nbsp is the N by N square DFT matrix and X displaystyle X nbsp is the DFT of the signal The transformation matrix W displaystyle W nbsp can be defined as W w j k N j k 0 N 1 displaystyle W left frac omega jk sqrt N right j k 0 ldots N 1 nbsp or equivalently W 1 N 1 1 1 1 1 1 w w 2 w 3 w N 1 1 w 2 w 4 w 6 w 2 N 1 1 w 3 w 6 w 9 w 3 N 1 1 w N 1 w 2 N 1 w 3 N 1 w N 1 N 1 displaystyle W frac 1 sqrt N begin bmatrix 1 amp 1 amp 1 amp 1 amp cdots amp 1 1 amp omega amp omega 2 amp omega 3 amp cdots amp omega N 1 1 amp omega 2 amp omega 4 amp omega 6 amp cdots amp omega 2 N 1 1 amp omega 3 amp omega 6 amp omega 9 amp cdots amp omega 3 N 1 vdots amp vdots amp vdots amp vdots amp ddots amp vdots 1 amp omega N 1 amp omega 2 N 1 amp omega 3 N 1 amp cdots amp omega N 1 N 1 end bmatrix nbsp where w e 2 p i N displaystyle omega e 2 pi i N nbsp is a primitive Nth root of unity in which i 2 1 displaystyle i 2 1 nbsp We can avoid writing large exponents for w displaystyle omega nbsp using the fact that for any exponent x displaystyle x nbsp we have the identity w x w x mod N displaystyle omega x omega x bmod N nbsp This is the Vandermonde matrix for the roots of unity up to the normalization factor Note that the normalization factor in front of the sum 1 N displaystyle 1 sqrt N nbsp and the sign of the exponent in w 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 N displaystyle 1 sqrt N nbsp choice here makes the resulting DFT matrix unitary 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 displaystyle O N 2 nbsp Similar techniques can be applied for multiplications by matrices such as Hadamard matrix and the Walsh matrix Examples editTwo point edit 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 2 1 1 1 1 displaystyle W frac 1 sqrt 2 begin bmatrix 1 amp 1 1 amp 1 end bmatrix nbsp The first row performs the sum and the second row performs the difference The factor of 1 2 displaystyle 1 sqrt 2 nbsp is to make the transform unitary see below Four point edit The four point clockwise DFT matrix is as follows W 1 4 w 0 w 0 w 0 w 0 w 0 w 1 w 2 w 3 w 0 w 2 w 4 w 6 w 0 w 3 w 6 w 9 1 4 1 1 1 1 1 i 1 i 1 1 1 1 1 i 1 i displaystyle W frac 1 sqrt 4 begin bmatrix omega 0 amp omega 0 amp omega 0 amp omega 0 omega 0 amp omega 1 amp omega 2 amp omega 3 omega 0 amp omega 2 amp omega 4 amp omega 6 omega 0 amp omega 3 amp omega 6 amp omega 9 end bmatrix frac 1 sqrt 4 begin bmatrix 1 amp 1 amp 1 amp 1 1 amp i amp 1 amp i 1 amp 1 amp 1 amp 1 1 amp i amp 1 amp i end bmatrix nbsp where w e 2 p i 4 i displaystyle omega e frac 2 pi i 4 i nbsp Eight point edit The first non trivial integer power of two case is for eight points W 1 8 w 0 w 0 w 0 w 0 w 0 w 0 w 0 w 0 w 0 w 1 w 2 w 3 w 4 w 5 w 6 w 7 w 0 w 2 w 4 w 6 w 8 w 10 w 12 w 14 w 0 w 3 w 6 w 9 w 12 w 15 w 18 w 21 w 0 w 4 w 8 w 12 w 16 w 20 w 24 w 28 w 0 w 5 w 10 w 15 w 20 w 25 w 30 w 35 w 0 w 6 w 12 w 18 w 24 w 30 w 36 w 42 w 0 w 7 w 14 w 21 w 28 w 35 w 42 w 49 1 8 1 1 1 1 1 1 1 1 1 w i i w 1 w i i w 1 i 1 i 1 i 1 i 1 i w i w 1 i w i w 1 1 1 1 1 1 1 1 1 w i i w 1 w i i w 1 i 1 i 1 i 1 i 1 i w i w 1 i w i w displaystyle W frac 1 sqrt 8 begin bmatrix omega 0 amp omega 0 amp omega 0 amp omega 0 amp omega 0 amp omega 0 amp omega 0 amp omega 0 omega 0 amp omega 1 amp omega 2 amp omega 3 amp omega 4 amp omega 5 amp omega 6 amp omega 7 omega 0 amp omega 2 amp omega 4 amp omega 6 amp omega 8 amp omega 10 amp omega 12 amp omega 14 omega 0 amp omega 3 amp omega 6 amp omega 9 amp omega 12 amp omega 15 amp omega 18 amp omega 21 omega 0 amp omega 4 amp omega 8 amp omega 12 amp omega 16 amp omega 20 amp omega 24 amp omega 28 omega 0 amp omega 5 amp omega 10 amp omega 15 amp omega 20 amp omega 25 amp omega 30 amp omega 35 omega 0 amp omega 6 amp omega 12 amp omega 18 amp omega 24 amp omega 30 amp omega 36 amp omega 42 omega 0 amp omega 7 amp omega 14 amp omega 21 amp omega 28 amp omega 35 amp omega 42 amp omega 49 end bmatrix frac 1 sqrt 8 begin bmatrix 1 amp 1 amp 1 amp 1 amp 1 amp 1 amp 1 amp 1 1 amp omega amp i amp i omega amp 1 amp omega amp i amp i omega 1 amp i amp 1 amp i amp 1 amp i amp 1 amp i 1 amp i omega amp i amp omega amp 1 amp i omega amp i amp omega 1 amp 1 amp 1 amp 1 amp 1 amp 1 amp 1 amp 1 1 amp omega amp i amp i omega amp 1 amp omega amp i amp i omega 1 amp i amp 1 amp i amp 1 amp i amp 1 amp i 1 amp i omega amp i amp omega amp 1 amp i omega amp i amp omega end bmatrix nbsp where w e 2 p i 8 1 2 i 2 displaystyle omega e frac 2 pi i 8 frac 1 sqrt 2 frac i sqrt 2 nbsp Note that w 8 n w n displaystyle omega 8 n omega n nbsp Evaluating for the value of w displaystyle omega nbsp gives W 1 8 1 1 1 1 1 1 1 1 1 1 i 2 i 1 i 2 1 1 i 2 i 1 i 2 1 i 1 i 1 i 1 i 1 1 i 2 i 1 i 2 1 1 i 2 i 1 i 2 1 1 1 1 1 1 1 1 1 1 i 2 i 1 i 2 1 1 i 2 i 1 i 2 1 i 1 i 1 i 1 i 1 1 i 2 i 1 i 2 1 1 i 2 i 1 i 2 displaystyle W frac 1 sqrt 8 begin bmatrix 1 amp 1 amp 1 amp 1 amp 1 amp 1 amp 1 amp 1 1 amp frac 1 i sqrt 2 amp i amp frac 1 i sqrt 2 amp 1 amp frac 1 i sqrt 2 amp i amp frac 1 i sqrt 2 1 amp i amp 1 amp i amp 1 amp i amp 1 amp i 1 amp frac 1 i sqrt 2 amp i amp frac 1 i sqrt 2 amp 1 amp frac 1 i sqrt 2 amp i amp frac 1 i sqrt 2 1 amp 1 amp 1 amp 1 amp 1 amp 1 amp 1 amp 1 1 amp frac 1 i sqrt 2 amp i amp frac 1 i sqrt 2 amp 1 amp frac 1 i sqrt 2 amp i amp frac 1 i sqrt 2 1 amp i amp 1 amp i amp 1 amp i amp 1 amp i 1 amp frac 1 i sqrt 2 amp i amp frac 1 i sqrt 2 amp 1 amp frac 1 i sqrt 2 amp i amp frac 1 i sqrt 2 end bmatrix nbsp The following image depicts the DFT as a matrix multiplication with elements of the matrix depicted by samples of complex exponentials nbsp 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 8 displaystyle 1 sqrt 8 nbsp 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 fracfreq 1 8 we compare with fracfreq 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 editThe 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 N displaystyle 1 sqrt N nbsp 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 Other non unitary scalings are also commonly used for computational convenience e g the convolution theorem takes on a slightly simpler form with the scaling shown in the discrete Fourier transform article Other properties editFor other properties of the DFT matrix including its eigenvalues connection to convolutions applications and so on see the discrete Fourier transform article A limiting case The Fourier operator editMain article Fourier operator nbsp Real part cosine nbsp Imaginary part sine 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 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 See also editMultidimensional transform Clock and shift matrices Chebotarev theorem on roots of unityReferences editThe 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 matrixExternal links edit nbsp Wikimedia Commons has media related to DFT matrix Fourier Operator and Decimation In Time DIT Retrieved from https en wikipedia org w index php title DFT matrix amp oldid 1207694054, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.