Docsity

Digital Signal Processing: Discrete Fourier Series & Fourier Transforms, Assignments of Digital Signal Processing

Partial preview of the text

Download Digital Signal Processing: Discrete Fourier Series & Fourier Transforms and more Assignments Digital Signal Processing in PDF only on Docsity!

LECTURE NOTES

ON

DIGITAL SIGNAL PROCESSING

III B.TECH II SEMESTER (JNTUK โ€“ R 13)

FACULTY : B.V.S.RENUKA DEVI (Asst.Prof) / Dr. K. SRINIVASA RAO (Assoc. Prof)

DEPARTMENT OF ELECTRONICS AND COMMUNICATIONS ENGINEERING

GVP COLLEGE OF ENGINEERING FOR WOMEN

MADHURAWADA, VISAKHAPATNAM- 48

UNIT III โ€“ DISCRETE FOURIER SERIES & FOURIER TRANSFORMS

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 )(๐‘โˆ’ 1 )

Expressing the above set of equations in matrix notation, we obtain

[

๐‘‹(๐‘ โˆ’ 1 )]

[

๐‘

๐‘

2

๐‘

(๐‘โˆ’ 1 )

๐‘

2

๐‘

4

๐‘

2 (๐‘โˆ’ 1 )

๐‘

(๐‘โˆ’ 1 )

๐‘

2 (๐‘โˆ’ 1 )

๐‘

(๐‘โˆ’ 1 )(๐‘โˆ’ 1 )

]

[

๐‘ฅ[ 0 ]

๐‘ฅ[ 1 ]

๐‘ฅ[ 2 ]

๐‘ฅ[๐‘ โˆ’ 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

> N

h

. then, the result of linear convolution is of

length N = N x

+ N

h

  • 1 , whereas that of cicular convolution is of length N = max (N x

, N

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

+ N

h

    1. Let the padded sequences be x p

[n] and h p

[n]. then we compute

the N (= N x

+ N

h

    1. point circular convolution of x p

[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.

  • x[n] is divided into sections x r

[n], each of length N, so that each input section overlaps the preceding

section by M โ€“ 1 samples.

  • The first M โ€“ 1 samples of the first section are set to zero.
  • Then, the N โ€“ point circular convolution, y r

[n] of each section x r

[n] with h[n] is obtained.

  • The first M โ€“ 1 samples of each output section must be discarded.
  • The remaining N โ€“ M + 1 samples from each successive sections are concatenated to reconstruct the

final filtered output.

Overlap โ€“ add method

  • x[n] is represented as a sum of finite โ€“ length segments of length N

[

]

๐‘Ÿ

๐‘Ÿ

[๐‘› โˆ’ ๐‘Ÿ๐‘]

Where ๐‘ฅ

๐‘Ÿ

[

]

[

]

  • the final output of the filter is given by the linear convolution

๐‘ฆ[๐‘›] = โ„Ž[๐‘›] โˆ— ๐‘ฅ[๐‘›] = โ„Ž[๐‘›] โˆ— โˆ‘ ๐‘ฅ

๐‘Ÿ

๐‘Ÿ

[๐‘› โˆ’ ๐‘Ÿ๐‘]

๐‘Ÿ

๐‘Ÿ

[๐‘› โˆ’ ๐‘Ÿ๐‘]

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.

  • Since ๐‘ฅ

๐‘Ÿ

[๐‘›] 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

[๐‘›], 0 โ‰ค ๐‘› โ‰ค ๐‘ + ๐‘€ โˆ’ 2

1

[๐‘›] = โ„Ž[๐‘›] โˆ— ๐‘ฅ

1

[๐‘›], ๐‘ โ‰ค ๐‘› โ‰ค 2 ๐‘ + ๐‘€ โˆ’ 2

2

[

]

[

]

2

[

]

In this algorithm, the time โ€“ domain sequence x[n] is decimated into two

๐‘

2

  • point sequences, one composed

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 ๐‘›๐‘˜

๐‘

2

โˆ’ 1

๐‘›= 0

+ โˆ‘ ๐‘ฅ[ 2 ๐‘› + 1 ]๐‘Š

๐‘

( 2 ๐‘›+ 1 )๐‘˜

๐‘

2

โˆ’ 1

๐‘›= 0

= โˆ‘ ๐‘ฅ[ 2 ๐‘›]๐‘Š

๐‘

2 ๐‘›๐‘˜

๐‘

2

โˆ’ 1

๐‘›= 0

๐‘

๐‘˜

โˆ‘ ๐‘ฅ[ 2 ๐‘› + 1 ]๐‘Š

๐‘

2 ๐‘›๐‘˜

๐‘

2

โˆ’ 1

๐‘›= 0

Using the third property of the twiddle factor, W N

, the above equation can be rewritten as

= โˆ‘ ๐‘ฅ[ 2 ๐‘›]๐‘Š

๐‘

2

โ„

๐‘›๐‘˜

๐‘

2

โˆ’ 1

๐‘›= 0

๐‘

๐‘˜

โˆ‘ ๐‘ฅ[ 2 ๐‘› + 1 ]๐‘Š

๐‘

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

๐‘˜

๐‘˜

๐‘‹(๐‘˜) = โˆ‘ {๐‘ฅ[๐‘›] + (โˆ’ 1 )

๐‘˜

๐‘ฅ [๐‘› +

]} ๐‘Š

๐‘

๐‘›๐‘˜

๐‘

2

โˆ’ 1

๐‘›= 0

Now, decimating X(k) into even and odd โ€“ indexed samples,

[

]

+ ๐‘ฅ [๐‘› +

]} ๐‘Š

๐‘

2

๐‘›๐‘˜

๐‘

2

โˆ’ 1

๐‘›= 0

๐‘‹( 2 ๐‘˜ + 1 ) = โˆ‘ {๐‘ฅ[๐‘›] โˆ’ ๐‘ฅ [๐‘› +

]} ๐‘Š

๐‘

๐‘›

๐‘

2

๐‘›๐‘˜

๐‘

2

โˆ’ 1

๐‘›= 0

[

]

[

]

+ ๐‘ฅ [๐‘› +

] , 0 โ‰ค ๐‘› โ‰ค

๐‘Ž๐‘›๐‘‘, โ„Ž[๐‘›] = {๐‘ฅ[๐‘›] โˆ’ ๐‘ฅ [๐‘› +

]} ๐‘Š

๐‘

๐‘›

Substituting equations 3 & 4 in equations 1 & 2 respectively

For example, for N=8, using equations 3 & 4, we get

๐‘”[ 0 ] = ๐‘ฅ[ 0 ] + ๐‘ฅ[ 4 ]

๐‘”[ 1 ] = ๐‘ฅ[ 1 ] + ๐‘ฅ[ 5 ]

๐‘”[ 2 ] = ๐‘ฅ[ 2 ] + ๐‘ฅ[ 6 ]

[

]

[

]

[

]

โ„Ž[ 0 ] = {๐‘ฅ[ 0 ] โˆ’ ๐‘ฅ[ 4 ]}๐‘Š

8

0

[

]

[

]

[

]

8

1

โ„Ž[ 2 ] = {๐‘ฅ[ 2 ] โˆ’ ๐‘ฅ[ 6 ]}๐‘Š

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

  • Number of stages in a butterfly diagram =log

2

  • Number of butterflies in each stage=N/
  • Number of complex multiplications in each butterfly=
  • Number of complex additions in each butterfly=2.

From the above, for an N โ€“ point FFT algorithm,

  • Total number of complex multiplications =

๐‘

2

log

2

  • Total number of complex additions = ๐‘ log

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

  • Take X(k) as the input sequence and x[n] as the output sequence
  • Compute FFT by replacing the twiddle factors W N

by ๐‘Š

๐‘

โˆ’ 1

  • Divide the output sequence by N

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