Discrete Time Fourier Transform (DTFT) & Discrete Fourier Transform
Discrete Time Fourier Transform (DTFT) & Discrete Fourier Transform
Discrete Time Fourier Transform (DTFT) & Discrete Fourier Transform
1
The Fourier Transform of Discrete-Time Aperiodic
Signals or Discrete Time Fourier Transform
(DTFT)
The Fourier Transform of a finite energy discrete
time signal x[n] is defined as
X( w ) x[n]e
n
jwn
Ex x[n]
n
n n 2
3
Therefore, the energy relation between x[n] and
X(w) is
2 2
1
E x x[n] X( w ) dw
n 2
Or simply
1
X(w)
1 2a cos w a 2
a = 0.5 a= -0.5
w
5
0
Example: Determine the Fourier
Transform and the energy density
spectrum of the sequence A,
x[n ]
0,
0 n L 1
otherwise
Solution:
L 1
1 e jwL j( w / 2 )( L 1 ) sin( wL / 2)
X( w ) x[n
n
]e jwn
Ae jwn
0
A
1e jw
Ae
sin( w / 2)
The signal x[n] and its magnitude is plotted on the next slide.
6
x[n]
|X(w)|
7
DTFT Theorems and Properties
Fourier Transform for aperiodic energy signals
possesses a number of properties that are very
useful in reducing the complexity of frequency
analysis problems.
Linearity
If x1[n] X1(w) and x2[n] X2(w), then
a1x1[n] + a2x2[n] a1X1(w) + a2X2(w)
8
Example 1: Determine the DTFT of the signal
x[n] = a|n|
Solution: First, we observe that x[n] can be
expressed as
x[n] = x1[n] + x2[n]
where
a n , n 0 a n , n 0
x1 [n] and x 2 [n]
0, n 0 0, n 0
9
x1[n]e a e ae jw
jwn n jwn n
Now X1 ( w )
n n 0 n 0
2
1 ae jw ae jw ae jw .... 3 1
1 ae jw
ae
1 1
n n n
ae
jw
jw k ae
ae jw ( ae jw ) 2 ...
k 1 1 ae jw
Now
1 ae jw 1 a2
X( w ) X1 ( w ) X 2 ( w ) jw
1 ae 1 ae jw
1 2a cos w a 2
10
Time Shifting
If x[n] X(w) then x[n-k] = e-jwkX(w)
Proof: F x[n k ] x[n k ]e jwn
n
Let n – k = m or n = m+k
F x[n k ] x[m]e jw ( m k )
e jwk
x[m ]e jwm
e jwk
X( w )
m m
jwn
Therefore X( w ) x[n]e
n
jwn
x1[k ]x 2 [n k ]e
n k
Interchanging the order of summation and making
a substitution n-k = m, we get
X( w ) x1 [k ] x 2 [m ]e jw ( m k )
k m
jwk
jwm
x1 [k ]e 2 x [m ]e X1 ( w ) X 2 ( w ) 12
k m
Example 2: Determine the convolution of
the sequences x1[n] = x2[n] = [1, 1, 1]
1
Solution:
X1 ( w ) X 2 ( w ) x1[n]e
n
jwn
1
x [n
n 1
]e jwn
Correlation Theorem:
If x1[n] X1(w) and x2[n] X2(w)
Then rx1x2 Sx1x2 = X1(w)X2(-w)
where Sx1x2 is called the cross-energy density
spectrum.
14
The Wiener-Khintchin Theorem:
Let x[n] be a real signal. Then rxx[k] Sxx(w)
In other words, the DTFT of autocorrelation function is
equal to its energy density function. It means that auto
correlation and ESD of a signal contain same information
about signal.
Proof: The autocorrelation of x[n] is defined as
rxx[n] x[k ]x[k n]
k
Now
jwn
F[rxx[n]]
n
k
x[k ]x[k n ]e
Re-arranging the order of summations and making
Substitution m = k+n we get
15
jw ( m k )
F[rxx[n]] x[k ] x[m] e
k m
jwm
x[k ]e x[m]e X ( w) X ( w) | X ( w) |2 S xx w
jwk
k m
Frequency Shifting:
If
x[n] X( w )
then
e jw 0n x[n] X( w w 0 )
17
Parseval’s Theorem:
If x1[n] X1(w) and x2[n] X2(w) then
1
n
x 1 [n ]x *
2 [n ]
2
X 1 ( w ) X *
2 ( w )dw
1 1
Proof: R .H.S. X1 w X 2 w dw x1 ne jwn X*2 ( w )dw
*
2 2 n
1
x1 [n] X *
2 ( w )e jwn
dw x 1 [n ]x 2 [n ] L .H .S
*
n 2 n
Proof: 1
F x1[n]x 2 [n] x [n]x [n]e
1 2
jwn
X 1 e j n
d x 2 [n ]e jwn
n n 2
1 j( w ) n 1
X1 d x 2 [n]e X1 X 2 ( w )d
2 n 2
19
Differentiation in the Frequency Domain:
If x[n] X(w) then nx[n] jdX(w)/dw
Proof: dX( w ) d jwn
d jwn
dw
dw n
x[n]e x[n] e
n dw
dX( w )
j nx[n]e jwn
dw n
or dX ( w)
j F [nx[n]]
dw
20
The Frequency Response Function:
The response of any LTI system to an arbitrary input
signal x[n] is given by
y[n] h[k ]x[n k ]
k
(1)
A h[k ]e jwk e jwn
k
22
As a result of this characteristics behavior, the exponential
signal Aejwn is called an eigenfunction of the system. An
eigenfunction of a system is an input signal that produces an
output that differs from the input by a constant
multiplicative factor. The multiplicative factor is called an
eigenvalue of the system.
23
Example: Determine the magnitude and phase
It follows that
H(w) = 1/3(ejw +1 + e-jw) = 1/3(1 + 2cosw)
Hence
|H(w)| = 1/3|1+2cosw| and
( w) tan 1 (0) 0
24
Example:An LTI system is described by the
following difference equation:
y[n] = ay[n-1] + bx[n], 0<a<1
(a) Determine the magnitude and phase of
the frequency response H(w) of the system.
(b) Choose the parameter b so that the
maximum value of |H(w)| is unity.
(c) Determine the output of the system to
the input signal
x[n] = 5 + 12sin(/2)n – 20cos (n + /4)
25
Solution:
(a) The frequency response is
jw
Y( w ) ae Y( w ) bX( w )
jw
(1 ae )Y( w ) bX( w )
Y ( w) b b b
H ( w)
X ( w) 1 ae jw
1 a(cos w j sin w) 1 a cos w ja sin w
Now
b b
H ( w)
1 a cos w a sin w
2 2
1 a 2 2a cos w
and a sin w
1
( w ) tan
1 a cos w
26
(b) It is easy to find that |H(w)| attains its
maximum value at w = 0. At this frequency,
we have
b
H ( 0) 1 Which implies that b = ±(1-a).
1a
At b = (1-a), we have
1a a sin w
H( w ) 1
1 a 2 2a cos w and ( w ) tan 1 a cos w
tan 1 a tan 1 ( 0.9) 420 27
2
For w = , 1a
| H( w ) | 0.053
1 a
( ) 0
y[n] 5 H(0) 12 H sin n 20 H( ) cos n
2 2 2 4
5 0.888 sin( n 42 ) 1.06 cos( n )
2
0
4
28
Response to aperiodic input signals
Consider the LTI system of the following figure
where x[n] is the input, and y[n] is the output.
x[n] y[n]
LTI System
h[n], H(w)
31
DTFT and DFT
The DTFT of an aperiodic discrete time
signal is defined as
X ( w) x[n]e (1)
jwn
n
32
The DFT is periodic with period N.
N 1
Proof: X[k ] x[n]e jk 2 n / N
n0
N 1
X[k N] x[n]e j( k N ) 2 n / N
n0
N 1
x[n]e jk 2 n / N e j 2 n
n0
Since e-j2n = 1
N 1
X[k N] x[n]e jk 2 n / N
n0
X[k ]
proved
33
Example 1: Find the DFT of the following sequence
[1 0 0 1]
Solution:
N 1 3 3
X[k ] x[n]e jk 2 n / N x[n]e jk 2 n / 4 x[n]e jkn / 2
n0 n0 n 0
Now
3
X[0] x[n] x[0] x[1] x[ 2] x[ 3] 1 0 0 1 2
i 0
3
X[1] x[n]e jkn / 2 x[0] 0 0 x[ 3]e j3 / 2
n0
j3 / 2
1 1.e 1 cos( ) j sin( ) 1 j
3
2
3
2
3
X[2] x[n]e jn x[0] x[3]e j3 n 1 1.[cos( 3n ) j sin 3n ] 0
n0
X [3] 1 j 34
Example 2: Find the IDFT of the sequence
[2 1+i 0 1-i]
Solution: x[n] X[k ]e jk 2 n / N
1 N 1
N k 0
1 N 1 1
Now x[0] X [k ] X [0] X [1] X [2] X [3] 1
4 k 0 4
1 3 1 3
x[1] X[k ]e jk 2 / 4
X[k ]e jk / 2
4 k 0 4 k 0
j / 2 j j3 / 2
X[0] X[1]e X[2]e X[3]e 0
Similarly,
37
Solution: The input sequence has length L = 4 and the
impulse response has length M = 3. Linear convolution
Of these two sequences produces a sequence of length
N = 6. Consequently, the size of the DFTs must be at
least six. For simplicity, we compute eight point DFTs.
7
X[k ] x[n]e j 2 kn / 8
n0
n0