DSP - Linear Convolution
DSP - Linear Convolution
DSP - Linear Convolution
Addition
A X(n)õ(n+1) {0, =
2, 0, 0, 0}
n
-1 01 2
EAddition
x(n) (n) ={0,0. 1.0,0)
-2-1 01 2
EAdition
A x(n) 8{n-1) = {0, 0, 0, 2 ,0}
-2 -1 l01 2
OEAddition
x(n)&(n-2) = {0, 0, 0, 0,1)
n
2-1 lo 1 2
n
-2-1 01 2
Fig. 3.22. x (n) =Addition of all decomposed samples
An im amount. -
d e n n i t i o n of the frequency
r e s p o n s e .
transform pair.
ponse was then interpreted as a Fourier
136
-k)
k)Ty (n) = h (n
(i)&(n- both sides by x (k), we get,
multiplying
Now,
k) y (n) = x (k) h (n - k)
(k) 8(n
-
(ii) x
th
linear; we
can apply superposition
theorem
Since the system
both sides,
we
is
get,
Hence, taKtg
y (n) = 2 x (k) h (n -
k)
(iv) x(k) 8 (n -k) k=-0o
k=-
Thus, we have
y (n)=2
x (k) h (n -
k
= - 0o
k)
Therefore, x (n)» h (n) =
k=-
In this case, we can say that the behaviour of Ltl system is completelv a
impulse response.
char
Key Note:Although the convolution-sum expression is analogous to thecomvo
continuous-time linear system theory, the convolution sum should not he
voluta
approximation to the convolutional integral. The convolution integral plavs 1
nainira
roleincontinuous-time linear system theory. Basically, the convolution sum,
theoretical importance, often serves as an explicit realization of a
discrete-time
Thus, it is important to gain some insight into the properties of the convolution
calculations.
s
We will K=~oo
have to
For n = 0, we calculate output for
get, different values of n.
y
(0) x(k) h ( -k)
Note that k= -
For n= 1, h(-k)
we
indicates folding of h (k).
get,
DISCRETE-TIME SYSTEMS 137
k) .(3.17)
y (1)=2 x(k)h (1-
Here, the term h (1 - k) can be written as h (-k + 1). Thus, equation (3.17) becomes,
(iv) Summation: It indicates addition of all product terms obtained because of multiplication
of x (k) and h (n - k).
Solution: If the sequences are given in terms of 'n', then, we obtain x (k) and h (k) by replacing'n' by k'.
Therefore, x (k) = {1, 2, , 2}
and h (k) {1, 1, 1}
Arrow is not mentioned in any sequences. So, by default it is at first position.
or x (k) = {1, 2, 1, 2}
k)
y (n) =2x (k)
h (n
-
of n from 0 to 5,
different values
substituting
Now. we shall calculate output y (n) by
Calculation of y (0)
Putting n = 0 in equation (ii), we get,
3
k) x (k) h (-k)
(k) (0
- =
x
(0)=
k =0
k=0
method. Here, h (-k) indicates folded t
Now. we have to perform calculations using graphical
h (k)
(i) Sketch x(k)
Sketch of x(k) is as shown in figure 3.23.
X(k)= (1. 2. 1. 2)
hk) = {1, 1, 1}
h(-k)={1,1,1)
-2 -1 0
O 1 2 3 O 12
Fig. 3.23. Sequence x (k) Fig. 3.24. Sequence h (K) Fig. 3.25. Sequence h (-k)
i ) Sketch h (k)
Sketch of h(k) is shown in figure 3.24.
(iii) Foldh (k) to obtain h (-k)
Sketch of h (-k) is shown in figure 3.25.
iv) We obtain multiplication of x (k) and h (-k). This
shown in figure 3.26.
multiplication takes place on sample to sample Dasis
-2-1 lo1 2 3
k
Multiplication
h-k)={1, 1,1,0,0,0}
-2-1 l0 1 2 3
x(k) h(-k) =
{0, 0, 1,0, 0, 0}
Fig. 3.26.
Product x(k) and h (
DISCRETE-TIME SYSTEMS
T h e s u m m a t i o n
it
Here, h (1 -k) can be written as h (-k+ 1). Thus, equation (iv)
becomes,
3
-2-1 0 1 2 3
y (n) = x (k) h(- k + 1)
.(v
k = 0
Multiplication
) Now, h (-k + 1) indicates delay of h - k ) by '1' sample.
Hence, we shift the sequence in figure 3.25 towards right by 1'sample. h(-k+1) ={0, 1,1, 1,0,0}
This sequence is shown in figure 3.27.
Gi) Let us obtain multiplication of x (k) and h (-k + 1). It is
shown in figure 3.28. k
(i) Now, according to equation (v), we have to add all product -2-1 0 1 2 3
terms shown in figure 3.28 to obtain y(n).
Thus, y (1)= (1 x 1) + (2 x 1) = 1 +2
x(k) h(-k+1) = {0, 0, 1, 2, 0, 0}
or y (1) = 3
Calculation of y (2) 2
Putting n =2 in equation (1i), we get,
B 2-1 01 2 3
y (2) = x (k) h (2 - k)
..(vi) Fig. 3.28. Product ofx (k)
k = 0
and h (-k+ 1)
The term h (2-k) is same ash(-k+ 2).
3 X(k) = {1, 2, 1,2}
k
0 1 2
Fig.3.29. Sequence h(-k+ 2) lo1 2 3
Ce obtain multiplication of x (k) and h (-k+2). It is shown
in figure 3.29
Thus, (2)
or yy (2)= (1
(2) = 4
x1) + (1
2) + (1 x x 1) =1+2+1
Caleulation of y (3)
utting n =
3 in
uation (ii), 01 2 3
we get,
h (-k+
y (3)= x (k) h (3 - k) Fig. 3.30. Product of x (k) and
..(viii)
= 0
h (-k t 3).
The term h (3 -
k) is same as
+3)
h(-k
Thus v(3)=2 x(k)k 0
It in Bhown in figure 3:1
3) indicates delay of h (- k) by '*' samples.
() Here h (-k +
h(-k+3) {0. 1, 1, 1)
1 1
o ii
1 23
k
X(k) {1. 2,
=
1, 2)
1
k
01 2 3
Multiplication
h-k+3) =(0. 1, 1,1)
n
01 2 3
k
01 2 3
Fig. 3.32. Product x (k) and h
ii) Let us add all (- k +
3)
product term to obtain y (3).
Therefore, y3) =(0 x 1) +(1 x 2) +(1 x
or, y3) = 5
1) + (2 x
1) +0 +2+1+2
Calculation of y(4)
Putting n 4 in equation (ii),
=
h(-k+4) ={0, 0, 1,1,1
we get,
1 1 1
yl4)=x (k) h(4 -k)
k =0
The termh (4- is
k) same as h
-k+ 4). ot233
Thus, 4
Sequence
h(-R**
Fig. 3.33.
y4) =x (k)
() Here, h-k+
4)
h(-k+4)
k 0
.xi)
) Let us indicates delay
obtain multiplication of xof(k)h(- k) by 4' samples. It is
andh-k+ shown in figure
4). This
sequence is shown
3.0
shown in
in figure 3.34.
E
DISCRETE-TIME SYSTEMS
x(k)= {1., 2, 1,2, 0} 141
0 1 2 K
EMultiplication
h(-k+4) (0.0, 1,1, 1)
32 ''
01 2 3 4
k
0 1 2 3 4
Fig. 3.34. Product of x (k) and h(-k+ 4)
(ii) Let us add all product terms to obtain y (4). h-k+5) ={0. 0,0, 1.1, 1}
Therefore, y +(1
(4)=x x0)+(2 x 0) 2
1) + (2 x 1) + (0 x 1) = 0 +0 +1+2+0
y (4) = 3
or
Calculation of y (5) l01 2 3 4 5
Putting n =5 in equation (i), we get,
Fig. 3.35. Sequence h (-k+ 5)
To12
y(n)= {1,3, 4, 5, 3, 2)
0, 0, 2,0, 0}
x(k) h(-k+5) {0.
=
ce
h-k+
23 4 5
3.36. Product of x (k) and
n Fig.
O 1 2 3 4 5 h(-k+ 5)
Fig.3.37. Sketch of y (n) {1, 3, 4, 5,
= 3
,2
24