Professional Documents
Culture Documents
hw4 Sol F12
hw4 Sol F12
Solutions to Homework 4
1
1
x[n]
0.5
0
−25 −20 −15 −10 −5 0 5 10 15 20 25
2
1.5
z[n]
1
0.5
0
−25 −20 −15 −10 −5 0 5 10 15 20 25
15
10
m[n]
0
−25 −20 −15 −10 −5 0 5 10 15 20 25
• for n ≥ 6, m[n] = 0.
2
1
x[n]
0.5
0
−25 −20 −15 −10 −5 0 5 10 15 20 25
1
0.5
y[n]
0
−0.5
−1
−25 −20 −15 −10 −5 0 5 10 15 20 25
4
2
m[n]
0
−2
−4
−25 −20 −15 −10 −5 0 5 10 15 20 25
• for n ≥ 7, m[n] = 0.
3
1
x[n]
0.5
0
−25 −20 −15 −10 −5 0 5 10 15 20 25
4
2
f[n]
0
−2
−4
−25 −20 −15 −10 −5 0 5 10 15 20 25
10
5
m[n]
0
−5
−10
−25 −20 −15 −10 −5 0 5 10 15 20 25
Hence, from the fact that the convolution is both linear and time-invariant,
we have
4
4
2
f[n]
0
−2
−4
−25 −20 −15 −10 −5 0 5 10 15 20 25
1
g[n]
0.5
0
−25 −20 −15 −10 −5 0 5 10 15 20 25
10
5
m[n]
0
−5
−10
−25 −20 −15 −10 −5 0 5 10 15 20 25
5
ECE 314 – Signals and Communications Fall/2004
Solutions to Homework 5
The figure below shows the graph of u[k + 3] and u[n − k − 3], for some
values of n, and the result of the convolution sum.
u[k+3]
u[n−k−3], n=−1 k
k
n=0
k
n=1
k
n=2
y[n]
1
Analitically, we can evaluate y[n] by considering that u[k + 3] = 0, for
k < −3, and u[n − k − 3] = 0, for k > n − 3. Hence,
0, n < 0,
y[n] = Pn−3
k=−3 1 = n − 3 + 3 + 1 = n + 1, n ≥ 0
P∞
(l) y[n] = u[n] ∗ p=0 δ[n − 4p]
Solution:
∞
" ∞
#
X X
y[n] = δ[k − 4p]u[n − k]
k=−∞ p=0
P∞
But, we know that u[n − k] = 0, for k > n, and p=0 δ[k − 4p] = 0, for
k < 0. Thus "∞ #
Xn X
y[n] = δ[k − 4p] .
k=0 p=0
y[n]
2
we point out that u(t − λ), as a function of λ, is 1 in the interval (−∞, t],
and is zero elsewhere. While u(λ) − u(λ − 2) corresponds to a rectangular
pulse that equals 1 in the interval [0, 2). Therefore:
• when t < 0, the signals do not overlap, and the integral is zero;
• when 0 ≤ t < 2, y(t) corresponds to the integral of 1 between 0 and t;
• and when t ≥ 2, y(t) corresponds to the integral of 1 between 0 and 2.
Hence,
0, t < 0,
y(t) = t, 0 ≤ t < 2,
2, t ≥ 2.
3
Problem 2.40 Consider the continuous time signals depicted in Fig. P2.40
of the text-book. Evaluate the following convolution integrals:
(b) m(t) = x(t) ∗ z(t)
Solution: We use the figure below to help us evaluate the integral (also see
the figure in the next page):
• for 0 ≤ t < 1, Z 0
m(t) = (−1)dλ + 1 = t;
t−1
• for 1 ≤ t < 2, Z 1
m(t) = dλ = −t + 2;
t−1
• for t ≥ 2, m(t) = 0.
6
(a) h(t) = cos(πt)
Solution:
(i) This system is not memoryless, since h(t) is not zero for t 6= 0.
(ii) This system is not causal, since Rh(t) is not zero for t < 0.
∞
(iii) This system is not stable, since −∞ |h(t)|dt = ∞ (i.e., it is not
absolutely integrable).
(b) h(t) = e−2t u(t − 1)
Solution:
(i) This system is not memoryless, since h(t) is not zero for t 6= 0.
(ii) This system is causal, since h(t)
R ∞ is zero for t −2
< 0.
(iii) This system is stable, since −∞ |h(t)|dt = e /2.
(c) h(t) = u(t + 1)
Solution:
(i) This system is not memoryless, since h(t) is not zero for t 6= 0.
(ii) This system is not causal, since h(t)
R ∞ is not zero for t < 0.
(iii) This system is not stable, since −∞ |h(t)|dt = ∞.
(d) h(t) = 3δ(t)
Solution:
(i) This system is memoryless, since h(t) is zero for t 6= 0.
(ii) This system is causal, since itR is memoryless.
∞
(iii) This system is stable, since −∞ |h(t)|dt = 3.
(e) h(t) = cos(πt)u(t)
Solution:
(i) This system is not memoryless, since h(t) is not zero for t 6= 0.
(ii) This system is causal, since h(t) isR zero for t < 0.
∞
(iii) This system is not stable, since −∞ |h(t)|dt = ∞.
7
(k) h[n] = ∞
P
p=−1 δ[n − 2p].
(i) The system has memory since h[−2] = 1 6= 0.
P∞ 6= 0, the system is noncausal.
(ii) Since h[−2]
(iii) Since n=−∞ |h[n]| = ∞, the system is unstable.
(g) h[n] = (0.5)|n| .
(i) The system has memory since h[n] 6= 0 whenever n 6= 0.
P 6= 0 when n is negative, the system is noncausal.
(ii) Since h[n]
(iii) Since ∞ n=−∞ |h[n]| is finite (what is it?), the system is stable.
Problem 2.50 Evaluate the step response for the LTI systems represented
by the following impulse responses:
(a) h[n] = (−.5)n u[n]. For n < 0, g[n] = 0. For n ≥ 0,
8
impulse response and the step function:
9
1) t ≥ 0;
Z t Z ∞
−(t−τ )
g(t) = e dτ + et−τ dτ
τ =0 τ =t
−t t t −t
= e (e − 1) + e e
= 2 − e−t .
2) t < 0;
Z ∞
g(t) = et−τ dτ
τ =0
t
= e.
2.5
1.5
g(t)
0.5
−0.5
−8 −6 −4 −2 0 2 4 6 8
t
10