CEN352 Digital Signal Processing: Lecture No. 08
CEN352 Digital Signal Processing: Lecture No. 08
Mirza
Lecture No. 08
Date: September 29th, 2012
or
𝑵 𝑴
It should be noted that 𝒚(𝒏) is the current output, which depends on the past output
samples 𝒚(𝒏 − 𝟏), 𝒚(𝒏 − 𝟐), … , 𝒚(𝒏 − 𝑵), the current input sample 𝒙(𝒏), and the past input
samples 𝒙(𝒏 − 𝟏), 𝒙(𝒏 − 𝟐), … , 𝒙(𝒏 − 𝑴).
Example 3.5
Given the following difference equation
Solution
The general format of the difference equation for a causal LTI system is given by Equation
(3.13), i.e.,
𝒚(𝒏) = −𝒂𝟏 𝒚(𝒏 − 𝟏) − 𝒂𝟐 𝒚(𝒏 − 𝟐) − ⋯ − 𝒂𝑵 𝒚(𝒏 − 𝑵)
(3.13)
+𝒃𝟎 𝒙(𝒏) + 𝒃𝟏 𝒙(𝒏 − 𝟏) + 𝒃𝟏 𝒙(𝒏 − 𝟐) + ⋯ + 𝒃𝑴 𝒙(𝒏 − 𝑴)
𝒂𝟏 = −𝟎. 𝟐𝟓, 𝒃𝟎 = 𝟏
Lecture No. 08
Date: September 29th, 2012
Example 3.6
Solution
The general format of the difference equation for a causal LTI system is given by Equation
(3.13), i.e.,
𝒚(𝒏) = −𝒂𝟏 𝒚(𝒏 − 𝟏) − 𝒂𝟐 𝒚(𝒏 − 𝟐) − ⋯ − 𝒂𝑵 𝒚(𝒏 − 𝑵)
(3.13)
+𝒃𝟎 𝒙(𝒏) + 𝒃𝟏 𝒙(𝒏 − 𝟏) + 𝒃𝟏 𝒙(𝒏 − 𝟐) + ⋯ + 𝒃𝑴 𝒙(𝒏 − 𝑴)
𝒃𝟎 = 𝟏
𝒃𝟏 = 𝟎. 𝟓
With the obtained unit impulse response , we can represent the linear time-invariant system as
in Figure 3.14.
𝒙(𝒏) 𝒚(𝒏)
𝒉(𝒏)
Lecture No. 08
Date: September 29th, 2012
Example 3.7
Given the linear time-invariant system
Solution
𝒙(𝒏) 𝒚(𝒏)
𝒉(𝒏) = 𝟎. 𝟓 𝜹(𝒏) + 𝟎. 𝟐𝟓 𝜹(𝒏 − 𝟏)
From this result, it could be noted that if the difference equation without the past output
terms, 𝒚(𝒏 − 𝟏), 𝒚(𝒏 − 𝟐), … , 𝒚(𝑵), that is the corresponding coefficients 𝒂𝟏 , 𝒂𝟐 , … , 𝒂𝑵 , are
zeros, the impulse response 𝒉(𝒏) has a finite number of terms. We call this a finite impulse
response (FIR) system.
In general, we can express the output sequence of a linear time-invariant system from its
impulse response and inputs as:
Equation (3.15) is called the digital convolution sum. We can verify Equation (3.15) by
substituting the impulse sequence 𝒙(𝒏) = 𝜹(𝒏) to get the impulse response
𝒉(𝒏) = ⋯ + 𝒉(−𝟏)𝜹(𝒏 + 𝟏) + 𝒉(𝟎)𝜹(𝒏) + 𝒉(𝟏)𝜹(𝒏 − 𝟏) + 𝒉(𝟐)𝜹(𝒏 − 𝟐) + ⋯
where … , 𝒉(−𝟏), 𝒉(𝟎), 𝒉(𝟏), 𝒉(𝟐), … are the amplitudes of the impulse response at the
corresponding time indices.
Lecture No. 08
Date: September 29th, 2012
Example 3.8
Given the difference equation
Solution
𝒙(𝒏) 𝒚(𝒏)
𝒉(𝒏) = 𝜹(𝒏) + 𝟎. 𝟐𝟓 𝜹(𝒏 − 𝟏) + ⋯
Lecture No. 08
Date: September 29th, 2012
Therefore, we have
We also note that we have verified this only for the causal systems for the sake of
simplicity. However, this principle works for both causal and non-causal LTI systems.
It should also be noted that, in Example 3.8, the impulse response 𝒉(𝒏) contains an
infinite number of terms in its duration due to the past output term 𝒚(𝒏 − 𝟏). Such a
system is called an infinite impulse response (IIR) system.
To find the stability criterion, consider a linear time-invariant representation with all the inputs
reaching the maximum value 𝑴 for the worst case. In that case, Equation (3.15) becomes
Lecture No. 08
Date: September 29th, 2012
If the absolute sum in Equation (3.17) is a finite number, the product of the absolute sum and
the maximum input value is therefore a finite number. Hence, we have a bounded input and a
bounded output.
In terms of the impulse response, a linear system is stable if the sum of its absolute impulse
response coefficients is a finite number. We can apply Equation (3.18) to determine whether a
linear time-invariant system is stable or not stable; that is,
+∞
𝜹(𝒏) 𝒉(𝒏)
𝒏 𝒏
Linear stable
system
Example 3.9
Given the linear system of Example 3.8,
Solution
Lecture No. 08
Date: September 29th, 2012
+∞
+∞
𝒚(𝒏) = ∑ 𝒉(𝒌)𝒙(𝒏 − 𝒌)
𝒌=−∞
(3.19)
= ⋯ + 𝒉(−𝟏)𝒙(𝒏 + 𝟏) + 𝒉(𝟎)𝒙(𝒏) + 𝒉(𝟏)𝒙(𝒏 − 𝟏)
+ 𝒉(𝟐)𝒙(𝒏 − 𝟐) + ⋯
The sequences and in Equation (3.19) are interchangeable. Hence, we can also write
+∞
𝒚(𝒏) = ∑ 𝒙(𝒌)𝒉(𝒏 − 𝒌)
𝒌=−∞ (3.20)
= ⋯ + 𝒙(−𝟏)𝒉(𝒏 + 𝟏) + 𝒙(𝟎)𝒉(𝒏) + 𝒙(𝟏)𝒉(𝒏 − 𝟏)
+ 𝒙(𝟐)𝒉(𝒏 − 𝟐) + ⋯
(3.21)
𝒚(𝒏) = 𝒉(𝒏) ∗ 𝒙(𝒏)
It could be noted that for a causal system, which implies its impulse response
Lecture No. 08
Date: September 29th, 2012
+∞ +∞
(3.22)
𝒚(𝒏) = ∑ 𝒉(𝒌)𝒙(𝒏 − 𝒌) = ∑ 𝒙(𝒌)𝒉(𝒏 − 𝒌)
𝒌=𝟎 𝒌=𝟎
We shall focus on calculating the convolution sum based on Equation (3.20). The first few
outputs are give as follows
+∞
+∞
+∞
We note that the convolution sum requires the sequence 𝒉(𝒏) to be reversed and shifted.
We will need to use the reversed and shifted sequence. The reversed sequence is defined as
follows: If 𝒉(𝒏) is the given sequence, then 𝒉(−𝒏) is the reversed sequence. The reversed
sequence is a mirror image of the original sequence, assuming the vertical axis as the mirror.
Example 3.10
Given a sequence
𝟑, 𝒌 = 𝟎, 𝟏
𝒉(𝒌) = {𝟏, 𝒌 = 𝟐, 𝟑
𝟎, elsewhere
where 𝒌 is the time index or sample number,
Lecture No. 08
Date: September 29th, 2012
Solution
𝒉(𝒌)
a.
1
2
3
𝒌
-6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6
𝒉(−𝒌)
1
2
3
𝒌
-6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6
𝒉(𝒌 + 𝟑)
1
2
3
𝒌
-6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6
𝒉(−𝒌 − 𝟐)
1
2
3
𝒌
-6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6