CHAPTER 3: THE DISCRETE –TIME FOURIER ANALYSIS
CHAPTER OBJECTIVES
Upon a successful completion of this chapter, the student will be able to:
Understand the properties of the Discrete Time Fourier Transform (DTFT).
Represent the LTI System in the Frequency Domain.
Understand the effect in the frequency domain of sampling a given signal
in the time domain.
Reconstruct the continuous time signal from its samples using ideal lowpass
filter.
LECTURE # 4
CHAPTER OUTLINES
3.1 DISCRETE –TIME FOURIER TRANSFORM (DTFT)
3.1.1 PROPERTIES OF DTFT
3.1.1.1 PERIODICITY
3.1.1.2 LINEARITY
3.1.1.3 TIME SHIFTING
3.1.1.4 FREQUENCY SHIFTING
3.1.1.5 SYMMETRY
3.1.1.6 FOLDING
3.1.1.7 CONVOLUTION
3.1.1.8 MULTIPLICATION
3.1.1.9 ENERGY Lecture # 4 1
EXAMPLE 3.1
3.2 Frequency Domain Representation of LTI System
EXAMPLE 3.2
LECTURE # 5
3.3 RELATIONSHIP BETWEEN FREQUENCY RESPONSE AND DIFFERENCE
EQUATION FOR LTIS
EXAMPLE 3.3
EXAMPLE 3.4
3.4 SAMPLING OF ANALOG SIGNALS
3.4 SAMPLING THEOREM
Lecture # 4 2
3.1 DISCRETE –TIME FOURIER TRANSFORM (DTFT)
The discrete-time Fourier Transform
xn
xe xn xne
jw jwn
n n
The Inverse discrete-time Fourier Transform (IDTFT)
xn X e
1
X e .e dw
1 jw jw jwn
2
Notes:
• X(ejw) is a complex valued continuous function
• w = 2π f [rad/sec]
• f is the digital frequency measured in [ C/S]
Lecture # 4 3
3.1.1 PROPERTIES OF DTFT
3.1.1.1 PERIODICITY
X e jw
Is periodic with period 2π
X e jw X e j w2 X e jwe j 2 X e jw .1 X e jw
Therefore, we need for analysis only period of X(ejw) for w 0,2
w ,
Not for the whole domain w
Lecture # 4 4
3.1.1 PROPERTIES OF DTFT (Contd.)
3.1.1.2 LINEARITY
x1 n x2 n x1 n x2 n
3.1.1.3 TIME SHIFTING
A shift in the time domain corresponds to the phase shifting
xn k X e e
jw jwk
3.1.1.4 FREQUENCY SHIFTING
Multiplication by a complex exponential corresponds to a shift in the frequency domain
xne jwo n X e j wwo
Lecture # 4 5
3.1.1 PROPERTIES OF DTFT (Contd.)
3.1.1.5 SYMMETRY
For real-valued is conjugate symmetric
xn, X e jw
X e jw X e jw
ReX e ReX e
jw jw Even Symmetry
ImX e ImX e
jw jw Odd Symmetry
X e jw X e jw Even Symmetry
X e X e
jw jw
Odd Symmetry
Therefore, to plot X(ejw) we need to consider a half period of X(ejw)
Generally, in practice this period is chosen to be w 0,
Lecture # 4 6
3.1.1 PROPERTIES OF DTFT (Contd.)
3.1.16 FOLDING
Folding in the time domain corresponds to the folding in the frequency domain
x n X e jw
3.1.1.7 CONVOLUTION
This is one of the most useful properties that make the system convenient for analysis
x1 n x2 n x1 n.x2 n X1 e X e
jw
2
jw
x(n) h(n) yn xn hn
Time Domain X e jw
H(ejw)
Y e jw X e jw H e jw
Frequency Domain
Lecture # 4 7
3.1.1 PROPERTIES OF DTFT (Contd.)
3.1.1.8 MULTIPLICATION
This is dual to the convolution property
x1 n.x2 n x1 n x2 n
3.1.1.9 ENERGY
The energy of the sequence x(n) can be written as :
X e
E xn
1 jw 2
2
dw
2
This is known as the Parseval’s Theorem
Lecture # 4 8
EXAMPLE 3.1
Consider the signal xn 0.5 U n
n
a- Determine its DTFT.
b- Evaluate X(ejw) at w = 0, 0.25π, 0.5π , 0.75 π and π
c- Plot its magnitude , angle, real part and imaginary part
Solution:
a- Since the signal x(n) is absolutely summable, therefore, DTFT exists:
xne
jwn
0.5 e jwn
jw n
X e
n 0
0.5 e
jw n 1
0
1 0.5 e jw
cosw j sin w cosw j sin w
X e jw
e jw
jw
e 0.5 cosw j sin w 0.5 cosw 0.5 j sin w
Lecture # 4 9
X e jw
cosw j sin w cosw 0.5 j sin w
cosw 0.52 sinw2
X e
jw cosw 0.5cosw sinw jsinwcosw sinwcosw 0.5 sinw
2 2
cosw sinw 0.25 cosw
2 2
X e
jw 1 0.5 cosw j 0.5 sin w
1.25 cosw
1 0.5 cosw
X e jw
1 0.5 cosw2 0.5 sinw2
Re X e jw
1.25 cosw
1.25 cosw2
0.5 sin w
X e jw tan 1
0.5 sin w
Im X e jw
1.25 cosw
1 0.5 cosw
Lecture # 4 10
Magnitude Response
Magnetude Part Real PartPart
Magnetude
2 2
1.8 1.8
1.6 1.6
Magnetude
1.4
Magnetude
1.4
1.2
1.2
1
1
0.8
0.8
0.6
0.6 0 0.5 1 1.5 2 2.5 3 3.5
0 0.5 1 1.5
Frequency 2
[rad\sec] 2.5 3 3.5 Frequency
Frequency in Pi units
[rad/sec]
frequency in pi unitsude Imaginary
Phase Response
Angle Part ImaginaryPart
Part
0 0
-0.1 -0.1
-0.2 -0.2
Magnetude
Magnetude
-0.3 -0.3
-0.4 -0.4
-0.5 -0.5
-0.6 -0.6
-0.7 Lecture # -0.7
4 11
0 0.5 1 1.5 2 2.5 3 3.5 0 0.5 1 1.5 2 2.5 3 3.5
frequency in pi unitsude
Frequency [rad/sec] frequency in[rad/sec]
Frequency pi unitsude
3.2 Frequency Domain Representation of LTI System
The discrete-time Fourier transform of an impulse response is called
the frequency response or Transfer function of a LTI system
n hn
H e
LTI System
jw
1
hne
jwn
H e jw
n
For an arbitrary summable sequence x(n) as an input with impulse response h(n)
xn hn
yn xn hn
X e jw
He jw
Y e jw X e jw H e jw
Hint: yn Y e
1 jw
Lecture # 4 12
3.2 Frequency Domain Representation of LTI System (Contd.)
Special Cases :
Case 1:
If xn Ae jwo n complex exponential
yn A H e e jwo j wo n H ( e jwo )
Case 2:
If xn A coswo n Sinusoidal input
yn A H e cosw n H e
jwo
0
jwo
This is called the steady state response of the system yss n
Lecture # 4 13
EXAMPLE 3.2
hn 0.9 U n
n
For the system described by its impulse response
Do the following
a- Determine the frequency response
b- Plot the magnitude and phase responses
c- Calculate the steady state response for the input xn 0.1U n
Solution
hne
a- Using DTFT we find :
0.9 e jwn
jwn
jw n
He
1 n n 0
0.9e
jw n 1
n 1 0.9e jw
1 0.9 cosw j 0.9sin w
He
jw 1
1 0.9 cosw 0.9 sinw
Hence 2 2
Lecture # 4 14
H e jw 1
1
1 0.9 cosw2 0.9 sinw2
1 2 0.9 cosw 0.9 cosw sin w
2 2 2
H e jw
1
1.81 1.8 cosw
0.9 sin w
and
H e jw arctan
1 0.9 cosw
b- The magnitude and phase plots
Magnitude Response
Phase Response 10
0
9
-0.05
8
-0.1
7
6
Phase in Radians
-0.15
|H|
5
-0.2
4
-0.25
3
-0.3
2
-0.35 1
0
-0.4 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Frequency in pi units
Frequency in pi units
Lecture # 4 15
The steady state response [ at A = 0.1, θ = 0, wo = 0] is given by :
yss n A H e jw cos wo n H e jwo
yss n 0.1 H e cos 0 n 0 H e
0
jw0
yss n 0.1 H e0 0.110 1
Lecture # 4 16
3.3 RELATIONSHIP BETWEEN FREQUENCY RESPONSE
AND DIFFERENCE EQUATION FOR LTIS
When a LTIS is represented by the Difference Equation (DE) :
M N
yn bi xn i ak yn k
i 0 k 1
Take the DTFT for both sides :
b X e e e
M N
Ye jw
i
jw jwi
ak Y e jw jwk
i 0 k 1
N M
Y e jw 1 ak e jwk X e jw bi e jwi
k 1 M
i 0
a e jwi
jw i
Ye
He jw
i 0
X e jw N
1 bk e jwk
k 1
Lecture # 5 17
EXAMPLE 3.3
A LTI system is specified by the difference equation as:
yn 0.8yn 1 xn
a- Determine |H(ejw)|
b- Calculate the steady state response yss (n) that corresponds to the input x(n)
xn cos0.05nU n
Solution :
a- Take the DTFT for both sides or apply the above equation:
Y e jw 0.8Y e jw e jw X e jw
H e
jw Y e jw
1
X e 1 0.8e jw
jw
Lecture # 5 18
b- When xn cos0.05n
wo 0.05 and 0
yn A H e jw cos wo n H e jwo
at wo = 0.05 π
H e
1 j 0.5377
jw
4.0928e
1 0.08e j 0.05
Therefore,
yn 4.0928 cos0.05n 0.5377
4.0928 cos0.05 n 3.42
This means that at the output, the sinusoidal is scaled by 4.0928 and
shifted by 3.42 samples
Lecture # 5 19
EXAMPLE 3.4
A third order low pass filter is described by the difference equation:
yn 0.081xn 0.0543xn 1 0.0543xn 2 0.0181xn 3
1.76 yn 1 1.1829 yn 2 0.27814 yn 3
a- Determine H(ejw)
b- Plot the magnitude and phase response of the filter.
c- Calculate the steady state response yss(n) that corresponds to the
input x(n)= 2 cos (0.5π n- π/4)
Solution Apply the above procedures as in Example 3.3 .
Magnitude Response Phase Response
1.4 4
1.2 3
2
1
Phase in Radians
1
0.8
|H|
0
0.6
-1
0.4
-2
0.2 -3
0 -4
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Lecture # 5 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 20
0.9 1
Frequency in pi units Frequency in pi units
3.4 SAMPLING OF ANALOG SIGNALS
• The sequence x(nT) is obtained from a continuous time signal x(t) by sampling
• This is done multiplying a periodic impulse train s(t) [sampling function] by x(t)
• The period Ts is called the sampling period and Fs =1/Ts is the sampling frequency
ws 2Fs
xs t st .xt
xt
st t nT s
n Sampling Function
st t
st
Ts
xt xs t
xs nTs t
0 Ts 2Ts 3Ts 4Ts 5Ts …. nTs Lecture # 5 21
Therefore, the sampled signal is given by :
xs t xnT t nT
n
From the multiplicative property, X s w is the convolution of
X jw and jw
Therefore,
X s jw X j S jw d
1
2
It is known that
2
S jw w kw s
Ts k
Since, the convolution with an impulse simply shifts a signal
X s jw X jw kw
1
X jw w wo X j w wo s
Ts k
Lecture # 5 22
X s jw X jw kw
1
s
Ts k
That is X s jw Is a periodic function of w consisting of :
1
superposition of shifted replicas of X s jw scaled by
Ts
ws 2wM ws wM wM ws 2wM ws wM wM
X jw X jw
1 1
.
w
.0
.
w
.
wM
.0
.
w M
M M
S jw S jw
2 2
.
2w
. Ts
.0 . . . . . . . . . . . .w
Ts
4ws 3ws 2ws ws 0 ws 2ws 3ws 4ws
s ws
w
s
2w s w
X s jw 1
X s jw
1 Ts .
Ts
. .2w . . .w . w. .0 w. . w. . . 2.w . . .4.w . . . . . w. ...0 w... . . . . . .
s s M
M s s w s M
M
w
ws wM
w
Lecture # 5 ws wMs 23
ws wM ws wM
If ws 2wM The signal can be recovered exactly from xs t
by means of Low pass filter with gain Ts
pt t nT
n
s
Cut off frequency greater than wM
x f t
xt x p t
H jw
X p jw
X jw
1
.. .
wM0 wM w
X p jw
1 Ts ws 2wM
. 2.w. . w. . . .0 w. .w. . .2.w.
s s M s s w
ws
H jw
wM wc ws wM Ts w
Ts
He jw
2
wc
. .0 w.
X f jw
c w
0 otherwise
. .
wM 0 wM w Lecture # 5 24
3.5 SAMPLING THEOREM
Let xt be a band –limited signal with X jw 0 for w wM .
Then xt Is uniquely determined by its samples xnTs , n 0, 1, 2,......if
Where, ws 2wM and ws 2
Ts
Given these samples, we can reconstruct x(t) by generating a
periodic impulse train.
The successive impulses have amplitudes that are
successive sample values.
This impulse train is then processed through an ideal low
pass filter with gain Ts and cut off frequency greater than ws
and less than ws –wM.
The resulting output signal will exactly equal x(t).
Lecture # 5 25