n=0∑Nanz−nh+(k)=0 for all k≥M+1 (where z−nf(k)=f(k−n)).
"Why not k>0?" We will see right below. These two constraints lead to the recursive determination of a causal h+(k).
The recursion
Apply the Kronecker impulse u(k):={1,0,k=0k=0. Then
⎩⎨⎧n=0∑Nanh+(k−n)=m=0∑Mbmδ(k−m),h+(−1)=h+(−2)=⋯=h+(−N)=0∀k≥0
Solving for h+(k) (the term n=0 is a0h+(k), which is why a0=0 is needed):
h+(k)=−n=1∑Na0anh+(k−n)+⎩⎨⎧a0bk,0,if 0≤k≤Motherwise(REC)
This also explains constraint 2: the RHS ∑mbmδ(k−m) vanishes exactly for k≥M+1 (and not for k>0).
Note. Conversely to continuous time, h+(k) has no causality issues for M>N (there are no derivatives of impulses, only delayed samples).
Step 1. Compute the modes ψℓ(k), ℓ=1,…,N. Recall
n=0∑Nanz−n(ℓ=1∑Nqℓψℓ(k))=0
because this is the solution to the (HE). Fact:h+(k)=ℓ=1∑Nqℓψℓ(k)if k≥M−N+1.
(Indeed for k≥M+1 the recursion (REC) is homogeneous and involves h+(k−1),…,h+(k−N), whose arguments start at M+1−N.)
Step 2. Compute recursively h+(k) for k=0,…,M using (REC). If M≥N, set
qN+ℓ+1=h+(ℓ),ℓ=0,1,…,M−N.
Note: the execution of Step 1 and Step 2 can be swapped.
Step 3. Compute the coefficients q1,…,qN by solving the system of N equations in the unknowns qℓ obtained by writing
LHS: h+(k)=∑ℓ=1Nqℓψℓ(k) (from Step 1),
at k=M−N+1,…,M, and taking as a constant vector
RHS: [h+(M−N+1),…,h+(M)]T, computed by using (REC), similarly to Step 2.
That is, solve for q1,…,qNψ1(M−N+1)ψ1(M−N+2)⋮ψ1(M)ψ2(M−N+1)ψ2(M−N+2)⋮ψ2(M)⋯⋯⋯ψN(M−N+1)ψN(M−N+2)⋮ψN(M)q1q2⋮qN=h+(M−N+1)h+(M−N+2)⋮h+(M).
(If M<N some of these instants are ≤0; there h+ is given by the initial values h+(k)=0 for k<0 and by (REC) for k≥0.)
The forced response is then yF(k)=∑n=k0kh+(k−n)u(n) and the total solution is y=yN+yF.
The scan ends here (the lecture stops at part 1 of the method), with no worked example.
Versione ripasso
Goal: causal h+(k) for the ARMA model ∑n=0Nany(k−n)=∑m=0Mbmu(k−m) (a0=0, aN=0, bM=0), so that yF(k)=∑n=k0kh+(k−n)u(n) and y=yN+yF.
Constraints:h+(k)=0 for k<0; ∑anz−nh+(k)=0 for k≥M+1 (not k>0, because the Kronecker impulse input gives bk terms for 0≤k≤M).
(REC):h+(k)=−∑n=1Na0anh+(k−n)+{bk/a0,0,0≤k≤Motherwise, with h+(−1)=⋯=h+(−N)=0.
No causality issue when M>N (unlike continuous time).
Ansatz:h+(k)=∑ℓ=1Nqℓψℓ(k)1(k−(M−N+1))+∑ℓ=0M−NqN+ℓ+1δ(k−ℓ); fact: h+(k)=∑ℓqℓψℓ(k) for k≥M−N+1.
Procedure: (1) find modes ψℓ(k); (2) compute h+(k) for k=0..M by (REC), and if M≥N set qN+ℓ+1=h+(ℓ), ℓ=0..M−N; (3) solve the N×N system ∑ℓqℓψℓ(k)=h+(k) at k=M−N+1..M for q1..qN. Steps 1 and 2 can be swapped.
Typical mistakes: dropping the 1/a0 factors in (REC); building the matrix at the wrong instants (they are M−N+1,…,M); forgetting the delta terms when M≥N.