2.1 Find the convolution y(n) = x(n) h(n) of the following signals:
(
(a) 1 5 n 1
x(n) =
1 0n4
h(n) = 2u(n)
n
1
(b) x(n) = u(n)
2
n
1
h(n) = (n) + (n 1) + u(n)
3
Solution 2.1
(a) Consider the given signal
(
1 5 n 1
x(n) = = u(n + 5) + 2u(n) u(n 5)
1 0n4
y(n) = x(n) h(n)
= 2u(n) [u(n + 5) + 2u(n) u(n 5)]
y(n) = [2u(n) u(n + 5)] + [2u(n) 2u(n)] [2u(n) u(n 5)]
Therefore
Therefore, we have
n n1 n " n+1 #
1 1 1 3
y(n) = u(n) + u(n 1) 2 1 u(n)
2 2 3 2
n n n1
1 1 1
=4 u(n) 2 u(n) + u(n 1)
2 3 2
n n n1
1 1 1
y(n) = 2 2 u(n) + u(n 1)
2 3 2
Therefore, we have
n n n
1 1 1
y(n) = u(n) + (n + 1) u(n) = (n + 2) u(n)
3 3 3
2.2 Determine the impulse response for the cascade of two linear-time invariant systems having
impulse responses
n
1
h1 (n) = u(n)
2
and
n
1
h2 (n) = u(n)
4
Solution 2.2 A cascade combination of LTI systems can be replaced by a single system whose
impulse response is the convolution of the individual impulse responses.
2.3 Determine the range of values of the parameter for which the LTI system with impulse response
h(n) = n u(n)
is stable.
4 Signals and Systems
Solution 2.3 An LTI system is stable if the impulse response is absolutely summable, i.e.,
X
|h(n)| <
n=
2.4 Determine the range of values of and for which the LTI system with impulse response
(
n n 0
h(n) =
n n < 0
is stable.
Solution 2.4 An LTI system is stable if the impulse response is absolutely summable, i.e.,
X
|h(n)| <
n=
a|m|
rxx (m) =
1 a2
Signals and Systems 5
(a) Graphically
(b) Analytically
Solution 2.6
(a) By definition
X
y(n) = x(n) h(n) = x(k)h(n k)
k=
Step 1: Write the equations and draw sketched for x(n) and h(n), as shown in Fig. S2.1(a)
( (
1
n 0 n 6 1 2 n 2
x(n) = 3 h(n) =
0 elsewhere 0 elsewhere
x(n) 2 h(n)
1 1
n n
0 1 2 3 4 5 6 -2 -1 0 1 2
Fig. S2.1(a)
Step 2: Write equation and draw sketches for x(k) and h(n k) [apply precedence rule: h(n)
h(k) h(k + n) h(k + n) = h(n k)], as shown in Fig. S2.1(b).
( (
1
3 k 0k6 1 2 n k 2 n 2 k n + 2
x(k) = h(n k) =
0 elsewhere 0 elsewhere
x(k) 2 h(n-k)
1 1
k k
0 1 2 3 4 5 6 n -2 n+2
Fig. S2.1(b)
Step 3: Perform summation to find y(n) for all values of n.
Case-I: n + 2 < 0 n < 2. Fig. S2.1(c) shows x(k) and h(n k). We see that the signals do
not overlap [Fig. S2.1(c)]; hence the product of the summand is zero.
X
y(n) = x(k)h(n k) = 0
k=
6 Signals and Systems
2
x(k)
h(n -k)
1
k
n -2 n+2 0 1 2 3 4 5 6
Fig. S2.1(c)
x(k)
h(n -k)
k
0 1 2 3 4 5 6
n+2
Fig. S2.1(d)
x (k)
h(n-k)
k
0 1 2 3 4 5 6
n -2 n+ 2
Fig. S2.1(e)
Signals and Systems 7
x (k) h(n- k)
k
0 1 2 3 4 5 6 n +2
n -2
Fig. S2.1(f)
Case-V: n 2 > 6 n > 8. Fig. S2.1(g) shows x(k) and h(n k). We see that the signals do
not overlap [Fig. S2.1(g)]; hence the product of the summand is zero.
X
y(n) = x(k)h(n k) = 0
k=
x(k)
h(n-k)
k
0 1 2 3 4 5 6 n-2 n+ 2
Fig. S2.1(g)
In summary
0 n < 2
n2 +5n+6
2 n 2
6
y(n) = 53 n 2n4
1 (12n n2 27) + 1 (n2 + 90 19n)
4n8
3 6
0 n>8
Therefore
1 10 20 11
y(n) = , 1, 2, , 5, , 6, 5, , 2
3 3 3 3
is at rest [i.e., y(1) = 0]. Check if the system is LTI and BIBO stable.
Solution 2.7 Let the system response to the inputs x1 (n) and x2 (n) be y1 (n) and y2 (n), respectively.
Then
[ay1 (n) + by2 (n)] = n[ay1 (n 1) + by2 (n 1)] + [ax1 (n) + bx2 (n)]
y3 (n) = ny3 (n 1) + x3 (n)
But this equation is the system equation with x3 (n) = ax1 (n) + bx2 (n) and y3 (n) = ay1 (n) +
by2 (n). Therefore when the input is ax1 (n) + bx2 (n), the system response is ay1 (n) + by2 (n).
Consequently, the system is linear.
Let the system response to the input x1 (n) be y1 (n).
x2 (n) = x1 (n n0 )
Signals and Systems 9
2.8 Find the convolution y(n) = x(n) h(n)for each of the following
pairs of finite sequences:
(a)
1 1 1 1
x(n) = 1, , , ,
2 4 8 16
h(n) = {1, 1, 1, 1}
h(n) = {2, 1, 3, 1, 2}
1 1
(c)
x(n) = 3, , , 1, 4
2 4
1 1
h(n) = 2, 1, ,
2 2
where the arrow indicates the value for n = 0. In this notation, it is assumed that all values not
listed are zero.
Solution 2.8
(a) Consider the given signals
1 1 1 1
x(n) = 1, , , , h(n) = {1, 1, 1, 1}
2 4 8 16
X
y(n) = x(n) h(n) = x(k)h(n k)
k=
2
X
y(n) = x(k)h(n k) 3n4
k=2
3 7 15 15 7 3 1
y(n) = 1, , , , , , ,
2 4 8 16 16 16 6
10 Signals and Systems
2
(b) X
y(n) = x(k)h(n k) 3n5
k=2
y(n) = 2, 3, 7, 4, 7, 0, 9, 1, 2
2
(c) X
y(n) = x(k)h(n k) 2n5
k=2
1 53 27 3
y(n) = 6, 2, , 1, , , , 2
2 8 8 2
2.9 Let
and
h(n) = 2(n + 1) + 2(n 1)
Solution 2.9
(a) y1 (n) = x(n) h(n)
= [(n) + 2(n 1) (n 3)] [2(n + 1) + 2(n 1)]
= [(n) 2(n + 1)] + [2(n 1) 2(n + 1)] [(n 3) 2(n + 1)]
+ [(n) 2(n 1)] + [2(n 1) 2(n 1)] [(n 3) 2(n 1)]
y1 (n) = 2(n + 1) + 4(n) + 2(n 1) + 2(n 2) 2(n 4)
y1(n) y2(n )
4 4
2 2
2
n n
-1 0 1 2 3 -3 -2 -1 0 1
-2 -2
(a) (b)
Fig. S2.2
Signals and Systems 11
2.10 Consider an input x(n) and a unit impulse response h(n) given by
n2
1
x(n) = u(n 2)
2
h(n) = u(n + 2)
Solution 2.10
y(n) = x(n) h(n)
X
= x(k)h(n k)
k=
k2
X 1
y(n) = u(k 2)u(n k + 2) n0
2
k=
n+2
X 1 k2
= n0
2
k=2
" n+1 #
1
y(n) = 2 1 u(n)
2
2
1.5
1
n
0 1 2 3 4 5 6
Fig. S2.3
2.11 (a) Find the impulse response of the system shown in Fig. 2.48. Assume that
Fig. 2.48
n
1
h1 (n) = h2 (n) = u(n)
3
h3 (n) = u(n)
n
1
h4 (n) = u(n)
2
(b) Find the response of the system to the unit step input.
12 Signals and Systems
Solution 2.11
(a) From Fig. 2.48, it can be shown that
h(n) = [{h1 (n) h2 (n)} h4 (n)] h3 (n)
n n n
1 1 1
= u(n) u(n) u(n) u(n)
3 3 2
n n
1 1
= (n + 1) u(n) u(n) u(n)
3 2
n n
1 1
= (n + 1) u(n) u(n) u(n) u(n)
3 2
n k X n m
X 1 1
h(n) = (k + 1) n0
3 m=0
2
k=0
n k X n k n m
X 1 1 X 1
h(n) = k +
3 3 m=0
2
k=0 k=0
Since
n
X
kk = [nn+1 (n + 1)n + 1]
( 1)2
k=0
Therefore,
" #
n+1 n
3 1 1
h(n) = n (n + 1) + 1 u(n)
4 3 3
" n+1 # " n+1 #
3 1 1
+ 1 u(n) 2 1 u(n)
2 3 2
(b) The step response can be determined by using the relation
n
X
s(n) = h(k)
k=
2.12 Determine the step response of an LTI system whose impulse response is given by
h(n) = (1)n [u(n + 2) u(n 3)]
2.13 Let y(t) = x(t) h(t) and g(t) = x(t/a) h(t/a). Show that g(t) = Ay(Bt). Determine the
values of A and B.
Solution 2.14
(a) See Example 2.30.
(b) The autocorrelation is given by
rxx ( ) = x( ) x( )
rxx ( ) = A A
T T
Since a gate function is an even function, i.e.,
A = A
T T
We have
rxx ( ) = A A
T T
We know that the convolution of a gate function with itself is a triangular function.
2 t
rxx ( ) = A T
T
2.15 Find the expression for the impulse response relating the input x(t) to the output y(t) in terms
of the impulse response of each subsystem for the system shown in Fig. 2.49.
Fig. 2.49
Solution 2.15 The overall impulse response is given by