In mathematics, the discrete Fourier transform (DFT) converts a finite sequence of equally-spaced samples of a function into a same-length sequence of equally-spaced samples of the discrete-time Fourier transform (DTFT), which is a complex-valued function of frequency. The interval at which the DTFT is sampled is the reciprocal of the duration of the input sequence.  An inverse DFT (IDFT) is a Fourier series, using the DTFT samples as coefficients of complex sinusoids 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. In digital signal processing, the function is any quantity or 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). In image processing, the samples can be the values of pixels 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 convolutions or multiplying large integers. Since it deals with a finite amount of data, it can be implemented in computers by numerical algorithms or even dedicated hardware. These implementations usually employ efficient fast Fourier transform (FFT) algorithms; 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". Definition. The "discrete Fourier transform" transforms a sequence of "N" complex numbers formula_1 into another sequence of complex numbers, formula_2 which is defined by: The transform is sometimes denoted by the symbol formula_3, as in formula_4 or formula_5 or formula_6. can be interpreted or derived in various ways, for example: can also be evaluated outside the domain formula_7, and that extended sequence is formula_8-periodic. Accordingly, other sequences of formula_8 indices are sometimes used, such as formula_10 (if formula_8 is even) and formula_12 (if formula_8 is odd), which amounts to swapping the left and right halves of the result of the transform. The inverse transform is given by: . is also formula_8-periodic (in index n). In , each formula_15 is a complex number whose polar coordinates are the amplitude and phase of a complex sinusoidal component formula_16 of function formula_17 (see Discrete Fourier series) The sinusoid's frequency is formula_18 cycles per formula_8 samples. The normalization factor multiplying the DFT and IDFT (here 1 and formula_20) and the signs of the exponents are the most common 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 formula_21 An uncommon normalization of formula_22 for both the DFT and IDFT makes the transform-pair unitary. Example. This example demonstrates how to apply the DFT to a sequence of length formula_23 and the input vector formula_24 Calculating the DFT of formula_25 using formula_26 results in formula_27 Properties. Linearity. The DFT is a linear transform, i.e. if formula_28 and formula_29, then for any complex numbers formula_30: formula_31 Time and frequency reversal. Reversing the time (i.e. replacing formula_32 by formula_33) in formula_34 corresponds to reversing the frequency (i.e. formula_18 by formula_36). Mathematically, if formula_37 represents the vector x then if formula_28 then formula_39 Conjugation in time. If formula_40 then formula_41. Real and imaginary part. This table shows some mathematical operations on formula_34 in the time domain and the corresponding effects on its DFT formula_15 in the frequency domain. Orthogonality. The vectors formula_44, for formula_45, form an orthogonal basis over the set of "N"-dimensional complex vectors: formula_46 where formula_47 is the Kronecker delta. (In the last step, the summation is trivial if formula_48, where it is 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 formula_15 and formula_50 are the DFTs of formula_34 and formula_52 respectively then Parseval's theorem states: formula_53 where the star denotes complex conjugation. The Plancherel theorem is a special case of Parseval's theorem and states: formula_54 These theorems are also equivalent to the unitary condition below. Periodicity. The periodicity can be shown directly from the definition: formula_55 Similarly, it can be shown that the IDFT formula leads to a periodic extension of formula_34. Shift theorem. Multiplying formula_34 by a "linear phase" formula_58 for some integer "m" corresponds to a "circular shift" of the output formula_15: formula_15 is replaced by formula_61, where the subscript is interpreted modulo "N" (i.e., periodically). Similarly, a circular shift of the input formula_34 corresponds to multiplying the output formula_15 by a linear phase. Mathematically, if formula_37 represents the vector x then if formula_28 then formula_66 and formula_67 Circular convolution theorem and cross-correlation theorem. The 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 formula_68 because formula_69 is non-zero at only discrete frequencies (see ), and therefore so is its product with the continuous function formula_70  That leads to a considerable simplification of the inverse transform. formula_71 where formula_72 is a periodic summation of the formula_73 sequence: formula_74 Customarily, the DFT and inverse DFT summations are taken over the domain formula_75. Defining those DFTs as formula_76 and formula_77, the result is: formula_78 In practice, the formula_73 sequence is usually length "N" or less, and formula_80 is a periodic extension of an N-length formula_81-sequence, which can also be expressed as a "circular function": formula_82 Then the convolution can be written as: </math> which gives rise to the interpretation as a "circular" convolution of formula_73 and formula_84 It is often used to efficiently compute their linear convolution. (see Circular convolution, Fast convolution algorithms, and Overlap-save) Similarly, the cross-correlation of formula_73 and formula_80 is given by: formula_87 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 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: formula_88 formula_89 which is the circular convolution of formula_90 and formula_91. Trigonometric interpolation polynomial. The trigonometric interpolation polynomial formula_92 where the coefficients "X""k" are given by the DFT of "x""n" above, satisfies the interpolation property formula_93 for formula_94. For even "N", notice that the Nyquist component formula_95 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 formula_96 to formula_97) without changing the interpolation property, but giving "different" values in between the formula_34 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 formula_34 are real numbers, then formula_100 is real as well. In contrast, the most obvious trigonometric interpolation polynomial is the one in which the frequencies range from 0 to formula_101 (instead of roughly formula_102 to formula_103 as above), similar to the inverse DFT formula. This interpolation does "not" minimize the slope, and is "not" generally real-valued for real formula_34; 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, in 1867, formula_105 where formula_106 is a primitive "N"th root of unity. For example, in the case when formula_107, formula_108, and formula_109 (which is a Hadamard matrix) or when formula_23 as in the above, formula_111, and formula_112 The inverse transform is then given by the inverse of the above matrix, formula_113 With unitary normalization constants formula_114, the DFT becomes a unitary transformation, defined by a unitary matrix: formula_115 where formula_116 is the determinant function. The determinant is the product of the eigenvalues, which are always formula_117 or formula_118 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 orthonormality condition (which arises in many areas of mathematics as described in root of unity): formula_119 If X is defined as the unitary DFT of the vector x, then formula_120 and the Parseval's theorem is expressed as formula_121 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 formula_122, this implies that the length of a vector is preserved as well — this is just Plancherel theorem, formula_123 A consequence of the circular convolution theorem is that the DFT matrix 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): formula_124 Second, one can also conjugate the inputs and outputs: formula_127 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 pointers). Define formula_128 as formula_34 with its real and imaginary parts swapped—that is, if formula_130 then formula_128 is formula_132. Equivalently, formula_128 equals formula_134. Then formula_135 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 involutory—that is, which is its own inverse. In particular, formula_136 is clearly its own inverse: formula_137. A closely related involutory transformation (by a factor of formula_138) is formula_139, since the formula_140 factors in formula_141 cancel the 2. For real inputs formula_25, the real part of formula_143 is none other than the discrete Hartley transform, which is also involutory. Eigenvalues and eigenvectors. The eigenvalues of the DFT matrix are simple and well-known, whereas the eigenvectors are complicated, not unique, and are the subject of ongoing research. Explicit formulas are given with a significant amount of number theory. Consider the unitary form formula_144 defined above for the DFT of length "N", where formula_145 This matrix satisfies the matrix polynomial equation: formula_146 This can be seen from the inverse properties above: operating formula_144 twice gives the original data in reverse order, so operating formula_144 four times gives back the original data and is thus the identity matrix. This means that the eigenvalues formula_149 satisfy the equation: formula_150 Therefore, the eigenvalues of formula_144 are the fourth roots of unity: formula_149 is +1, −1, +"i", or −"i". Since there are only four distinct eigenvalues for this formula_153 matrix, they have some 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.) 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 Gauss (Dickinson and Steiglitz, 1982). The multiplicity depends on the value of "N" modulo 4, and is given by the following table: Otherwise stated, the characteristic polynomial of formula_144 is: formula_155 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 formula_149 is based on the linear combination of operators: formula_157 For an arbitrary vector formula_158, vector formula_159 satisfies: formula_160 hence, vector formula_161 is, indeed, the eigenvector of DFT matrix formula_144. Operators formula_163 project vectors onto subspaces which are orthogonal for each value of formula_149. That is, for two eigenvectors, formula_159 and formula_166 we have: formula_167 However, in general, projection operator method does not produce orthogonal eigenvectors within one subspace. The operator formula_168 can be seen as a matrix, whose columns are eigenvectors of formula_144, but they are not orthogonal. When a set of vectors formula_170, spanning formula_171-dimensional space (where formula_171 is the multiplicity of eigenvalue formula_149) is chosen to generate the set of eigenvectors formula_174 to eigenvalue formula_149, the mutual orthogonality of formula_176 is not guaranteed. However, the orthogonal set can be obtained by further applying orthogonalization algorithm to the set formula_177, e.g. Gram-Schmidt process. 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: The closed form expression for the series can be expressed by Jacobi theta functions as 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: For DFT period "N" = 2"L" = 4"K", where "K" is an integer, the following are eigenvectors of DFT: For DFT period "N" = 4"K" - 1, where "K" is an integer, the following are eigenvectors of DFT: 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 functions, 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 is constrained by formula_185 then formula_186 may be considered to represent a discrete probability mass function of , with an associated probability mass function constructed from the transformed variable, formula_187 For the case of continuous functions formula_188 and formula_189, the Heisenberg uncertainty principle states that formula_190 where formula_191 and formula_192 are the variances of formula_193 and formula_194 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. However, the Hirschman entropic uncertainty will have a useful analog for the case of the DFT. The Hirschman uncertainty principle is expressed in terms of the Shannon entropy of the two probability functions. In the discrete case, the Shannon entropies are defined as formula_195 and formula_196 and the entropic uncertainty principle becomes formula_197 The equality is obtained for formula_198 equal to translations and modulations of a suitably normalized Kronecker comb of period formula_199 where formula_199 is any exact integer divisor of formula_8. The probability mass function formula_202 will then be proportional to a suitably translated Kronecker comb of period formula_203. Deterministic uncertainty principle. There is also a well-known deterministic uncertainty principle that uses signal sparsity (or the number of non-zero coefficients). Let formula_204 and formula_205 be the number of non-zero elements of the time and frequency sequences formula_206 and formula_207, respectively. Then, formula_208 As an immediate consequence of the inequality of arithmetic and geometric means, one also has formula_209. 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. formula_212, where formula_213 denotes complex conjugation. DFT of real and purely imaginary signals. It follows that for even formula_8 formula_215 and formula_216 are real-valued, and the remainder of the DFT is completely specified by just formula_217 complex numbers. formula_220, where formula_213 denotes 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: formula_222 Most often, shifts of formula_223 (half a sample) are used. While the ordinary DFT corresponds to a periodic signal in both time and frequency domains, formula_224 produces a signal that is anti-periodic in frequency domain (formula_225) and vice versa for formula_226. Thus, the specific case of formula_227 is known as an "odd-time odd-frequency" discrete Fourier transform (or O2 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 cosine and sine transforms. Another interesting choice is formula_228, 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) 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). 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. Multidimensional DFT. The ordinary DFT transforms a one-dimensional sequence or array formula_34 that is a function of exactly one discrete variable "n". The multidimensional DFT of a multidimensional array formula_230 that is a function of "d" discrete variables formula_231 for formula_232 in formula_233 is defined by: formula_234 where formula_235 as above and the "d" output indices run from formula_236. This is more compactly expressed in vector notation, where we define formula_237 and formula_238 as "d"-dimensional vectors of indices from 0 to formula_239, which we define as formula_240: formula_241 where the division formula_242 is defined as formula_243 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: formula_244 As the one-dimensional DFT expresses the input formula_34 as a superposition of sinusoids, the multidimensional DFT expresses the input as a superposition of plane waves, or multidimensional sinusoids. The direction of oscillation in space is formula_246. The amplitudes are formula_247. 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 composition of a sequence of one-dimensional DFTs along each dimension. In the two-dimensional case formula_248 the formula_249 independent DFTs of the rows (i.e., along formula_250) are computed first to form a new array formula_251. Then the formula_252 independent DFTs of "y" along the columns (along formula_253) are computed to form the final result formula_254. Alternatively the columns can be computed first and then the rows. The order is immaterial because the nested summations above 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 multidimensional FFT algorithms. The real-input multidimensional DFT. For input data formula_230 consisting of real numbers, the DFT outputs have a conjugate symmetry similar to the one-dimensional case above: formula_256 where the star again denotes complex conjugation and the formula_232-th subscript is again interpreted modulo formula_258 (for formula_259). 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 formula_37 sequence usually represents a finite set of uniformly spaced time-samples of some signal formula_261, where formula_262 represents time. The conversion from continuous time to samples (discrete-time) changes the underlying Fourier transform of formula_263 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 "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 . 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 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: formula_264 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: formula_265 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: formula_266 where n represents discrete time samples of the signal. 1.Time-Domain Signal Representation The given time-domain signal is: formula_267 2.DFT Calculation. The DFT is calculated using the formula: formula_264 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: formula_269 formula_270 For k=1: formula_271 formula_272 formula_273 For k=2: formula_274 formula_275 formula_276 For k=3: formula_277 formula_278 formula_279 3.Magnitude Spectrum. The magnitude of X[k] represents the strength of each frequency component: formula_280 formula_281 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 Fourier slice theorem) allows tomographic reconstruction of three dimensional objects with a wide range of applications e.g. in modern medicine. Filter bank. See and . 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 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 transforms, 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 formula_282, which are eigenfunctions of differentiation: formula_283. Thus, in the Fourier representation, differentiation is simple—we just multiply by formula_284. (However, the choice of formula_32 is not unique due to aliasing; for the method to be convergent, a choice similar to that in the 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 . Then, formula_286 Where c is the vector of coefficients for "c"("x"), and the convolution operator formula_287 is defined so formula_288 But convolution becomes multiplication under the DFT: formula_289 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 formula_290 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 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 algorithms for the multiplication of very large integers 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. formula_291). After polynomial multiplication, a relatively low-complexity carry-propagation step completes the multiplication. Convolution. When data is 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. Generalizations. Representation theory. The DFT can be interpreted as a complex-valued representation of the finite cyclic group. In other words, a sequence of formula_32 complex numbers can be thought of as an element of formula_32-dimensional complex space formula_294 or equivalently a function formula_295 from the finite cyclic group of order formula_32 to the complex numbers, formula_297. So formula_295 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. Many of the properties of the DFT only depend on the fact that formula_299 is a primitive root of unity, sometimes denoted formula_300 or formula_301 (so that formula_302). 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 fields other than the complex numbers, and such generalizations are commonly called "number-theoretic transforms" (NTTs) in the case of finite fields. For more information, see number-theoretic transform and discrete Fourier transform (general). Other finite groups. The standard DFT acts on a sequence "x"0, "x"1, ..., "x""N"−1 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 formula_303 This suggests the generalization to 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. There are various alternatives to the DFT for various applications, prominent among which are wavelets. 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 comparison of the discrete wavelet transform with the discrete Fourier transform.