Transcript Chapter7
Discrete-Time Fourier Methods
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
1
Discrete-Time Fourier Series Concept A signal can be represented as a linear combination of sinusoids.
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
2
Discrete-Time Fourier Series Concept The relationship between complex and real sinusoids
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
3
Discrete-Time Fourier Series Concept
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
4
Discrete-Time Fourier Series Concept
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
5
Discrete-Time Fourier Series Concept
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
6
Discrete-Time Fourier Series Concept
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
7
Discrete-Time Fourier Series Concept
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
8
Discrete-Time Fourier Series Concept
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
9
Discrete-Time Fourier Series Concept
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
10
The Discrete-Time Fourier Series The discrete-time Fourier series (DTFS) is similar to the CTFS.
A periodic discrete-time signal can be expressed as x =
k
= å
N
c x [ ]
e j
2 p
kn
/
N
c x = 1
N n
0 +
N
1 å x [ ]
e
-
j
2 p
kn
/
N
where c x and the notation,
k
= å
N
consecutive
k
’s exactly
N
in length.
[ ] means a summation over any range of
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
11
The Discrete Fourier Transform The discrete Fourier transform (DFT) is almost identical to the DTFS.
A periodic discrete-time signal can be expressed as x where X
k
= 1
N k
= å
N
X [ ]
e j
2 p
kn
/
N
X =
n
0 +
N
1 å
n
=
n
0 x [ ]
e
-
j
2 p
kn
/
N
[ ] is the DFT harmonic function,
N
is any period of x and the notation,
k
= å
N
means a summation over any range of [ ] consecutive k’s exactly
N
in length. The main difference between the DTFS and the DFT is the location of the 1/
N
term. So X =
N
c x [ ] .
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
12
The Discrete Fourier Transform Because the DTFS and DFT are so similar, and because the DFT is so widely used in digital signal processing (DSP), we will concentrate on the DFT realizing we can always form the DTFS from c x = X /
N
.
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
13
The Discrete Fourier Transform
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
14
DFT Example Find the DFT harmonic function for x ( u u éé
n
3 éé ) * d 5 using its fundamental period as the representation time.
X
n
= é
N
x
n e
-
j
2 p
kn
/
N
= é 4
n
= 0 ( u u éé
n
3 éé ) * d 5
n e
-
j
2 p
kn
/5 = = é 2
n
= 0 é 2
n
= 0
e
-
e
-
j
2 p
kn
/5
j
2 p
kn
/5 = =
e
1 1 -
j
2
e
-
e
-
j
6 p
k
/5
e
-
j
3 p
k
/5 p
k
/5 =
j
2 p
k
/5 sin 3 p
k
sin ( ( p
k e
-
j
p
k
/5 / 5 ) / 5 ) = é 3
e
-
e j
3 p
k
/5
e j
p
k
/5
j
2 p
k
/5 -
e
-
e
drcl (
j
3 p
k
/5
j
p
k
/5
k
/ 5,3 )
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
15
The DFT Harmonic Function We know that x = 1
N k
= å
N
X [ ]
e j
2 p
kn
/
N
so we can find x from its harmonic function. But how do we find the harmonic function from x [ ] ? We use the principle of orthogonality like we did with the CTFS except that now the orthogonality is in discrete time instead of continuous time.
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
16
The DFT Harmonic Function
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
17
The DFT Harmonic Function
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
18
The DFT Harmonic Function Below is a set of complex sinusoids for
N
= 8. They form a set of
basis
vectors. Notice that the
k
= 7 complex sinusoid rotates counterclockwise through 7 cycles but appears to rotate clockwise through one cycle. The
k
= exactly the same as the
k
7 complex sinusoid is = 1 complex sinusoid. This must be true because the DFT is periodic with period
N
.
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
19
The DFT Harmonic Function The projection of a real vector
x
in the direction of another real vector
y
is
p
=
x
T
y y
T
y y
If
p
= 0,
x
and
y
are orthogonal. If the vectors are complex valued
p
=
x
H
y y
H
y y
where the
x
H
is the complex-conjugate transpose of
x
.
x
T
y
and
x
H
y
are the
dot product
of
x
and
y
.
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
20
The DFT Harmonic Function
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
21
The DFT Harmonic Function
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
22
The DFT Harmonic Function
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
23
The DFT Harmonic Function
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
24
The DFT Harmonic Function The most common definition of the DFT is X =
N
1 å
n
= 0 x [ ]
e
-
j
2 p
kn
/
N
, x Here the beginning point for x = 1
N k
= å
N
[ ] is taken as
n
0 X [ ]
e j
2 p
kn
/
N
= 0 . This is the form of the DFT that is implemented in practically all computer languages.
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
25
Convergence of the DFT • The DFT converges exactly with a finite number of terms. It does not have a “ Gibbs phenomenon CTFS does ” in the same sense that the
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
26
The Discrete Fourier Transform
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
27
DFT Properties
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
28
DFT Properties
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
29
DFT Properties It can be shown (and is in the text) that if x function, X X [ ] is purely real and if x [ ] is purely imaginary.
[ ] is an even [ ] is an odd function
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
30
The Dirichlet Function The functional form sin (
N
sin p
Nt
( ) ) appears often in discrete-time signal analysis and is given the special name
Dirichlet
function. That is drcl = sin (
N
sin p
Nt
( ) )
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
31
DFT Pairs
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
32
The Fast Fourier Transform
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
33
The Fast Fourier Transform
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
34
Generalizing the DFT for Aperiodic Signals Pulse Train This periodic rectangular-wave signal is analogous to the continuous-time periodic rectangular-wave signal used to illustrate the transition from the CTFS to the CTFT.
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
35
Generalizing the DFT for Aperiodic Signals DFT of Pulse Train As the period of the rectangular wave increases, the period of the DFT increases
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
36
Generalizing the DFT for Aperiodic Signals
Normalized
DFT of Pulse Train By plotting versus
k
/
N
0 instead of
k
, the period of the normalized DFT stays at one.
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
37
Generalizing the DFT for Aperiodic Signals The normalized DFT approaches this limit as the period approaches infinity.
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
38
Definition of the Discrete-Time Fourier Transform (DTFT)
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
39
The Discrete-Time Fourier Transform The function
e
-
j
W appears in the forward DTFT raised to the
n
th power. It is periodic in W with fundamental period 2 p .
n
is an integer. Therefore
e
-
j
W
n
is periodic with fundamental period 2 p /
n
and 2 p is also a period of
e
-
j
W
n
. The forward DTFT is X = é é
n
=-é x [ ]
e
-
j
W
n
a weighted summation of functions of the form
e
every 2 p change in W . Therefore X ( )
j
W
n
, all of which repeat with is always periodic in W with period 2 p . This also implies that X ( ) is always periodic in
F
with period 1.
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
40
DTFT Pairs We can begin a table of DTFT pairs directly from the definition. (There is a more extensive table in the text.)
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
41
The Generalized DTFT By generalizing the CTFT to include transform that have impulses we were able to find CTFT's of some important practical functions.
The same is true of the DTFT. The DTFT of a constant X = ¥ å
n
=-¥
Ae
-
j
2 p
Fn
=
A
¥ å
n
=-¥
e
-
j
2 p
Fn
does not converge. The CTFT of a constant turned out to be an impulse. Since the DTFT must be periodic that cannot the the transform of a constant in discrete time. Instead the transform must be a periodic impulse.
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
42
The Generalized DTFT
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
43
The Generalized DTFT
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
44
Forward DTFT Example
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
45
Forward DTFT Example
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
46
Forward DTFT Example
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
47
More DTFT Pairs We can now extend the table of DTFT pairs.
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
48
DTFT Properties
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
49
DTFT Properties
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
50
DTFT Properties
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
51
DTFT Properties
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
52
DTFT Properties Time scaling in discrete time is quite different from time scaling in continuous-time. Let z integer some values of z = x [ ] . If
a
is not an [ ] are undefined and a DTFT cannot be found for it. If
a
is an integer greater than one, some values of x will not appear in z [ ] [ ] because of decimation and there cannot be a unique relationship between their DTFT’s
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
53
DTFT Properties
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
54
DTFT Properties In the time domain, the response of a system is the convolution of the excitation with the impulse response y = x [ ] * h In the frequency domain the response of a system is the product of the excitation and the frequency response of the system Y ( ) = X ( ) H
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
55
DTFT Properties Find the signal energy of x = ( ) sinc (
n
/ 100 ) . The straightforward way of finding signal energy is directly from the definition
E x E x
= ¥ å
n
=-¥ x 2 .
= ¥ å
n
=-¥ ( ) sinc (
n
/ 100 ) 2 = ( 1 / 25 ) ¥ å
n
=-¥ sinc 2 (
n
/ 100 ) In this case we run into difficulty because we don't know how to sum this series.
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
56
DTFT Properties
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
57
Transform Method Comparisons
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
58
Transform Method Comparisons
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
59
Transform Method Comparisons
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
60
Transform Method Comparisons Using the equivalence property of the impulse and fact that both
e j
2 p
F
Y and d 1 = ( ) have a fundamental period of one, é
e j
p /6 éé d 1 (
F e j
p /6 1 / 12 0.9
) +
e
-
j
p /6 d 1
e
(
j F
p /6 + 1 / 12 0.9
) é éé Finding a common denominator and simplifying, Y Y y = = ( ) d 0.4391
[ ] = + y [ ] 1 = ( éé d 1
F
( 1 / 12
F j
0.8957
) 1 / 12 éé d 1 ( (
F
( ( ) 1 + 0.9
e j
p /6 d 1 + 1 / 12 p
n
/ 12 ) 1.81
1.8 cos + (
F
+ 1 / 12 ) d 1 p
n
/ 12 ) ( +
F
d 1 1 / 12 1.7914 sin 2 1.115
) ( ( ) éé
F
p + 1 / 12 / 6 ) ) éé p
n
/ 12 ) ) ( 1 0.9
e
-
j
p /6 )
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
61
Transform Method Comparisons The DFT can often be used to find the DTFT of a signal. The DTFT is defined by X is defined by X = = é é
n
=-é x [ ]
e
-
j
2 p
Fn
and the DFT
N
1 é
n
= 0 x [ ]
e
-
j
2 p
kn
/
N
. If the signal x [ ] is causal and time limited, the summation in the DTFT is over a finite range of
n
values beginning with 0 and we can set the value of
N
by letting
N
1 be the last value of
n
needed to cover that finite range. Then X X (
k
/
N
) = =
N
1 é
n
= 0 x [ ]
e
-
j
2 p
Fn
. Now let
F N
1 é
n
= 0 x [ ]
e
-
j
2 p
kn
/
N
= X ®
k
/
N
yielding
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
62
Transform Method Comparisons The result X (
k
is the DTFT of x /
N
) =
N
1 é x [ ]
e
-
j
2 p
kn
/
N
= X
n n
= 0 [ ] at a discrete set of frequencies
F
W = 2 p
k
/ =
k
/
N
or
N
. If that resolution in frequency is not sufficient,
N
can be made larger by augmenting the previous set of x [ ] values with zeros. That reduces the space between frequency points thereby increasing the resolution. This technique is called
zero padding
.
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
63
Transform Method Comparisons We can also use the DFT to approximate the inverse DTFT.
The inverse DTFT is defined by x and the inverse DFT is defined by x = = ò 1 X ( )
e j
2 p
Fn
1
N N
1 å
k
= 0
dF
X [ ]
e j
2 p
kn
/
N
.
We can approximate the inverse DTFT by x x @ @
N
1 å
k
= 0 ( ) /
N
ò
k
/
N
X (
k
/
N
1 å
k
= 0 X (
k
/
N
)
e j
2 p
Fn dF
=
N
1 å
k
= 0
N
)
e j
2 p ( )
n
/
N
-
j
2 p
n e j
2 p
k
/
N
= X (
k
/
N
) ( ) /
N
ò
k
/
N e j
2 p
n
/
N j
2 p
n
1
N
1 å
k
= 0
e j
2 p
Fn
X (
k
/
dF N
)
e j
2 p
kn
/
N
x @
e j
p
n
/
N
sinc (
n
/
N
) 1
N N
1 å
k
= 0 X (
k
/
N
)
e j
2 p
kn
/
N M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
64
Transform Method Comparisons For
n
<<
N
, x @ 1
N N
1 é
k
= 0 X (
k
/
N
)
e j
2 p
kn
/
N
This is the inverse DFT with X = X (
k
/
N
) .
Use this result to find the inverse DTFT of X ( ) = éé ( (
F
1 / 4 ) ) + (
F
+ 1 / 4 ) ) éé* d 1 with the inverse DFT.
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
65
Transform Method Comparisons
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
66
Transform Method Comparisons
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
67
The Four Fourier Methods
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
68
Relations Among Fourier Methods
Multiplication-Convolution Duality
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
69
Relations Among Fourier Methods
Parseval
’
s Theorem
Continuous Time Discrete Time 1
T
0 ò
T
0 Discrete Frequency x 2
dt
= ¥ å
k
=-¥ X
n
= å
N
x 2 = 1
N k
= å
N
X 2 2 Continuous Frequency ¥ -¥ ò ¥ å
n
=-¥ x x 2
dt
2 = = ¥ -¥ ò ò 1 X X 2
df
2
dF M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
70
Relations Among Fourier Methods
Time and Frequency Shifting
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
71
Relations Among Fourier Methods
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
72