










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











FACULTY : B.V.S.RENUKA DEVI (Asst.Prof) / Dr. K. SRINIVASA RAO (Assoc. Prof)
Syllabus
Properties of discrete Fourier series, DFS representation of periodic sequences, Discrete Fourier transforms:
Properties of DFT, linear convolution of sequences using DFT, Computation of DFT, Fast Fourier transforms
(FFT) - Radix-2 decimation in time and decimation in frequency FFT Algorithms, Inverse FFT.
Discrete โ Fourier Series
Fourier Series is a mathematical tool that allows the representation of any periodic signal as the sum of
harmonically related complex exponential signals. The Fourier Series representation of a discrete time
periodic signal involves a finite number of terms.
DFS representation of periodic sequences
A discrete time sequence x[n] is periodic if
The smallest value of N for which this holds is called the fundamental period. The fundamental frequency is
0
2 ๐
๐
A periodic sequence x[n] can be represented by a Discrete Fourier Series made up of complex exponential
signals of fundamental frequency ๐ 0
2 ๐
๐
and its harmonics.
Similar to continuous Fourier Series, the discrete time exponential Fourier Series consists of exponentials
๐ 0 ๐
ยฑ๐๐ 0
๐
ยฑ๐ 2 ๐ 0
๐
ยฑ๐๐๐ 0
๐
The discrete time complex exponentials whose frequencies are separated by 2ฯ are identical.
๐
๐
2 ๐
๐
๐๐
๐
2 ๐
๐
๐๐
๐ 2 ๐๐
๐
2 ๐
๐
(๐+๐)๐
๐+๐
i.e., in general, the first harmonic is identical to the (N+1)
st
harmonic, the second harmonic to (N+2)
nd
harmonic, and so on.
This implies that there are only N independent or unique harmonics whose frequencies range over 2ฯ. So, the
Discrete Fourier Series can be expressed as
๐
๐๐๐
0
๐
๐โ 1
๐= 0
0
Where, the Discrete Fourier Series Coefficients Xk are given by
๐
โ๐๐๐ 0
๐
๐โ 1
๐= 0
7. Complex conjugation
If ๐ฅ[๐] โ ๐
๐
Then ๐ฅ
โ
โ
โ๐
8. Parsevalโs Relation
2
๐=
โฉ ๐
โช
๐
2
๐=
โฉ ๐
โช
Discrete โ Fourier Transform (DFT)
The Fourier transform of a discrete โ time non periodic sequence x[n] is given by
โ๐๐๐
โ
๐=โโ
If the sequence is of finite length N, then
โ๐๐๐
๐โ 1
๐= 0
Now, sampling X(ฯ) at equally spaced frequencies in ฯ .i.e., at ๐
๐
2 ๐
๐
๐, ๐ = 0 , 1 , 2 , โฏ , ๐ โ 1 , we
obtain the Discrete โ Fourier Transform
๐=
2 ๐๐
๐
โ๐ 2 ๐๐๐
๐
๐โ 1
๐= 0
๐
๐๐
๐โ 1
๐= 0
The Inverse Discrete โ Fourier Transform is given by
๐ 2 ๐๐๐
๐
๐โ 1
๐= 0
๐
โ๐๐
๐โ 1
๐= 0
Where ๐
๐
โ๐
2 ๐
๐
= ๐๐ค๐๐๐๐๐ ๐๐๐๐ก๐๐
Properties of DFT
1. Periodicity
If ๐ฅ[๐] โ ๐(๐)
then
i.e., both DFT and Inverse DFT are periodic with period N.
2. Linearity
If ๐ฅ
1
1
And ๐ฅ
2
2
Then ๐ด๐ฅ
1
2
1
2
3. Circular Time Shifting
An N โ point sequence x[n] is defined for 0 โค n โค N-1, and zero for other values of n. for any
integer n 0
, the shifted sequence x[n-n 0
] is no longer defined for the range 0 โค n โค N-1. But, by
definition, DFT requires signal values in the range 0 โค n โค N-1. To achieve this, using the
periodicity property of IDFT, we consider x p
[n], the periodic extension of x[n]. We delay this by
n 0
samples and consider N samples between 0 โค n โค N- 1. Let this sequence be represented as
x c
[n]. This is equivalent to moving the last n 0
samples of x[n] to the beginning of the sequence.
This is called circular shift.
Thus, a circular shift of an N โ point sequence is equivalent to a linear shift of its periodic
extension.
The finite โ duration circular time shifted sequence x c
[n] is related to the original sequence x[n]
by a modulo operation.
๐
0
๐
Modulo Operation: if the argument (n โ n 0
) is between 0 and N- 1 , then leave it as it is;
otherwise, add or subtract multiples of N from the argument (n โ n 0
) until the result is between 0
and N โ 1.
If ๐ฅ
๐โ๐๐๐๐๐ก ๐ท๐น๐
Then ๐ฅ[โฉ๐ โ ๐
0
๐
๐โ๐๐๐๐๐ก ๐ท๐น๐
๐
๐๐
0
4. Circular frequency shifting
If ๐ฅ
๐โ๐๐๐๐๐ก ๐ท๐น๐
Then ๐
๐
โ๐๐
0
๐โ๐๐๐๐๐ก ๐ท๐น๐
0
๐
5. Circular time reversal
An N โ point sequence x[n] is defined for 0 โค n โค N-1, and zero for other values of n. The time
reversed sequence x[- n] is no longer defined for the range 0 โค n โค N-1. But, by definition, DFT
requires signal values in the range 0 โค n โค N-1. To achieve this, using the periodicity property of
IDFT, we consider x p
[n], the periodic extension of x[n]. We time reverse (or flip) this and
consider N samples between 0 โค n โค N-1. Let this sequence be represented as x c
[n]. If x[n] is
plotted on a circle in anti-clockwise direction, time reversal is equivalent to plotting the sequence
๐
( ๐โ 1
)
๐
2
( ๐โ 1
)
๐
(๐โ 1 )(๐โ 1 )
Expressing the above set of equations in matrix notation, we obtain
๐
๐
2
๐
(๐โ 1 )
๐
2
๐
4
๐
2 (๐โ 1 )
๐
(๐โ 1 )
๐
2 (๐โ 1 )
๐
(๐โ 1 )(๐โ 1 )
๐ต
Similarly, for the IDFT equation, ๐ฅ[๐] =
1
๐
๐
๐โ 1 โ๐๐
๐= 0
, ๐ = 0 , 1 , โฏ , ๐ โ 1 , the matrix notation would
be
1
๐
๐ต
โ
But, from equation A,
๐ต
โ๐
From Equations B & C, we have
๐ต
โ๐
๐ต
โ
Linear Convolution Using Circular Convolution
The output of an LTI system is the linear convolution of the input x[n] and the systemโs impulse response
h[n]. the DFT is a practical approach for implementing linear system operations in the frequency domain.
But, the problem is, the DFT operations result in a circular convolution in time domain , and not the linear
convolution. i.e., ๐
1
2
๐โ๐๐๐๐๐ก ๐ผ๐ท๐น๐
1
2
Let x[n] be of length N x
and h[n] be of length N h
, and let N x
h
. then, the result of linear convolution is of
length N = N x
h
h
For circular convolution to yield the same result as the linear convolution, both the sequences must be zero โ
padded so that both are of length N x
h
[n] and h p
[n]. then we compute
the N (= N x
h
[n] and h p
[n], resulting in a sequence equal to the linear
convolution x[n]*h[n].
i.e., ๐
๐
๐
๐โ๐๐๐๐๐ก ๐ผ๐ท๐น๐
Filtering of Long Data sequences using DFT
To filter signals like speech signals, etc., which are long data sequences, using DFT, it is required to compute
a large DFT. Moreover, the output samples are not available until all the input samples are produced , thus
introducing an unacceptably large amount of delay. To overcome this problem, the input sequence is divided
into smaller sections/blocks, and each block is processed via DFT and IDFT to produce a block of output
data. The output blocks are fitted together to yield the final output sequence. This procedure is called
sectioned / block convolution. There are two ways to do this: overlap โ save method and overlap โ add
method.
Overlap โ save method
Let h[n] be the impulse response of length M, and x[n] be the input sequence of length much greater than M.
[n], each of length N, so that each input section overlaps the preceding
section by M โ 1 samples.
[n] of each section x r
[n] with h[n] is obtained.
final filtered output.
Overlap โ add method
๐
๐
Where ๐ฅ
๐
๐
๐
๐
๐
Where ๐ฆ
๐
๐
Since h[n] is of length M and ๐ฅ
๐
[๐] is of length N, the linear convolution result ๐ฆ
๐
[๐] is of length N +
M โ 1, which can be obtained using N + M โ 1 point DFTs.
๐
[๐] is the section of x[n] starting at n = rN, so ๐ฆ
๐
[๐] also starts at n = rN. But, each ๐ฆ
๐
[๐] is
of length N + M โ 1, whereas each ๐ฅ
๐
[๐] is of length N.
i.e.,
0
0
1
1
2
2
In this algorithm, the time โ domain sequence x[n] is decimated into two
๐
2
of even โ indexed values of x[n], and other composed of odd โ indexed values of x[n].i.e.,
The N โ point DFT of x[n] is given by
๐
๐๐
๐โ 1
๐= 0
This can be rewritten as
๐
( ๐
) = โ ๐ฅ[๐]๐
๐
๐๐
๐โ 1
๐= 0 ,๐๐ฃ๐๐
๐
๐๐
๐โ 1
๐= 0 ,๐๐๐
๐
2 ๐๐
๐
2
โ 1
๐= 0
๐
( 2 ๐+ 1 )๐
๐
2
โ 1
๐= 0
๐
2 ๐๐
๐
2
โ 1
๐= 0
๐
๐
๐
2 ๐๐
๐
2
โ 1
๐= 0
Using the third property of the twiddle factor, W N
, the above equation can be rewritten as
๐
2
โ
๐๐
๐
2
โ 1
๐= 0
๐
๐
๐
2
โ
๐๐
๐
2
โ 1
๐= 0
Using equations 1 & 2 in the above equation, we obtain
๐
2
โ
๐๐
๐
2
โ 1
๐= 0
๐
๐
๐
2
โ
๐๐
๐
2
โ 1
๐= 0
๐
๐
Where G(k) and H(k) are the N/2 โ point DFTs of g[n] and h[n] respectively. So, G(k) and H(k) are periodic
with period N/2 .i.e.,
And using the symmetry property of the twiddle factor, W N
, and equations4 & 5
๐
๐
Equations 3 and 6 result in the following butterfly diagram
For example, for N = 8, the DFT points in terms of G and H are
๐
0
๐
1
๐
2
๐
3
For the remaining 4 points X(4) to X(7), we use equations 4, 5, 6 and 7 to get
๐
0
๐
1
๐
2
๐
3
The butterfly diagram for the above set of equations is
Due to repeated decimations, the input sequence is scrambled, and the order of the final input sequence is
obtained as follows
Input sequence Index
Binary form of
index
Bit reversed
form of index
Decimal
representation
Final input
sequence order
x[0] 0 000 000 0 x[0]
x[1] 1 001 100 4 x[4]
x[2] 2 010 010 2 x[2]
x[3] 3 011 110 6 x[6]
x[4] 4 100 001 1 x[1]
x[5] 5 101 101 5 x[5]
x[6] 6 110 011 3 x[3]
x[7] 7 111 111 7 x[7]
Decimation โ In โ Frequency (DIF) FFT algorithm
In this algorithm, we decimate the DFT sequence X(k) into smaller and smaller subsequences (Instead of the
time โ domain sequence x[n]).
๐
๐๐
๐โ 1
๐= 0
๐
๐๐
๐
2
โ 1
๐= 0
๐
๐๐
๐โ 1
๐=
๐
2
๐
๐๐
๐
2
โ 1
๐= 0
๐
๐๐
๐
2
โ 1
๐= 0
๐
๐
2
๐
๐
๐
2
๐
๐
๐
๐
๐๐
๐
2
โ 1
๐= 0
Now, decimating X(k) into even and odd โ indexed samples,
๐
2
๐๐
๐
2
โ 1
๐= 0
๐
๐
๐
2
๐๐
๐
2
โ 1
๐= 0
๐
๐
Substituting equations 3 & 4 in equations 1 & 2 respectively
For example, for N=8, using equations 3 & 4, we get
8
0
8
1
8
2
8
3
In this algorithm, the output X(k) is in bit โ reversed order.
Efficiency of FFT algorithm
A direct computation of DFT requires a large number of multiplications and additions. An N โ point DFT is
given by
๐
๐๐
๐โ 1
๐= 0
In the above equation, each DFT point computation involves N complex multiplications and (N โ 1) complex
additions. So, the N โ point DFT calculations involve N
2
complex multiplications and N(N โ 1) complex
additions. This means approximately 10
6
complex multiplications and additions for a 1024 โ point
sequence.
On the other hand, in an FFT algorithm, a basic butterfly in DIT โ FFT algorithm is represented as
And for DIF โ FFT algorithm, it is represented as
2
From the above, for an N โ point FFT algorithm,
๐
2
log
2
2
For a 1024 โ point sequence, this means approximately 5120 complex multiplications and 10240
complex additions. i.e., approximately 100 times less additions and 200 times less multiplications than
direct computation of DFT.
As the number of input samples increase, the savings in the number of computations also increase.
In โ Place computations
Another advantage of FFT algorithm is In โ Place computations. As shown in the previous diagram of a basic
butterfly, any butterfly calculation involves 2 complex inputs a and b, and 2 complex outputs A and B. once,
these two outputs are calculated, the inputs of the butterfly are not used in any other calculation. So, A and B
can be stored in the same memory locations as a and b. this is called In โ Place computation.
Inverse FFT Algorithm
Let X(k) be the N โ point DFT of a length โ N sequence x[n]. The inverse DFT is given by
๐
โ๐๐
๐โ 1
๐= 0
๐
๐๐
โ
๐โ 1
๐= 0
An FFT algorithm can be used to compute the inverse DFT by replacing x[n] by X(k), taking the negative
powers of W N
, and dividing the output by N. Hence, in order to compute the inverse DFT from an FFT
algorithm, following steps can be followed
by ๐
๐
โ 1
So, the DIT โ FFT algorithm becomes DIF Inverse FFT algorithm and vice โ versa.
For example the DIT โ Inverse FFT butterfly diagram for N =8 would be as follows