Salta al contenutoWorked Examples - Discrete-Time Systems, Impulse Response and Savings ModelReport
Worked Examples - Discrete-Time Systems, Impulse Response and Savings Model
In questa pagina 3
For a discrete-time system x(t+1)=Fx(t)+Gu(t), y(t)=Hx(t), the modes are λt (and tλt, ... for non-trivial Jordan blocks) for the eigenvalues λ of F, and the transfer function is W(z)=H(zI−F)−1G. The impulse responsew(t) is the output when u(t)=δ(t) (the discrete unit impulse, equal to 1 at t=0 and 0 elsewhere): since U(z)=1, Yf(z)=W(z)U(z)=W(z), so w is the inverse z-transform of W(z).
To invert a z-transform, the board multiplies and divides by z,
Z−1[W(z)]=Z−1[zW(z)⋅z],
expands W(z)/z in partial fractions, and uses z−pz↔ptδ−1(t) (with δ−1 the unit step) and 1↔δ(t).
Example 1 - eigenvalues, modes and impulse response
Eigenvalues.ΔF(λ)=det(λI−F)=det(λ−0.5−0.5−0.1λ−0.9)=(λ−0.5)(λ−0.9)−0.05=λ2−1.4λ+0.4,λ1/2=10.7±0.49−0.4=0.7±0.3={10.4J=(10.4),
with modes 1t and 0.4t, i.e. 1 and 0.4t.
Impulse response (w(t), input u(t)=δ(t)): W(z)=H(zI−F)−1G=(10)(acbd)(01)=b, the top-right entry of the inverse. With
(zI−F)−1=(z−0.5−0.5−0.1z−0.9)−1=(z−1)(z−0.4)(∗∗0.1∗)
one gets
W(z)=(z−1)(z−0.4)0.1.
Partial fractions of W(z)/z:
zW(z)=(z−1)(z−0.4)z0.1=0.40.1z1+0.61z−10.1−0.241z−0.40.1=41z1+61z−11−2410z−0.41.
Multiplying back by z and inverting:
w(t)=Z−1[41+61z−1z−2410z−0.4z](t)=[41δ(t)+611t−24100.4t]δ−1(t).Sanity check:w(0)=0, and indeed 41+61−2410=246+4−10=0 (the output has no direct term, because HG=0).
Example 2 - impulse response and rectilinear trajectories
Stability. The Lyapunov equation for discrete time is written on the board as −Q=FTPF+P, with Q=QT, Q≻0 (one may take Q=I). Flagged: in the strip the last term reads +P; I transcribe it as read. The board does not solve the equation. The eigenvalues are λ1=1, λ2=0.5, with modes 1 and 0.5t.
Impulse response.W(z)=H(zI−F)−1G=b (top-right entry):
(zI−F)−1=(z−10−ϵz−0.5)−1=(z−1)(z−0.5)(∗∗ϵ∗),W(z)=(z−1)(z−0.5)ϵ⋅zz.zW(z)=z2ϵ+z−12ϵ−z−0.54ϵ,w(t)=Z−1[2ϵ+2ϵz−1z−4ϵz−0.5z](t)=(2ϵδ(t)+2ϵ−4ϵ0.5t)δ−1(t).
(At t=0: 2ϵ+2ϵ−4ϵ=0, as in Example 1.)
Rectilinear trajectories passing through the origin. We look for trajectories of the form x(t)=f(t)x(0), so that x(t+1)=f(t)x(t)=f~(t)x(0) keeps the same direction. This happens if x(t)=λtx(0), with x(0) an eigenvector of F corresponding to a real eigenvalue λ of F. For λ1=1: Fv1=λ1v1=v1,
(10ϵ0.5)(v11v12)=(v11v12)⇒v11=1,v12=0,
so v1∈⟨(10)⟩; starting from x(0)∈⟨(10)⟩ one has x(t)=λ1tx(0)=x(0). (The board leaves the case λ2=0.5 unwritten.)
Example 3 - a monthly savings model in state-space form
Two accounts: the checking account x1(t) and the savings account x2(t) hold, respectively, the amounts (in euros) on the 15th day of the t-th month. The rules are:
the checking account earns 0.1% every month (computed on the amount of the previous month); the savings account earns 0.2%;
at the beginning of each month, 40% of the checking account (as on the 15th day of the previous month) is transferred to the savings account;
at the end of each month, 30% of the total asset is withdrawn from the checking account;
the salary u(t) is credited to the checking account at the end of each month.
Model.x1(t+1)=x1(t)+0.1%x1(t)−40%x1(t)−30%(x1(t)+x2(t))+u(t),x2(t+1)=x2(t)+0.2%x2(t)+40%x1(t),y(t)=x1(t)+x2(t)
(the output is the total asset). In matrix form x(t+1)=Fx(t)+Gu(t), y(t)=Hx(t) with
F=(0.3010.4−0.31.002),G=(10),H=(11).
(The entries: 1+0.001−0.4−0.3=0.301; the coefficient of x2 in the first equation is −0.3; second row 0.4 and 1+0.002=1.002.)
Eigenvalues.ΔF(λ)=det(λ−0.301−0.40.3λ−1.002)=λ2−1.303λ+… (the constant term is not completed on the board), and the roots written on the board are
λ1/2={0.5990.705both of modulus less than 1: asymptotically stable,
with modes λ1t=0.599t and λ2t=0.705t. The trace of F is 1.303; the two roots as written add up to 1.304, so the roots on the board are rounded.
Modes and transfer function: for x(t+1)=Fx(t)+Gu(t), y=Hx, the modes are λt for each eigenvalue λ of F (with tλt for non-trivial Jordan blocks), and W(z)=H(zI−F)−1G.
Impulse response: input u(t)=δ(t) gives U(z)=1, so Y(z)=W(z) and w(t)=Z−1[W(z)]. Method: write W(z)=zW(z)⋅z, expand W(z)/z in partial fractions, multiply by z again, then use z−pz↔ptδ−1(t) and 1↔δ(t).
Ex. 1, F=(0.50.50.10.9), G=(0,1)T, H=(10): ΔF(λ)=λ2−1.4λ+0.4, λ=1 and λ=0.4, modes 1t and 0.4t. W(z)=(z−1)(z−0.4)0.1. Partial fractions of W(z)/z give w(t)=[41δ(t)+611t−24100.4t]δ−1(t). Check: w(0)=41+61−2410=0, because HG=0.
Ex. 2, F=(10ϵ0.5), G=(0,1)T, H=(10): eigenvalues 1 and 0.5, W(z)=(z−1)(z−0.5)ϵ, and w(t)=(2ϵδ(t)+2ϵ−4ϵ0.5t)δ−1(t), again 0 at t=0.
Rectilinear trajectories: x(t)=λtx(0) keeps the direction of x(0) when x(0) is a real eigenvector of F. For λ1=1, Fv=v gives v∈⟨(1,0)T⟩, so x(t)=x(0) for every t. The case λ2=0.5 is not worked out on the board.