Problem Set 2 Solution: X (T + 2) 2x (T + 1)
Problem Set 2 Solution: X (T + 2) 2x (T + 1)
x(t)
−3 −2 −1 1 2 1 t
x(t + 2) 2x(t + 1)
4 4
+
3 3
2 2
1 1
−3 −2 −1 1 2 1 t −3 −2 −1 1 2 1 t
1
The output therefore is
0 t < −2,
t + 3 − 2 < t < −1,
y(t) = 4 + t − 1 < t < 0,
2(1 − t) 0 < t < 1,
0 t > 1.
x(t)
−1 1 2 t
Solution:
x(1 + t) x(1 − t)
−2 −1 0 1 t −1 0 1 2 t
x(1 − 12 t)
−2 −1 0 1 2 4 t
3. (a) Find the impulse response h(t) of a RC circuit given in Figure 1, considering zero
initial condition.
(b) For a given input x(t) = u(t − 2) find the system output y(t) using the convolution
integral.
1
Figure 1: RC circuit: R = 1Ω, C = F .
3
2
Solution:
(a) Using KVL we have
d
x(t) = RC y(t) + y(t). (1)
dt
Corresponding to input x(t) = δ(t), the output is the impulse response h(t). Using this
in equation (1), we get
d
δ(t) = RC h(t) + h(t). (2)
dt
We propose a solution h(t) = Aept u(t) to be a solution. Using this in equation (2)
Therefore, we have
1 1
RCA = 1 ⇒ A = RCp + 1 = 0 ⇒ p = − .
RC RC
Thus, the impulse response is
1 − 1 t
h(t) = e RC u(t) = 3e−3t u(t).
RC
To evaluate the integral, we first need to determine the limits of the integration as illus-
trated in Figure 2.
• For t − 2 < 0 or t < 2 there is no overlap, so y(t) = 0.
• for t − 2 > 0 or t > 2 there is overlap so,
Z t−2
e−3τ t−2
y(t) = 3 e−3τ u(τ )u(t − τ − 2)dτ = 3 |0 = [1 − e−3(t−2) ]u(t − 2).
0 −3
4. Let h(t) and x(t) be the impulse response of a system and input to the system, respectively
as defined below:
(
0 ≤ t ≤ 1,
1 t
x(t) = and h(t) = x for 0 ≤ α ≤ 1.
0 elsewhere. α
3
(a) Using convolution integral find y(t).
d
(b) What will be the value of α so that y(t) has three discontinuities only?
dt
Solution:
(a) Given
(
1 0≤t≤α
t
h(t) = x for 0 < α ≤ 1 =
α 0 elsewhere.
• For t − α ≥ 0 and t ≤ 1 or α ≤ t ≤ 1
Z t
y(t) = 1dτ = [τ ]tt−α = α.
t−α
• For t ≥ 1 and t − α ≤ 1 or 1 ≤ t ≤ 1 + α
Z 1
y(t) = 1dτ = [τ ]1t−α = 1 − t + α.
t−α
Therefore,
t 0≤t≤α
α α≤t≤1
y(t) =
1 − t + α 1 ≤ t ≤ (1 + α)
0 elsewhere.
1 α t 1 1 1 t
h(−τ )
−α τ h(−τ + t) h(−τ + t)
h(−τ + t)
h(−τ + t)
t−α t τ
t−α t τ t−α t t−α t
4
5. Consider an LTI system S and a signal x(t) = 2e−3t u(t − 1). If the output from S due to
input x(t) is y(t) and the output due to input dtd x(t) is −3y(t) + e−2t u(t), then determine
the impulse response h(t) of S.
Solution: Since x(t) = 2e−3t u(t − 1), we have
d
x(t) = −6e−3t u(t − 1) + 2e−3t δ(t − 1) = −3x(t) + 2e−3t δ(t − 1).
dt
d
Let h(t) be the impulse response of the system. Hence, output due to input dt
x(t) is
given by
d
x(t) ∗ h(t) = −3x(t) + 2e−3t δ(t − 1) ∗ h(t)
y1 (t) :=
dt
= −3(x(t) ∗ h(t)) + 2(e−3t δ(t − 1)) ∗ h(t). (4)
Using the fact that y(t) = x(t) ∗ h(t) and y1 (t) = −3y(t) + e−2t u(t) in equation (4), we
have
−3y(t) + e−2t u(t) = −3y(t) + 2(e−3t δ(t − 1)) ∗ h(t) ⇒ e−2t u(t) = 2(e−3t δ(t − 1)) ∗ h(t).
(5)
Note that
Z ∞
−3t
(e δ(t − 1)) ∗ h(t) = e−3τ δ(τ − 1)h(t − τ )dτ = e−3 h(t − 1). (6)
−∞
6. Consider convolution of two causal sequences u[n] and h[n] (both with finite support) to
give y[n].
(a) Show that one can construct a ‘Toeplitz Matrix T ’ using entries of h such that
y(0) u(0)
y(1)
= T u(1) with entries of T coming from h.
.. ..
. .
5
Solution : (a) LetPthe support of u[n] and h[n] be Nu and Nh , respectively. Since
y[n] = u[n] ∗ h[n] = ∞
k=0 u[k]h[n − k], we have
···
h[0] 0 0
h[1] h[0] ··· 0
..
.. .. ..
. . . .
..
.. ..
. . . h[0]
.. ..
y[0] .. u[0]
y[1] . . . h[1]
= .. u[1] (7)
.. .. ..
.. ..
. . . .
.
.. ..
.
h[Nh ] h[Nh − 1] . .
.. ..
0
h[Nh ] . .
. .. .. ..
.. . . .
0 0 ··· h[Nh ] T
| {z }
(b) Let the support of y[n] be Ny . From equation (7) it is clear that T ∈ C(Nu +Nh +1)×(Nu +1) .
Therefore, Ny = Nh + Nu + 1.
(c) From equation (7) it is clear that the support of y[n] depends on the number of rows
of T , i.e., (Nu + Nh + 1). Therefore, the support of y[n] depends only on the support of
u[n] and h[n].
(d) Note that a noncausal signal can always be uniquely into an anticausal and causal
part. Hence, both u[n] and h[n] being noncausal can be divided into an anticausal and
causal part. Further, since the signals h[n] and u[n] have finite support, the respective
anticausal and causal parts will also have finite support. Hence, we define the following:
• Support of the anticausal and causal part of h[n] be Nhanti and Nhcaus , respectively.
• Support of the anticausal and causal part of u[n] be Nuanti and Nucaus , respectively.
R T /2
Since h(t) is non-zero and −T /2 |h(t)|dt is a finite number for a periodic impulse
R T /2
response, limN →∞ N −T /2 |h(t)|dt = ∞. Hence, the system is unstable.
(c) If an LTI system is causal, it is stable.
Solution: False. Consider the system P∞with impulse P
response h[n] = u[n]. The
∞
system is causal. However the sum k=−∞ |h[n]| = k=0 1 does not converge.
Therefore, the system is not stable.
6
8. If an auditorium has a perceptible echo, then an initial acoustic impulse will be followed
by attenuated versions of the sound at regularly spaced intervals. The model for this
phenomenon is an LTI system with an impulse response:
∞
X
h(t) = hk δ(t − kT ).
k=0
Here the echoes occur T seconds apart, and hk represents the gain factor on the k-th echo
resulting from an initial acoustic impulse.
Suppose x(t) represents the original acoustic signal and that y(t) = x(t)∗h(t) is the actual
signal that is heard if no processing is done to remove the echoes. In order to remove
the distortion due to echoes, assume a microphone is used to sense y(t) and the resulting
signal is transduced into an electrical signal – we call this electrical signal y(t) as well.
Can we find an LTI system with an impulse response g(t) of the form:
∞
X
g(t) = gk δ(t − kT ),
k=0
such that the effect of echo is removed. If yes what should be the values of g0 , g1 and g2
in terms of hk .
Solution: In order to remove the effect of echo the LTI system g(t) must be inverse of
the system h(t). In other words,
∞
X ∞
X
h(t) ∗ g(t) = δ(t) ⇒ hm δ(t − mT ) ∗ gk δ(t − kT ) = δ(t). (8)
m=0 k=0
Now we evaluate the term δ(t − mT ) ∗ δ(t − kT ). Let φ(t) be a test-function. Then,
Z ∞
φ(t) (δ(t − mT ) ∗ δ(t − kT )) dt
−∞
Z ∞ Z ∞
= φ(t) δ(t − mT − τ )δ(τ − kT )dτ dt
−∞ −∞
Z ∞ Z ∞
= (φ(t)δ(t − mT − τ )dt) δ(τ − kT )dτ
−∞ −∞
Z ∞
= φ(mT + τ )δ(τ − kT )dτ = φ(mT + kT ).
−∞
Therefore, on equating the coefficients of δ(t), δ(t−T ) and δ(t−2T ), we get the following:
1
h0 g0 = 1 ⇒ g0 =
.
h0
h1
h0 g1 + h1 g0 = 0 ⇒ g1 = − 2 .
h0
2
h h2
h0 g2 + h1 g1 + h2 g0 = 0 ⇒ g2 = 13 − .
h0 h1 h0
7
9. Consider a discrete-time LTI system with unit sample response
where |α| < 1. Show that the step response of this system is
1 α n α n
s[n] = − α + (n + 1)α u[n].
(α − 1)2 (α − 1)2 (α − 1)
Solution (9): The output due to an unit step input x[n] = u[n] is
n n+1
n
X
k d X k
y[n] = h[n] ∗ x[n] = ((n + 1)α u[n]) ∗ u[n] = (k + 1)α = α , n > 0.
k=0
dα k=0
d 1 − αn+2
y[n] = , n>0
dα 1−α
1 α n α n
= − α + (n + 1)α u[n].
(α − 1)2 (α − 1)2 (α − 1)