EXAMPLE 3.17 Iterative Determination of the Impulse Response
β Back to LINEAR SYSTEMS AND SIGNALS Overview
EXAMPLE 3.17 Iterative Determination of the Impulse Response
Iteratively compute the first two values of the impulse response h[n] of a system described by the equation
y[n] β0.6y[nβ1] β0.16y[nβ2] = 5x[n]
To determine the unit impulse response, we let the input x[n] = Ξ΄[n] and the output y[n] = h[n] in the systemβs difference equation to obtain
subject to zero initial state; that is, h[β1] = h[β2] = 0. Setting n = 0 in this equation yields
h[0] β0.6(0)β0.16(0) = 5(1) β h[0] = 5
Setting n = 1 in the same equation and using h[0] = 5, we obtain
h[1] β0.6(5)β0.16(0) = 5(0) β h[1] = 3
Continuing this way, we can determine any number of terms of h[n]. Unfortunately, such a solution does not yield a closed-form expression for h[n]. Nevertheless, determining a few values of h[n] can be useful in determining the closed-form solution, as the following development shows.
3.7-1 The Closed-Form Solution of h[n]
Recall that h[n] is the system response to input Ξ΄[n], which is zero for n > 0. We know that when the input is zero, only the characteristic modes can be sustained by the system. Therefore, h[n] must be made up of characteristic modes for n > 0. At n = 0, it may have some nonzero value A0 so that a general form of h[n] can be expressed asβ
\n(3.27)
where yc[n] is a linear combination of the characteristic modes. We now substitute Eq. (3.27) in Eq. (3.26) to obtain Q[E](A0Ξ΄[n] +yc[n]u[n]) = P[E]Ξ΄[n]. Because yc[n] is made up of characteristic modes, Q[E]yc[n]u[n] = 0, and we obtain A0Q[E]Ξ΄[n] = P[E]Ξ΄[n], that is,
Setting n = 0 in this equation and using the fact that Ξ΄[m] = 0 for all m = 0, and Ξ΄[0] = 1, we obtain
Hence,β‘
The N unknown coefficients in yc[n] (on the right-hand side) can be determined from a knowledge of N values of h[n]. Fortunately, it is a straightforward task to determine values of h[n] iteratively, as demonstrated in Ex. 3.17. We compute N values h[0], h[1], h[2], β¦ , h[N β1] iteratively. Now, setting n = 0, 1, 2, β¦ , N β1 in Eq. (3.29), we can determine the N unknowns in yc[n]. This point will become clear in the following example.
EXAMPLE 3.18 Closed-Form Determination of the Impulse Response
Determine the unit impulse response h[n] for a system in Ex. 3.17 specified by the equation
β We assume that the term yc[n] consists of characteristic modes for n > 0 only. To reflect this behavior, the characteristic terms should be expressed in the form Ξ³ n j u[n β 1]. But because u[n β 1] = u[n] β Ξ΄[n], cjΞ³ n j u[n β 1] = cjΞ³ n j u[n] β cjΞ΄[n], and yc[n] can be expressed in terms of exponentials Ξ³ n j u[n] (which start at n = 0), plus an impulse at n = 0.
β‘ If aN = 0, then A0 cannot be determined by Eq. (3.28). In such a case, we show in Sec. 3.12 that h[n] is of the form A0Ξ΄[n] + A1Ξ΄[n β 1] + yc[n]u[n]. We have here N + 2 unknowns, which can be determined from N +2 values h[0],h[1],β¦,h[N +1] found iteratively.
This equation can be expressed in the advance form as
or in advance operator form as
The characteristic polynomial is
The characteristic modes are (β0.2)n and (0.8)n. Therefore,
Inspecting the system difference equation, we see that aN = β0.16 and bN = 0. Therefore, according to Eq. (3.29),
To determine c1 and c2, we need to find two values of h[n] iteratively. From Ex. 3.17, we know that h[0] = 5 and h[1] = 3. Setting n = 0 and 1 in our expression for h[n] and using the fact that h[0] = 5 and h[1] = 3, we obtain
\begin{array}{c}\n5 = c_1 + c_2 \\ 3 = -0.2c_1 + 0.8c_2\n\end{array}\n\right\} \implies c_1 = 1\n\begin{array}{c}\nc_1 = 1 \\ c_2 = 4\n\end{array}Therefore,
DR ILL 3.14 Closed-Form Determination of the Impulse Response
Find h[n], the unit impulse response of the LTID systems specified by the following equations:
- (a) y[n+1] βy[n] = x[n]
- (b) y[n] β5y[nβ1] +6y[nβ2] = 8x[nβ1] β19x[nβ2]
- (c) y[n+2] β4y[n+1] +4y[n] = 2x[n+2] β2x[n+1]
- (d) y[n] = 2x[n] β2x[nβ1]
ANSWERS
- (a) h[n] = u[nβ1]
- (b) h[n]=β19 6 Ξ΄[n] + 3 2 (2)n + 5 3 (3)n u[n]
- (c) h[n] = (2+n)2nu[n]
- (d) h[n] = 2Ξ΄[n] β2Ξ΄[nβ1]
EXAMPLE 3.19 Filtering Perspective of the Unit Impulse Response
Use the MATLAB filter command to solve Ex. 3.18.
There are several ways to find the impulse response using MATLAB. In this method, we first specify the unit impulse function, which will serve as our input. Vectors a and b are created to specify the system. The filter command is then used to determine the impulse response. In fact, this method can be used to determine the zero-state response for any input.
Comment. Although it is relatively simple to determine the impulse response h[n] by using the procedure in this section, in Ch. 5 we shall discuss the much simpler method of the z-transform.