Salta al contenuto
Note per Studenti Impulse Matching Method Report

Impulse Matching Method

In questa pagina 8

The idea

Among all possible particular solutions yP(t)y_P(t) of ΣN\Sigma_N we need to identify the one with yP(t)=yF(t)y_P(t)=y_F(t) (see Natural and Forced Response of Causal LTI SystemsThe solution of a causal ODE with boundary conditions at t_0 splits uniquely into a natural response, a homogeneous solution fixed by the boundary conditions through the Wronskian matrix, and a forced response, the convolution of a causal impulse response with a switch-on input, which is zero before t_0.Natural and Forced Response of Causal LTI Systems →). Basically:

  • yP(t)y_P(t) corresponds to some generic h(t)h(t) that can be noncausal;
  • yF(t)y_F(t) corresponds to a specific h(t)=h+(t)h(t)=h_+(t) such that h+(t)=0h_+(t)=0 for all t<0t<0.

How do we determine such an h+(t)h_+(t)? One possible technique is the impulse matching method.

Constraints on h+(t)h_+(t)

We determine h+(t)h_+(t) by imposing

  • (a) h+(t)=0h_+(t)=0 for all t<0t<0,
  • (b) ∑n=0Nandndtnh+(t)=0\displaystyle\sum_{n=0}^Na_n\frac{d^n}{dt^n}h_+(t)=0 for t>0t>0.

Why (a)? Because we need to enforce causality. Why (b)? Because h+(t)h_+(t) is an impulse response, so ∑n=0Nandndtnh+(t)=∑m=0Mbmδ(m)(t),δ(0)(t)=δ(t),\sum_{n=0}^Na_n\frac{d^n}{dt^n}h_+(t)=\sum_{m=0}^Mb_m\delta^{(m)}(t),\qquad\delta^{(0)}(t)=\delta(t), but for t>0t>0 the RHS of this equation returns zero.

Does this mean h+(t)=yN(t)h_+(t)=y_N(t)? No! The whole balancing game is played at t=0t=0 (not t0t_0). Drop the assumption N≥MN\ge M for a moment and analyse the general case M,N∈NM,N\in\mathbb{N}: ∑n=0Nandndtnh+(0)=∑m=0Mbmδ(m)(0).\sum_{n=0}^Na_n\frac{d^n}{dt^n}h_+(0)=\sum_{m=0}^Mb_m\delta^{(m)}(0). So h+(t)h_+(t) must contain δ(m−N)\delta^{(m-N)} impulses for some m≥Nm\ge N if M≥NM\ge N! This suggests the ansatz   h+(t)=∑ℓ=1Nqℓ ψℓ(t) 1(t)+∑ℓ=0M−NqN+ℓ+1 δ(ℓ)(t)  \boxed{\;h_+(t)=\sum_{\ell=1}^Nq_\ell\,\psi_\ell(t)\,\mathbb{1}(t)+\sum_{\ell=0}^{M-N}q_{N+\ell+1}\,\delta^{(\ell)}(t)\;} We need to determine the coefficients q1,…,qN,qN+1q_1,\dots,q_N,q_{N+1} (and qN+2,…,qM+1q_{N+2},\dots,q_{M+1}). The latter group is often unnecessary because for physical systems N≥MN\ge M holds. Indeed qN+2q_{N+2} corresponds to δ(1)(t)\delta^{(1)}(t): the differentiation (which is not "strictly" causal!).

Tool: the product impulse ×\times signal (I×SI\times S) theorem

Theorem (product impulse ×\times signal). δ(ℓ)(t) x(t)=∑m=0ℓ(−1)mdmxdtm(0) δ(ℓ−m)(t)\delta^{(\ell)}(t)\,x(t)=\sum_{m=0}^{\ell}(-1)^m\frac{d^mx}{dt^m}(0)\,\delta^{(\ell-m)}(t) (transcribed as written on the scan; the scan shows no binomial coefficient). In particular, for ℓ=1\ell=1, the case used below, δ(1)(t) x(t)=x(0) δ(1)(t)−dxdt(0) δ(t).\delta^{(1)}(t)\,x(t)=x(0)\,\delta^{(1)}(t)-\frac{dx}{dt}(0)\,\delta(t). Caution: for ℓ≥2\ell\ge2 the general sum above looks incomplete (a binomial coefficient (ℓm)\binom{\ell}{m} in front of each term would be expected, e.g. −2x˙(0)δ(1)-2\dot x(0)\delta^{(1)} for ℓ=2\ell=2); only ℓ=0,1\ell=0,1 are checked against the scan's examples.

The forced response of a (causal) LTI convolutional system is yF(t)=1(t−t0)∫t0−th+(t−τ) u(τ) dτ.y_F(t)=\mathbb{1}(t-t_0)\int_{t_0^-}^th_+(t-\tau)\,u(\tau)\,d\tau . We will not check whether the ansatz above for h+(t)h_+(t) is correct; we get a procedure out of it to determine the constants q1,q2,…q_1,q_2,\dots. There are three long steps.

Step 1 - compute and decompose the nn-th derivatives of h+(t)h_+(t)

For n=0,…,Nn=0,\dots,N and n≠0n\ne0: dndtn[ψℓ(t)1(t)]=ψ~nℓ(t)1(t)⏟non-impulsive term+∑i=0n−1ξni δ(i)(t)⏟impulsive term (I×S theorem),ξni∈C.\frac{d^n}{dt^n}\big[\psi_\ell(t)\mathbb{1}(t)\big]=\underbrace{\tilde\psi_{n\ell}(t)\mathbb{1}(t)}_{\text{non-impulsive term}}+\underbrace{\sum_{i=0}^{n-1}\xi_{ni}\,\delta^{(i)}(t)}_{\text{impulsive term (}I\times S\text{ theorem)}},\qquad\xi_{ni}\in\mathbb{C}. Notice that for all t≠0t\neq0, dndtnψℓ(t)=ψ~nℓ(t)1(t)\frac{d^n}{dt^n}\psi_\ell(t)=\tilde\psi_{n\ell}(t)\mathbb{1}(t); by construction the ψ~\tilde\psi's do not depend on any δ(i)\delta^{(i)}. Also set ψ~0ℓ(t):=ψℓ(t)\tilde\psi_{0\ell}(t):=\psi_\ell(t) for all ℓ=1,…,N\ell=1,\dots,N. Write the expression of h+(t),ddth+(t),…,dNdtNh+(t)h_+(t),\frac d{dt}h_+(t),\dots,\frac{d^N}{dt^N}h_+(t) in terms of ψ~\tilde\psi and ξ\xi.

Observation. ∑n=0Nandndtnh+(t)=∑n=0Nandndtn[∑ℓ=1Nqℓψℓ(t)1(t)+∑ℓ=0M−NqN+ℓ+1δ(ℓ)(t)]=∑n=0Nan∑ℓ=1Nqℓdndtn[ψℓ(t)1(t)]+∑n=0Nan∑ℓ=0M−NqN+ℓ+1δ(ℓ+n)(t)=∑n=0Nan∑ℓ=1Nqℓ[ψ~nℓ(t)1(t)+∑i=0n−1ξniδ(i)(t)]+∑n=0Nan∑ℓ=0M−NqN+ℓ+1δ(ℓ+n)(t)=1(t)⋅(∑n=0Nan∑ℓ=1Nqℓψ~nℓ(t))⏟=0+…(impulsive terms)\begin{aligned} \sum_{n=0}^Na_n\frac{d^n}{dt^n}h_+(t)&=\sum_{n=0}^Na_n\frac{d^n}{dt^n}\left[\sum_{\ell=1}^Nq_\ell\psi_\ell(t)\mathbb{1}(t)+\sum_{\ell=0}^{M-N}q_{N+\ell+1}\delta^{(\ell)}(t)\right]\\ &=\sum_{n=0}^Na_n\sum_{\ell=1}^Nq_\ell\frac{d^n}{dt^n}\big[\psi_\ell(t)\mathbb{1}(t)\big]+\sum_{n=0}^Na_n\sum_{\ell=0}^{M-N}q_{N+\ell+1}\delta^{(\ell+n)}(t)\\ &=\sum_{n=0}^Na_n\sum_{\ell=1}^Nq_\ell\left[\tilde\psi_{n\ell}(t)\mathbb{1}(t)+\sum_{i=0}^{n-1}\xi_{ni}\delta^{(i)}(t)\right]+\sum_{n=0}^Na_n\sum_{\ell=0}^{M-N}q_{N+\ell+1}\delta^{(\ell+n)}(t)\\ &=\underbrace{\mathbb{1}(t)\cdot\left(\sum_{n=0}^Na_n\sum_{\ell=1}^Nq_\ell\tilde\psi_{n\ell}(t)\right)}_{=0}+\dots\quad(\text{impulsive terms}) \end{aligned} The bracket is 00 because the ψ~nℓ(t)\tilde\psi_{n\ell}(t) are such that they satisfy the (HE) for all t∈Rt\in\mathbb{R}. So the non-impulsive part cancels and only impulses remain.

Step 2 - equate the combination of impulses

∑n=0Nan(∑ℓ=1Nqℓ∑i=0n−1ξniδ(i)(t)+∑ℓ=0M−NqN+ℓ+1δ(ℓ+n)(t))=∑m=0Mbmδ(m)(t).\sum_{n=0}^Na_n\left(\sum_{\ell=1}^Nq_\ell\sum_{i=0}^{n-1}\xi_{ni}\delta^{(i)}(t)+\sum_{\ell=0}^{M-N}q_{N+\ell+1}\delta^{(\ell+n)}(t)\right)=\sum_{m=0}^Mb_m\delta^{(m)}(t). Rearranging, ∑ℓ=1Nqℓ(∑n=0Nan∑i=0n−1ξniδ(i)(t))+∑ℓ=0M−NqN+ℓ+1(∑n=0Nanδ(ℓ+n)(t))=…\sum_{\ell=1}^Nq_\ell\left(\sum_{n=0}^Na_n\sum_{i=0}^{n-1}\xi_{ni}\delta^{(i)}(t)\right)+\sum_{\ell=0}^{M-N}q_{N+\ell+1}\left(\sum_{n=0}^Na_n\delta^{(\ell+n)}(t)\right)=\dots Express the LHS as ∑ℓ=1L+1qℓ(∑i=0Lαiℓ δ(i)(t)),L=max⁡(N−1,M).\sum_{\ell=1}^{L+1}q_\ell\left(\sum_{i=0}^L\alpha_{i\ell}\,\delta^{(i)}(t)\right),\qquad L=\max(N-1,M). To determine αiℓ\alpha_{i\ell} simply gather all the coefficients corresponding to the pair (qℓ,δ(i)(t))(q_\ell,\delta^{(i)}(t)). If N>MN>M define bM+1=bM+2=⋯=bN−1=0b_{M+1}=b_{M+2}=\dots=b_{N-1}=0. We get ∑ℓ=1L+1qℓ(∑i=0Lαiℓ δ(i)(t))=∑i=0Lbi δ(i)(t).\sum_{\ell=1}^{L+1}q_\ell\left(\sum_{i=0}^L\alpha_{i\ell}\,\delta^{(i)}(t)\right)=\sum_{i=0}^Lb_i\,\delta^{(i)}(t).

Step 3 - solve the linear system for q1,…,qL+1q_1,\dots,q_{L+1}

Equating the coefficient of each δ(i)\delta^{(i)} gives L+1L+1 equations in the L+1L+1 unknowns: [α01α02⋯α0Lα0,L+1α11α12⋯α1Lα1,L+1⋮⋮αL,1αL,2⋯αLLαL,L+1][q1q2⋮qLqL+1]=[b0b1⋮bL−1bL] ⇒ solution [q^1⋮q^L+1]\begin{bmatrix}\alpha_{01}&\alpha_{02}&\cdots&\alpha_{0L}&\alpha_{0,L+1}\\ \alpha_{11}&\alpha_{12}&\cdots&\alpha_{1L}&\alpha_{1,L+1}\\ \vdots&&&&\vdots\\ \alpha_{L,1}&\alpha_{L,2}&\cdots&\alpha_{LL}&\alpha_{L,L+1}\end{bmatrix}\begin{bmatrix}q_1\\q_2\\ \vdots\\q_L\\q_{L+1}\end{bmatrix}=\begin{bmatrix}b_0\\b_1\\ \vdots\\b_{L-1}\\b_L\end{bmatrix} \ \Rightarrow\ \text{solution }\begin{bmatrix}\hat q_1\\ \vdots\\ \hat q_{L+1}\end{bmatrix} (the scan labels the rows 1,…,L+11,\dots,L+1, which here are i=0,…,Li=0,\dots,L). The solution exists and is unique because of the yF(t)y_F(t) properties.

Worked example

{y¨+2y˙+y=−3u¨+5u˙+u,u∈St0y(t0−)=y˙(t0−)=e,t0=−1.\begin{cases}\ddot y+2\dot y+y=-3\ddot u+5\dot u+u,\qquad u\in\mathcal{S}_{t_0}\\ y(t_0^-)=\dot y(t_0^-)=e,\qquad t_0=-1.\end{cases} (The scan shows −3u¨-3\ddot u with two dots; the impulse equation below, with −3δ(2)-3\delta^{(2)}, confirms it.)

Natural response. p2+2p+1=0⇝(p+1)2=0p^2+2p+1=0\leadsto(p+1)^2=0, p=−1p=-1 with multiplicity 22. Modes ψ1(t)=e−t\psi_1(t)=e^{-t}, ψ2(t)=te−t\psi_2(t)=te^{-t}, with ψ˙1(t)=−e−t\dot\psi_1(t)=-e^{-t}, ψ˙2(t)=(1−t)e−t\dot\psi_2(t)=(1-t)e^{-t}. Impose the BCs at t0−=−1t_0^-=-1: [ψ1(t0−)ψ2(t0−)ψ˙1(t0−)ψ˙2(t0−)][c1c2]=[y(−1)y˙(−1)]⇝[e−e−e2e][c1c2]=[ee]\begin{bmatrix}\psi_1(t_0^-)&\psi_2(t_0^-)\\ \dot\psi_1(t_0^-)&\dot\psi_2(t_0^-)\end{bmatrix}\begin{bmatrix}c_1\\c_2\end{bmatrix}=\begin{bmatrix}y(-1)\\ \dot y(-1)\end{bmatrix} \leadsto\begin{bmatrix}e&-e\\-e&2e\end{bmatrix}\begin{bmatrix}c_1\\c_2\end{bmatrix}=\begin{bmatrix}e\\e\end{bmatrix} {c1−c2=1−c1+2c2=1⇒c^1=3, c^2=2,yN(t)=3e−t+2te−t.\begin{cases}c_1-c_2=1\\-c_1+2c_2=1\end{cases}\Rightarrow\hat c_1=3,\ \hat c_2=2,\qquad y_N(t)=3e^{-t}+2te^{-t}.

Impulse response h+(t)h_+(t). Take u(t)=δ(t)u(t)=\delta(t): h¨+(t)+2h˙+(t)+h+(t)=−3δ(2)(t)+5δ(1)(t)+δ(t).\ddot h_+(t)+2\dot h_+(t)+h_+(t)=-3\delta^{(2)}(t)+5\delta^{(1)}(t)+\delta(t). h+(t)h_+(t) has to be (1) causal, h+(t)=0h_+(t)=0 for all t<0t<0; (2) a solution of h¨++2h˙++h+=0\ddot h_++2\dot h_++h_+=0 for all t>0t>0. Also, h+(t)h_+(t) has to contain a linear combination of impulses because M≥NM\ge N (here M=N=2M=N=2). Ansatz: h+(t)=q1e−t1(t)+q2te−t1(t)+q3δ(t).h_+(t)=q_1e^{-t}\mathbb{1}(t)+q_2te^{-t}\mathbb{1}(t)+q_3\delta(t). Step 1 (derivatives). Using e−tδ(t)=δ(t)e^{-t}\delta(t)=\delta(t) and te−tδ(t)=0⋅δ(t)te^{-t}\delta(t)=0\cdot\delta(t): h˙+(t)=−q1e−t1(t)+q1δ(t)+q2(1−t)e−t1(t)+q3δ(1)(t),\dot h_+(t)=-q_1e^{-t}\mathbb{1}(t)+q_1\delta(t)+q_2(1-t)e^{-t}\mathbb{1}(t)+q_3\delta^{(1)}(t), h¨+(t)=q1e−t1(t)−q1δ(t)+q1δ(1)(t)+q2(t−2)e−t1(t)+q2δ(t)+q3δ(2)(t)\ddot h_+(t)=q_1e^{-t}\mathbb{1}(t)-q_1\delta(t)+q_1\delta^{(1)}(t)+q_2(t-2)e^{-t}\mathbb{1}(t)+q_2\delta(t)+q_3\delta^{(2)}(t) (the scan keeps terms such as q1e−tδ(1)(t)q_1e^{-t}\delta^{(1)}(t) and q2te−tδ(1)(t)q_2te^{-t}\delta^{(1)}(t) unsimplified; they are reduced with the I×SI\times S theorem: δ(1)(t)e−t=δ(1)(t)+δ(t)\delta^{(1)}(t)e^{-t}=\delta^{(1)}(t)+\delta(t) and t δ(1)(t)e−t=−δ(t)t\,\delta^{(1)}(t)e^{-t}=-\delta(t)).

Step 2 (equate). In h¨++2h˙++h+\ddot h_++2\dot h_++h_+ all terms in e−t1(t)e^{-t}\mathbb{1}(t) and te−t1(t)te^{-t}\mathbb{1}(t) cancel (they satisfy the HE), and the impulses collected are δ(t): q1+q2+q3,δ(1)(t): q1+2q3,δ(2)(t): q3,\delta(t):\ q_1+q_2+q_3,\qquad\delta^{(1)}(t):\ q_1+2q_3,\qquad\delta^{(2)}(t):\ q_3, to be equated to 11, 55, −3-3 respectively.

Step 3 (linear system). [111102001][q1q2q3]=[15−3]←δ(t)←δ(1)(t)←δ(2)(t)\begin{bmatrix}1&1&1\\1&0&2\\0&0&1\end{bmatrix}\begin{bmatrix}q_1\\q_2\\q_3\end{bmatrix}=\begin{bmatrix}1\\5\\-3\end{bmatrix}\qquad\begin{matrix}\leftarrow\delta(t)\\ \leftarrow\delta^{(1)}(t)\\ \leftarrow\delta^{(2)}(t)\end{matrix} Third row: q3=−3q_3=-3, so q^3=−3\hat q_3=-3. Second row: q1+2q3=5⇒q^1=5−2(−3)=11q_1+2q_3=5\Rightarrow\hat q_1=5-2(-3)=11. First row: q1+q2+q3=1⇒q^2=1−11−(−3)=−7q_1+q_2+q_3=1\Rightarrow\hat q_2=1-11-(-3)=-7. Solution:   h+(t)=11e−t1(t)−7te−t1(t)−3δ(t)  \boxed{\;h_+(t)=11e^{-t}\mathbb{1}(t)-7te^{-t}\mathbb{1}(t)-3\delta(t)\;} Is the I×SI\times S theorem necessary? No! You can sample before computing the derivatives of h+h_+ (the scan's marginal remark).

Forced response. yF(t)=1(t+1)∫−1−th+(t−τ) u(τ) dτ,∀u∈St0,y_F(t)=\mathbb{1}(t+1)\int_{-1^-}^th_+(t-\tau)\,u(\tau)\,d\tau,\qquad\forall u\in\mathcal{S}_{t_0}, and the full solution is y=yN+yFy=y_N+y_F.

Take-home message

yF(t)y_F(t) and yN(t)y_N(t) are "orthogonal" in terms of effects caused by input and BCs, respectively: the natural response depends only on the boundary conditions, the forced response only on the input. For the discrete-time analogue, where no impulse matching is needed, see Recursive Construction MethodIn discrete time the causal impulse response h_+ of an ARMA model is built recursively from the Kronecker impulse for k from 0 to M, and then written as modes plus a few impulses by solving an N by N linear system.Recursive Construction Method →.

Versione ripasso

Goal: causal impulse response h+(t)h_+(t) of ∑n=0Nany(n)=∑m=0Mbmu(m)\sum_{n=0}^Na_ny^{(n)}=\sum_{m=0}^Mb_mu^{(m)}, so that yF(t)=1(t−t0)∫t0−th+(t−τ)u(τ)dτy_F(t)=\mathbb{1}(t-t_0)\int_{t_0^-}^th_+(t-\tau)u(\tau)d\tau.

  • Constraints: (a) h+=0h_+=0 for t<0t<0; (b) ∑anh+(n)=0\sum a_nh_+^{(n)}=0 for t>0t>0. The balancing is at t=0t=0, so h+≠yNh_+\ne y_N.
  • Ansatz: h+(t)=∑ℓ=1Nqℓψℓ(t)1(t)+∑ℓ=0M−NqN+ℓ+1δ(ℓ)(t)h_+(t)=\sum_{\ell=1}^Nq_\ell\psi_\ell(t)\mathbb{1}(t)+\sum_{\ell=0}^{M-N}q_{N+\ell+1}\delta^{(\ell)}(t) (impulse part only if M≥NM\ge N; physical systems have N≥MN\ge M).
  • I×SI\times S theorem (used for ℓ=1\ell=1): δ(1)(t)x(t)=x(0)δ(1)(t)−x˙(0)δ(t)\delta^{(1)}(t)x(t)=x(0)\delta^{(1)}(t)-\dot x(0)\delta(t).
  • 3 steps: (1) compute dndtn[ψℓ1]=ψ~nℓ1+∑i<nξniδ(i)\frac{d^n}{dt^n}[\psi_\ell\mathbb{1}]=\tilde\psi_{n\ell}\mathbb{1}+\sum_{i<n}\xi_{ni}\delta^{(i)}; the non-impulsive part cancels by (HE). (2) Equate the impulses: ∑ℓ=1L+1qℓ∑i=0Lαiℓδ(i)=∑i=0Lbiδ(i)\sum_{\ell=1}^{L+1}q_\ell\sum_{i=0}^L\alpha_{i\ell}\delta^{(i)}=\sum_{i=0}^Lb_i\delta^{(i)}, L=max⁡(N−1,M)L=\max(N-1,M), with bM+1=⋯=bN−1=0b_{M+1}=\dots=b_{N-1}=0 if N>MN>M. (3) Solve the linear system for q1,…,qL+1q_1,\dots,q_{L+1} (unique solution).
  • Example y¨+2y˙+y=−3u¨+5u˙+u\ddot y+2\dot y+y=-3\ddot u+5\dot u+u, y(−1−)=y˙(−1−)=ey(-1^-)=\dot y(-1^-)=e: yN=3e−t+2te−ty_N=3e^{-t}+2te^{-t} (from [[e,−e],[−e,2e]]c=[e,e]T[[e,-e],[-e,2e]]\mathbf{c}=[e,e]^T); h+=11e−t1−7te−t1−3δh_+=11e^{-t}\mathbb{1}-7te^{-t}\mathbb{1}-3\delta from [[1,1,1],[1,0,2],[0,0,1]]q=[1,5,−3]T[[1,1,1],[1,0,2],[0,0,1]]\mathbf{q}=[1,5,-3]^T. Total y=yN+yFy=y_N+y_F.
  • yFy_F depends on input only, yNy_N on BCs only.
  • Typical mistakes: wrong rows in the impulse system (rows are δ(i)\delta^{(i)}, not equations of the modes); forgetting the q3δ(t)q_3\delta(t) term when M=NM=N; taking BCs at t0t_0 instead of t0−t_0^-.

Teoria collegata