Signals and Systems
Signals and Systems
Signals and Systems
One of the main advantages of discrete-time signals is that they can be processed and
represented in digital computers. However, when we examine the definition of the Fourier
transform of discrete-time signal
x n e
X e j j n
DTFT
n
This implies that the Fourier transform is not suitable for the processing of discrete-time
signals in digital computers.
DFT is given by
N 1 N 1
X k x n e x n W Nnk , for 0 k N 1
j 2N kn
n 0 n0
IDFT
N 1 N 1
x n X k e X k W
j 2N kn nk
N , for 0 n N 1
k 0 k 0
Twiddle factor
k m
2. Time Shift: x (n m ) X ( k )e j 2km / N X ( k )WN
4. Duality : N 1 x( n) X ( k )
N 1
why? X (k ) x(m)e j 2mk / N
m 0
N 1
DFT ( X ( n )) X (n)e j 2nk / N
n 0
DFT of x(m)
x( n ) x( N n )
N 1
1
N
X (k )e j 2k ( N n ) / N
k 0
j 2k ( N n ) / N
e e j 2kN / N e j 2kn / N
N 1
1
x( n )
N
X (k )e j 2kn / N
k 0
N 1
1
DFT ( N 1 X ( n ))
N
X (n )e j 2nk / N x( k )
n 0
5. Circular convolution
N 1
x(m) y (n m) x(n)y(n) X (k )Y (k ) circular convolution
m0
6. Multiplication
N 1
x ( n) y ( n ) N
1
X (m)Y (k m) N 1 X (k )Y (k )
new sequence m0
z ( n) x( n) y ( n)
7. Parseval’s Theorem
N 1 N 1
| x(n) | 2 N 1 | X (k ) | 2
n0 k 0
N
x[ n] ak
n N k N
For k = 0 1 0 0 1 2
3 3 6
j
X (1) x(nT )e jnT x(nT )e j 2n / N 1 0 0 1e 4
1 j
k=1 n 0 n 0
3
X (2) x(nT )e j 2n 2 / N 1 0 0 1e j 3 1 1 0
k=2 n0
3 9
j
X (3) x(nT )e j 2n 3 / N
1 0 0 1e 2
1 j
k=3 n 0
Example 2: What is the DFT of the signal[n]?
x[n] = [n]
X[k] = = k[0] = .
This means that all frequencies are equally strong present in the impulse signal. So its frequency
spectrum is flat.
Example 3: What is the DFT of a shifted impulse [n1]?
x[n] = [n1]
In this case again all frequencies X[k] are equally strong (they have the same modulus ), but now
the frequency spectrum consists of complex numbers.
x[n] = cos(n 50).
We could calculate X[k] in the same way as in the previous examples, but we can also directly
find X[k] because we may write cos(50) as:
5 5
x[n] = cos(n50) = ein 0 + ein 05[n] + 5[n].
As k+N[n] = k[n] we obtain:
x[n] = 5[n] + N5[n].
So X[5] = and X[N5] = and all other frequencies are zero:
X[k] = 0, for 0 k < N and k 5 and k N5.
Example 5: What is the DFT of a shifted signal x[nn0]?
Denote the DFT of the shifted signal by X'[k] and of the original signal by X[k].
X'[k] = = =
ik0n0 =
= X[k] e X[k] k[n0] with 0 =
unit circle. If X(z) is sampled at the N equally spaced points on the unit circle. If X(z) is
sampled at N equally spaced pomts on the unit circle.
We obtain
Expression is (2) identical to the Fourier transform X(w) evaluated at the N. equally spaced.
Frequencies
If the sequence x(n) has a finite duration of length N or less, the sequence can be
recovered from its N-point DFT. Hence its Z-transform is uniquely determined by its N-point
DFI’. Consequently, X(z) can be expressed as a function of the DFT {X(k)} as
follows
This expression for Fourier transform is a polynomial interpolation formula for X(w)
expressed in terms of the, values {x(k)) of the polynomial at a set of equally spaced
discrete frequencies
Fast fourier transform reduces the computation time. In DFT computation, number of
multiplication is N2 and the number of addition is N(N-1). In FFT algorithm, number of
multiplication is only N/2(log2N) . Hence FFT reduces the number of elements (adder,
multiplier Z &delay elements). This is achieved by effectively utilizing the symmetric and
periodicity properties of Fourier transform.
n 0 n0
j 2 / N
Denote WN e , then
N 1
X (k ) x(n)WN nk
n0
Properties of WN m :
(1) WN 0 (e j 2 / N )0 e 0 1, WN N e j 2 1
N m m
(2) W N WN
WN N m (e j 2 / N ) N m
(e j 2 / N ) N (e j 2 / N ) m
1 (e j 2 / N ) m WN m
(3) WN N / 2 e j 2 /( N / 2) / N e j 1
WN N / 4 e j 2 /( N / 4) / N e j / 2 j
e j 2 /(3 N / 4 ) / N e j 3 / 2 j
3N / 4
WN
RADIX 2
The FFT algorithm is most efficient in calculating N point DFT. If the number of point N
can be expressed as a power of 2 ie N= 2 M where M is an integer , then this algorithm is
known as radix-2 FFT algorithm.
Two-Point DFT
x(n)W2 x(n)W
n1 n
X (1) 2
n0 n0
0 1
x(0)W2 x (1)W2
(1 / 2 ) 2
x(0) x(1)W2
x(0) x(1)( 1)
x(0) x(1)
Four-point DFT
x(0), x(1), x(2), x(3)
3
X (k ) x(n)W4 nk k 0,1,2,3,
n0
3 3
X (0) x(n)W4 n 0 x(n) x(0) x(1) x(2) x(3)
n0 n0
3
X (1) x( n)W4 x (0)W4 x (1)W4 x (2)W4 x(3)W4
n 0 1 2 3
n 0
If we denote z(0) = x(0), z(1) = x(2) => Z(0) = z(0) + z(1) = x(0) + x(2)
Z(1) = z(0) - z(1) = x(0) - x(2)
v(0) = x(1), v(1) = x(3) => V(0) = v(0) + v(1) = x(1) + x(3)
V(1) = v(0) - v(1) = x(1) - x(3)
N N
g ( 0 ), g (1), , g ( 1) enen po int s
2 2
(( x(0), x(2),, x( N 2)) ( g ( r ) x(2r ))
=>
h(0), h(1),, h( N 1) odd
N
po int s
2 2
(( x(1), x(3),, x( N 1)) (h( r ) x(2r 1))
N 1
X (k ) x (n)W N
kn
n 0
N / 2 1 N / 2 1
g (r )WN h(r )W
k ( 2r ) k ( 2 r 1)
N (k 0,1,..., N 1)
r 0 r 0
N / 2 1 N / 2 1
g (r )W h(r )W
2 kr k 2 kr
N WN N
r 0 r 0
(e j 2 . / N ) 2 kr (e j 2 /(. N / 2 ) ) kr W N
2 kr kr
WN
2
N / 2 1 N / 2 1
g (r )W h(r )W
kr k kr
X (k ) N/2 WN N /2
r 0 r 0
k
G (k ) W N H (k )
( G(k): N/2 point DFT output (even indexed), H(k) : N/2 point DFT
output (odd indexed))
X ( k ) G ( k ) WN k H ( k ) k 0,1,..., N 1
N / 2 1 N / 2 1
G (k ) g ( r )WN / 2 kr x ( 2 r )WN / 2 kr
r 0 r 0
N / 2 1 N / 2 1
H (k ) h ( r )WN / 2
kr
x ( 2 r 1)WN / 2
kr
r 0 r 0
go(m)W
k km
2 W( N / 2 ) ( N / 4)
N m 0
go(0), go(1),...go( 1) k
4 GE (k ) W( N / 2 ) Go(k )
WN / 2 k WN 2 k ?
WN / 2 k ( e j 2 /( N / 2 ) ) k
( e j 2 2 / N ) k ( e j 2 / N ) 2 k
WN 2 k
=> G ( k ) GE ( k ) WN 2 k Go(k )
For 8 – point
n 0
N / 2 1 N 1
x(n)WN x(n)W
nk nk
N
n0 n N / 2
N N
k
WN 2 1 WN 2 ( 1) k
N / 2 1 N / 2 1
X (k ) x ( n )WN nk ( 1) k x ( N / 2 m )WN mk
n 0 m 0
N / 2 1
[ x ( n ) ( 1) k x ( N / 2 n )]WN nk
n 0
N / 2 1
k : even (k 2r ) X (k ) X (2r ) [ x(n) x( N / 2 n)]W
n0
N
2 rn
j 2 / N
) 2 rn (e j 2 /( N / 2) ) rn W N / 2
2 rn rn
WN (e
N / 2 1
y (n)
N / 2 1
Y (r) y ( n )WN / 2 rn Z (r )
n 0
k : odd k 2r 1
X (k ) X (2r 1)
N / 2 1
[ x(n) x( N / 2 n)]W
n 0
N
n ( 2 r 1)
N / 2 1
[x(n) x(N / 2 n)]W
n 0
N
n
WN
2 rn
z ( n)
N / 2 1
z (n)W
n 0
N
2 rn
N / 2 1
z (n)W
n 0
N /2
rn
N / 2 1
N N
z (n)W rn
Z (r ) N /2 po int DFT of z (0), , z( 1)
n0 2 2
1. At stage 1:
where x,(0), x,(1), . . . , x,(7) represent the intermediate output sequence afterthe
first iteration that becomes the input to the second stage.
2. At stage 2:
Answer