Professional Documents
Culture Documents
DFT
transforms.
* Continuous time signals have aperiodic spectrum.
* Discrete time signals have periodic spectrum.
* Periodic signals have discrete spectrum.
* Aperiodic finite energy signals have continuous spectra.
Discrete Periodic
ie, Periodic Discrete
Aperiodic Continuous
Continuous Aperiodic
Discrete time Fourier Series The F.S. representation of an ‘N’ periodic Discrete time signal xp(n)
is expressed as,
Fourier series representation of a continuous time periodic signal can
consist of an infinite number of frequency components, where the j 2 π kn
N −1 N
∑
frequency spacing between two successive harmonically related
frequencies is 1/Tp , where Tp is the fundamental period. xp(n ) = ck e (1)
k =0
But the frequency range for discrete time signals is unique over the Where ck – the coefficients in the series representation. This can be
interval (-п, п) or (0, 2п). defined in terms of xp(n); as…
The Fourier series coefficients ck form a periodic Determine the spectra of the signals,
sequence when extended outside of the range a) x p (n) is periodic with period N=4 and -- x p (n) = {1,1,0,0}
π
k = 0,1,….N-1. b) x p (n) = cos n. ↑
3
Soln.
− j 2πkn
Hence ck+N = ck 3
a) ck = 1 ∑ x p (n) e 4 ; k= 0,1,2,3.
ie, {ck} is periodic sequence with fundamental period ‘N’. 4 n =0
− jπk
1
ck =(1 + e 2 )
4 ; k= 0,1,2,3.
Thus the spectrum of a signal x p (n) , which is periodic with
1 1 1
period N, is a periodic sequence with period ‘N’. ∴ c0 = , c1 = (1 − j ), c2 = 0, c3 = (1 + j )
2 4 4
Any ‘N’ consecutive samples of the signal or its spectrum b) In this case, f0 =1/6 and hence xp(n) is periodic with
provide a complete description of the signal in the time or fundamental period n=6. So we have,
− j 2πkn
frequency domain. 1 5
ck = ∑ x p ( n ) e 6 ; k=0,1,…….5.
6 n =0
1
However, x p (n) can be expressed as, Discret Time Fourier Transform
j 2πn − j 2πn
2πn 1 1 For Discrete time Finite duration sequences.
x p (n) = cos = e 6
+ e 6 ∞
6 2 2 X (e jω ) = ∑ x ( n) e
n = −∞
− jωn
(1)
Which is already in the form of the exponential Fourier jω
This is termed as DTFT of x(n). The spectrum X (e )is periodic with
series in eqn.----------(1) and it is apparent that c1=1/2. period 2п.
The second term in x p (n) corresponds to the term k=-1 in We can obtain the coefficients x(n) from X (e ) using the inverse
jω
eqn.-----(1). But k = -1 is same as k = 5 because of transform…
periodicity.
∴ c−1 = c5 x(n) =
1
∫ X (e
jω
) e jωn dω (2)
2π 2π
Therefore we conclude that,
c0= c2 = c3= c4 = 0 Important point to note:
∞
X (e jω ) exists only if x(n) is absolutely
c1= ½; c5 =½.
summable, that is
∑
x (n) ≺ ∞
n = −∞
2
Example 1(Contd…) Example 1(Contd…)
jπk 1⎡ π π ⎤
X (k ) =
1 1
+ e
− 1
+ e − jπk when k = 1, X (1) = 1 + cos − j sin + cos π ⎥
3 ⎢⎣
2
3 3 3 2 2 ⎦
X (1) = [1 + 0 − j − 1] = − j = ∠ − π / 2
1 1 1
1⎡ πk πk ⎤
= ⎢1 + cos − j sin + cos π k − j sin π k ⎥ 3 3 3
3⎣ 2 2 ⎦
when k = 2 , X ( 2 ) = [1 + cos π − j sin π + cos 2π ]
1
1⎡ πk πk ⎤ 3
X ( k ) = ⎢1 + cos − j sin + cos π k ⎥
X ( 2 ) = [1 − 1 − j 0 + 1] = = ∠0
3⎣ 1 1 1
2 2 ⎦
3 3 3
1⎡ 3π 3π ⎤
when k = 0, X ( 0 ) = [1 + cos 0 − j sin 0 + cos 0 ]
1 when k = 3, X ( 3) = ⎢1 + cos − j sin + cos 3π ⎥
3 3⎣ 2 2 ⎦
X ( 0 ) = [1 + 1 + 1] = 1 = 1∠ 0
1
X (3) = [1 + 0 + j − 1] = j = ∠π / 2
1 1 1
3
3 3 3
⎧ 1 π 1 1 π⎫ 1
X (k ) = ⎨1∠0, ∠ − , ∠0, ∠ ⎬
⎩ 3 2 3 3 2⎭ 0 .5
⎧ 1 1 1⎫
Magnitude function X (k ) = ⎨1, , , ⎬ 0
-1 0 1 2 3 4
⎩ 3 3 3⎭
⎧ π π⎫ π
Phase function ∠X (k ) = ⎨0,− ,0, ⎬
⎩ 2 2⎭ 2
π
−
2
-1 0 1 2 3 4
3 jπ kn
−
= ∑ x (n )e
n =0
2
; for k = 0,1,2 ,3
-1 0 -5 0 5 10
3
Example 2(Contd…) Example 2(Contd…)
jπk j 3πk
− −
X (k ) = x (0)e0 + x (1)e 2
+ x ( 2)e − jπk + x (3)e 2
−π
-1 0 -5 0 5 10
4
Example 4 Example 3(Contd….)
jnπ j 3πn
Find the IDFT of the sequence X ( k ) = {3, 2 + j, 1, 2 − j} 1⎡ jπ n ⎤
x(n ) = ⎢3 + ( 2 + j ) e + e + ( 2 − j ) e
2 2
⎥
N −1 j 2πkn 4⎣ ⎦
IDFT {X ( k )} = x ( n ) =
1
N
∑ X ( k )e
k =0
N
; for n = 0,1,2,..., N − 1 1⎡
4⎣
⎛ π
⎝ 2
π ⎞
2 ⎠
⎛ 3π
⎝ 2
3π ⎞⎤
x(n) = ⎢3 + (2 + j)⎜cos n + j sin n⎟ + (cosπn + j sinπn) + (2 − j)⎜cos n + j sin n⎟⎥
2 ⎠⎦
Here L = 4. So N should be at least equal to L, i.e., 4 1
[3 + (2 + j ) + 1 + (2 − j )] = 2
x ( 0) =
3 j 2πkn 4
1
x(n) = ∑ X (k )e ; for n = 0,1,2,3
4 k =0
4
x (1) = [3 + ( 2 + j ) j − 1 + ( 2 − j )( − j )] = 0
1
4
x ( 2) = [3 + ( 2 + j )( −1) + 1 + ( 2 − j )( −1)] = 0
jπkn 1
1 3
= ∑ X ( k )e 2 ; for n = 0,1,2,3 4
4 k =0
x (3) = [3 + ( 2 + j )( −1) + ( −1) + ( 2 − j )( j )] = 1
1
jπ n j 3π n
1⎡ jπ n ⎤ 4
x(n ) = ⎢ X ( 0) e + X (1) e + X ( 2 ) e + X ( 3) e
0 2 2
⎥
4⎣ x ( n ) = {2 ,0,0 ,1}
⎦
represented by x’p(n)=xp(n-2,mod 4) 3
xp(n) 2
Mod 4 indicates that the sequence repeats after 4 samples.
1
This can also be represented as xp((n-2))N.
0
-5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8
5 x' p (0) = x p (( − 2 )) 4 = 3
4
3 x' p (1) = x p (( − 1)) 4 = 4
x’p(n)2
1
x' p (2) = x p (( 0 )) 4 = 1
0
-4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10
x' p (3) = x p ((1)) 4 = 2
5
Circular shift of sequences Circular shift of sequences
∞
The sequences xp(n) and x’p(n) can be conveniently x' p (n) = ∑x p ( n − lN )
represented as points on the circumference of a circle. l = −∞
∞
∑x
Now x’p(n) is simply xp(n) shifted circularly by 2 units of time.
x' p (n - k) = ( n − k − lN )
p
When the sequence is shifted 4 times it repeats itself. l = −∞
A time reversal is equivalent to plotting x(n) in a clockwise
xp(1)= 2 x'p (1)= 4
direction.
Anticlockwise direction is selected as positive direction.
5 7
xp(0)=1 x'p (2)=1 x'p (0)= 3
= x ( 0) h ( 3) + x (1) h ( 2 ) + x ( 2 ) h (1) + x ( 3) h ( 0) 4 2
1
= 0 × 2 + 1×1 + 2 ×1 + 3× 2 = 9
y(m) = {7,9,11,9}
6
Example 2 (Contd…) Example 2 (Contd…)
1 1
4 y(0)=1x2+4x1+3x2+2x1=14 1 y(1)=2x2+1x1+4x2+3x1=16
2 3 1 2 2 4 2 2
2 3
1 1
1 1
2 y(2)=3x2+2x1+1x2+4x1=14 3 y(3)=4x2+3x1+2x2+1x1=16
2 1 3 2 2 2 4 2
4 1
Ans: y(m)={14,16,14,16}
1 1
x(n) 1 h(-n) 1
3
3
y(m)={14,16,14,16} -1
2
7
Example 3 Example 3
y(0)=1x1+0x-1+0x-2+3x3+2x-1=8 y(1)=2x1+1x-1+0x-2+0x3+3x-1=-2
-1 -1
-2 -2
0 1
0 0
1 1 2 1
3 0
2 3
3 3
-1 -1
Example 3 Example 3
y(2)=3x1+2x-1+1x-2+0x3+0x-1=-1 y(3)=0x1+3x-1+2x-2+1x3+0x-1=-4
-1 -1
-2 -2
2 3
1 2
3 1 0 1
0 1
0 0
3 3
-1 -1
8
Linear and circular convolutions Linear and circular convolutions
Linear convolution is used to find the response of a system. For performing the circular convolution both the sequences
If h(n) is the impulse response and x(n) is the input, the output should be of the same length, say,N.
y(n) is given by the convolution of h(n) and x(n). If one of the sequences has length less than N, it should be
y (n ) = x (n ) ∗ h(n ) padded with zeroes so that both sequences has same length N.
This can be done either using the basic definition of The circular convolution then produces a sequence of length N.
convolution, i.e., ∞
But the linear convolution produces a sequence of length
y (n ) = ∑ h(n ) x(n − k )
k = −∞
N=N1+N2-1.
or the convolution may be converted to multiplication if the It is possible to employ circular convolution to find the output
quantities are transformed to other domains. response of systems by appending zeroes to both the
But DFT supports only Circular convolution and it cannot be sequences such that the length of sequences are both
used to find the response of a system as in the case of linear N=N1+N2-1.
convolution. Append N-N1 and N-N2 zeroes to the sequences to make the
lengths equal to N1+N2-1 and then perform circular convolution.
9
Properties of DFT Properties of DFT
Time reversal:
Circular time shift:
If X(k) ←⎯⎯→ x ( n )
DFT
If X(k) ←⎯⎯→ x (n )
DFT
x(n)e N
⎯→ X ((k − l ))N
←⎯DFT
x *( N − n) ↔ X *( K )
follows: x 2 ( n ) ←⎯ ⎯→ X 2 ( k )
DFT
X ( K ) = X ( K ) + X ( K ) + jX ( K ) + jX ( K )
e
R
o
R
e
I
o
I x 2 ( n ) ←⎯⎯→ X 2 ( k )
DFT
x1 ( n ) ⊗ x 2 ( n ) ←⎯⎯→ X 1 ( k ) X 2 ( k )
DFT
Parseval’
Parseval’s Theorem:
The energy of a finite duration sequence x(n) is given by
N -1
1 N −1
∑ x(n ) = ∑ X (k )
2 2
n =0 N k =0
10