Skip to content

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

h[n]βˆ’0.6h[nβˆ’1]βˆ’0.16h[nβˆ’2]=5Ξ΄[n]h[n] - 0.6h[n-1] - 0.16h[n-2] = 5\delta[n]

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†

h[n]=A0Ξ΄[n]+yc[n]u[n]h[n] = A_0 \delta[n] + y_c[n]u[n]

\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,

A0(Ξ΄[n+N]+a1Ξ΄[n+Nβˆ’1]+β‹―+aNΞ΄[n])=b0Ξ΄[n+N]+β‹―+bNΞ΄[n]A_0 (\delta[n+N] + a_1 \delta[n+N-1] + \cdots + a_N \delta[n]) = b_0 \delta[n+N] + \cdots + b_N \delta[n]

Setting n = 0 in this equation and using the fact that Ξ΄[m] = 0 for all m = 0, and Ξ΄[0] = 1, we obtain

A0aN=bN⟹A0=bNaN(3.28)A_0 a_N = b_N \quad \Longrightarrow \quad A_0 = \frac{b_N}{a_N} \tag{3.28}

Hence,‑

h[n]=bNaNΞ΄[n]+yc[n]u[n](3.29)h[n] = \frac{b_N}{a_N} \delta[n] + y_c[n]u[n] \tag{3.29}

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

y[n]βˆ’0.6y[nβˆ’1]βˆ’0.16y[nβˆ’2]=5x[n]y[n] - 0.6y[n-1] - 0.16y[n-2] = 5x[n]

† 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

y[n+2]βˆ’0.6y[n+1]βˆ’0.16y[n]=5x[n+2]y[n+2] - 0.6y[n+1] - 0.16y[n] = 5x[n+2]

or in advance operator form as

(E2βˆ’0.6Eβˆ’0.16)y[n]=5E2x[n](E^2 - 0.6E - 0.16)y[n] = 5E^2x[n]

The characteristic polynomial is

Ξ³2βˆ’0.6Ξ³βˆ’0.16=(Ξ³+0.2)(Ξ³βˆ’0.8)\gamma^2 - 0.6\gamma - 0.16 = (\gamma + 0.2)(\gamma - 0.8)

The characteristic modes are (βˆ’0.2)n and (0.8)n. Therefore,

yc[n]=c1(βˆ’0.2)n+c2(0.8)ny_c[n] = c_1(-0.2)^n + c_2(0.8)^n

Inspecting the system difference equation, we see that aN = βˆ’0.16 and bN = 0. Therefore, according to Eq. (3.29),

h[n]=[c1(βˆ’0.2)n+c2(0.8)n]u[n]h[n] = [c_1(-0.2)^n + c_2(0.8)^n]u[n]

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,

h[n]=[(βˆ’0.2)n+4(0.8)n]u[n]h[n] = [(-0.2)^n + 4(0.8)^n]u[n]

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.