Salta al contenuto
Note per Studenti Recursive Construction of the Impulse Response - Example Report

Recursive Construction of the Impulse Response - Example

In questa pagina 5

This note applies the recursive construction method (second part) to a discrete-time ARMA model. The goal is the causal impulse response h+(k)h_+(k), the one with h+(k)=0h_+(k)=0 for all k<0k<0. It is the impulse response obtained by solving the Cauchy problem with the impulse as input and zero initial conditions. For its role in stability see Stability of LTI Systems - BIBO and Internal StabilityCharacterization of BIBO (external) stability and of internal stability of LTI convolutional systems through the mode functions: stability zones in the complex plane, asymptotic, marginal and unstable behaviour of the natural response, and an example of an externally stable but internally unstable system with a zero-pole cancellation.Stability of LTI Systems - BIBO and Internal Stability →.

The model and the Cauchy problem

Compute h+(k)h_+(k) for the ARMA model with N=M=2N=M=2 and k0=0k_0=0:

y(k)−5y(k−1)+6y(k−2)=u(k)−18u(k−2).y(k)-5y(k-1)+6y(k-2)=u(k)-18u(k-2).

The impulse response is the solution of the Cauchy problem

{h+(k)−5h+(k−1)+6h+(k−2)=δ(k)−18 δ(k−2),∀k≥0h+(−1)=h+(−2)=0.\begin{cases} h_+(k)-5h_+(k-1)+6h_+(k-2)=\delta(k)-18\,\delta(k-2), & \forall k\ge 0\\ h_+(-1)=h_+(-2)=0.\end{cases}

Here δ(k)\delta(k) is the Kronecker impulse (11 for k=0k=0, 00 otherwise) and 1(k)\mathbb 1(k) is the discrete unit step.

The method has three steps. The notes number them S1, S2, S3 and remark that the order of S1 and S2 can be exchanged; here S2 is done first.

Step 2 - first values by recursion

Solving the equation for h+(k)h_+(k) gives h+(k)=5h+(k−1)−6h+(k−2)+δ(k)−18δ(k−2)h_+(k)=5h_+(k-1)-6h_+(k-2)+\delta(k)-18\delta(k-2). Starting from h+(−1)=h+(−2)=0h_+(-1)=h_+(-2)=0:

  • k=0k=0: h+(0)=5h+(−1)−6h+(−2)+δ(0)−18δ(−2)=0−0+1−0=1h_+(0)=5h_+(-1)-6h_+(-2)+\delta(0)-18\delta(-2)=0-0+1-0=1.
  • k=1k=1: h+(1)=5h+(0)−6h+(−1)+δ(1)−18δ(−1)=5⋅1−0+0−0=5h_+(1)=5h_+(0)-6h_+(-1)+\delta(1)-18\delta(-1)=5\cdot 1-0+0-0=5.
  • k=2k=2: h+(2)=5h+(1)−6h+(0)+δ(2)−18δ(0)=25−6+0−18=1h_+(2)=5h_+(1)-6h_+(0)+\delta(2)-18\delta(0)=25-6+0-18=1.

So h+(0)=1h_+(0)=1, h+(1)=5h_+(1)=5, h+(2)=1h_+(2)=1.

Step 1 - the homogeneous equation for large kk

For k≥M−N+1=1k\ge M-N+1=1 the function h+(k)h_+(k) satisfies the homogeneous equation (HE):

h+(k)−5h+(k−1)+6h+(k−2)=0.h_+(k)-5h_+(k-1)+6h_+(k-2)=0.

Its solution is found from the characteristic polynomial

a~(λ)=λ2−5λ+6=0 ⟹ (λ−3)(λ−2)=0,λ1=3, λ2=2.\tilde a(\lambda)=\lambda^2-5\lambda+6=0\ \Longrightarrow\ (\lambda-3)(\lambda-2)=0,\qquad \lambda_1=3,\ \lambda_2=2.

The two modes are 3k3^k and 2k2^k, so the ansatz is

h+(k)=(q1 3k+q2 2k)1(k−1)+q3 δ(k),h_+(k)=\bigl(q_1\,3^k+q_2\,2^k\bigr)\mathbb 1(k-1)+q_3\,\delta(k),

where the term q3δ(k)q_3\delta(k) accounts for the value at k=0k=0: q3=h+(0)=1q_3=h_+(0)=1. The step 1(k−1)\mathbb 1(k-1) switches the modes on from k=1k=1.

Step 3 - the constants from the boundary conditions

To find q1,q2q_1,q_2 impose the values computed in Step 2, h+(2)=1h_+(2)=1 and h+(1)=5h_+(1)=5:

{q132+q222=1q131+q221=5 ⟹ {9q1+4q2=13q1+2q2=5.\begin{cases} q_1 3^2+q_2 2^2=1\\ q_1 3^1+q_2 2^1=5\end{cases}\ \Longrightarrow\ \begin{cases} 9q_1+4q_2=1\\ 3q_1+2q_2=5.\end{cases}

From the first equation q1=(1−4q2)/9q_1=(1-4q_2)/9. Substituting in the second:

13(1−4q2)+2q2=5 ⟹ 1−4q2+6q2=15 ⟹ 2q2=14 ⟹ q2=7,\tfrac13(1-4q_2)+2q_2=5\ \Longrightarrow\ 1-4q_2+6q_2=15\ \Longrightarrow\ 2q_2=14\ \Longrightarrow\ q_2=7,

and then q1=(1−4⋅7)/9=−3q_1=(1-4\cdot 7)/9=-3.

Therefore

h+(k)=(−3⋅3k+7⋅2k)1(k−1)+δ(k).\boxed{h_+(k)=\bigl(-3\cdot 3^k+7\cdot 2^k\bigr)\mathbb 1(k-1)+\delta(k).}

Check: k=1k=1 gives −9+14=5-9+14=5; k=2k=2 gives −27+28=1-27+28=1; k=0k=0 gives only δ(0)=1\delta(0)=1.

Exercise left in the notes (homework)

For the same model determine the full response y(k)=yN(k)+yF(k)y(k)=y_N(k)+y_F(k) (natural plus forced) assuming y(−1)=1y(-1)=1, y(−2)=−1y(-2)=-1 and u(k)=1(k)u(k)=\mathbb 1(k). The notes give no solution.

Versione ripasso

Model: y(k)−5y(k−1)+6y(k−2)=u(k)−18u(k−2)y(k)-5y(k-1)+6y(k-2)=u(k)-18u(k-2), N=M=2N=M=2, k0=0k_0=0. Want the causal h+(k)h_+(k) (zero for k<0k<0): solve the Cauchy problem with u=δu=\delta and h+(−1)=h+(−2)=0h_+(-1)=h_+(-2)=0.

Steps

  1. S2 (recursion): h+(k)=5h+(k−1)−6h+(k−2)+δ(k)−18δ(k−2)h_+(k)=5h_+(k-1)-6h_+(k-2)+\delta(k)-18\delta(k-2) gives h+(0)=1h_+(0)=1, h+(1)=5h_+(1)=5, h+(2)=25−6−18=1h_+(2)=25-6-18=1.
  2. S1 (modes): for k≥M−N+1=1k\ge M-N+1=1 the homogeneous equation holds; λ2−5λ+6=0\lambda^2-5\lambda+6=0 gives λ=3,2\lambda=3,2. Ansatz h+(k)=(q13k+q22k)1(k−1)+q3δ(k)h_+(k)=(q_1 3^k+q_2 2^k)\mathbb 1(k-1)+q_3\delta(k) with q3=h+(0)=1q_3=h_+(0)=1.
  3. S3 (constants): 9q1+4q2=19q_1+4q_2=1, 3q1+2q2=53q_1+2q_2=5 gives q1=−3q_1=-3, q2=7q_2=7.

Result: h+(k)=(−3⋅3k+7⋅2k)1(k−1)+δ(k)h_+(k)=(-3\cdot 3^k+7\cdot 2^k)\mathbb 1(k-1)+\delta(k).

Typical mistakes: forgetting the δ(k)\delta(k) term (the value h+(0)h_+(0) is not on the modes); imposing the boundary conditions on h+(0)h_+(0) instead of h+(1),h+(2)h_+(1),h_+(2); losing the 1(k−1)\mathbb 1(k-1) factor.

Teoria collegata