Salta al contenuto
Note per Studenti Worked Examples - Lyapunov Equation, Output Response and Rectilinear Trajectories Report

Worked Examples - Lyapunov Equation, Output Response and Rectilinear Trajectories

In questa pagina 3

System. A continuous-time linear time-invariant (CT LTI) system x˙=Fx\dot x=Fx with a real parameter aa: F=(−100−1−1000a).F=\begin{pmatrix}-1&0&0\\-1&-1&0\\0&0&a\end{pmatrix}. Questions: (1) stability via the Lyapunov equation; (2) the output y(t)=Hix(t)y(t)=H_ix(t) for H1=(1 0 0)H_1=(1\ 0\ 0) and H2=(0 0 1)H_2=(0\ 0\ 1); (3) all the trajectories x(t)x(t) with x(t)x(t) parallel to x(0)x(0) (equivalently, all rectilinear trajectories passing through the origin).

(1) Stability with the Lyapunov equation

The equation is −Q=FTP+PF,-Q=F^TP+PF, and we choose Q=IQ=I (symmetric positive definite). FF is block diagonal, so QQ and PP are taken block diagonal too: F=(F1F2),Q=(Q1Q2),P=(P1P2) ⟹ (−Q1−Q2)=(F1TP1+P1F1F2TP2+P2F2),F=\begin{pmatrix}F_1&\\&F_2\end{pmatrix},\quad Q=\begin{pmatrix}Q_1&\\&Q_2\end{pmatrix},\quad P=\begin{pmatrix}P_1&\\&P_2\end{pmatrix}\ \Longrightarrow\ \begin{pmatrix}-Q_1&\\&-Q_2\end{pmatrix}=\begin{pmatrix}F_1^TP_1+P_1F_1&\\&F_2^TP_2+P_2F_2\end{pmatrix}, so the problem splits into two independent equations.

Block 1. F1=(−10−1−1)F_1=\begin{pmatrix}-1&0\\-1&-1\end{pmatrix} and P1=(p11p12p12p22)=P1TP_1=\begin{pmatrix}p_{11}&p_{12}\\p_{12}&p_{22}\end{pmatrix}=P_1^T (the board calls the entries a,b,ca,b,c; here p11,p12,p22p_{11},p_{12},p_{22} to avoid a clash with the parameter aa). Then −Q1=F1TP1+P1F1=(−1−10−1)(p11p12p12p22)+P1F1-Q_1=F_1^TP_1+P_1F_1=\begin{pmatrix}-1&-1\\0&-1\end{pmatrix}\begin{pmatrix}p_{11}&p_{12}\\p_{12}&p_{22}\end{pmatrix}+P_1F_1 =(−p11−p12−p12−p22−p12−p22)+(−p11−p12−p12−p12−p22−p22)=(−2p11−2p12−2p12−p22−2p12−p22−2p22).=\begin{pmatrix}-p_{11}-p_{12}&-p_{12}-p_{22}\\-p_{12}&-p_{22}\end{pmatrix}+\begin{pmatrix}-p_{11}-p_{12}&-p_{12}\\-p_{12}-p_{22}&-p_{22}\end{pmatrix}=\begin{pmatrix}-2p_{11}-2p_{12}&-2p_{12}-p_{22}\\-2p_{12}-p_{22}&-2p_{22}\end{pmatrix}. With −Q1=−I-Q_1=-I: {−1=−2p11−2p120=−2p12−p22−1=−2p22⟹ p22=12,p12=−p222=−14,p11=12−p12=34.\begin{cases}-1=-2p_{11}-2p_{12}\\0=-2p_{12}-p_{22}\\-1=-2p_{22}\end{cases}\Longrightarrow\ p_{22}=\tfrac12,\quad p_{12}=-\tfrac{p_{22}}2=-\tfrac14,\quad p_{11}=\tfrac12-p_{12}=\tfrac34. P1=(34−14−1412)=14(3−1−12).P_1=\begin{pmatrix}\tfrac34&-\tfrac14\\-\tfrac14&\tfrac12\end{pmatrix}=\frac14\begin{pmatrix}3&-1\\-1&2\end{pmatrix}. (The board writes the prefactor as a fraction under the 4, i.e. 14\frac14, consistent with the values just found.)

Sylvester's criterion: first minor 3>03>0; second minor det⁡(3−1−12)=6−1=5>0\det\begin{pmatrix}3&-1\\-1&2\end{pmatrix}=6-1=5>0. So P1P_1 is positive definite.

Block 2. F2=aF_2=a (a scalar). −Q2=F2TP2+P2F2-Q_2=F_2^TP_2+P_2F_2 gives −1=2ap-1=2ap, so p=−12ap=-\dfrac1{2a}.

  • a>0a>0: p<0p<0, P2P_2 is not positive definite: unstable;
  • a<0a<0: p>0p>0: asymptotically stable;
  • a=0a=0: no solution of the equation, and the eigenvalue 00 is simple: simply stable.

(2) The output y(t)=Hx(t)y(t)=Hx(t)

In the Laplace domain Y(s)=HX(s)=H(sI−F)−1x(0)Y(s)=HX(s)=H(sI-F)^{-1}x(0). For a block-diagonal matrix A=(A1A2)A=\begin{pmatrix}A_1&\\&A_2\end{pmatrix} the inverse is A−1=(A1−1A2−1)A^{-1}=\begin{pmatrix}A_1^{-1}&\\&A_2^{-1}\end{pmatrix}, so Y(s)=H((sI−F1)−1(sI−F2)−1)x(0),Y(s)=H\begin{pmatrix}(sI-F_1)^{-1}&\\&(sI-F_2)^{-1}\end{pmatrix}x(0), where (sI−F1)−1(sI-F_1)^{-1} is 2×22\times2 and (sI−F2)−1(sI-F_2)^{-1} is 1×11\times1.

Case 1: H1=(1 0  0)H_1=(1\ 0\ \ 0). Only the first block enters: Y(s)=(1 0)(sI−F1)−1x(0)=(1 0)(s+101s+1)−1x(0)=(1 0)1(s+1)2(s+10−1s+1)x(0)Y(s)=(1\ 0)(sI-F_1)^{-1}x(0)=(1\ 0)\begin{pmatrix}s+1&0\\1&s+1\end{pmatrix}^{-1}x(0)=(1\ 0)\frac1{(s+1)^2}\begin{pmatrix}s+1&0\\-1&s+1\end{pmatrix}x(0) =(1s+1  0)x(0)=x1(0)s+1 → L−1  y(t)=e−tx1(0).=\Big(\frac1{s+1}\ \ 0\Big)x(0)=\frac{x_1(0)}{s+1}\ \xrightarrow{\ \mathcal L^{-1}\ }\ y(t)=e^{-t}x_1(0).

Case 2: H2=(0 0  1)H_2=(0\ 0\ \ 1). Only the second block enters: Y(s)=(sI−F2)−1x3(0)=(s−a)−1x3(0) → L−1  y(t)=eatx3(0).Y(s)=(sI-F_2)^{-1}x_3(0)=(s-a)^{-1}x_3(0)\ \xrightarrow{\ \mathcal L^{-1}\ }\ y(t)=e^{at}x_3(0). If a=0a=0, then y(t)=x3(0)y(t)=x_3(0).

(3) Rectilinear trajectories through the origin

We look for all trajectories with x(t)∥x(0)x(t)\parallel x(0), i.e. x(t)=f(t)x(0)x(t)=f(t)x(0) for a scalar function ff. This happens when x(0)x(0) is an eigenvector of FF corresponding to a real eigenvalue λ∈R\lambda\in\mathbb R; then x(t)=eλtx(0)x(t)=e^{\lambda t}x(0) (a straight line through the origin in the state space). So we compute the eigenvectors of FF for real eigenvalues: FF has λ1=−1\lambda_1=-1 and λ2=a\lambda_2=a, and one solves Ker⁡(F−λiI)\operatorname{Ker}(F-\lambda_iI), Fvi=λiviFv_i=\lambda_iv_i.

  • Second block, F2=[a]F_2=[a]: [v2]3=⟨1⟩[v_2]_3=\langle1\rangle, i.e. v2=(001)v_2=\begin{pmatrix}0\\0\\1\end{pmatrix}; the eigenvectors are ⟨(001)⟩\left\langle\begin{pmatrix}0\\0\\1\end{pmatrix}\right\rangle.
  • First block, F1=(−10−1−1)F_1=\begin{pmatrix}-1&0\\-1&-1\end{pmatrix}: v1=(010)v_1=\begin{pmatrix}0\\1\\0\end{pmatrix}, eigenvectors (associated with λ1\lambda_1) ⟨(010)⟩\left\langle\begin{pmatrix}0\\1\\0\end{pmatrix}\right\rangle.

All the rectilinear trajectories are therefore: λ1=−1: x(t)=e−tv1, v1∈⟨(010)⟩;λ2=a: x(t)=eatv2, v2∈⟨(001)⟩.\lambda_1=-1:\ x(t)=e^{-t}v_1,\ v_1\in\left\langle\begin{pmatrix}0\\1\\0\end{pmatrix}\right\rangle;\qquad\lambda_2=a:\ x(t)=e^{at}v_2,\ v_2\in\left\langle\begin{pmatrix}0\\0\\1\end{pmatrix}\right\rangle.

For the same technique on a 4x4 system see Worked Examples - Jordan Form, Modes and Stability of Linear SystemsFour worked exercises on continuous-time linear systems: Jordan form from algebraic and geometric multiplicity, modes, equilibria, stability from modes or eigenvalues, the solution through the Laplace transform, outputs of block-diagonal systems and rectilinear trajectories.Worked Examples - Jordan Form, Modes and Stability of Linear Systems →; for the discrete-time analogue (x(t)=λtx(0)x(t)=\lambda^tx(0)) see Worked Examples - Discrete-Time Systems, Impulse Response and Savings ModelWorked exercises on discrete-time linear systems: eigenvalues and modes of a 2x2 system, the impulse response obtained from the transfer function by partial fractions, rectilinear trajectories, and a monthly savings model written in state-space form.Worked Examples - Discrete-Time Systems, Impulse Response and Savings Model →.

Versione ripasso

F=(−100−1−1000a)F=\begin{pmatrix}-1&0&0\\-1&-1&0\\0&0&a\end{pmatrix}, block diagonal with F1=(−10−1−1)F_1=\begin{pmatrix}-1&0\\-1&-1\end{pmatrix} and F2=aF_2=a.

  • Lyapunov equation −Q=FTP+PF-Q=F^TP+PF with Q=IQ=I, solved block by block. Block 1: p22=12, p12=−14, p11=34p_{22}=\frac12,\ p_{12}=-\frac14,\ p_{11}=\frac34, P1=14(3−1−12)P_1=\frac14\begin{pmatrix}3&-1\\-1&2\end{pmatrix}, positive definite (minors 3>03>0, 5>05>0 in the Sylvester test on (3−1−12)\begin{pmatrix}3&-1\\-1&2\end{pmatrix}). Block 2: p=−12ap=-\frac1{2a}: a>0a>0 unstable, a<0a<0 asymptotically stable, a=0a=0 simply stable.
  • Output Y(s)=H(sI−F)−1x(0)Y(s)=H(sI-F)^{-1}x(0), block-diagonal inverse: H1=(1 0 0)H_1=(1\ 0\ 0) gives y(t)=e−tx1(0)y(t)=e^{-t}x_1(0); H2=(0 0 1)H_2=(0\ 0\ 1) gives y(t)=eatx3(0)y(t)=e^{at}x_3(0) (=x3(0)=x_3(0) if a=0a=0).
  • Rectilinear trajectories through the origin: x(0)x(0) eigenvector for a real λ\lambda, x(t)=eλtx(0)x(t)=e^{\lambda t}x(0). λ1=−1\lambda_1=-1: x(t)=e−tv1x(t)=e^{-t}v_1, v1∈⟨(0,1,0)T⟩v_1\in\langle(0,1,0)^T\rangle; λ2=a\lambda_2=a: x(t)=eatv2x(t)=e^{at}v_2, v2∈⟨(0,0,1)T⟩v_2\in\langle(0,0,1)^T\rangle.

Typical mistake: using a full (non block) PP when blocks decouple, or forgetting that a=0a=0 has no solution of the Lyapunov equation.

Teoria collegata