FFT
FFT
5.1 Introduction
We studied Discrete Fourier Transform (DFT) earlier. The
DFT 0s used in large number
ot appications of DSP such as filtering, correlation analysis, spectrum
analysis etc. but ute
diret computation of DET involves large number of computations. Hence the processo
main bUSy. Special algorithms have been developed to compute DFT quickly. These
agoriuuis exploit the periodicity and symmetry properties of twiddle factors (phase
iactors). Hence DFT is computed fast using such algorithms compared to direct
computation. These algorithms are collectively called as Fast Fourier Transform (FFT)
algorithms. These algorithms are very efficient in terms of computations. As the value of
N inreases, the computational efficiency of FFT algorithms increases.
5.2 Efficient Computation of the DFT
(5 -
Digital Signal Processing 5-2 Fast Fourier Transform Algorithma
k 2k V 3
X(k) =x(0) x WN +x(1) x WN +x(2) x WN +x(3) x W X(N-1)x WN(N-1)k
th
One Second Third
complex Complex complex
multiplication multiplication multiplication complex
multiplication
(N - 1)complex additions for one value of k
N complex multiplications for one value of k
For any value of 'k in this equation, observe the multiplications and additions
involved. 'N number of complex multiplications and '(N- 1)' number of complex additions
are required to calculate X() for one value of k. We know that there are such
And,
Number of complex
additions required for (5.22)
= (N-1) x N= N- N
calculating X(k) for
k=0,1,.. N-1
Thus if we want to evaluate the 1024 point DFT of the sequence, then N=102*,
2r
Heree N = WN as we have seen. Hence above equation can be written as,
N-1
k=0,1,..., N-1 .. (5.2.3)
X(A) =
n= 0
Digital Signal Processing 5-4 Fast Fourier Transform
We know that both x() and W" are complex valued. Let their real and
Algorthm
parts be expressed as,
x() = XR (n) +j x, (n)
imagnan
and wkn = W +j WN
Here x () is real part of x ()
x, (n) is imaginary part of x()
WA is real part of W
WN is imaginary part of W
Then equation 5.2.3 can be written as,
N-1
N-1
... (52.4
n=0
Here compare equation 5.2.3 with above equation. Observe that one compla
multiplication x() Wk of equation 5.2.3 is converted as follows in Fig. 5.2.2.
kn kn kn kn
[XR(n) WRN x(n) WiN ]+ilxR(n) WIN +
X{(n) WRN )
One complex
addition
Two real
additions
Fia. 5.2.3 Conversion of one complex addition.
Here a, b, c and d are real numbers
Digital Signal Processing 5-6 Fast Fourier Transform
As shown in Fig. 5.2.3 above, onc complex addition is converted to two real Algorthm
i.e.,
Hence from equation 5.2.7 and above equation, total number of real additions are,
Total real additions iD computation of DFT = 2N' + 2N- 2N
= 4N - 2N
= N(4N-2) ... (5.2.11)
And total number of real multiplications are (see equation 5.2.7),
Total real multiplications in computation of DFT = 4N? (5.2.12)
We know that, Wkn = ej2n kn/ N
By euler's identity eJ = Cos -jsin0, we can write above equation as,
2 kn 2Tu kn
W = COS
N
-j sin
N
2T kn
Here WER = COS i.e. real part of Wn
N
and
2T kn
W = - sin N i.e. imaginary part of W
nere note that two trigonometric values are executed for every value of W
equation 5.2.3 or equation 5.2.4 observe that n varies from 0 to N - land hence WN
N different values. Similarly 'k' varies from 0to N-I and hence
values. Hence for simultaneous variation of 'k and 'n', W" takesW"Nxtakes N= N2N ditferet
et
values. Hence,
Digital Signal Processing 5-7 Fast Fourier Transform Algorithms
Number of trigonometricvalues evaluated in computationof DFT = 2x Nx= 2N
... (5.2.13)
Table 5.2.1 summarizes the results of this example :
Sr. No. Number of computations
Operation
1 N2
Complex muitipications
2 N2-N
Complex additions
3 4N2
Real mutiplications
Real additions 4N?- 2N
5
Trigonometric functions 2N2
WN -
2 (5.2.15)
This twiddle factor exhibit symmetry and periodicity properties.
0) Periodicity property of Wy :
Wt*N = W* .. (5.2.16)
Proof : 8
2
We know that W = eN
WtN =
= e k-J2r
.. (5.2.17)
= ek j2