Salta al contenuto
Note per Studenti Solution of LTI Systems and the Matrix Exponential Report

Solution of LTI Systems and the Matrix Exponential

In questa pagina 6

The autonomous LTI system

LTI system (see State-Space ModelsA state-space model describes a system with a state vector, an input and an output; it can be nonlinear, control-affine or linear (LTI or LTV), in continuous or discrete time.State-Space Models →):

x˙(t)=Fx(t)+Gu(t),y(t)=Hx(t)+Ju(t).\dot x(t) = F x(t) + G u(t), \qquad y(t) = H x(t) + J u(t).

The autonomous LTI system has no input:

x˙(t)=Fx(t),x(0)=x0,y(t)=Hx(t).\boxed{\dot x(t) = F x(t)}, \quad x(0) = x_0, \qquad y(t) = H x(t).

Scalar case

For x(t)∈Rx(t) \in \mathbb{R}, F∈RF \in \mathbb{R} the solution is x(t)=x0eFtx(t) = x_0 e^{Ft}. The exponential has the series

ey=1+y+y22!+⋯=∑k=0∞ykk!,e^{y} = 1 + y + \frac{y^2}{2!} + \dots = \sum_{k=0}^{\infty} \frac{y^k}{k!},

which converges for every y∈Ry \in \mathbb{R}.

Matrix exponential

If F∈Rn×nF \in \mathbb{R}^{n \times n} the matrix exponential is defined by the same series:

eF=∑k=0∞Fkk!=F0+∑k=1∞Fkk!,F0=I.e^{F} = \sum_{k=0}^{\infty} \frac{F^k}{k!} = F^0 + \sum_{k=1}^{\infty} \frac{F^k}{k!}, \qquad F^0 = I.

Ansatz (guess): x(t)=eFtx0x(t) = e^{Ft} x_0, F∈Rn×nF \in \mathbb{R}^{n \times n}. Check the two requirements.

  1. Initial condition: x(t)∣t=0=eF⋅0x0=(I+∑k=1∞0kk!)x0=x0x(t)\big|_{t=0} = e^{F\cdot 0} x_0 = \Big(I + \sum_{k=1}^{\infty} \frac{0^k}{k!}\Big) x_0 = x_0.
  2. Differential equation, ddtx(t)=Fx(t)\frac{d}{dt} x(t) = F x(t):

ddt(eFtx0)=ddt(∑k=0∞(Ft)kk!)x0=∑k=1∞1k! Fk k tk−1 x0=∑k=1∞1(k−1)! Fktk−1 x0=F∑k=1∞(Ft)k−1(k−1)! x0=F∑k=0∞(Ft)kk! x0=FeFtx0=Fx(t).\begin{aligned} \frac{d}{dt}\big(e^{Ft} x_0\big) &= \frac{d}{dt}\Big(\sum_{k=0}^{\infty} \frac{(Ft)^k}{k!}\Big) x_0 = \sum_{k=1}^{\infty} \frac{1}{k!}\,F^k\,k\,t^{k-1}\,x_0 \\ &= \sum_{k=1}^{\infty} \frac{1}{(k-1)!}\,F^k t^{k-1}\, x_0 = F \sum_{k=1}^{\infty} \frac{(Ft)^{k-1}}{(k-1)!}\, x_0 \\ &= F \sum_{k=0}^{\infty} \frac{(Ft)^{k}}{k!}\, x_0 = F e^{Ft} x_0 = F x(t). \end{aligned}

(The term k=0k=0 is II, whose derivative is 00, so the sum starts at k=1k=1.) Therefore

x(t)=eFtx0,∀t≥0(verified).x(t) = e^{Ft} x_0, \qquad \forall t \ge 0 \quad \text{(verified).}

Computing eFe^{F}

Diagonal matrix. If F=diag(f1,…,fn)F = \mathrm{diag}(f_1, \dots, f_n) then Fk=diag(f1k,…,fnk)F^k = \mathrm{diag}(f_1^k, \dots, f_n^k) for all k≥0k \ge 0, and

eF=I+∑k=1∞1k! diag(f1k,…,fnk)=diag(∑k=0∞f1kk!, …, ∑k=0∞fnkk!)=diag(ef1,…,efn).e^{F} = I + \sum_{k=1}^{\infty} \frac{1}{k!}\,\mathrm{diag}(f_1^k, \dots, f_n^k) = \mathrm{diag}\Big(\sum_{k=0}^{\infty}\frac{f_1^k}{k!},\ \dots,\ \sum_{k=0}^{\infty}\frac{f_n^k}{k!}\Big) = \mathrm{diag}\big(e^{f_1}, \dots, e^{f_n}\big).

Diagonalizable matrix. If AA is diagonalizable there is TT with A=TDT−1A = T D T^{-1}, DD diagonal (see Linear Algebra Recap - Eigenvalues and DiagonalizationRecap of linear algebra needed for LTI systems: linear functions, bases and the matrix of a linear map, change of basis and similarity, diagonalization, eigenvalues and eigenvectors, characteristic equation, algebraic versus geometric multiplicity.Linear Algebra Recap - Eigenvalues and Diagonalization →). Then

eA=I+A+A22!+⋯=I+TDT−1+12! TDT−1 TDT−1+…=I+TDT−1+TDDT−12!+⋯=TIT−1+TDT−1+TD2T−12!+…=T(I+D+D22!+…)T−1=TeDT−1,\begin{aligned} e^{A} &= I + A + \frac{A^2}{2!} + \dots = I + T D T^{-1} + \frac{1}{2!}\,T D T^{-1}\, T D T^{-1} + \dots \\ &= I + T D T^{-1} + \frac{T D D T^{-1}}{2!} + \dots = T I T^{-1} + T D T^{-1} + \frac{T D^2 T^{-1}}{2!} + \dots \\ &= T\Big(I + D + \frac{D^2}{2!} + \dots\Big)T^{-1} = T e^{D} T^{-1}, \end{aligned}

using T−1T=IT^{-1}T = I between the two factors AA. With D=diag(d1,…,dn)D = \mathrm{diag}(d_1, \dots, d_n) (the eigenvalues of AA and the columns of TT the eigenvectors):

eA=T diag(ed1,…,edn) T−1.e^{A} = T\,\mathrm{diag}\big(e^{d_1}, \dots, e^{d_n}\big)\,T^{-1}.

If AA is not diagonalizable the Jordan form is used: Jordan Canonical FormEvery square matrix is similar to a Jordan matrix of blocks with the eigenvalue on the diagonal and ones above it; generalized eigenvectors built from kernel chains give the change of basis, and the exponential of a Jordan block contains the terms t^k e^(lambda t).Jordan Canonical Form →.

Solving with the Laplace transform

Let L[x(t)](s)=X(s)\mathcal{L}[x(t)](s) = X(s). For x˙=Fx\dot x = F x, x(0)=x0x(0) = x_0, the transform of the derivative gives

sX(s)−x0=FX(s).s X(s) - x_0 = F X(s).

  • Scalar F∈RF \in \mathbb{R}: X(s)=x0s−FX(s) = \dfrac{x_0}{s - F}, and L−1\mathcal{L}^{-1} gives eFtx0e^{Ft} x_0.
  • Matrix F∈Rn×nF \in \mathbb{R}^{n \times n}: X(s)=(sI−F)−1x0X(s) = (sI - F)^{-1} x_0, and L−1\mathcal{L}^{-1} gives eFtx0e^{Ft} x_0. Hence

L[eFt](s)=(sI−F)−1.\mathcal{L}\big[e^{Ft}\big](s) = (sI - F)^{-1}.

The matrix inverse is A−1=adj(A)det⁡(A)A^{-1} = \dfrac{\mathrm{adj}(A)}{\det(A)}, with [adj(A)]ij=det⁡(A−(j,i)) (−1)i+j[\mathrm{adj}(A)]_{ij} = \det\big(A_{-(j,i)}\big)\,(-1)^{i+j} (A−(j,i)A_{-(j,i)} is AA without row jj and column ii). Therefore

(sI−F)−1=adj(sI−F)∣sI−F∣,(sI - F)^{-1} = \frac{\mathrm{adj}(sI - F)}{|sI - F|},

a polynomial matrix divided by the characteristic polynomial ∣sI−F∣|sI - F|.

Example: F=(01−10)F = \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}

(The linearized pendulum has F=(01−gL0)F = \begin{pmatrix} 0 & 1 \\ -\frac{g}{L} & 0 \end{pmatrix}, see Linearization of Nonlinear SystemsNear an equilibrium a nonlinear system behaves like an LTI system whose matrix is the Jacobian of the dynamics evaluated at the equilibrium; applied to the pendulum (two equilibria), to a direct term-by-term approximation and to the three-tank model.Linearization of Nonlinear Systems →.)

With the Laplace transform.

(sI−F)−1=(s−11s)−1=1s2+1(s1−1s)=(ss2+11s2+1−1s2+1ss2+1).(sI - F)^{-1} = \begin{pmatrix} s & -1 \\ 1 & s \end{pmatrix}^{-1} = \frac{1}{s^2 + 1}\begin{pmatrix} s & 1 \\ -1 & s \end{pmatrix} = \begin{pmatrix} \dfrac{s}{s^2+1} & \dfrac{1}{s^2+1} \\[2mm] -\dfrac{1}{s^2+1} & \dfrac{s}{s^2+1} \end{pmatrix}.

Inverse transform entry by entry gives

eFt=(cos⁡tsin⁡t−sin⁡tcos⁡t),x(t)=(cos⁡tsin⁡t−sin⁡tcos⁡t)(x1(0)x2(0)).e^{Ft} = \begin{pmatrix} \cos t & \sin t \\ -\sin t & \cos t \end{pmatrix}, \qquad x(t) = \begin{pmatrix} \cos t & \sin t \\ -\sin t & \cos t \end{pmatrix}\begin{pmatrix} x_1(0) \\ x_2(0) \end{pmatrix}.

Without the Laplace transform (eigenvalues and eigenvectors). Eigenvalues from ∣F−λI∣=0|F - \lambda I| = 0:

∣(λ−11λ)∣=λ2+1=0  ⇒  λ1,2=±j.\left|\begin{pmatrix} \lambda & -1 \\ 1 & \lambda \end{pmatrix}\right| = \lambda^2 + 1 = 0 \;\Rightarrow\; \lambda_{1,2} = \pm j.

Eigenvectors:

  • λ=j\lambda = j: Ker(j−11j)=⟨(j−1)⟩\mathrm{Ker}\begin{pmatrix} j & -1 \\ 1 & j \end{pmatrix} = \left\langle \begin{pmatrix} j \\ -1 \end{pmatrix} \right\rangle;
  • λ=−j\lambda = -j: Ker(−j−11−j)=⟨(j1)⟩\mathrm{Ker}\begin{pmatrix} -j & -1 \\ 1 & -j \end{pmatrix} = \left\langle \begin{pmatrix} j \\ 1 \end{pmatrix} \right\rangle.

The eigenvector matrix is V=(jj−11)V = \begin{pmatrix} j & j \\ -1 & 1 \end{pmatrix} (the board calls it T−1T^{-1} in this part, so its formula reads eFt=T−1eDtTe^{Ft} = T^{-1} e^{Dt} T), V−1=(−j2−12−j212)V^{-1} = \begin{pmatrix} -\frac{j}{2} & -\frac{1}{2} \\ -\frac{j}{2} & \frac{1}{2} \end{pmatrix}, and

eFt=V(ejt00e−jt)V−1,ejt=cos⁡t+jsin⁡t.e^{Ft} = V \begin{pmatrix} e^{jt} & 0 \\ 0 & e^{-jt} \end{pmatrix} V^{-1}, \qquad e^{jt} = \cos t + j\sin t.

Multiplying out gives again (cos⁡tsin⁡t−sin⁡tcos⁡t)\begin{pmatrix} \cos t & \sin t \\ -\sin t & \cos t \end{pmatrix}.

The structure of the solution (modes) is studied in Modes and Asymptotic Behaviour of LTI SystemsThe state of an LTI system is a linear combination of modes t^k e^(sigma t) cos(omega t); the real part of the eigenvalues decides whether all modes converge, stay bounded or diverge, illustrated on the pendulum with and without friction and upside down.Modes and Asymptotic Behaviour of LTI Systems →.

Versione ripasso

Teoria collegata