You are on page 1of 10

Solutions of Chapter 3

Part 2/2

Problem 3.5-4 Solve the following equation recursively (first three terms only):

y[n + 2] + 3y[n + 1] + 2y[n] = x[n + 2] + 3x[n + 1] + 3x[n]

with x[n] = 3n u[n], y[−1] = 3 and y[−2] = 2.

Solution:
Write the difference equation as follows.

y[n + 2] = −3y[n + 1] − 2y[n] + x[n + 2] + 3x[n + 1] + 3x[n]

Setting n = −2 and substituting y[−1] = 3, y[−2] = 2, x[−1] = x[−2] = 0, x[0] = 1, yields

y[0] = −3y[−1] − 2y[−2] + x[0] + 3x[−1] + 3x[−2] = −12

Setting n = −1 and substituting y[0] = −12, y[−1] = 3, x[−1] = 0, x[0] = 1, x[1] = 31 = 3, yields

y[1] = −3y[0] − 2y[−1] + x[1] + 3x[0] + 3x[−1] = 36

Proceeding along same lines, we obtain

y[2] = −3y[1] − 2y[0] + x[2] + 3x[1] + 3x[0] = −3(36) − 2(−12) + (32 ) + 3(3) + 3(1) = −63

Problem 3.6-2 Solve


y[n + 2] + 2y[n + 1] + y[n] = 0
if y[−1] = 1, y[−2] = 1.

Solution: We write the equation as


(E 2 + 2E + 1)y[n] = 0
The characteristic equation is
γ 2 + 2γ + 1 = (γ + 1)2 = 0
from which we have γ1 = γ2 = −1, thus

y[n] = (c1 + c2 n)(−1)n

Setting n = −1 and n = −2 and substituting initial conditions yields


{
y[−1] = (c1 + c2 (−1))(−1)(−1) = −c1 + c2 = 1
y[−2] = (c1 + c2 (−2))(−1)(−2) = c1 − 2c2 = 1

Page 1 of 10
from which we have c1 = −3, c2 = −2 and

y[n] = −(3 + 2n)(−1)n

Problem 3.6-3 Solve


y[n + 2] − 2y[n + 1] + 2y[n] = 0
if y[−1] = 1, y[−2] = 0.

Solution: We write the equation as


(E 2 − 2E + 2)y[n] = 0
The characteristic equation is

γ 2 − 2γ + 2 = (γ − 1 − j1)(γ − 1 + j1) = 0

from which we have the roots γ1,2 = 1 ± j1 = 2e± jπ /4 , thus
√ π
y[n] = c( 2)n cos( n + θ )
4
Setting n = −1 and n = −2 and substituting initial conditions yields
{
y[−1] = √c2 cos(− π4 + θ ) = √c2 ( √12 cos θ + √12 sin θ ) = 1
y[−2] = 2c cos(− π2 + θ ) = 2c sin θ = 0

from which we have c = 2, θ = 0 and


√ π
y[n] = 2( 2)n cos( n)
4

Problem 3.7-3 Find the unit impulse response h[n] of the system

y[n] − 6y[n − 1] + 25y[n − 2] = 2x[n] − 4x[n − 1] (1)

Solution: We write the system in the advanced form as

y[n + 2] − 6y[n + 1] + 25y[n] = 2x[n + 2] − 4x[n + 1] (2)

Setting x[n] = δ [n], we have

h[n + 2] − 6h[n + 1] + 25h[n] = 2δ [n + 2] − 4δ [n + 1] (3)

The characteristic equation is γ 2 − 6γ + 25 = 0. The characteristic roots are

γ1,2 = 3 ± 4 j = 5e± j φ , φ = 0.927

Page 2 of 10
The general form of h[n] can be written as

h[n] = A0 δ [n] + c(5)n cos(φ n + θ ) (4)

Substituting (4) into (3) yields

A0 (δ [n + 2] − 6δ [n + 1] + 25δ [n]) = 2δ [n + 2] − 4δ [n + 1]

Setting n = 0 yields A0 = 0.
To determine c and θ in (4), we need to find two values of h[n] (not initial conditions sice h[n] is defined
in n ≥ 0, however, by using iterative procedure we can derive two auxiliary conditions h[0] and h[1].)
Setting n = −2 in equation (3) yields

h[0] − 6(0) + 25(0) = 2(1) − 4(0) ⇒ h[0] = 2

Setting n = −1 in equation (3) yields

h[1] − 6(2) + 25(0) = 2(0) − 4(1) ⇒ h[1] = 8

Substituting A0 , h[0], h[1] into (4) yields


{
h[0] = c cos θ = 2
h[1] = 5c cos(0.927n + θ ) = 5c(cos 0.927 cos θ − sin 0.927 sin θ ) = 8

from which we have c = 2.0616, θ = −0.245rad.


Therefore,
h[n] = 2.0616(5)n cos(0.927n − 0.245)u[n]

Problem 3.7-4 (a) For the general Nth-order difference equation, letting

a0 = a1 = · · · = aN−1 = 0

results in a general causal Nth-order LTI nonrecursive difference equation

y[n] = b0 x[n] + b1 x[n − 1] + · · · + bN−1 x[n − N + 1] + bN x[n − N]

Find the impulse response h[n] for the system.


(b) Find the impulse response of a nonrecursive LTID system described by the equation

y[n] = 3x[n] − 5x[n − 1] − 2x[n − 3]

Solution:
(a) The characteristic equation is γ N = 0. Hence, all the characteristic roots are zero. We use a direct
method to find h[n] by realizing that h[n] is the response to unit impulse input.
Setting x[n] = δ [n], and y[n] = h[n] yields
N
h[n] = b0 δ [n] + b1 δ [n − 1] + · · · + bN−1 δ [n − N + 1] + bN δ [n − N] = ∑ bi δ [n − i]
i=0

Page 3 of 10
(b) From the result in part (a), we can immediately have

h[n] = 3δ [n] − 5δ [n − 1] − 2δ [n − 3]

Observe that the impulse response has only a finite (N) number of nonzero elements. For this reason,
such systems are called finite-impulse response (FIR) systems. For a general recursive case, the impulse
response has an infinite number of nonzero elements, and such systems are called infinite-impulse response
(IIR) systems.

Problem 3.8-2 Find the (zero-state) response y[n] of an LTID system if the input is x[n] = 3n−1 u[n + 2] and

1
h[n] = [δ [n − 2] − (−2)n+1 ]u[n − 3]
2

Solution:
1 1 1 1
h[n] = [δ [n − 2] − (−2)n+1 ]u[n − 3] = δ [n − 2]u[n − 3] − (−2)n+1 u[n − 3] = − (−2)n+1 u[n − 3]
2 2 2 2

y[n] = x[n] ∗ h[n] = h[n] ∗ x[n]


Note that
{
1 (−2)m , m≥3
h[m] = − (−2) m+1
u[m − 3] =
2 0, m<3
{ n−1 −m
3 3 , m ≤ n+2
x[n − m] = (3)n−m−1 u[n − m + 2] =
0, m > n+2
Therefore
n+2 n+2
−2 m 8
y[n] = ∑ (−2)m 3n−1 3−m = 3n−1 ∑ ( 3
) =
135
[(−2)n − 3n ] u[n]
m=3 m=3

Another solution:
1
y[n] = x[n] ∗ h[n] = (− (−2)n+1 u[n − 3]) ∗ (3n−1 u[n + 2])
2
Let us advance the first term by 3 units and delay the second term by 2 units, the resulting convolution
yields y[n + 1]. Hence

1 8
y[n + 1] = (− (−2)n+4 u[n]) ∗ (3n−3 u[n]) = − (−2)n ∗ 3n u[n]
2 27
From convolution Table, we obtain
[ ]
8 (−2)n+1 − 3n+1 8 [ ]
y[n + 1] = − u[n] = (−2)n+1 − 3n+1 u[n]
27 −2 − 3 135

Thus
8
y[n] = [(−2)n − 3n ] u[n]
135

Page 4 of 10
Problem 3.8-10 Find the total response specified by the equation

y[n + 1] + 2y[n] = x[n + 1]

if y[−1] = 10 and the input x[n] = e−n u[n].

Solution: The total response can be written as


N
total response = ∑ ci γin + x[n] ∗ h[n]
| {z }
i=1
| {z } zero−state component
zero−input component

Step 1: solve zero-input component.


The characteristic equation of the system is

γ + 2 = 0 ⇒ γ = −2

Therefore the zero-input response is y0 [n] = c1 (−2)n .


Setting n = −1 and substituting y[−1] = 10 yields
c1
10 = − ⇒ c1 = −20
2
Therefore,
y0 [n] = −20(−2)n , n ≥ 0
Step 2: solve zero-state component.
In the system equation, setting x[n] = δ [n] yields

h[n + 1] + 2h[n] = δ [n + 1] (5)

The characteristic root is γ = −2, so

h[n] = A0 δ [n] + c0 (−2)n u[n] (6)

Substituting (6) into the unit impulse response equation yields

A0 δ [n + 1] + 2A0 δ [n] = δ [n + 1]

Setting n = 0 yields A0 = 0
Setting n = −1 in (5) yields
h[0] + 2h[−1] = δ [0] ⇒ h[0] = 1
Substituting h[0] = 1 into (6) yields

h[0] = c0 (−2)0 = 1 ⇒ c0 = 1

Therefore
h[n] = (−2)n u[n]
The zero-state response is

y[n] = x[n] ∗ h[n] = (e−n u[n]) ∗ ((−2)n u[n])

Page 5 of 10
The above convolution can be found using the convolution Table to be
[ ]
e −(n+1) 1 −n 2e
y[n] = [e − (−2) ]u[n] =
n+1
(e) + n
(−2) u[n]
2e + 1 2e + 1 2e + 1

Another solution for the convolution:


[ ]
n 1 − [− 2e
1 n+1
] 1 2e
y[n] = ∑e −m n−m
(−2) = (−2)n
1 − (− 2e1
)
=
2e + 1
−n
(e) +
2e + 1
n
(−2) u[n]
m=0

Step 3: the total response

total response = y0 [n] + y[n]


[ ]
1 −n 2e
= −20(−2)n + (e) + n
(−2) u[n]
2e + 1 2e + 1
1 [ ]
= −(38e + 20)(−2)n + (e)−n u[n]
2e + 1

Problem 3.8-19 Using the slide-tape algorithm, find x[n] ∗ g[n] for the signals shown in Fig. P3.8-19

Figure 1: Fig3.8-19

Solution: From Fig. P3.8-19, we obtain the x tape and g tape. Then we rotate the g tape about the vertical
axis, as shown in the figure. We observe that:

n = 0, y[n] = 0 + 1 + 2 + 3 + 4 + 5 = 15
n = 1, y[n] = 1 + 2 + 3 + 4 + 5 = 15
n = 2, y[n] = 2 + 3 + 4 + 5 = 14
n = 3, y[n] = 3 + 4 + 5 = 12
n = 4, y[n] = 4 + 5 = 9
n = 5, y[n] = 5
n = 6, y[n] = 0
n ≥ 6, y[n] = 0
n < 0, y[n] = 15

Page 6 of 10
Figure 2: Solution of Fig3.8-19

Problem 3.9-3 (a) Use the classical method to solve

y[n + 2] + 3y[n + 1] + 2y[n] = x[n + 2] + 3x[n + 1] + 3x[n]

with the input x[n] = (3)n and the auxiliary conditions y[0] = 1, y[1] = 3.
(b) Repeat part (a) for auxiliary conditions y[−1] = y[−2] = 1.

Solution:
(E 2 + 3E + 2) y[n] = (E 2 + 3E + 3) x[n]
| {z } | {z }
Q[E] P[E]

The characteristic equation is γ 2 + 3γ + 2 = 0, the characteristic roots are γ1 = −1, γ2 = −2.


Therefore, the natural response is

yn [n] = C1 (−1)n +C2 (−2)n

For input x[n] = (3)n , the form of the forced response is ě


yϕ [n] = C(3)n

Substituting yϕ [n] into the system equation yields

21
C(3)n+2 + 3C(3)n+1 + 2C(3)n = (3)n+2 + 3(3)n+1 + 3(3)n ⇒ C =
20
Thus, the total response is
21 n
y[n] = C1 (−1)n +C2 (−2)n + (3) , n ≥ 0
20
(a) Setting n = 0, 1 and substituting y[0] = 1, y[1] = 3, yields
{
y[0] = C1 (−1)0 +C2 (−2)0 + 21 0
20 (3) = 1
21
y[1] = C1 (−1) +C2 (−2) + 20 (3)1 = 3
1 1

from which we have C1 = − 14 ,C2 = 1


5

Page 7 of 10
Therefore
1 1 21
y[n] = − (−1)n + (−2)n + (3)n , n ≥ 0
4 5 20
(b) We solve system equation iteratively to find y[0] and y[1] using the given auxiliary conditions y[−1] =
y[−2] = 1.
Setting n = −2, we obtain

y[0] + 3y[−1] + 2y[−2] = (3)0 + 3(0) + 3(0) ⇒ y[0] = −4

Setting n = −1, we obtain

y[1] + 3y[0] + 2y[−1] = (3)1 + 3(3)0 + 3(0) ⇒ y[1] = 16

In the total response


21 n
y[n] = C1 (−1)n +C2 (−2)n + (3) , n ≥ 0
20
Setting n = 0, 1, and substituting y[0] = −4, y[1] = 16, yields
{
20 (3) = −4
y[0] = C1 (−1)0 +C2 (−2)0 + 21 0
21
y[1] = C1 (−1) +C2 (−2) + 20 (3)1 = 16
1 1

from which we have C1 = 11


4 ,C2 = − 39
5
Therefore
11 39 21
y[n] = (−1)n − (−2)n + (3)n , n ≥ 0
4 5 20

Problem 3.10-2 Each of the following equations specifies an LTID system, Determine weather each of
these systems is BIBO stable or unstable. Determine weather each of these systems is asymptotically stable,
unstable, or marginally stable.
(a) y[n + 2] + 0.6y[n + 1] − 0.16y[n] = x[n + 1] − 2x[n]
(b) y[n] + 3y[n − 1] + 2y[n − 2] = x[n − 1] + 2x[n − 2]
(c) (E − 1)2 (E + 12 )y[n] = x[n]
(d) y[n] + 2y[n − 1] + 0.96y[n − 2] = x[n]
(e) y[n] + y[n − 1] − 2y[n − 2] = x[n] + 2x[n − 1]
(f) (E 2 − 1)(E 2 + 1)y[n] = x[n]

Solution:
(a) The characteristic polynomial is

γ 2 + 0.6γ − 1.6 = (γ − 0.2)(γ + 0.8)

The characteristic roots are 0.2 and -0.8. Both are inside the unit circle. The system is BIBO stable and
asymptotically stable.
(b) The characteristic polynomial is

γ 2 + 3γ + 2 = (γ + 2)(γ + 1)

The characteristic roots are -1 and -2. One root lies outside the unit circle. Thus, the system is BIBO
unstable and asymptotically unstable.

Page 8 of 10
(c) The characteristic polynomial is
1
(γ − 1)2 (γ + )
2
The characteristic roots are 1 (repeated twice) and − 12 . Repeated roots on the unit circle. Thus, the
system is BIBO unstable and asymptotically unstable.
(d) The characteristic polynomial is

γ 2 + 2γ + 0.96 = (γ + 0.8)(γ + 1.2)

The characteristic roots are -0.8 and -1.2. One root lies outside the unit circle. Thus, the system is BIBO
unstable and asymptotically unstable.
(e) The characteristic polynomial is

γ 2 + γ − 2 = (γ + 0.5 + j 1.5)(γ + 0.5 − j 1.5)

The characteristic roots are 0.5 ± j 1.5. Both roots lie outside the unit circle. Thus, the system is BIBO
unstable and asymptotically unstable.
(f) The characteristic polynomial is

(γ 2 − 1)(γ 2 + 1) = (γ + 1)(γ − 1)(γ + j 1)(γ − j 1)

The characteristic roots are ±1 and ± j 1. All roots are simple and on the unit circle. Thus, the system is
BIBO unstable and marginally stable.

Problem 3.10-3 Consider two LTIC systems in cascade, as illustrated in Fig.3.23. The impulse response of
the system S1 is h1 [n] = 2n u[n] and the impulse response of the system S2 is h2 [n] = δ [n] − 2δ [n − 1]. Is the
cascade system asymptotically stable or unstabl? Determine the BIBO stability of the composite system.

Figure 3: Fig3.23

Solution:
For system S1 , since

∑ |h1 [n]| → ∞
n=−∞

Thus, S1 is asymptotically unstable and BIBO unstable.


For system S2 , since

∑ |h2 [n]| = 3
n=−∞

Thus, S2 is BIBO stable. However, the asymptotical stability is inconclusive. Please note that we cannot
draw conclusion about internal (asymptotical) stability of a system from just its impulse response or from
external (BIBO) stability, due to possible pole-zero cancellation.

Page 9 of 10
If the two systems are cascaded, the impulse response of the composite system is

h[n] = h1 [n] ∗ h2 [n] = 2n u[n] ∗ (δ [n] − 2δ [n − 1]) = 2n u[n] − 2(2)n−1 u[n − 1] = δ [n]

Therefore, the composite system is BIBO stable. However, the system S1 will eventually burn out (or
saturate) because its output contains the signal of the form 2n which has unbounded characteristic response
generated by intended or intended initial conditions.

Page 10 of 10

You might also like