Docsity

Fourier transform methods and property with examples, Study notes of Digital Signal Processing

Toggle sidebar
bg1
EENG-3206 DSP
ELECTRICAL & COMPUTER ENG. DEPT., SCHOOL OF EN GINEERING, ASTU, ADAMA
Page 1
CHAPTER-THREE
DISCRETE TIME FOURIER TRANSFORM (DTFT) &
DISCRETE FOURIER TRANSFORM (DFT)
Discrete Time Fourier Transform (DTFT)
INTRODUCTION
The Fourier representation of signals plays an important role in both
continuous time and discrete-time signal processing.
It provides a method for mapping signals into another domain in which to
manipulate them.
This transform is useful to map the time-domain sequence into a
continuous function of a frequency variable ω.
Definition
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download Fourier transform methods and property with examples and more Study notes Digital Signal Processing in PDF only on Docsity!

CHAPTER-THREE

DISCRETE TIME FOURIER TRANSFORM (DTFT) &

DISCRETE FOURIER TRANSFORM (DFT)

Discrete Time Fourier Transform (DTFT)

INTRODUCTION

The Fourier representation of signals plays an important role in both

continuous time and discrete-time signal processing.

It provides a method for mapping signals into another domain in which to

manipulate them.

This transform is useful to map the time-domain sequence into a

continuous function of a frequency variable ω.

Definition

TWO IMPORTANT PROPERTIES

(or)

X[n] X(e

jω

)

Real & Even Real & Even

Real & Odd Imaginary & Odd

Imaginary & Even Imaginary & Even

Imaginary & Odd Real & Odd

The DFT is itself a sequence rather than a function of continuous variable, and it

corresponds to samples, equally spaced in frequency of the DTFT of the signal.

Discrete Fourier Transform (DFT)

INTRODUCTION

The Discrete Fourier Transform (DFT) is a powerful computation tool which allows

us to evaluate the Fourier Transform ᡐ(ᡗ

〷㄄

) on a digital computer or especially

designed hardware.

DFT plays an important role in the implementation of many signal processing

algorithms.

Definition

If ᡶ(ᡦ) = 0 ᡘᡧᡰ ᡦ < 0 ᡓᡦᡖ ᡦ ≥ ᡀ, then N point DFT is given by

--------------------- (1)

Then Inverse DFT is given by

--------------------- (2)

Let us define a term

which is known as a twiddle factor, and substituting in equations (1) & (2)

we get

----------------------------------- (3)

------------------------------ (4)

If we assume that the inverse of W N

exists, then the above equation

can be inverted by premultiplying both sides by ᡉ

〕

⡹⡩

. Thus we obtain

**------------------- ---- ****

In fact, the IDFT as given by (**), can be expressed in matrix form as

ELECTRICAL & COMPUTER ENG. DEPT.,DEPT., SCHOOL OF ENGINEERING, ASTU, ADAMA Page 7

ELECTRICAL & COMPUTER ENG. DEPT.,

Relationship of the DFT to other Transforms

1. The DFT and the Fourier Transform of x(n)

The Fourier Transform ᡐ䙦ᡗ

given by

ᡐ㐵ᡗ

〷㄄

㐹 㐄 㔳 ᡶ䙦ᡦ䙧ᡗ

⡹〷㄄ぁ

〕⡹⡩

ぁ⢀⡨

Where ᡐ䙦ᡗ

〷㄄

䙧 is a continuous function of

The discrete Fourier Transform of

Comparing equations (5) & (6) we find that the DFT of

of the Fourier Transform of the sequence and is given by

ᡐ䙦ᡣ䙧 㐄

Q

ᡐ㐵ᡗ

2. The DFT and the z-

DEPT., SCHOOL OF ENGINEERING, ASTU, ADAMA

Relationship of the DFT to other Transforms

The DFT and the Fourier Transform of x(n)

ᡗ

〷㄄

䙧 of a finite duration sequence ᡶ䙦ᡦ䙧


is a continuous function of ω.

The discrete Fourier Transform of ᡶ䙦ᡦ䙧 is given by


Comparing equations (5) & (6) we find that the DFT of ᡶ䙦ᡦ䙧 is a sampled version

of the Fourier Transform of the sequence and is given by

Q

㐵

〷㄄

㐹㘧

㄄⢀

⡰ゕ〸

〕

ᡣ 㐄 0,1,2, ㎘ ㎘ ㎘ ㎘ ㎘,

- transform

Page 8

䙧 having length N is

------------ (5)

-------------- (6)

is a sampled version

, ᡀ ㎘ 1.

------ (7)

The expression in the above equation has the form of a convolution sum.

However it is not the ordinary linear convolution, because the convolution sum

involves the index 㐵䙦ᡥ ㎘ ᡦ䙧㐹

〕

and is called circular convolution. Thus we conclude

that multiplications of the DFTs of two sequences are equivalent to the circular

convolution of two sequences in the time-domain.

Example 1

Solution: Each sequence consists of four nonzero points. For the purposes of illustrating the

operations involving in circular convolution, it is desirable to graph sequence as points on a circle.

We note that the sequences are graphed in a counter clockwise direction on a circle. This

establishes the reference direction in rotating one of the sequences relative to the other.

Now, ᡶ ⡱

䙦ᡥ䙧 is obtained by circularly convolving ᡶ

⡩

䙦ᡦ䙧 ᡓᡦᡖ ᡶ

⡰

䙦ᡦ䙧 as specified by equation (7).

Beginning with m=0 we have

ᡶ

⡱

䙦

  1. = 㔳 ᡶ

⡩

(ᡦ)ᡶ

⡰

((−ᡦ))

〕

⡱

ぁ⢀⡨

ᡶ ⡰

䙦䙦㎘ᡦ䙧䙧

⡲

is simply the sequence ᡶ

⡰

䙦ᡦ䙧 folded and graphed on a circle as illustrated in fig. 3.1b.

In other words, the folded sequence is simply ᡶ

⡰

䙦ᡦ䙧 graphed in a clockwise direction.

The product sequence is obtained by multiplying ᡶ

⡩

䙦ᡦ䙧 with ᡶ

⡰

䙦䙦㎘ᡦ䙧䙧

⡲

, point by point. The

sequence is also illustrated in fig. 3.1b. Finally, we sum the values in the product sequence to

obtain

ᡶ

⡱

䙦

  1. = 14

For m=1 we have

ᡶ

⡱

(1) = 㔳 ᡶ

⡩

(ᡦ)ᡶ

⡰

((1 − ᡦ))

⡲

⡱

ぁ⢀⡨

It is easily verified that ᡶ ⡰

((1 − ᡦ))

⡲

is simply the sequence ᡶ

⡰

((−ᡦ))

⡲

rotated counter clockwise

by one unit in time as illustrated in fig 3.1c. This rotated sequence multiplies ᡶ ⡩

(ᡦ) to yield the

product sequence, also illustrated in fig. 3.1c. Finally, we sum the values in the product sequence

to obtain ᡶ

⡱

(1). Thus

ᡶ

⡱

(1) = 16

For m=2 we have

ᡶ

⡱

(2) = 㔳 ᡶ

⡩

(ᡦ)ᡶ

⡰

((2 − ᡦ))

⡲

⡱

ぁ⢀⡨

Now ᡶ ⡰

((2 − ᡦ))

⡲

is the folded sequence in fig.3.1b rotated two units of time in the counter

clockwise direction. The resultant sequence is illustrated in fig 3.1d along with the product

sequence ᡶ ⡩

(ᡦ)ᡶ

⡰

((2 − ᡦ))

⡲

. By summing the four terms in the product sequence, we obtain

ᡶ

⡱

(2) = 14

For m= 3 we have

ᡶ

⡱

(3) = 㔳 ᡶ

⡩

(ᡦ)ᡶ

⡰

((3 − ᡦ))

⡲

⡱

ぁ⢀⡨

The folded sequence ᡶ ⡰

((−ᡦ))

⡲

is now rotated by three units in time to yield ᡶ

⡰

((3 − ᡦ))

⡲

and the

resultant sequence is multiplied by ᡶ ⡩

(ᡦ) to yield the product sequence as illustrated in fig. 3.1e.

The sum of the values in the product sequence is

ᡶ

⡱

(3) = 16

We observe that if the computation above is continued beyond m=3, we simply repeat the

sequence of four values obtained above. Therefore, the circular convolution of the two sequences

ᡶ ⡩

(ᡦ) and ᡶ

⡰

(ᡦ) yields the sequence

ᡶ

⡱

(ᡦ) = 䙨14, 16, 14, 16}

EFFICIENT COMPUTATION OF THE DFT : FAST

FOURIER TRANSFORM

INTRODUCTION

Fast Fourier transform (FFT) is a numerical algorithm that has been developed to

improve the computational efficiency by an enormous amount and is the most

popular method used in spectral analysis in digital signal processing, specifically, to

find the DFT of the signal and also the inverse DFT of the frequency response to get

the discrete-time signal. This is only a computational algorithm and not another

transform.

In this FFT algorithm, when the value for the radix N is chosen as 2

R

, where R is an

integer, the number of complex multiplications is of the order ( N/ 2 ) log

2

(N) and the

number of complex additions is of the order N log 2

N.

The basic strategy that is used in the FFT algorithm is one of "divide and conquer."

which involves decomposing an N-point DFT into successively smaller DFTs.

RADIX-2 FFT ALGORITHMS

1. Decimation-in-Time FFT

The decimation-in-time FFT algorithm is based on splitting (decimating) x(n) into

smaller sequences and finding X(k) from the DFTs of these decimated sequences.

This section describes how this decimation leads to an efficient algorithm when the

sequence length is a power of 2.

Let x(n) be a sequence of length N = 2

R

, and suppose that x(n) is split (decimated)

into two sub sequences, each of length N/2.

Computation of N = 8 point DFT

Below figure depicts the Computation of N = 8 point DFT. We observe that

computation is performed in three stages, beginning with the computations of four

two-point DFTs, then two four-point DFTs and finally one eight-point DFT.

The combination of the smaller DFTs to form the larger DFT is illustrated in figure

for N=8.

The below figure shows the basic butterfly computation in the decimation-in-time

FFT algorithm.

The basic computation is performed at every stage as illustrated in the below figure.

BUTTERFLY DIAGRAM

Standard values of twiddle factors are given below

ⅹ

➁

❷

㐄 ❸; ⅹ

➁

❸

㐄 ㎘→; ⅹ

➅

❷

㐄 ❸; ⅹ

➅

❸

㐄 ❷. ➄❷➄ − →❷. ➄❷➄; ⅹ

➅

❹

= −→; ⅹ

➅

➀

= −❷. ➄❷➄ − →❷. ➄❷➄

EXAMPLE

Compute the DFT of a sequence ∆(↖) = 䙨❸, −❸, ❸, −❸} using DIT algorithm.

Sol:- Let ∆(ᡦ) = 䙨1, −1,1, −1} ; Length N=4.

Twiddle factors are ⅹ

➁

❷

= ❸; ⅹ

➁

❸

= −→;

Butterfly diagram

The output sequence ᡐ(ᡣ) = 䙨0,0,4,0}

EXAMPLE

Compute the DFT of a sequence ∆䙦↖䙧 㐄 䙨❷, ❸, ❹, ➀} using DIT and DIF

algorithms.

Sol:- Let ∆(ᡦ) = 䙨0,1,2,3} ; Length N=4.

Twiddle factors are ⅹ

➁

❷

= ❸; ⅹ

➁

❸

= −→;

DIT Butterfly Diagram

DIF Butterfly Diagram

EXAMPLE

Compute the DFT of a sequence ᡶ(ᡦ) = 䙨1,1,1,1,1,1,1,1} using DIT and DIF

algorithms.

Sol:- Let ∆(ᡦ) = 䙨1,1,1,1,1,1,1,1} ; Length N=

Twiddle factors are

ᡉ

⡶

⡨

= 1; ᡉ

⡶

⡩

= 0.707 − ᡢ0.707; ᡉ

⡶

⡰

= −ᡢ; ᡉ

⡶

⡱

= −0.707 − ᡢ0.

IDFT Using FFT Algorithms

FFT algorithms can be used to compute an inverse DFT without any change in the algorithm.

The inverse DFT of an N-point sequence

where.

Taking complex conjugate and multiply by N, we obtain,

ᡀᡶ

∗

䙦ᡦ䙧 㐄 㔳 ᡐ

∗

䙦ᡣ䙧ᡉ

〕

〸ぁ

〕⡹⡩

〸⢀⡨

The right hand side of the equation is DFT of the sequence ᡐ

∗

䙦ᡣ䙧 and may be computed using any

FFT algorithm.

The desired output sequence x(n) can then be found by complex conjugating the DFT and dividing

by N to give

ᡶ䙦ᡦ䙧 㐄

1

ᡀ

㐩㔳 ᡐ

∗

(ᡣ)ᡉ

〕

〸ぁ

〕⡹⡩

〸⢀⡨

㐳

∗

Example

Find the IDFT of the sequence ᡐ(ᡣ) = 䙨10, −2 + 2ᡢ, −2, −2 − 2ᡢ} using DIT & DIF

algorithms.

Sol: - Let ᡐ(ᡣ) = 䙨10, −2 + 2ᡢ, −2, −2 − 2ᡢ} ; N=4; ᡉ

⡲

⡨

= 1; ᡉ

⡲

⡩

= −ᡢ;

ᡀᡶ

∗

(ᡦ) = 䙨4,8,12,16} ᡓᡦᡖ ᡶ(ᡦ) = 䙨1,2,3,4}

Try DIF algorithm, you get the same answer.