Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Discrete Fourier transform
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Function in discrete mathematics}} {{distinguish|text=the [[discrete-time Fourier transform]]}} {{Fourier transforms}} [[File:From Continuous To Discrete Fourier Transform.gif|class=skin-invert-image|thumb|400px|Fig 1: Relationship between the (continuous) [[Fourier transform]] and the discrete Fourier transform.{{br}}'''Left:''' A continuous function (top) and its Fourier transform (bottom).{{br}}'''Center-left:''' [[Periodic summation]] of the original function (top). Fourier transform (bottom) is zero except at discrete points. The inverse transform is a sum of sinusoids called [[Fourier series]]. {{br}}'''Center-right:''' Original function is discretized (multiplied by a [[Dirac comb]]) (top). Its Fourier transform (bottom) is a periodic summation ([[Discrete-time Fourier transform|DTFT]]) of the original transform.{{br}}'''Right:''' The DFT (bottom) computes discrete samples of the continuous DTFT. The inverse DFT (top) is a periodic summation of the original samples. The [[Fast Fourier transform|FFT]] algorithm computes one cycle of the DFT and its inverse is one cycle of the DFT inverse.]] [[File:Fourier transform, Fourier series, DTFT, DFT.svg|class=skin-invert-image|thumb|400px|Fig 2: Depiction of a Fourier transform (upper left) and its periodic summation (DTFT) in the lower left corner. The spectral sequences at (a) upper right and (b) lower right are respectively computed from (a) one cycle of the periodic summation of s(t) and (b) one cycle of the periodic summation of the s(nT) sequence. The respective formulas are (a) the [[Fourier series]] <u>integral</u> and (b) the '''DFT''' <u>summation</u>. Its similarities to the original transform, S(f), and its relative computational ease are often the motivation for computing a DFT sequence.]] In [[mathematics]], the '''discrete Fourier transform''' ('''DFT''') converts a finite sequence of equally-spaced [[Sampling (signal processing)|samples]] of a [[function (mathematics)|function]] into a same-length sequence of equally-spaced samples of the [[discrete-time Fourier transform]] (DTFT), which is a [[complex number|complex-valued]] function of frequency. The interval at which the DTFT is sampled is the reciprocal of the duration of the input sequence.{{efn-ua| Equivalently, it is the ratio of the sampling frequency and the number of samples.}}<ref>Taboga, Marco (2021). "Discrete Fourier Transform - Frequencies", Lectures on matrix algebra. https://www.statlect.com/matrix-algebra/discrete-Fourier-transform-frequencies.</ref> An inverse DFT (IDFT) is a [[Fourier series]], using the DTFT samples as coefficients of [[complex number|complex]] [[Sine wave|sinusoid]]s at the corresponding DTFT frequencies. It has the same sample-values as the original input sequence. The DFT is therefore said to be a [[frequency domain]] representation of the original input sequence. If the original sequence spans all the non-zero values of a function, its DTFT is continuous (and periodic), and the DFT provides discrete samples of one cycle. If the original sequence is one cycle of a periodic function, the DFT provides all the non-zero values of one DTFT cycle. The DFT is used in the [[Fourier analysis]] of many practical applications.<ref name=Strang/> In [[digital signal processing]], the function is any quantity or [[signal (information theory)|signal]] that varies over time, such as the pressure of a [[sound wave]], a [[radio]] signal, or daily [[temperature]] readings, sampled over a finite time interval (often defined by a [[window function]]<ref name=Sahidullah/>). In [[image processing]], the samples can be the values of [[pixel]]s along a row or column of a [[raster image]]. The DFT is also used to efficiently solve [[partial differential equations]], and to perform other operations such as [[convolution]]s or multiplying large integers. Since it deals with a finite amount of data, it can be implemented in [[computer]]s by [[numerical algorithm]]s or even dedicated [[digital circuit|hardware]]. These implementations usually employ efficient [[fast Fourier transform]] (FFT) algorithms;<ref name=Cooley/> so much so that the terms "FFT" and "DFT" are often used interchangeably. Prior to its current usage, the "FFT" [[initialism]] may have also been used for the ambiguous term "[[Finite Fourier transform (disambiguation)|finite Fourier transform]]". ==Definition== The ''discrete Fourier transform'' transforms a [[sequence]] of ''N'' [[complex number]]s <math> \left \{ \mathbf{x}_n \right \} := x_0, x_1, \ldots, x_{N-1}</math> into another sequence of complex numbers, <math>\left \{ \mathbf{X}_k \right \} := X_0, X_1, \ldots, X_{N-1},</math> which is defined by: {{Equation box 1|title=Discrete Fourier transform |indent =: |cellpadding= 6 |border |border colour = #0073CF |background colour=#F5FFFA |equation = {{NumBlk|:| <math>X_k = \sum_{n=0}^{N-1} x_n \cdot e^{-i2\pi \tfrac{k}{N}n}</math> |{{EquationRef|Eq.1}}}} }} The transform is sometimes denoted by the symbol <math>\mathcal{F}</math>, as in <math>\mathbf{X} = \mathcal{F} \left \{ \mathbf{x} \right \} </math> or <math>\mathcal{F} \left ( \mathbf{x} \right )</math> or <math>\mathcal{F} \mathbf{x}</math>.{{efn-ua| As a [[linear transformation]] on a [[Dimension (vector space)|finite-dimensional vector space]], the DFT expression can also be written in terms of a [[DFT matrix]]; when scaled appropriately it becomes a [[unitary matrix]] and the ''X''<sub>''k''</sub> can thus be viewed as coefficients of ''x'' in an [[orthonormal basis]].}} {{EquationNote|Eq.1}} can be interpreted or derived in various ways, for example:{{unordered list| | It completely describes the [[discrete-time Fourier transform]] (DTFT) of an <math>N</math>-periodic sequence, which comprises only discrete frequency components.{{ efn-ua|The non-zero components of a DTFT of a periodic sequence is a discrete set of frequencies identical to the DFT. }} ([[Discrete-time Fourier transform#Periodic data|Using the DTFT with periodic data]]) | It can also provide uniformly spaced samples of the continuous DTFT of a finite length sequence. ({{slink|Discrete-time Fourier transform|Sampling the DTFT|nopage=y}}) | It is the [[cross correlation]] of the ''input'' sequence, <math>x_n</math>, and a complex sinusoid at frequency <math display="inline">\frac{k}{N}.</math> Thus it acts like a [[matched filter]] for that frequency. | It is the discrete analog of the formula for the coefficients of a [[Fourier series]]: :<math>C_k = \frac{1}{P}\int_P x(t)e^{-i 2\pi \tfrac{k}{P} t}\, dt.</math> }}{{EquationNote|Eq.1}} can also be evaluated outside the domain <math>k \in [0,N-1]</math>, and that extended sequence is <math>N</math>-[[periodic sequence|periodic]]. Accordingly, other sequences of <math>N</math> indices are sometimes used, such as <math display="inline">\left[-\frac{N}{2}, \frac{N}{2} - 1\right]</math> (if <math>N</math> is even) and <math display="inline">\left[-\frac{N-1}{2}, \frac{N-1}{2}\right]</math> (if <math>N</math> is odd), which amounts to swapping the left and right halves of the result of the transform.<ref name="mathworks" /> The inverse transform is given by: {{Equation box 1|title=Inverse transform |indent =: |cellpadding= 6 |border |border colour = #0073CF |background colour=#F5FFFA |equation = {{NumBlk|:|<math>x_n = \frac{1}{N} \sum_{k=0}^{N-1} X_k \cdot e^{i2\pi \tfrac{k}{N} n}</math> |{{EquationRef|Eq.2}}}} }} {{EquationNote|Eq.2}}. is also <math>N</math>-periodic (in index n). In {{EquationNote|Eq.2}}, each <math>X_k</math> is a complex number whose polar coordinates are the amplitude and phase of a complex sinusoidal component <math>\left(e^{i 2 \pi \tfrac{k}{N}n}\right)</math> of function <math>x_n.</math> (see [[Discrete Fourier series]]) The sinusoid's [[frequency]] is <math>k</math> cycles per <math>N</math> samples. The normalization factor multiplying the DFT and IDFT (here 1 and <math>\tfrac{1}{N}</math>) and the signs of the exponents are the most common [[sign convention|conventions]]. The only actual requirements of these conventions are that the DFT and IDFT have opposite-sign exponents and that the product of their normalization factors be <math>\tfrac{1}{N}.</math> An uncommon normalization of <math>\sqrt{\tfrac{1}{N}}</math> for both the DFT and IDFT makes the transform-pair unitary. ==Example== <!-- This illustration needs a better description understand: [[Image:Dft visualization rev2 n0008 trimmed nobox.svg|thumb|300px|Depiction of the matrix of the DFT for N=8. Each element is represented by a picture of its location in the complex plane in relation to the unit circle.]] --> This example demonstrates how to apply the DFT to a sequence of length <math>N = 4</math> and the input vector <math display="block">\mathbf{x} = \begin{pmatrix} x_0 \\ x_1 \\ x_2 \\ x_3 \end{pmatrix} = \begin{pmatrix} 1 \\ 2-i \\ -i \\ -1+2i \end{pmatrix}. </math> Calculating the DFT of <math>\mathbf{x}</math> using {{EquationNote|Eq.1}} <math display="block">\begin{align} X_0 &= e^{-i 2 \pi 0 \cdot 0 / 4} \cdot 1 + e^{-i 2 \pi 0 \cdot 1 / 4} \cdot (2-i) + e^{-i 2 \pi 0 \cdot 2 / 4} \cdot (-i) + e^{-i 2 \pi 0 \cdot 3 / 4} \cdot (-1+2i) = 2 \\ X_1 &= e^{-i 2 \pi 1 \cdot 0 / 4} \cdot 1 + e^{-i 2 \pi 1 \cdot 1 / 4} \cdot (2-i) + e^{-i 2 \pi 1 \cdot 2 / 4} \cdot (-i) + e^{-i 2 \pi 1 \cdot 3 / 4} \cdot (-1+2i) = -2-2i \\ X_2 &= e^{-i 2 \pi 2 \cdot 0 / 4} \cdot 1 + e^{-i 2 \pi 2 \cdot 1 / 4} \cdot (2-i) + e^{-i 2 \pi 2 \cdot 2 / 4} \cdot (-i) + e^{-i 2 \pi 2 \cdot 3 / 4} \cdot (-1+2i) = -2i \\ X_3 &= e^{-i 2 \pi 3 \cdot 0 / 4} \cdot 1 + e^{-i 2 \pi 3 \cdot 1 / 4} \cdot (2-i) + e^{-i 2 \pi 3 \cdot 2 / 4} \cdot (-i) + e^{-i 2 \pi 3 \cdot 3 / 4} \cdot (-1+2i) = 4+4i \end{align}</math> results in <math display="block">\mathbf{X} = \begin{pmatrix} X_0 \\ X_1 \\ X_2 \\ X_3 \end{pmatrix} = \begin{pmatrix} 2 \\ -2-2i \\ -2i \\ 4+4i \end{pmatrix}. </math> ==Properties== ===Linearity=== The DFT is a linear transform, i.e. if <math>\mathcal{F}(\{x_n\})_k=X_k</math> and <math>\mathcal{F}(\{y_n\})_k=Y_k</math>, then for any complex numbers <math>a,b</math>: :<math>\mathcal{F}(\{a x_n + b y_n\})_k=a X_k + b Y_k</math> ===Time and frequency reversal=== Reversing the time (i.e. replacing <math>n</math> by <math>N-n</math>){{ efn-ua|Time reversal for the DFT means replacing <math>n</math> by <math>N-n</math> and not <math>n</math> by <math>-n</math> to avoid negative indices. }} in <math>x_n</math> corresponds to reversing the frequency (i.e. <math>k</math> by <math>N-k</math>).<ref name=ProakisManolakis/>{{rp|p.421}} Mathematically, if <math>\{x_n\}</math> represents the vector '''x''' then :if <math>\mathcal{F}(\{x_n\})_k=X_k</math> :then <math>\mathcal{F}(\{ x_{N-n} \})_k=X_{N-k}</math> ===Conjugation in time=== If <math>\mathcal{F}(\{x_n\})_k = X_k</math> then <math>\mathcal{F}(\{ x_n^* \})_k = X_{N-k}^*</math>.<ref name=ProakisManolakis/>{{rp|p.423}} ===Real and imaginary part=== This table shows some mathematical operations on <math>x_n</math> in the time domain and the corresponding effects on its DFT <math>X_k</math> in the frequency domain. {| class="wikitable" |- ! Property ! Time domain<br /><math>x_n</math> ! Frequency domain<br /><math>X_k</math> |- | Real part in time | <math>\operatorname{Re}{\left(x_n\right)}</math> | <math>\frac{1}{2}\left(X_k + X^*_{N-k}\right)</math> |- | Imaginary part in time | <math>\operatorname{Im}{\left(x_n\right)}</math> | <math>\frac{1}{2i}\left(X_k - X^*_{N-k}\right)</math> |- | Real part in frequency | <math>\frac{1}{2}\left(x_n + x^*_{N-n}\right)</math> | <math>\operatorname{Re}{\left(X_k\right)}</math> |- | Imaginary part in frequency | <math>\frac{1}{2i}\left(x_n - x^*_{N-n}\right)</math> | <math>\operatorname{Im}{\left(X_k\right)}</math> |} === Orthogonality === The vectors <math>u_k = \left[\left. e^{ \frac{i 2\pi}{N} kn} \;\right|\; n=0,1,\ldots,N-1 \right]^\mathsf{T}</math>, for <math>k=0,1,\ldots,N-1</math>, form an [[orthogonal basis]] over the set of ''N''-dimensional complex vectors: :<math>u^\mathsf{T}_k u_{k'}^* = \sum_{n=0}^{N-1} \left(e^{ \frac{i 2\pi}{N} kn}\right) \left(e^{\frac{i 2\pi}{N} (-k')n}\right) = \sum_{n=0}^{N-1} e^{ \frac{i 2\pi}{N} (k-k') n} = N~\delta_{kk'} </math> where <math>\delta_{kk'}</math> is the [[Kronecker delta]]. (In the last step, the summation is trivial if <math>k=k'</math>, where it is {{nowrap|1=1 + 1 + ⋯ = ''N'',}} and otherwise is a [[geometric series]] that can be explicitly summed to obtain zero.) This orthogonality condition can be used to derive the formula for the IDFT from the definition of the DFT, and is equivalent to the unitarity property below. === The Plancherel theorem and Parseval's theorem === If <math>X_k</math> and <math>Y_k</math> are the DFTs of <math>x_n</math> and <math>y_n</math> respectively then [[Parseval's theorem]] states: :<math>\sum_{n=0}^{N-1} x_n y^*_n = \frac{1}{N} \sum_{k=0}^{N-1} X_k Y^*_k</math> where the star denotes [[Complex conjugate|complex conjugation]]. The [[Plancherel theorem]] is a special case of Parseval's theorem and states: :<math>\sum_{n=0}^{N-1} |x_n|^2 = \frac{1}{N} \sum_{k=0}^{N-1} |X_k|^2.</math> These theorems are also equivalent to the unitary condition below. ===Periodicity=== The periodicity can be shown directly from the definition: : <math>X_{k+N} \ \triangleq \ \sum_{n=0}^{N-1} x_n e^{-\frac{i 2\pi}{N} (k+N) n} = \sum_{n=0}^{N-1} x_n e^{-\frac{i 2\pi}{N} k n} \underbrace{e^{-i 2 \pi n}}_{1} = \sum_{n=0}^{N-1} x_n e^{-\frac{i 2\pi}{N} k n} = X_k. </math> Similarly, it can be shown that the IDFT formula leads to a periodic extension of <math>x_n</math>. ===Shift theorem=== Multiplying <math>x_n</math> by a ''linear phase'' <math>e^{\frac{i 2\pi}{N} nm}</math> for some integer ''m'' corresponds to a ''circular shift'' of the output <math>X_k</math>: <math>X_k</math> is replaced by <math>X_{k-m}</math>, where the subscript is interpreted [[modular arithmetic|modulo]] ''N'' (i.e., periodically). Similarly, a circular shift of the input <math>x_n</math> corresponds to multiplying the output <math>X_k</math> by a linear phase. Mathematically, if <math>\{x_n\}</math> represents the vector '''x''' then :if <math>\mathcal{F}(\{x_n\})_k=X_k</math> :then <math>\mathcal{F}\left(\left\{ x_n \cdot e^{\frac{i 2\pi}{N}n m} \right\}\right)_k=X_{k-m}</math> :and <math>\mathcal{F}\left(\left\{x_{n-m}\right\}\right)_k=X_k \cdot e^{-\frac{i 2\pi}{N}k m}</math> ===Circular convolution theorem and cross-correlation theorem=== {{Main|Convolution theorem#Functions of a discrete variable (sequences)}} The [[DTFT#Convolution|convolution theorem]] for the [[discrete-time Fourier transform]] (DTFT) indicates that a convolution of two sequences can be obtained as the inverse transform of the product of the individual transforms. An important simplification occurs when one of sequences is N-periodic, denoted here by <math>y_{_N},</math> because <math>\scriptstyle \text{DTFT} \displaystyle \{y_{_N}\}</math> is non-zero at only discrete frequencies (see {{slink|DTFT#Periodic_data}}), and therefore so is its product with the continuous function <math>\scriptstyle \text{DTFT} \displaystyle \{x\}.</math> That leads to a considerable simplification of the inverse transform. :<math>x * y_{_N}\ =\ \scriptstyle{\rm DTFT}^{-1} \displaystyle \left[\scriptstyle{\rm DTFT} \displaystyle \{x\}\cdot \scriptstyle{\rm DTFT} \displaystyle \{y_{_N}\}\right]\ =\ \scriptstyle{\rm DFT}^{-1} \displaystyle \left[\scriptstyle{\rm DFT} \displaystyle \{x_{_N}\}\cdot \scriptstyle{\rm DFT} \displaystyle \{y_{_N}\}\right],</math> where <math>x_{_N}</math> is a [[periodic summation]] of the <math>x</math> sequence''':''' <math>(x_{_N})_n\ \triangleq \sum_{m=-\infty}^{\infty} x_{(n-mN)}.</math> Customarily, the DFT and inverse DFT summations are taken over the domain <math>[0,N-1]</math>. Defining those DFTs as <math>X</math> and <math>Y</math>, the result is''':''' :<math> (x * y_{_N})_n \triangleq \sum_{\ell=-\infty}^{\infty}x_\ell \cdot (y_{_N})_{n-\ell} = \underbrace{\mathcal{F}^{-1}}_{\rm DFT^{-1}} \left \{ X\cdot Y \right \}_n.</math> In practice, the <math>x</math> sequence is usually length ''N'' or less, and <math>y_{_N}</math> is a periodic extension of an N-length <math>y</math>-sequence, which can also be expressed as a ''circular function''''':''' :<math>(y_{_N})_n = \sum_{p=-\infty}^\infty y_{(n-pN)} = y_{(n\operatorname{mod}N)}, \quad n\in\mathbb{Z}.</math> Then the convolution can be written as''':''' {{Equation box 1|title= |indent =: |cellpadding= 6 |border |border colour = #0073CF |background colour=#F5FFFA |equation = :<math> \mathcal{F}^{-1} \left \{ X\cdot Y \right \}_n = \sum_{\ell=0}^{N-1}x_\ell \cdot y_{_{(n-\ell)\operatorname{mod}N}} </math> }} which gives rise to the interpretation as a ''circular'' convolution of <math>x</math> and <math>y.</math><ref name=Oppenheim/><ref name=McGillem/> It is often used to efficiently compute their linear convolution. (see [[Circular convolution#Example|Circular convolution]], [[Convolution#Fast convolution algorithms|Fast convolution algorithms]], and [[Overlap-save method|Overlap-save]]) Similarly, the [[cross-correlation]] of <math>x</math> and <math>y_{_N}</math> is given by''':''' :<math>(x \star y_{_N})_n \triangleq \sum_{\ell=-\infty}^{\infty} x_\ell^* \cdot (y_{_N})_{n+\ell} = \mathcal{F}^{-1} \left \{ X^* \cdot Y \right \}_n.</math> === Uniqueness of the Discrete Fourier Transform === As seen above, the discrete Fourier transform has the fundamental property of carrying convolution into componentwise product. A natural question is whether it is the only one with this ability. It has been shown <ref>{{cite book |last1=Amiot |first1=Emmanuel |title=Music through Fourier Space |series=Computational Music Science |date=2016 |publisher=Springer |location=Zürich |isbn=978-3-319-45581-5 |page=8 |doi=10.1007/978-3-319-45581-5 |s2cid=6224021 |url=https://link.springer.com/book/10.1007/978-3-319-45581-5 |ref=Theorem 1.11}}</ref><ref name=Baraquin/> that any linear transform that turns convolution into pointwise product is the DFT up to a permutation of coefficients. Since the number of permutations of n elements equals n!, there exists exactly n! linear and invertible maps with the same fundamental property as the DFT with respect to convolution. === Convolution theorem duality === It can also be shown that''':''' :<math>\mathcal{F} \left \{ \mathbf{x\cdot y} \right \}_k \ \triangleq \sum_{n=0}^{N-1} x_n \cdot y_n \cdot e^{-i \frac{2\pi}{N} k n}</math> ::<math>=\frac{1}{N} (\mathbf{X * Y_N})_k, </math> which is the circular convolution of <math>\mathbf{X}</math> and <math>\mathbf{Y}</math>. ===Trigonometric interpolation polynomial=== The [[trigonometric interpolation polynomial]] :<math>p(t) = \begin{cases} \displaystyle\frac{1}{N} \left[ \begin{alignat}{3} X_0 + X_1 e^{i 2\pi t} + \cdots &+ X_{\frac{N}{2}-1} e^{i 2\pi\big(\!\frac{N}{2}-1\!\big) t} &\\ &+ X_{\frac{N}{2}} \cos(N\pi t) &\\ &+ X_{\frac{N}{2}+1} e^{-i 2\pi\big(\!\frac{N}{2}-1\!\big) t} &+ \cdots + X_{N-1} e^{-i 2\pi t} \end{alignat} \right] & N\text{ even} \\ \displaystyle\frac{1}{N} \left[ \begin{alignat}{3} X_0 + X_1 e^{i 2\pi t} + \cdots &+ X_{\frac{N-1}{2}} e^{i 2\pi\frac{N-1}{2} t} &\\ &+ X_{\frac{N+1}{2}} e^{-i 2\pi\frac{N-1}{2} t} &+ \cdots + X_{N-1} e^{-i 2\pi t} \end{alignat} \right] & N\text{ odd} \end{cases}</math> where the coefficients ''X''<sub>''k''</sub> are given by the DFT of ''x''<sub>''n''</sub> above, satisfies the interpolation property <math>p(n/N) = x_n</math> for <math>n = 0, \ldots, N-1</math>. For even ''N'', notice that the [[Nyquist frequency|Nyquist component]] <math display="inline">\frac{X_{N/2}}{N} \cos(N\pi t)</math> is handled specially. This interpolation is ''not unique'': aliasing implies that one could add ''N'' to any of the complex-sinusoid frequencies (e.g. changing <math>e^{-it}</math> to <math>e^{i(N-1)t}</math>) without changing the interpolation property, but giving ''different'' values in between the <math>x_n</math> points. The choice above, however, is typical because it has two useful properties. First, it consists of sinusoids whose frequencies have the smallest possible magnitudes: the interpolation is [[bandlimited]]. Second, if the <math>x_n</math> are real numbers, then <math>p(t)</math> is real as well. In contrast, the most obvious trigonometric interpolation polynomial is the one in which the frequencies range from 0 to <math>N-1</math> (instead of roughly <math>-N/2</math> to <math>+N/2</math> as above), similar to the inverse DFT formula. This interpolation does ''not'' minimize the slope, and is ''not'' generally real-valued for real <math>x_n</math>; its use is a common mistake. === The unitary DFT === Another way of looking at the DFT is to note that in the above discussion, the DFT can be expressed as the [[DFT matrix]], a [[Vandermonde matrix]], [[Generalizations of Pauli matrices#Construction: The clock and shift matrices|introduced by Sylvester]] in 1867, :<math>\mathbf{F} = \begin{bmatrix} \omega_N^{0 \cdot 0} & \omega_N^{0 \cdot 1} & \cdots & \omega_N^{0 \cdot (N-1)} \\ \omega_N^{1 \cdot 0} & \omega_N^{1 \cdot 1} & \cdots & \omega_N^{1 \cdot (N-1)} \\ \vdots & \vdots & \ddots & \vdots \\ \omega_N^{(N-1) \cdot 0} & \omega_N^{(N-1) \cdot 1} & \cdots & \omega_N^{(N-1) \cdot (N-1)} \\ \end{bmatrix} </math> where <math>\omega_N = e^{-i 2 \pi/N}</math> is a primitive [[roots of unity|''N''th root of unity]]. For example, in the case when <math>N = 2</math>, <math>\omega_N = e^{-i \pi}=-1</math>, and :<math>\mathbf{F} = \begin{bmatrix} 1 & 1 \\ 1 & -1 \\ \end{bmatrix}, </math> (which is a [[Hadamard matrix]]) or when <math>N = 4</math> as in the {{Section link|2=Example}} above, <math>\omega_N = e^{-i \pi/2}=-i</math>, and :<math>\mathbf{F} = \begin{bmatrix} 1 & 1 & 1 & 1 \\ 1 & -i & -1 & i \\ 1 & -1 & 1 & -1 \\ 1 & i & -1 & -i \\ \end{bmatrix}. </math> The inverse transform is then given by the inverse of the above matrix, :<math>\mathbf{F}^{-1}=\frac{1}{N}\mathbf{F}^*</math> With [[unitary operator|unitary]] normalization constants <math display="inline">1/\sqrt{N}</math>, the DFT becomes a [[unitary transformation]], defined by a unitary matrix: :<math>\begin{align} \mathbf{U} &= \frac{1}{\sqrt{N}}\mathbf{F} \\ \mathbf{U}^{-1} &= \mathbf{U}^* \\ \left|\det(\mathbf{U})\right| &= 1 \end{align}</math> where <math>\det()</math> is the [[determinant]] function. The determinant is the product of the eigenvalues, which are always <math>\pm 1</math> or <math>\pm i</math> as described below. In a real vector space, a unitary transformation can be thought of as simply a rigid rotation of the coordinate system, and all of the properties of a rigid rotation can be found in the unitary DFT. The orthogonality of the DFT is now expressed as an [[orthonormal]]ity condition (which arises in many areas of mathematics as described in [[root of unity]]): :<math>\sum_{m=0}^{N-1}U_{km}U_{mn}^* = \delta_{kn}</math> If '''X''' is defined as the unitary DFT of the vector '''x''', then :<math>X_k = \sum_{n=0}^{N-1} U_{kn} x_n</math> and the [[Parseval's theorem]] is expressed as :<math>\sum_{n=0}^{N-1}x_n y_n^* = \sum_{k=0}^{N-1}X_k Y_k^*</math> If we view the DFT as just a coordinate transformation which simply specifies the components of a vector in a new coordinate system, then the above is just the statement that the [[dot product]] of two vectors is preserved under a unitary DFT transformation. For the special case <math>\mathbf{x} = \mathbf{y}</math>, this implies that the length of a vector is preserved as well — this is just [[Plancherel theorem]], :<math>\sum_{n=0}^{N-1} |x_n|^2 = \sum_{k=0}^{N-1} |X_k|^2</math> A consequence of the [[#Circular convolution theorem and cross-correlation theorem|circular convolution theorem]] is that the DFT matrix {{mvar|F}} diagonalizes any [[circulant matrix]]. === Expressing the inverse DFT in terms of the DFT === A useful property of the DFT is that the inverse DFT can be easily expressed in terms of the (forward) DFT, via several well-known "tricks". (For example, in computations, it is often convenient to only implement a fast Fourier transform corresponding to one transform direction and then to get the other transform direction from the first.) First, we can compute the inverse DFT by reversing all but one of the inputs (Duhamel ''et al.'', 1988): :<math>\mathcal{F}^{-1}(\{x_n\}) = \frac{1}{N}\mathcal{F}(\{x_{N - n}\})</math> (As usual, the subscripts are interpreted [[modular arithmetic|modulo]] ''N''; thus, for <math>n = 0</math>, we have <math>x_{N-0} = x_0</math>.) Second, one can also conjugate the inputs and outputs: :<math>\mathcal{F}^{-1}(\mathbf{x}) = \frac{1}{N}\mathcal{F}\left(\mathbf{x}^*\right)^*</math> Third, a variant of this conjugation trick, which is sometimes preferable because it requires no modification of the data values, involves swapping real and imaginary parts (which can be done on a computer simply by modifying [[pointer (computer programming)|pointer]]s). Define <math display="inline">\operatorname{swap}(x_n)</math> as <math>x_n</math> with its real and imaginary parts swapped—that is, if <math>x_n = a + b i</math> then <math display="inline">\operatorname{swap}(x_n)</math> is <math>b + a i</math>. Equivalently, <math display="inline">\operatorname{swap}(x_n)</math> equals <math>i x_n^*</math>. Then :<math>\mathcal{F}^{-1}(\mathbf{x}) = \frac{1}{N}\operatorname{swap}(\mathcal{F}(\operatorname{swap}(\mathbf{x})))</math> That is, the inverse transform is the same as the forward transform with the real and imaginary parts swapped for both input and output, up to a normalization (Duhamel ''et al.'', 1988). The conjugation trick can also be used to define a new transform, closely related to the DFT, that is [[Involution (mathematics)|involutory]]—that is, which is its own inverse. In particular, <math>T(\mathbf{x}) = \mathcal{F}\left(\mathbf{x}^*\right) / \sqrt{N}</math> is clearly its own inverse: <math>T(T(\mathbf{x})) = \mathbf{x}</math>. A closely related involutory transformation (by a factor of <math display=inline>\frac{1 + i}{\sqrt{2}}</math>) is <math>H(\mathbf{x}) = \mathcal{F}\left((1 + i) \mathbf{x}^*\right) / \sqrt{2N}</math>, since the <math>(1 + i)</math> factors in <math>H(H(\mathbf{x}))</math> cancel the 2. For real inputs <math>\mathbf{x}</math>, the real part of <math>H(\mathbf{x})</math> is none other than the [[discrete Hartley transform]], which is also involutory. === Eigenvalues and eigenvectors === The [[eigenvalue]]s of the DFT matrix are simple and well-known, whereas the [[eigenvector]]s are complicated, not unique, and are the subject of ongoing research. Explicit formulas are given with a significant amount of number theory.<ref>{{cite journal |last1=Morton |first1=Patrick |title=On the eigenvectors of Schur's matrix |journal=Journal of Number Theory |date=1980 |volume=12 |issue=1 |pages=122–127 |doi=10.1016/0022-314X(80)90083-9 |url=https://dx.doi.org/10.1016/0022-314X%2880%2990083-9|hdl=2027.42/23371 |hdl-access=free }}</ref> Consider the unitary form <math>\mathbf{U}</math> defined above for the DFT of length ''N'', where :<math>\mathbf{U}_{m,n} = \frac 1{\sqrt{N}}\omega_N^{(m-1)(n-1)} = \frac 1{\sqrt{N}}e^{-\frac{i 2\pi}N (m-1)(n-1)}.</math> This matrix satisfies the [[matrix polynomial]] equation: :<math>\mathbf{U}^4 = \mathbf{I}.</math> This can be seen from the inverse properties above: operating <math>\mathbf{U}</math> twice gives the original data in reverse order, so operating <math>\mathbf{U}</math> four times gives back the original data and is thus the [[identity matrix]]. This means that the eigenvalues <math>\lambda</math> satisfy the equation: :<math>\lambda^4 = 1.</math> Therefore, the eigenvalues of <math>\mathbf{U}</math> are the fourth [[roots of unity]]: <math>\lambda</math> is +1, −1, +''i'', or −''i''. Since there are only four distinct eigenvalues for this <math>N\times N</math> matrix, they have some [[algebraic multiplicity|multiplicity]]. The multiplicity gives the number of [[linearly independent]] eigenvectors corresponding to each eigenvalue. (There are ''N'' independent eigenvectors; a unitary matrix is never [[defective matrix|defective]].) The problem of their multiplicity was solved by McClellan and Parks (1972), although it was later shown to have been equivalent to a problem solved by [[Carl Friedrich Gauss|Gauss]] (Dickinson and Steiglitz, 1982). The multiplicity depends on the value of ''N'' [[modular arithmetic|modulo]] 4, and is given by the following table: {| class="wikitable" style="margin:auto;" |+ align="bottom" | Multiplicities of the eigenvalues λ of the unitary DFT matrix '''U''' as a function of the transform size ''N'' (in terms of an integer ''m''). |- ! size ''N'' ! λ = +1 ! λ = −1 ! λ = −''i'' ! λ = +''i'' |- | 4''m'' || ''m'' + 1 || ''m'' || ''m'' || ''m'' − 1 |- | 4''m'' + 1 || ''m'' + 1 || ''m'' || ''m'' || ''m'' |- | 4''m'' + 2 || ''m'' + 1 || ''m'' + 1 || ''m'' || ''m'' |- | 4''m'' + 3 || ''m'' + 1 || ''m'' + 1 || ''m'' + 1 || ''m'' |} Otherwise stated, the [[characteristic polynomial]] of <math>\mathbf{U}</math> is: :<math>\det (\lambda I - \mathbf{U})= (\lambda-1)^{\left\lfloor \tfrac {N+4}{4}\right\rfloor} (\lambda+1)^{\left\lfloor \tfrac {N+2}{4}\right\rfloor} (\lambda+i)^{\left\lfloor \tfrac {N+1}{4}\right\rfloor} (\lambda-i)^{\left\lfloor \tfrac {N-1}{4}\right\rfloor}.</math> No simple analytical formula for general eigenvectors is known. Moreover, the eigenvectors are not unique because any linear combination of eigenvectors for the same eigenvalue is also an eigenvector for that eigenvalue. Various researchers have proposed different choices of eigenvectors, selected to satisfy useful properties like [[orthogonality]] and to have "simple" forms (e.g., McClellan and Parks, 1972; Dickinson and Steiglitz, 1982; Grünbaum, 1982; Atakishiyev and Wolf, 1997; Candan ''et al.'', 2000; Hanna ''et al.'', 2004; Gurevich and Hadani, 2008). One method to construct DFT eigenvectors to an eigenvalue <math>\lambda</math> is based on the linear combination of operators:<ref>Bose, N. K. "Eigenvectors and eigenvalues of 1-D and nD DFT matrices." [[AEU — International Journal of Electronics and Communications]] 55.2 (2001): 131-133.</ref><ref name="candan">Candan, Ç. (2011). On the eigenstructure of DFT matrices [DSP education]. IEEE Signal Processing Magazine, 28(2), 105-108.</ref><ref name="pei">Pei, S. C., Ding, J. J., Hsue, W. L., & Chang, K. W. (2008). Generalized commuting matrices and their eigenvectors for DFTs, offset DFTs, and other periodic operations. IEEE Transactions on Signal Processing, 56(8), 3891-3904.</ref> <math> \mathcal{P}_\lambda=\frac{1}{4}\left( \mathbf{I}+\lambda^{-1}\mathbf{U}+\lambda^{-2}\mathbf{U}^2+\lambda^{-3} \mathbf{U}^3\right)</math> For an arbitrary vector <math>\mathbf{v}</math>, vector <math>\mathbf{u}(\lambda)=\mathcal{P}_{\lambda}\mathbf{v}</math> satisfies: <math> \textbf{U}\mathbf{u}(\lambda)=\lambda \mathbf{u}(\lambda) </math> hence, vector <math>\mathbf{u}(\lambda)</math> is, indeed, the eigenvector of DFT matrix <math>\mathbf{U}</math>. Operators <math> \mathcal{P}_{\lambda} </math> project vectors onto subspaces which are orthogonal for each value of <math>\lambda</math>.<ref name="candan"/> That is, for two eigenvectors, <math>\mathbf{u}(\lambda)=\mathcal{P}_{\lambda}\mathbf{v}</math> and <math>\mathbf{u}'(\lambda')=\mathcal{P}_{\lambda'}\mathbf{v}'</math> we have: <math>\mathbf{u}^\dagger(\lambda) \mathbf{u}'(\lambda')= \delta_{\lambda\lambda'}\mathbf{u}^\dagger(\lambda) \mathbf{v}' </math> However, in general, projection operator method does not produce orthogonal eigenvectors within one subspace.<ref name="pei"/> The operator <math>\mathcal{P}_{\lambda}</math> can be seen as a matrix, whose columns are eigenvectors of <math>\mathbf{U}</math>, but they are not orthogonal. When a set of vectors <math>\{\mathbf{v}_n\}_{n=1,\dots,N_{\lambda}}</math>, spanning <math>N_{\lambda}</math>-dimensional space (where <math>N_{\lambda}</math> is the multiplicity of eigenvalue <math>\lambda</math>) is chosen to generate the set of eigenvectors <math>\{\mathbf{u}_n(\lambda)=\mathcal{P}_{\lambda}\mathbf{v}_n\}_{n=1,\dots,N_{\lambda}}</math> to eigenvalue <math>\lambda</math>, the mutual orthogonality of <math>\mathbf{u}_n(\lambda)</math> is not guaranteed. However, the orthogonal set can be obtained by further applying orthogonalization algorithm to the set <math>\{\mathbf{u}_n(\lambda)\}_{n=1,\dots,N_{\lambda}}</math>, e.g. [[Gram-Schmidt process]].<ref>Erseghe, T., & Cariolaro, G. (2003). An orthonormal class of exact and simple DFT eigenvectors with a high degree of symmetry. IEEE transactions on signal processing, 51(10), 2527-2539.</ref> A straightforward approach to obtain DFT eigenvectors is to discretize an eigenfunction of the continuous [[Fourier transform]], of which the most famous is the [[Gaussian function]]. Since [[periodic summation]] of the function means discretizing its frequency spectrum and discretization means periodic summation of the spectrum, the discretized and periodically summed Gaussian function yields an eigenvector of the discrete transform: * <math>F(m) = \sum_{k\in\mathbb{Z}} \exp\left(-\frac{\pi\cdot(m+N\cdot k)^2}{N}\right).</math> The closed form expression for the series can be expressed by [[Jacobi theta function]]s as * <math>F(m) = \frac1{\sqrt{N}}\vartheta_3\left(\frac{\pi m}N, \exp\left(-\frac{\pi}N \right)\right).</math> Several other simple closed-form analytical eigenvectors for special DFT period ''N'' were found (Kong, 2008 and Casper-Yakimov, 2024): For DFT period ''N'' = 2''L'' + 1 = 4''K'' + 1, where ''K'' is an integer, the following is an eigenvector of DFT: * <math>F(m) = \prod_{s=K+1}^L \left[\cos\left(\frac{2\pi}{N}m\right) - \cos\left(\frac{2\pi}{N}s\right)\right]</math> For DFT period ''N'' = 2''L'' = 4''K'', where ''K'' is an integer, the following are eigenvectors of DFT: * <math>F(m) = \sin\left(\frac{2\pi}{N}m\right) \prod_{s=K+1}^{L-1}\left[\cos\left(\frac{2\pi}{N}m\right)- \cos\left(\frac{2\pi}{N}s\right)\right]</math> * <math>F(m) = \cos\left(\frac{\pi}{N}m\right)\prod_{s=K+1}^{3K-1} \sin\left(\frac{\pi(s-m)}{N}\right)</math> For DFT period ''N'' = 4''K'' - 1, where ''K'' is an integer, the following are eigenvectors of DFT: * <math>F(m) = \sin\left(\frac{2\pi}{N}m\right)\prod_{s=K+1}^{3K-2} \sin\left(\frac{\pi(s-m)}{N}\right)</math> * <math>F(m) = \left(\cos\left(\frac{2\pi}{N}m\right)-\cos\left(\frac{2\pi}{N}K\right)\pm\sin\left(\frac{2\pi}{N}K\right)\right)\prod_{s=K+1}^{3K-2} \sin\left(\frac{\pi(s-m)}{N}\right)</math> The choice of eigenvectors of the DFT matrix has become important in recent years in order to define a discrete analogue of the [[fractional Fourier transform]]—the DFT matrix can be taken to fractional powers by exponentiating the eigenvalues (e.g., Rubio and Santhanam, 2005). For the [[continuous Fourier transform]], the natural orthogonal eigenfunctions are the [[Hermite function]]s, so various discrete analogues of these have been employed as the eigenvectors of the DFT, such as the [[Kravchuk polynomials]] (Atakishiyev and Wolf, 1997). The "best" choice of eigenvectors to define a fractional discrete Fourier transform remains an open question, however. === Uncertainty principles === ==== Probabilistic uncertainty principle ==== If the random variable {{math|''X''<sub>''k''</sub>}} is constrained by :<math>\sum_{n=0}^{N-1} |X_n|^2 = 1 ,</math> then :<math>P_n=|X_n|^2</math> may be considered to represent a discrete [[probability mass function]] of {{mvar|n}}, with an associated probability mass function constructed from the transformed variable, :<math>Q_m = N |x_m|^2 .</math> For the case of continuous functions <math>P(x)</math> and <math>Q(k)</math>, the [[Heisenberg uncertainty principle]] states that :<math>D_0(X)D_0(x)\ge\frac{1}{16\pi^2}</math> where <math>D_0(X)</math> and <math>D_0(x)</math> are the variances of <math>|X|^2</math> and <math>|x|^2</math> respectively, with the equality attained in the case of a suitably normalized [[Gaussian distribution]]. Although the variances may be analogously defined for the DFT, an analogous uncertainty principle is not useful, because the uncertainty will not be shift-invariant. Still, a meaningful uncertainty principle has been introduced by Massar and Spindel.<ref name=Massar/> However, the Hirschman [[entropic uncertainty]] will have a useful analog for the case of the DFT.<ref name=DeBrunner/> The Hirschman uncertainty principle is expressed in terms of the [[Entropy (information theory)|Shannon entropy]] of the two probability functions. In the discrete case, the Shannon entropies are defined as :<math>H(X)=-\sum_{n=0}^{N-1} P_n\ln P_n</math> and :<math>H(x)=-\sum_{m=0}^{N-1} Q_m\ln Q_m ,</math> and the [[entropic uncertainty]] principle becomes<ref name=DeBrunner/> :<math>H(X)+H(x) \ge \ln(N) .</math> The equality is obtained for <math>P_n</math> equal to translations and modulations of a suitably normalized [[Kronecker comb]] of period <math>A</math> where <math>A</math> is any exact integer divisor of <math>N</math>. The probability mass function <math>Q_m</math> will then be proportional to a suitably translated [[Kronecker comb]] of period <math>B=N/A</math>.<ref name=DeBrunner/> ==== Deterministic uncertainty principle ==== There is also a well-known deterministic uncertainty principle that uses signal sparsity (or the number of non-zero coefficients).<ref name=Donoho/> Let <math>\left\|x\right\|_0</math> and <math>\left\|X\right\|_0</math> be the number of non-zero elements of the time and frequency sequences <math>x_0,x_1,\ldots,x_{N-1}</math> and <math>X_0,X_1,\ldots,X_{N-1}</math>, respectively. Then, :<math>N \leq \left\|x\right\|_0 \cdot \left\|X\right\|_0.</math> As an immediate consequence of the [[Arithmetic–geometric mean|inequality of arithmetic and geometric means]], one also has <math>2\sqrt{N} \leq \left\|x\right\|_0 + \left\|X\right\|_0</math>. Both uncertainty principles were shown to be tight for specifically chosen "picket-fence" sequences (discrete impulse trains), and find practical use for signal recovery applications.<ref name=Donoho/> === DFT of real and purely imaginary signals === * If <math>x_0, \ldots, x_{N-1}</math> are [[real number]]s, as they often are in practical applications, then the DFT <math>X_0, \ldots, X_{N-1}</math> is [[Even and odd functions|even symmetric]]: :<math>x_n \in \mathbb{R} \quad \forall n \in \{0,\ldots,N-1 \} \implies X_k = X_{-k \mod N}^* \quad \forall k \in \{0,\ldots,N-1 \}</math>, where <math>X^*\,</math> denotes [[Complex conjugate|complex conjugation]]. It follows that for even <math>N</math> <math>X_0</math> and <math>X_{N/2}</math> are real-valued, and the remainder of the DFT is completely specified by just <math>N/2-1</math> complex numbers. * If <math>x_0, \ldots, x_{N-1}</math> are purely imaginary numbers, then the DFT <math>X_0, \ldots, X_{N-1}</math> is [[Even and odd functions|odd symmetric]]: :<math>x_n \in i \mathbb{R} \quad \forall n \in \{0,\ldots,N-1 \} \implies X_k = -X_{-k \mod N}^* \quad \forall k \in \{0,\ldots,N-1 \}</math>, where <math>X^*\,</math> denotes [[Complex conjugate|complex conjugation]]. ==Generalized DFT (shifted and non-linear phase)== It is possible to shift the transform sampling in time and/or frequency domain by some real shifts ''a'' and ''b'', respectively. This is sometimes known as a '''generalized DFT''' (or '''GDFT'''), also called the '''shifted DFT''' or '''offset DFT''', and has analogous properties to the ordinary DFT: :<math>X_k = \sum_{n=0}^{N-1} x_n e^{-\frac{i 2 \pi}{N} (k+b) (n+a)} \quad \quad k = 0, \dots, N-1.</math> Most often, shifts of <math>1/2</math> (half a sample) are used. While the ordinary DFT corresponds to a periodic signal in both time and frequency domains, <math>a=1/2</math> produces a signal that is anti-periodic in frequency domain (<math>X_{k+N} = - X_k</math>) and vice versa for <math>b=1/2</math>. Thus, the specific case of <math>a = b = 1/2</math> is known as an ''odd-time odd-frequency'' discrete Fourier transform (or O<sup>2</sup> DFT). Such shifted transforms are most often used for symmetric data, to represent different boundary symmetries, and for real-symmetric data they correspond to different forms of the discrete [[discrete cosine transform|cosine]] and [[discrete sine transform|sine]] transforms. Another interesting choice is <math>a=b=-(N-1)/2</math>, which is called the '''centered DFT''' (or '''CDFT'''). The centered DFT has the useful property that, when ''N'' is a multiple of four, all four of its eigenvalues (see above) have equal multiplicities (Rubio and Santhanam, 2005)<ref name=Santhanam/> The term GDFT is also used for the non-linear phase extensions of DFT. Hence, GDFT method provides a generalization for constant amplitude orthogonal block transforms including linear and non-linear phase types. GDFT is a framework to improve time and frequency domain properties of the traditional DFT, e.g. auto/cross-correlations, by the addition of the properly designed phase shaping function (non-linear, in general) to the original linear phase functions (Akansu and Agirman-Tosun, 2010).<ref name=Akansu/> The discrete Fourier transform can be viewed as a special case of the [[z-transform]], evaluated on the unit circle in the complex plane; more general z-transforms correspond to ''complex'' shifts ''a'' and ''b'' above. [[File:DirectAndFourierSpaceLocations.png|class=skin-invert-image|right|thumb|500px|Discrete transforms embedded in time & space.]] ==Multidimensional DFT==<!-- This section is linked from [[Fast Fourier transform]] --> The ordinary DFT transforms a one-dimensional sequence or [[matrix (mathematics)|array]] <math>x_n</math> that is a function of exactly one discrete variable ''n''. The multidimensional DFT of a multidimensional array <math>x_{n_1, n_2, \dots, n_d}</math> that is a function of ''d'' discrete variables <math>n_\ell = 0, 1, \dots, N_\ell-1</math> for <math>\ell</math> in <math>1, 2, \dots, d</math> is defined by: :<math>X_{k_1, k_2, \dots, k_d} = \sum_{n_1=0}^{N_1-1} \left(\omega_{N_1}^{~k_1 n_1} \sum_{n_2=0}^{N_2-1} \left( \omega_{N_2}^{~k_2 n_2} \cdots \sum_{n_d=0}^{N_d-1} \omega_{N_d}^{~k_d n_d}\cdot x_{n_1, n_2, \dots, n_d} \right) \right) , </math> where <math>\omega_{N_\ell} = \exp(-i 2\pi/N_\ell)</math> as above and the ''d'' output indices run from <math>k_\ell = 0, 1, \dots, N_\ell-1</math>. This is more compactly expressed in [[coordinate vector|vector]] notation, where we define <math>\mathbf{n} = (n_1, n_2, \dots, n_d)</math> and <math>\mathbf{k} = (k_1, k_2, \dots, k_d)</math> as ''d''-dimensional vectors of indices from 0 to <math>\mathbf{N} - 1</math>, which we define as <math>\mathbf{N} - 1 = (N_1 - 1, N_2 - 1, \dots, N_d - 1)</math>: :<math>X_\mathbf{k} = \sum_{\mathbf{n}=\mathbf{0}}^{\mathbf{N}-1} e^{-i 2\pi \mathbf{k} \cdot (\mathbf{n} / \mathbf{N})} x_\mathbf{n} \, ,</math> where the division <math>\mathbf{n} / \mathbf{N}</math> is defined as <math>\mathbf{n} / \mathbf{N} = (n_1/N_1, \dots, n_d/N_d)</math> to be performed element-wise, and the sum denotes the set of nested summations above. The inverse of the multi-dimensional DFT is, analogous to the one-dimensional case, given by: :<math>x_\mathbf{n} = \frac{1}{\prod_{\ell=1}^d N_\ell} \sum_{\mathbf{k}=\mathbf{0}}^{\mathbf{N}-1} e^{i 2\pi \mathbf{n} \cdot (\mathbf{k} / \mathbf{N})} X_\mathbf{k} \, .</math> As the one-dimensional DFT expresses the input <math>x_n</math> as a superposition of sinusoids, the multidimensional DFT expresses the input as a superposition of [[plane wave]]s, or multidimensional sinusoids. The direction of oscillation in space is <math>\mathbf{k} / \mathbf{N}</math>. The amplitudes are <math>X_\mathbf{k}</math>. This decomposition is of great importance for everything from [[digital image processing]] (two-dimensional) to solving [[partial differential equations]]. The solution is broken up into plane waves. The multidimensional DFT can be computed by the [[function composition|composition]] of a sequence of one-dimensional DFTs along each dimension. In the two-dimensional case <math>x_{n_1,n_2}</math> the <math>N_1</math> independent DFTs of the rows (i.e., along <math>n_2</math>) are computed first to form a new array <math>y_{n_1,k_2}</math>. Then the <math>N_2</math> independent DFTs of ''y'' along the columns (along <math>n_1</math>) are computed to form the final result <math>X_{k_1,k_2}</math>. Alternatively the columns can be computed first and then the rows. The order is immaterial because the nested summations above [[commutative operation|commute]]. An algorithm to compute a one-dimensional DFT is thus sufficient to efficiently compute a multidimensional DFT. This approach is known as the ''row-column'' algorithm. There are also intrinsically [[Fast Fourier transform#Multidimensional FFTs|multidimensional FFT algorithms]]. === The real-input multidimensional DFT === For input data <math>x_{n_1, n_2, \dots, n_d}</math> consisting of [[real numbers]], the DFT outputs have a conjugate symmetry similar to the one-dimensional case above: :<math>X_{k_1, k_2, \dots, k_d} = X_{N_1 - k_1, N_2 - k_2, \dots, N_d - k_d}^* ,</math> where the star again denotes complex conjugation and the <math>\ell</math>-th subscript is again interpreted modulo <math>N_\ell</math> (for <math>\ell = 1,2,\ldots,d</math>). == Applications == The DFT has seen wide usage across a large number of fields; we only sketch a few examples below (see also the references at the end). All applications of the DFT depend crucially on the availability of a fast algorithm to compute discrete Fourier transforms and their inverses, a [[fast Fourier transform]]. === Spectral analysis === When the DFT is used for [[signal spectral analysis]], the <math>\{x_n\}</math> sequence usually represents a finite set of uniformly spaced time-samples of some signal <math>x(t)\,</math>, where <math>t</math> represents time. The conversion from continuous time to samples (discrete-time) changes the underlying [[continuous Fourier transform|Fourier transform]] of <math>x(t)</math> into a [[discrete-time Fourier transform]] (DTFT), which generally entails a type of distortion called [[aliasing]]. Choice of an appropriate sample-rate (see ''[[Nyquist rate]]'') is the key to minimizing that distortion. Similarly, the conversion from a very long (or infinite) sequence to a manageable size entails a type of distortion called ''[[Spectral leakage|leakage]]'', which is manifested as a loss of detail (a.k.a. resolution) in the DTFT. Choice of an appropriate sub-sequence length is the primary key to minimizing that effect. When the available data (and time to process it) is more than the amount needed to attain the desired frequency resolution, a standard technique is to perform multiple DFTs, for example to create a [[spectrogram]]. If the desired result is a power spectrum and noise or randomness is present in the data, averaging the magnitude components of the multiple DFTs is a useful procedure to reduce the [[variance]] of the spectrum (also called a [[periodogram]] in this context); two examples of such techniques are the [[Welch method]] and the [[Bartlett method]]; the general subject of estimating the power spectrum of a noisy signal is called [[spectral estimation]]. A final source of distortion (or perhaps ''illusion'') is the DFT itself, because it is just a discrete sampling of the DTFT, which is a function of a continuous frequency domain. That can be mitigated by increasing the resolution of the DFT. That procedure is illustrated at {{slink|Discrete-time Fourier transform|Sampling the DTFT|nopage=y}}. * The procedure is sometimes referred to as ''zero-padding'', which is a particular implementation used in conjunction with the [[fast Fourier transform]] (FFT) algorithm. The inefficiency of performing multiplications and additions with zero-valued "samples" is more than offset by the inherent efficiency of the FFT. * As already stated, leakage imposes a limit on the inherent resolution of the DTFT, so there is a practical limit to the benefit that can be obtained from a fine-grained DFT. '''Steps to Perform Spectral Analysis of Audio Signal''' '''1.Recording and Pre-Processing the Audio Signal''' Begin by recording the audio signal, which could be a spoken password, [[music]], or any other [[sound]]. Once recorded, the audio signal is denoted as x[n], where n represents the discrete time index. To enhance the accuracy of spectral analysis, any unwanted noise should be reduced using appropriate [[Filter design|filtering techniques.]] '''2.Plotting the Original Time-Domain Signal''' After [[noise]] reduction, the audio signal is plotted in the time domain to visualize its characteristics over time. This helps in understanding the amplitude variations of the signal as a [[function of time]], which provides an initial insight into the signal's behavior. '''3.Transforming the Signal from Time Domain to Frequency Domain''' The next step is to transform the audio signal from the time domain to the frequency domain using the Discrete Fourier Transform (DFT). The DFT is defined as: <math>X[k] = \sum_{n=0}^{N-1} x[n] \cdot e^{-j \frac{2 \pi}{N}kn}</math> where N is the total number of samples, k represents the frequency index, and X[k] is the complex-valued frequency spectrum of the signal. The DFT allows for decomposing the signal into its constituent frequency components, providing a representation that indicates which frequencies are present and their respective magnitudes. '''4.Plotting the Magnitude Spectrum''' The magnitude of the frequency-domain representation X[k] is plotted to analyze the spectral content. The magnitude spectrum shows how the energy of the signal is distributed across different frequencies, which is useful for identifying prominent frequency components. It is calculated as: <math>|X[k]| = \sqrt{\text{Re}(X[k])^2 + \text{Im}(X[k])^2}</math> === Example === Analyze a discrete-time audio signal in the frequency domain using the DFT to identify its frequency components ==== Given Data ==== Let's consider a simple discrete-time audio signal represented as: <math>x[n] = \{ 1, 0.5, -0.5, -1 \}</math> where n represents discrete time samples of the signal. '''1.Time-Domain Signal Representation''' The given time-domain signal is: <math display="inline">x[0] = 1, \quad x[1] = 0.5, \quad x[2] = -0.5, \quad x[3] = -1 </math> ===== 2.DFT Calculation ===== The DFT is calculated using the formula: <math>X[k] = \sum_{n=0}^{N-1} x[n] \cdot e^{-j \frac{2 \pi}{N}kn}</math> where N is the number of samples (in this case, N=4). Let's compute X[k] for k=0,1,2,3 For k=0: <math>X[0] = 1 \cdot e^{-j \frac{2\pi}{4} \cdot 0 \cdot 0} + 0.5 \cdot e^{-j \frac{2\pi}{4} \cdot 0 \cdot 1} + (-0.5) \cdot e^{-j \frac{2\pi}{4} \cdot 0 \cdot 2} + (-1) \cdot e^{-j \frac{2\pi}{4} \cdot 0 \cdot 3}</math> <math>X[0] = 1 + 0.5 - 0.5 - 1 = 0</math> For k=1: <math>X[1] = 1 \cdot e^{-j \frac{2\pi}{4} \cdot 1 \cdot 0} + 0.5 \cdot e^{-j \frac{2\pi}{4} \cdot 1 \cdot 1} + (-0.5) \cdot e^{-j \frac{2\pi}{4} \cdot 1 \cdot 2} + (-1) \cdot e^{-j \frac{2\pi}{4} \cdot 1 \cdot 3} </math> <math>X[1] = 1 + 0.5(-j) + (-0.5)(-1) + (-1)(j) </math> <math>X[1] = 1 - 0.5j + 0.5 - j = 1.5 - 1.5j </math> For k=2: <math>X[2] = 1 \cdot e^{-j \frac{2\pi}{4} \cdot 2 \cdot 0} + 0.5 \cdot e^{-j \frac{2\pi}{4} \cdot 2 \cdot 1} + (-0.5) \cdot e^{-j \frac{2\pi}{4} \cdot 2 \cdot 2} + (-1) \cdot e^{-j \frac{2\pi}{4} \cdot 2 \cdot 3}</math> <math>X[2] = 1 + 0.5(-1) + (-0.5)(1) + (-1)(-1) </math> <math>X[2] = 1 - 0.5 - 0.5 + 1 = 1 </math> For k=3: <math>X[3] = 1 \cdot e^{-j \frac{2\pi}{4} \cdot 3 \cdot 0} + 0.5 \cdot e^{-j \frac{2\pi}{4} \cdot 3 \cdot 1} + (-0.5) \cdot e^{-j \frac{2\pi}{4} \cdot 3 \cdot 2} + (-1) \cdot e^{-j \frac{2\pi}{4} \cdot 3 \cdot 3} </math> <math>X[3] = 1 + 0.5j + (-0.5)(-1) + (-1)(-j) </math> <math>X[3] = 1 + 0.5j + 0.5 + j = 1.5 + 1.5j </math> ===== 3.Magnitude Spectrum ===== The magnitude of X[k] represents the strength of each frequency component: <math>|X[0]| = 0, \quad |X[1]| = \sqrt{(1.5)^2 + (-1.5)^2} = \sqrt{4.5} \approx 2.12 </math> <math>|X[2]| = 1, \quad |X[3]| = \sqrt{(1.5)^2 + (1.5)^2} = \sqrt{4.5} \approx 2.12</math> The resulting frequency components indicate the distribution of signal energy at different frequencies. The peaks in the magnitude spectrum correspond to dominant frequencies in the original signal. === Optics, diffraction, and tomography === The discrete Fourier transform is widely used with spatial frequencies in modeling the way that light, electrons, and other probes travel through optical systems and scatter from objects in two and three dimensions. The dual (direct/reciprocal) vector space of three dimensional objects further makes available a three dimensional reciprocal lattice, whose construction from translucent object shadows (via the [[Projection-slice theorem|Fourier slice theorem]]) allows tomographic reconstruction of three dimensional objects with a wide range of applications e.g. in modern medicine. === Filter bank === See {{slink|Filter bank|FFT filter banks|nopage=y}} and {{slink|Discrete-time Fourier transform|Sampling the DTFT|nopage=y}}. ===Data compression=== The field of digital signal processing relies heavily on operations in the frequency domain (i.e. on the Fourier transform). For example, several [[lossy compression|lossy]] image and sound compression methods employ the discrete Fourier transform: the signal is cut into short segments, each is transformed, and then the Fourier coefficients of high frequencies, which are assumed to be unnoticeable, are discarded. The decompressor computes the inverse transform based on this reduced number of Fourier coefficients. (Compression applications often use a specialized form of the DFT, the [[discrete cosine transform]] or sometimes the [[modified discrete cosine transform]].) Some relatively recent compression algorithms, however, use [[wavelet transform]]s, which give a more uniform compromise between time and frequency domain than obtained by chopping data into segments and transforming each segment. In the case of [[JPEG2000]], this avoids the spurious image features that appear when images are highly compressed with the original [[JPEG]]. ===Partial differential equations=== Discrete Fourier transforms are often used to solve [[partial differential equations]], where again the DFT is used as an approximation for the [[Fourier series]] (which is recovered in the limit of infinite ''N''). The advantage of this approach is that it expands the signal in complex exponentials <math>e^{inx}</math>, which are eigenfunctions of differentiation: <math>{\text{d} \big( e^{inx} \big) }/\text{d}x = in e^{inx}</math>. Thus, in the Fourier representation, differentiation is simple—we just multiply by <math>in</math>. (However, the choice of <math>n</math> is not unique due to aliasing; for the method to be convergent, a choice similar to that in the [[#Trigonometric interpolation polynomial|trigonometric interpolation]] section above should be used.) A [[linear differential equation]] with constant coefficients is transformed into an easily solvable algebraic equation. One then uses the inverse DFT to transform the result back into the ordinary spatial representation. Such an approach is called a [[spectral method]]. ===Polynomial multiplication=== Suppose we wish to compute the polynomial product ''c''(''x'') = ''a''(''x'') · ''b''(''x''). The ordinary product expression for the coefficients of ''c'' involves a linear (acyclic) convolution, where indices do not "wrap around." This can be rewritten as a cyclic convolution by taking the coefficient vectors for ''a''(''x'') and ''b''(''x'') with constant term first, then appending zeros so that the resultant coefficient vectors '''a''' and '''b''' have dimension {{Nowrap|''d'' > deg(''a''(''x'')) + deg(''b''(''x''))}}. Then, :<math>\mathbf{c} = \mathbf{a} * \mathbf{b}</math> Where '''c''' is the vector of coefficients for ''c''(''x''), and the convolution operator <math>*\,</math> is defined so :<math>c_n = \sum_{m=0}^{d-1}a_m b_{n-m\ \mathrm{mod}\ d} \qquad\qquad\qquad n=0,1\dots,d-1</math> But convolution becomes multiplication under the DFT: :<math>\mathcal{F}(\mathbf{c}) = \mathcal{F}(\mathbf{a})\mathcal{F}(\mathbf{b})</math> Here the vector product is taken elementwise. Thus the coefficients of the product polynomial ''c''(''x'') are just the terms 0, ..., deg(''a''(''x'')) + deg(''b''(''x'')) of the coefficient vector :<math>\mathbf{c} = \mathcal{F}^{-1}(\mathcal{F}(\mathbf{a})\mathcal{F}(\mathbf{b})).</math> With a [[fast Fourier transform]], the resulting algorithm takes ''O''(''N'' log ''N'') arithmetic operations. Due to its simplicity and speed, the [[Cooley–Tukey FFT algorithm]], which is limited to [[composite number|composite]] sizes, is often chosen for the transform operation. In this case, ''d'' should be chosen as the smallest integer greater than the sum of the input polynomial degrees that is factorizable into small prime factors (e.g. 2, 3, and 5, depending upon the FFT implementation). ====Multiplication of large integers==== The fastest known [[multiplication algorithms|algorithms]] for the multiplication of very large [[integer]]s use the polynomial multiplication method outlined above. Integers can be treated as the value of a polynomial evaluated specifically at the number base, with the coefficients of the polynomial corresponding to the digits in that base (ex. <math>123 = 1 \cdot 10^2 + 2 \cdot 10^1 + 3 \cdot 10^0</math>). After polynomial multiplication, a relatively low-complexity carry-propagation step completes the multiplication. ==== Convolution ==== When data is [[Convolution|convolved]] with a function with wide support, such as for downsampling by a large sampling ratio, because of the [[Convolution theorem]] and the FFT algorithm, it may be faster to transform it, multiply pointwise by the transform of the filter and then reverse transform it. Alternatively, a good filter is obtained by simply truncating the transformed data and re-transforming the shortened data set. ==Some discrete Fourier transform pairs== {| class="wikitable" style="text-align: center;" |+ '''Some DFT pairs''' |- ! <math>x_n = \frac{1}{N}\sum_{k=0}^{N-1}X_k e^{i 2 \pi kn/N} </math> ! <math>X_k = \sum_{n=0}^{N-1}x_n e^{-i 2 \pi kn/N} </math> ! Note |- | <math>x_n e^{i 2 \pi n\ell/N} \,</math> | <math>X_{k-\ell}\,</math> | Frequency shift theorem |- | <math>x_{n-\ell}\,</math> | <math>X_k e^{-i 2 \pi k\ell/N} \,</math> | Time shift theorem |- | <math>x_n \in \mathbb{R}</math> | <math>X_k=X_{N-k}^*\,</math> | Real DFT |- | <math>a^n\,</math> | <math>\left\{ \begin{matrix} N & \mbox{if } a = e^{i 2 \pi k/N} \\ \frac{1-a^N}{1-a \, e^{-i 2 \pi k/N} } & \mbox{otherwise} \end{matrix} \right. </math> | from the [[geometric progression]] formula |- | <math>{N-1 \choose n}\,</math> | <math>\left(1+e^{-i 2 \pi k/N} \right)^{N-1}\,</math> | from the [[binomial theorem]] |- | <math>\left\{ \begin{matrix} \frac{1}{W} & \mbox{if } 2n < W \mbox{ or } 2(N-n) < W \\ 0 & \mbox{otherwise} \end{matrix} \right. </math> | <math>\left\{ \begin{matrix} 1 & \mbox{if } k = 0 \\ \frac{\sin\left(\frac{\pi W k}{N}\right)} {W \sin\left(\frac{\pi k}{N}\right)} & \mbox{otherwise} \end{matrix} \right. </math> | <math>x_n</math> is a rectangular [[window function]] of ''W'' points centered on ''n''=0, where ''W'' is an [[odd integer]], and <math>X_k</math> is a [[sinc]]-like function (specifically, <math>X_k</math> is a [[Dirichlet kernel]]) |- | <math>\sum_{j\in\mathbb{Z}} \exp\left(-\frac{\pi}{cN}\cdot(n+N\cdot j)^2\right)</math> | <math>\sqrt{cN} \cdot \sum_{j\in\mathbb{Z}} \exp\left(-\frac{\pi c}{N}\cdot(k+N\cdot j)^2\right)</math> | [[Discretization]] and [[periodic summation]] of the scaled [[Gaussian function]]s for <math>c>0</math>. Since either <math>c</math> or <math>\frac{1}{c}</math> is larger than one and thus warrants fast convergence of one of the two series, for large <math>c</math> you may choose to compute the frequency spectrum and convert to the time domain using the discrete Fourier transform. |} ==Generalizations== === Representation theory === {{further|Representation theory of finite groups#Discrete Fourier transform}} The DFT can be interpreted as a complex-valued [[representation theory|representation]] of the finite [[cyclic group]]. In other words, a sequence of <math>n</math> complex numbers can be thought of as an element of <math>n</math>-dimensional complex space <math>\mathbb{C}^n</math> or equivalently a function <math>f</math> from the finite cyclic group of order <math>n</math> to the complex numbers, <math>\mathbb{Z}_n \mapsto \mathbb{C}</math>. So <math>f</math> is a [[class function]] on the finite cyclic group, and thus can be expressed as a linear combination of the irreducible characters of this group, which are the roots of unity. From this point of view, one may generalize the DFT to representation theory generally, or more narrowly to the [[representation theory of finite groups]]. More narrowly still, one may generalize the DFT by either changing the target (taking values in a field other than the complex numbers), or the domain (a group other than a finite cyclic group), as detailed in the sequel. === Other fields === {{Main|Discrete Fourier transform (general)|Number-theoretic transform}} Many of the properties of the DFT only depend on the fact that <math>e^{-\frac{i 2 \pi}{N}}</math> is a [[primitive root of unity]], sometimes denoted <math>\omega_N</math> or <math>W_N</math> (so that <math>\omega_N^N = 1</math>). Such properties include the completeness, orthogonality, Plancherel/Parseval, periodicity, shift, convolution, and unitarity properties above, as well as many FFT algorithms. For this reason, the discrete Fourier transform can be defined by using roots of unity in [[field (mathematics)|fields]] other than the complex numbers, and such generalizations are commonly called ''number-theoretic transforms'' (NTTs) in the case of [[finite field]]s. For more information, see [[number-theoretic transform]] and [[discrete Fourier transform (general)]]. === Other finite groups === {{Main|Fourier transform on finite groups}} The standard DFT acts on a sequence ''x''<sub>0</sub>, ''x''<sub>1</sub>, ..., ''x''<sub>''N''−1</sub> of complex numbers, which can be viewed as a function {0, 1, ..., ''N'' − 1} → '''C'''. The multidimensional DFT acts on multidimensional sequences, which can be viewed as functions :<math> \{0, 1, \ldots, N_1-1\} \times \cdots \times \{0, 1, \ldots, N_d-1\} \to \mathbb{C}. </math> This suggests the generalization to [[Fourier transform on finite groups|Fourier transforms on arbitrary finite groups]], which act on functions ''G'' → '''C''' where ''G'' is a [[finite group]]. In this framework, the standard DFT is seen as the Fourier transform on a [[cyclic group]], while the multidimensional DFT is a Fourier transform on a direct sum of cyclic groups. Further, Fourier transform can be on cosets of a group. ==Alternatives== {{Main|Discrete wavelet transform}} {{further|Discrete wavelet transform#Comparison with Fourier transform}} There are various alternatives to the DFT for various applications, prominent among which are [[wavelet]]s. The analog of the DFT is the [[discrete wavelet transform]] (DWT). From the point of view of [[time–frequency analysis]], a key limitation of the Fourier transform is that it does not include ''location'' information, only ''frequency'' information, and thus has difficulty in representing transients. As wavelets have location as well as frequency, they are better able to represent location, at the expense of greater difficulty representing frequency. For details, see [[Discrete wavelet transform#Comparison with Fourier transform|comparison of the discrete wavelet transform with the discrete Fourier transform]]. ==See also== * [[Companion matrix]] * [[DFT matrix]] * [[Fast Fourier transform]] * [[FFTPACK]] * [[FFTW]] * [[Generalizations of Pauli matrices]] * [[Least-squares spectral analysis]] * [[List of Fourier-related transforms]] * [[Multidimensional transform]] * [[Zak transform]] * [[Quantum Fourier transform]] ==Notes== {{notelist-ua}} ==References== {{reflist|1|refs= <ref name=Strang> {{cite journal |last=Strang |first=Gilbert |title=Wavelets |journal=American Scientist |date=May–June 1994 |volume=82 |issue=3 |pages=250–255 |jstor=29775194 |bibcode=1994AmSci..82..250S |quote=This is the most important numerical algorithm of our lifetime...}} </ref> <ref name=Sahidullah> {{cite journal |last=Sahidullah |first=Md. |author2=Saha, Goutam |title=A Novel Windowing Technique for Efficient Computation of MFCC for Speaker Recognition |journal=IEEE Signal Processing Letters |date=Feb 2013 |volume=20 |issue=2 |pages=149–152 |doi=10.1109/LSP.2012.2235067 |arxiv=1206.2437 |bibcode=2013ISPL...20..149S|s2cid=10900793 }} </ref> <ref name=Cooley> {{cite journal |author=[[James Cooley|J. Cooley]], P. Lewis, and P. Welch |title=The finite Fourier transform |journal=IEEE Transactions on Audio and Electroacoustics |volume=17 |issue=2 |pages=77–85 |year=1969 |doi=10.1109/TAU.1969.1162036}} </ref> <ref name=mathworks> {{cite web |title=Shift zero-frequency component to center of spectrum – MATLAB fftshift |url=http://www.mathworks.com/help/matlab/ref/fftshift.html|website=mathworks.com |publisher=The MathWorks, Inc. |access-date=10 March 2014 |location=Natick, MA 01760}} </ref> <ref name=ProakisManolakis> {{Citation |last1 =Proakis |first1 =John G. |last2 =Manolakis |first2 =Dimitri G. |title =Digital Signal Processing: Principles, Algorithms and Applications |place=Upper Saddle River, NJ |publisher=Prentice-Hall International |year=1996 |edition=3 |language=en |id=sAcfAQAAIAAJ |isbn=9780133942897 |bibcode=1996dspp.book.....P |url-access=registration |url=https://archive.org/details/digitalsignalpro00proa}} </ref> <ref name=Oppenheim> {{cite book |last1=Oppenheim |first1=Alan V. |author-link=Alan V. Oppenheim |last2=Schafer |first2=Ronald W. |author2-link=Ronald W. Schafer |last3=Buck |first3=John R. |title=Discrete-time signal processing |page=[https://archive.org/details/discretetimesign00alan/page/571 571] |year=1999 |publisher=Prentice Hall |location=Upper Saddle River, N.J. |isbn=0-13-754920-2 |edition=2nd |url-access=registration |url=https://archive.org/details/discretetimesign00alan }} </ref> <ref name=McGillem> {{cite book |last1=McGillem |first1=Clare D. |last2=Cooper |first2=George R. |pages=171–172 |title=Continuous and Discrete Signal and System Analysis |publisher=Holt, Rinehart and Winston |edition=2 |date=1984 |isbn=0-03-061703-0}} </ref> <ref name=Massar> {{Cite journal |last1=Massar |first1=S. |last2=Spindel |first2=P. |doi=10.1103/PhysRevLett.100.190401 |title=Uncertainty Relation for the Discrete Fourier Transform |journal=Physical Review Letters |volume=100 |issue=19 |year=2008 |pmid=18518426 |arxiv=0710.0723 |bibcode=2008PhRvL.100s0401M |page=190401|s2cid=10076374 }} </ref> <ref name=DeBrunner> {{cite journal |last1=DeBrunner |first1=Victor |last2=Havlicek |first2=Joseph P. |last3=Przebinda |first3=Tomasz|last4=Özaydin |first4=Murad |year=2005 |title=Entropy-Based Uncertainty Measures for <math>L^2(\mathbb{R}^n),\ell^2(\mathbb{Z})</math>, and <math>\ell^2(\mathbb{Z}/N\mathbb{Z})</math> With a Hirschman Optimal Transform for <math>\ell^2(\mathbb{Z}/N\mathbb{Z})</math> |journal=IEEE Transactions on Signal Processing |volume=53 |issue=8 |page=2690 |doi=10.1109/TSP.2005.850329 |url=http://redwood.berkeley.edu/w/images/9/95/2002-26.pdf |access-date=2011-06-23 |bibcode=2005ITSP...53.2690D|s2cid=206796625 }} </ref> <ref name=Donoho> {{cite journal |last1=Donoho |first1=D.L. |last2=Stark |first2=P.B |s2cid=115142886 |year=1989 |title=Uncertainty principles and signal recovery |journal=SIAM Journal on Applied Mathematics |volume=49 |issue=3 |pages=906–931 |doi=10.1137/0149053}} </ref> <ref name=Santhanam> Santhanam, Balu; Santhanam, Thalanayar S. [https://ieeexplore.ieee.org/document/4217977 "''Discrete Gauss-Hermite functions and eigenvectors of the centered discrete Fourier transform''"], Proceedings of the 32nd IEEE ''International Conference on Acoustics, Speech, and Signal Processing'' (ICASSP 2007, SPTM-P12.4), vol. III, pp. 1385-1388. </ref> <ref name=Akansu> Akansu, Ali N.; Agirman-Tosun, Handan [http://web.njit.edu/~akansu/PAPERS/AkansuIEEE-TSP2010.pdf "''Generalized Discrete Fourier Transform With Nonlinear Phase''"], IEEE ''Transactions on Signal Processing'', vol. 58, no. 9, pp. 4547–4556, Sept. 2010. </ref> <ref name=Baraquin> {{cite journal | author1=Isabelle Baraquin | author2=Nicolas Ratier | title=Uniqueness of the discrete Fourier transform | journal= Signal Processing | volume = 209 | pages = 109041 | year=2023 | issn=0165-1684 | doi=10.1016/j.sigpro.2023.109041| doi-access=free | bibcode=2023SigPr.20909041B }} </ref> }} ==Further reading== * {{cite book | last = Brigham | first = E. Oran | title=The fast Fourier transform and its applications | location = Englewood Cliffs, N.J. | publisher = Prentice Hall | year=1988 | isbn=978-0-13-307505-2 }} * {{cite book | last = Smith | first = Steven W. | chapter-url = http://www.dspguide.com/ch8/1.htm | title = The Scientist and Engineer's Guide to Digital Signal Processing | edition = Second | location = San Diego, Calif. | publisher = California Technical Publishing | year=1999 | isbn=978-0-9660176-3-2 | chapter = Chapter 8: The Discrete Fourier Transform }} * {{cite book | first = Thomas H. | last = Cormen | author-link = Thomas H. Cormen |author2=Charles E. Leiserson | author3-link = Ronald L. Rivest |author3=Ronald L. Rivest | author4-link = Clifford Stein |author4=Clifford Stein | year = 2001 | title = Introduction to Algorithms | edition = Second | publisher = MIT Press and McGraw-Hill | isbn = 978-0-262-03293-3 | chapter = Chapter 30: Polynomials and the FFT | pages = [https://archive.org/details/introductiontoal00corm_691/page/n844 822]–848 | title-link = Introduction to Algorithms | author2-link = Charles E. Leiserson }} esp. section 30.2: The DFT and FFT, pp. 830–838. * {{cite journal |author1=P. Duhamel |author2=B. Piron |author3=J. M. Etcheto | title = On computing the inverse DFT | journal =IEEE Transactions on Acoustics, Speech, and Signal Processing | volume = 36 | issue = 2 | pages = 285–286 | year = 1988 | doi = 10.1109/29.1519 }} * {{cite journal |author1=J. H. McClellan |author2=T. W. Parks | title = Eigenvalues and eigenvectors of the discrete Fourier transformation | journal =IEEE Transactions on Audio and Electroacoustics | volume = 20 | issue = 1 | pages = 66–74 | year = 1972 | doi = 10.1109/TAU.1972.1162342 }} * {{cite journal |author1=Bradley W. Dickinson |author2=Kenneth Steiglitz | title = Eigenvectors and functions of the discrete Fourier transform | journal =IEEE Transactions on Acoustics, Speech, and Signal Processing | volume = 30 | issue = 1 | pages = 25–31 | year = 1982 | doi = 10.1109/TASSP.1982.1163843 | url = http://www.cs.princeton.edu/~ken/Eigenvectors82.pdf|citeseerx=10.1.1.434.5279 }} (Note that this paper has an apparent typo in its table of the eigenvalue multiplicities: the +''i''/−''i'' columns are interchanged. The correct table can be found in McClellan and Parks, 1972, and is easily confirmed numerically.) * {{cite journal | author = F. A. Grünbaum | title = The eigenvectors of the discrete Fourier transform | journal =Journal of Mathematical Analysis and Applications | volume = 88 | issue = 2 | pages = 355–363 | year = 1982 | doi = 10.1016/0022-247X(82)90199-8 | doi-access = free }} * {{cite journal |author1=Natig M. Atakishiyev |author2=Kurt Bernardo Wolf | title = Fractional Fourier-Kravchuk transform | journal =Journal of the Optical Society of America A | volume = 14 | issue = 7 | pages = 1467–1477 | year = 1997 | doi = 10.1364/JOSAA.14.001467 |bibcode = 1997JOSAA..14.1467A }} * {{cite journal |author1=C. Candan |author2=M. A. Kutay |author3=H. M.Ozaktas | title = The discrete fractional Fourier transform | journal = IEEE Transactions on Signal Processing | volume = 48 | issue = 5 | pages = 1329–1337 | year = 2000 | doi = 10.1109/78.839980 |bibcode = 2000ITSP...48.1329C |url=http://www.ee.bilkent.edu.tr/~haldun/publications/ozaktas166.pdf |archive-url=https://web.archive.org/web/20170921231500/http://www.ee.bilkent.edu.tr/~haldun/publications/ozaktas166.pdf |archive-date=2017-09-21 |url-status=live|hdl=11693/11130 | hdl-access = free }} * {{cite journal | author = Magdy Tawfik Hanna, Nabila Philip Attalla Seif, and Waleed Abd El Maguid Ahmed | title = Hermite-Gaussian-like eigenvectors of the discrete Fourier transform matrix based on the singular-value decomposition of its orthogonal projection matrices | journal =IEEE Transactions on Circuits and Systems I: Regular Papers | volume = 51 | issue = 11 | pages = 2245–2254 | year = 2004 | doi = 10.1109/TCSI.2004.836850 | s2cid = 14468134 }} * {{cite journal |author1=Shamgar Gurevich |author2=Ronny Hadani | title=On the diagonalization of the discrete Fourier transform | id=preprint at | journal=Applied and Computational Harmonic Analysis | volume = 27 | issue = 1 | year=2009 | pages=87–99 | doi=10.1016/j.acha.2008.11.003 | arxiv=0808.3281 |s2cid=14833478 }} * {{cite journal |author1=Shamgar Gurevich |author2=Ronny Hadani |author3=Nir Sochen | title=The finite harmonic oscillator and its applications to sequences, communication and radar | id=preprint at | journal= IEEE Transactions on Information Theory | volume = 54 | issue = 9 | pages = 4239–4253 | year=2008 | doi=10.1109/TIT.2008.926440 | arxiv=0808.1495 |bibcode=2008arXiv0808.1495G |s2cid=6037080 }} * {{cite journal |author1=Juan G. Vargas-Rubio |author2=Balu Santhanam | title = On the multiangle centered discrete fractional Fourier transform | journal =IEEE Signal Processing Letters | volume = 12 | issue = 4 | pages = 273–276 | year = 2005 | doi = 10.1109/LSP.2005.843762 |bibcode = 2005ISPL...12..273V |s2cid=1499353 }} * {{cite journal | author = F.N. Kong | title = Analytic Expressions of Two Discrete Hermite-Gaussian Signals | journal =IEEE Transactions on Circuits and Systems II: Express Briefs | volume = 55 | issue = 1 | pages = 56–60 | year = 2008 | doi = 10.1109/TCSII.2007.909865 | s2cid = 5154718 }} * {{cite arXiv | last1 = Casper | first1 = William | last2 = Yakimov | first2 = Milen | date = 2024 | title = The restricted discrete Fourier transform | eprint = 2407.20379 | class = math.CA }} * "Digital Signal Processing<ref>{{Cite web |title=Digital Signal Processing |url=https://r.search.yahoo.com/_ylt=AwrOtbNIhxZn4TASxeJXNyoA;_ylu=Y29sbwNncTEEcG9zAzQEdnRpZAMEc2VjA3Ny/RV=2/RE=1730739273/RO=10/RU=https://assets.cambridge.org/97811084/18447/frontmatter/9781108418447_frontmatter.pdf/RK=2/RS=sx950n9ftvPcKIy.eiDqv6gBrW8- |website=r.search.yahoo.com}}</ref>" by Thomas Holton. ==External links== * [https://jackschaedler.github.io/circles-sines-signals/ Interactive explanation of the DFT] * [https://www.nbtwiki.net/doku.php?id=tutorial:the_discrete_fourier_transformation_dft Matlab tutorial on the Discrete Fourier Transformation] {{Webarchive|url=https://web.archive.org/web/20160304200056/http://www.nbtwiki.net/doku.php?id=tutorial:the_discrete_fourier_transformation_dft |date=2016-03-04 }} * [https://web.archive.org/web/20160523205720/http://www.fourier-series.com/fourierseries2/DFT_tutorial.html Interactive flash tutorial on the DFT] * [http://ccrma.stanford.edu/~jos/mdft/mdft.html Mathematics of the Discrete Fourier Transform by Julius O. Smith III] * [http://www.fftw.org FFTW: Fast implementation of the DFT - coded in C and under General Public License (GPL)] * [http://www.kurims.kyoto-u.ac.jp/~ooura/fft.html General Purpose FFT Package: Yet another fast DFT implementation in C & FORTRAN, permissive license] * [http://web.mit.edu/newsoffice/2009/explained-fourier.html Explained: The Discrete Fourier Transform] * [https://web.archive.org/web/20171010173422/http://en.dsplib.org/content/dft.html Discrete Fourier Transform] * [https://web.archive.org/web/20171113135838/http://en.dsplib.org/content/dft_freq.html Indexing and shifting of Discrete Fourier Transform] * [https://web.archive.org/web/20171106092801/http://en.dsplib.org/content/dft_prop.html Discrete Fourier Transform Properties] * [https://web.njit.edu/~akansu/gdft.htm Generalized Discrete Fourier Transform (GDFT) with Nonlinear Phase] {{DSP}} {{DEFAULTSORT:Discrete Fourier Transform}} [[Category:Fourier analysis]] [[Category:Digital signal processing]] [[Category:Numerical analysis]] [[Category:Discrete transforms]] [[Category:Unitary operators]] [[cs:Fourierova transformace#Diskrétní Fourierova transformace]] [[pt:Transformada de Fourier#Transformada discreta de Fourier]] [[fi:Fourier'n muunnos#Diskreetti Fourier'n muunnos]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Br
(
edit
)
Template:Cite arXiv
(
edit
)
Template:Cite book
(
edit
)
Template:Cite journal
(
edit
)
Template:Cite web
(
edit
)
Template:DSP
(
edit
)
Template:Distinguish
(
edit
)
Template:Efn-ua
(
edit
)
Template:EquationNote
(
edit
)
Template:Equation box 1
(
edit
)
Template:Fourier transforms
(
edit
)
Template:Further
(
edit
)
Template:Main
(
edit
)
Template:Math
(
edit
)
Template:Mvar
(
edit
)
Template:Notelist-ua
(
edit
)
Template:Nowrap
(
edit
)
Template:Reflist
(
edit
)
Template:Rp
(
edit
)
Template:Section link
(
edit
)
Template:Short description
(
edit
)
Template:Slink
(
edit
)
Template:Unordered list
(
edit
)
Template:Webarchive
(
edit
)