Salta al contenuto
Note per Studenti Systems and Models - Mock Exam 3 Report

Systems and Models - Mock Exam 3

Questa pagina non ha ancora la versione ripasso: qui sotto c'è il testo completo.

In questa pagina 6

The written tests of this course are not public. This mock exam is therefore built only on the notes of the course: the systems, the matrices and the data are new, and it is not a copy of any real test. The official format is a written test of 2 hours and 30 minutes with five exercises (formulating mathematical models, analysing systems in state space, identification, validation of models with experimental data, critical interpretation). The distribution of the points is a proposal of this site: each exercise is worth 6 points, for a total of 30 points. Each exercise has three requests worth 2 points each.

The five exercises are taken from five different parts of the course: compartmental systems (modelling), the trajectories of a second-order LTI system (analysis of a continuous-time system), the Lyapunov direct method (nonlinear stability), the z-transform of a discrete-time system, and least squares with a rank-deficient regression matrix (identification and critical interpretation).

How to use it: work with a timer of 2 hours and 30 minutes, write every formula in letters before putting the numbers in, and look at the "Result" of an exercise only when you have finished it. The "Solution" explains every step and links the note where the method is explained.

Exercise 1 (points 6)

A substance is exchanged between three compartments. The content xi(t)x_i(t) of compartment ii is measured in kg, time is measured in days, and a flow from compartment ii to compartment jj is fij xif_{ij}\,x_i, with the coefficients fijf_{ij} in day−1\text{day}^{-1}. The arrows of the diagram are:

  • from compartment 1 to compartment 2, f12=0.8f_{12} = 0.8;
  • from compartment 1 to compartment 3, f13=0.3f_{13} = 0.3;
  • from compartment 2 to compartment 3, f23=0.5f_{23} = 0.5;
  • from compartment 3 to compartment 2, f32=0.3f_{32} = 0.3;
  • from compartment 3 to the outside world, f30=0.38f_{30} = 0.38.

There are no other exchanges with the outside. An external input u(t)u(t), in kg/day, enters compartment 1 only. The measured output is the content of compartment 3, y(t)=x3(t)y(t) = x_3(t).

a) Write the state equations, the matrices FF, GG, HH of the model x˙=Fx+Gu\dot x = Fx + Gu, y=Hxy = Hx, and check the sign structure of FF and GG. Compute the sum of each column of FF and say what it means.

b) Compute the eigenvalues of FF and say whether the system is asymptotically stable. For the constant input uˉ=5 kg/day\bar u = 5\ \text{kg/day} compute the equilibrium xˉ\bar x and the output yˉ\bar y, and check the result with a balance of the flows.

c) The outflow to the outside is closed, f30=0f_{30} = 0 (all the other data are unchanged). Compute the eigenvalues of the new matrix F0F_0 and the kernel of F0F_0 and discuss the stability. With u=0u = 0 and x(0)=(10, 0, 0)Tx(0) = (10,\ 0,\ 0)^T kg, find the limit of x(t)x(t) for t→+∞t \to +\infty. Say what happens with uˉ=5 kg/day\bar u = 5\ \text{kg/day}.

Show the result

a) x˙1=−1.1 x1+u\dot x_1 = -1.1\,x_1 + u, x˙2=0.8 x1−0.5 x2+0.3 x3\dot x_2 = 0.8\,x_1 - 0.5\,x_2 + 0.3\,x_3, x˙3=0.3 x1+0.5 x2−0.68 x3\dot x_3 = 0.3\,x_1 + 0.5\,x_2 - 0.68\,x_3, y=x3y = x_3; F=(−1.1000.8−0.50.30.30.5−0.68)F = \begin{pmatrix} -1.1 & 0 & 0 \\ 0.8 & -0.5 & 0.3 \\ 0.3 & 0.5 & -0.68 \end{pmatrix}, G=(100)G = \begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix}, H=(001)H = \begin{pmatrix} 0 & 0 & 1 \end{pmatrix}. The diagonal entries are non-positive, the off-diagonal entries and GG are non-negative. The column sums are 0, 0, −0.380,\ 0,\ -0.38: minus the coefficient of the flow that leaves the system.

b) ΔF(λ)=(λ+1.1)(λ2+1.18λ+0.19)\Delta_F(\lambda) = (\lambda + 1.1)(\lambda^2 + 1.18\lambda + 0.19); λ1=−1.1\lambda_1 = -1.1, λ2≅−0.9876\lambda_2 \cong -0.9876, λ3≅−0.1924\lambda_3 \cong -0.1924 (all in day−1\text{day}^{-1}): asymptotically stable. xˉ=(5011, 3170209, 25019)≅(4.55, 15.17, 13.16)\bar x = \left(\tfrac{50}{11},\ \tfrac{3170}{209},\ \tfrac{250}{19}\right) \cong (4.55,\ 15.17,\ 13.16) kg, yˉ≅13.16\bar y \cong 13.16 kg, and f30xˉ3=5 kg/day=uˉf_{30}\bar x_3 = 5\ \text{kg/day} = \bar u.

c) λ=−1.1, −0.8, 0\lambda = -1.1,\ -0.8,\ 0; Ker⁡F0=⟨(0, 3, 5)T⟩\operatorname{Ker}F_0 = \langle (0,\ 3,\ 5)^T \rangle; the system is stable but not asymptotically stable (a whole line of equilibria). Limit: x(t)→(0, 3.75, 6.25)Tx(t) \to (0,\ 3.75,\ 6.25)^T kg. With uˉ=5 kg/day\bar u = 5\ \text{kg/day} there is no equilibrium: the total content grows by 55 kg every day.

Show the full solution

a) Model. The rule of Compartmental Systems - Structure, Flows and StabilityCompartmental systems describe quantities that move between compartments through non-negative flows; their dynamics have a matrix F with non-positive diagonal and non-negative off-diagonal entries, and such systems are always at least simply stable.Compartmental Systems - Structure, Flows and Stability → is that the content of a compartment changes by incoming flows minus outgoing flows plus the external input:

x˙i=∑j≠ifji xj−∑j≠ifij xi+ui.\dot x_i = \sum_{j \neq i} f_{ji}\,x_j - \sum_{j \neq i} f_{ij}\,x_i + u_i .

Compartment by compartment:

  • compartment 1 receives nothing from the others, only the input uu; it loses f12x1f_{12}x_1 towards 2 and f13x1f_{13}x_1 towards 3: x˙1=−(0.8+0.3) x1+u=−1.1 x1+u\dot x_1 = -(0.8 + 0.3)\,x_1 + u = -1.1\,x_1 + u;
  • compartment 2 receives f12x1=0.8 x1f_{12}x_1 = 0.8\,x_1 from 1 and f32x3=0.3 x3f_{32}x_3 = 0.3\,x_3 from 3, and loses f23x2=0.5 x2f_{23}x_2 = 0.5\,x_2 towards 3: x˙2=0.8 x1−0.5 x2+0.3 x3\dot x_2 = 0.8\,x_1 - 0.5\,x_2 + 0.3\,x_3;
  • compartment 3 receives f13x1=0.3 x1f_{13}x_1 = 0.3\,x_1 and f23x2=0.5 x2f_{23}x_2 = 0.5\,x_2, and loses f32x3f_{32}x_3 towards 2 and f30x3f_{30}x_3 towards the outside: x˙3=0.3 x1+0.5 x2−(0.3+0.38) x3=0.3 x1+0.5 x2−0.68 x3\dot x_3 = 0.3\,x_1 + 0.5\,x_2 - (0.3 + 0.38)\,x_3 = 0.3\,x_1 + 0.5\,x_2 - 0.68\,x_3.

The output is y=x3y = x_3. In matrix form, each diagonal entry of FF is minus the sum of the coefficients of the flows that leave that compartment, and each off-diagonal entry [F]ij[F]_{ij} is the coefficient fjif_{ji} of the flow that enters ii from jj:

F=(−1.1000.8−0.50.30.30.5−0.68),G=(100),H=(001).F = \begin{pmatrix} -1.1 & 0 & 0 \\ 0.8 & -0.5 & 0.3 \\ 0.3 & 0.5 & -0.68 \end{pmatrix}, \qquad G = \begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix}, \qquad H = \begin{pmatrix} 0 & 0 & 1 \end{pmatrix}.

Sign structure. [F]ii=−1.1, −0.5, −0.68≤0[F]_{ii} = -1.1,\ -0.5,\ -0.68 \le 0; the off-diagonal entries 0.8, 0.3, 0.3, 0.5, 0, 00.8,\ 0.3,\ 0.3,\ 0.5,\ 0,\ 0 are all ≥0\ge 0; [G]ij≥0[G]_{ij} \ge 0. So the matrices have the structure required for a compartmental system.

Column sums. Column 1: −1.1+0.8+0.3=0-1.1 + 0.8 + 0.3 = 0. Column 2: −0.5+0.5=0-0.5 + 0.5 = 0. Column 3: 0.3−0.68=−0.380.3 - 0.68 = -0.38. The column jj contains what compartment jj loses (negative entry) and what the other compartments receive from it (positive entries). Every internal flow is a loss for one compartment and a gain, of the same size, for another one, so it cancels in the column. What remains is minus the coefficient of the flow to the outside: 00 for compartments 1 and 2, −f30=−0.38-f_{30} = -0.38 for compartment 3. Typical mistakes: putting fijf_{ij} in position (i,j)(i,j) instead of (j,i)(j,i) (the matrix would be transposed); forgetting that the flow f32f_{32} is also a loss of compartment 3, and writing −0.38-0.38 instead of −0.68-0.68 on the diagonal.

b) Eigenvalues, equilibrium. Compute the characteristic polynomial ΔF(λ)=det⁡(λI−F)\Delta_F(\lambda) = \det(\lambda I - F) (see Jordan Form and Modal Analysis of LTI SystemsThe Jordan form of the state matrix, built from algebraic and geometric multiplicities of its eigenvalues, lists the modes of an LTI system and so decides how each part of the state behaves, as shown on a two-eigenvalue case and on a block-diagonal example with a parameter.Jordan Form and Modal Analysis of LTI Systems → for the use of ΔF\Delta_F):

λI−F=(λ+1.100−0.8λ+0.5−0.3−0.3−0.5λ+0.68).\lambda I - F = \begin{pmatrix} \lambda + 1.1 & 0 & 0 \\ -0.8 & \lambda + 0.5 & -0.3 \\ -0.3 & -0.5 & \lambda + 0.68 \end{pmatrix}.

Expanding along the first row, which has a single non-zero entry,

ΔF(λ)=(λ+1.1)[(λ+0.5)(λ+0.68)−(−0.3)(−0.5)]=(λ+1.1)(λ2+1.18 λ+0.34−0.15)=(λ+1.1)(λ2+1.18 λ+0.19).\Delta_F(\lambda) = (\lambda + 1.1)\Big[(\lambda + 0.5)(\lambda + 0.68) - (-0.3)(-0.5)\Big] = (\lambda + 1.1)\left(\lambda^2 + 1.18\,\lambda + 0.34 - 0.15\right) = (\lambda + 1.1)\left(\lambda^2 + 1.18\,\lambda + 0.19\right).

The first factor gives λ1=−1.1\lambda_1 = -1.1. The second gives

λ2,3=−1.18±1.182−4⋅0.192=−1.18±0.63242=−1.18±0.79522,λ2≅−0.9876,λ3≅−0.1924.\lambda_{2,3} = \frac{-1.18 \pm \sqrt{1.18^2 - 4 \cdot 0.19}}{2} = \frac{-1.18 \pm \sqrt{0.6324}}{2} = \frac{-1.18 \pm 0.7952}{2}, \qquad \lambda_2 \cong -0.9876,\quad \lambda_3 \cong -0.1924 .

All three eigenvalues are real, distinct and negative, so all the modes eλite^{\lambda_i t} converge to zero and the system is asymptotically stable. This is consistent with the general property of compartmental systems (always at least simply stable): here there is no eigenvalue on the imaginary axis because the compartments are connected to the outside by the leak f30f_{30}. The slowest mode has time constant 1/0.1924≅5.21/0.1924 \cong 5.2 days. As a check, det⁡F=λ1λ2λ3=(−1.1)(0.19)=−0.209≠0\det F = \lambda_1\lambda_2\lambda_3 = (-1.1)(0.19) = -0.209 \neq 0, so FF is invertible.

Equilibrium. With u=uˉ=5u = \bar u = 5 the equilibrium satisfies Fxˉ+Guˉ=0F\bar x + G\bar u = 0 (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 → for the definition of equilibrium as the point where the derivative vanishes):

−1.1 xˉ1+5=0 ⇒ xˉ1=51.1=5011≅4.545,-1.1\,\bar x_1 + 5 = 0 \ \Rightarrow\ \bar x_1 = \frac{5}{1.1} = \frac{50}{11} \cong 4.545,

0.8 xˉ1−0.5 xˉ2+0.3 xˉ3=0,0.3 xˉ1+0.5 xˉ2−0.68 xˉ3=0.0.8\,\bar x_1 - 0.5\,\bar x_2 + 0.3\,\bar x_3 = 0, \qquad 0.3\,\bar x_1 + 0.5\,\bar x_2 - 0.68\,\bar x_3 = 0 .

Adding the last two equations the terms in xˉ2\bar x_2 cancel: 1.1 xˉ1−0.38 xˉ3=01.1\,\bar x_1 - 0.38\,\bar x_3 = 0, so xˉ3=1.1⋅50/110.38=50.38=25019≅13.158\bar x_3 = \dfrac{1.1 \cdot 50/11}{0.38} = \dfrac{5}{0.38} = \dfrac{250}{19} \cong 13.158. From the first of the two equations, xˉ2=0.8⋅4.545+0.3⋅13.1580.5=3.636+3.9470.5≅15.167\bar x_2 = \dfrac{0.8 \cdot 4.545 + 0.3 \cdot 13.158}{0.5} = \dfrac{3.636 + 3.947}{0.5} \cong 15.167, that is 3170209\tfrac{3170}{209}. The output is yˉ=xˉ3≅13.16\bar y = \bar x_3 \cong 13.16 kg.

Check with the balance of the flows. At equilibrium nothing changes, so the substance that enters, uˉ=5\bar u = 5 kg/day, must leave through the only exit: f30xˉ3=0.38⋅13.158=5.00f_{30}\bar x_3 = 0.38 \cdot 13.158 = 5.00 kg/day. It matches. Typical mistake: writing Fxˉ=uˉF\bar x = \bar u and forgetting the sign: the equilibrium equation is Fxˉ=−GuˉF\bar x = -G\bar u.

c) Closed system. With f30=0f_{30} = 0 the last diagonal entry becomes −0.3-0.3:

F0=(−1.1000.8−0.50.30.30.5−0.3).F_0 = \begin{pmatrix} -1.1 & 0 & 0 \\ 0.8 & -0.5 & 0.3 \\ 0.3 & 0.5 & -0.3 \end{pmatrix}.

All the column sums are now zero: no flow leaves the system. The characteristic polynomial is

ΔF0(λ)=(λ+1.1)[(λ+0.5)(λ+0.3)−0.15]=(λ+1.1)(λ2+0.8 λ)=λ (λ+0.8)(λ+1.1),\Delta_{F_0}(\lambda) = (\lambda + 1.1)\left[(\lambda + 0.5)(\lambda + 0.3) - 0.15\right] = (\lambda + 1.1)\left(\lambda^2 + 0.8\,\lambda\right) = \lambda\,(\lambda + 0.8)(\lambda + 1.1),

so the eigenvalues are 0, −0.8, −1.10,\ -0.8,\ -1.1, all simple. The eigenvalue 00 is the only one on the imaginary axis, with algebraic multiplicity 1 and so geometric multiplicity 1: the modes are 1, e−0.8t, e−1.1t1,\ e^{-0.8t},\ e^{-1.1t}, all bounded, and the system is stable but not asymptotically stable (the property "Re⁡(λ)=0\operatorname{Re}(\lambda) = 0 only for λ=0\lambda = 0, with geometric multiplicity 1" of compartmental systems). The equilibria with u=0u = 0 are the points of Ker⁡F0\operatorname{Ker}F_0: from the first row x1=0x_1 = 0, then the second row gives −0.5 x2+0.3 x3=0-0.5\,x_2 + 0.3\,x_3 = 0, that is x2=0.6 x3x_2 = 0.6\,x_3; the third row gives the same relation. Hence

Ker⁡F0=⟨(035)⟩,\operatorname{Ker}F_0 = \left\langle \begin{pmatrix} 0 \\ 3 \\ 5 \end{pmatrix} \right\rangle,

a whole line of equilibria (the stability conditions for an eigenvalue on the imaginary axis are in Equilibrium and Stability of LTI SystemsDefinitions of equilibrium, simple stability and asymptotic stability (local and global), two counterexamples (Van der Pol oscillator, Vinograd system), and the stability conditions for LTI systems in terms of the eigenvalues of F.Equilibrium and Stability of LTI Systems →).

Limit for x(0)=(10,0,0)Tx(0) = (10, 0, 0)^T, u=0u = 0. The two modes e−0.8te^{-0.8t} and e−1.1te^{-1.1t} vanish, so x(t)x(t) tends to a vector of the kernel, x(t)→c (0, 3, 5)Tx(t) \to c\,(0,\ 3,\ 5)^T. To find cc use the conservation of the content. Adding the three state equations with u=0u = 0 and f30=0f_{30} = 0, all the internal flows cancel in pairs (it is the column-sum property above, 1TF0=0\mathbf{1}^TF_0 = 0), so ddt(x1+x2+x3)=0\dfrac{d}{dt}(x_1 + x_2 + x_3) = 0 and x1+x2+x3=10x_1 + x_2 + x_3 = 10 kg for all tt. At the limit c(3+5)=10c(3 + 5) = 10, so c=1.25c = 1.25 and

lim⁡t→+∞x(t)=(03.756.25) kg.\lim_{t \to +\infty} x(t) = \begin{pmatrix} 0 \\ 3.75 \\ 6.25 \end{pmatrix}\ \text{kg}.

All the substance ends up in compartments 2 and 3, in the ratio 3:53:5 given by the kernel.

Constant input uˉ=5\bar u = 5 kg/day. There is no equilibrium. Adding the equations with u=5u = 5 gives ddt(x1+x2+x3)=5\dfrac{d}{dt}(x_1 + x_2 + x_3) = 5, which is never zero: no state can be at rest (in matrix form F0xˉ=−GuˉF_0\bar x = -G\bar u is impossible, because 1TF0xˉ=0\mathbf{1}^TF_0\bar x = 0 while −1TGuˉ=−5-\mathbf{1}^TG\bar u = -5). The total content grows by 55 kg every day: the constant input excites the eigenvalue 00 and produces a diverging response although the free system is stable. Typical mistakes: saying that the closed system is asymptotically stable because "the other eigenvalues are negative"; computing the limit from the first row only and getting x1→10x_1 \to 10 (the compartment 1 is emptied by f12f_{12} and f13f_{13} and is never refilled).

Exercise 2 (points 6)

Consider the continuous-time system x˙(t)=F x(t)\dot x(t) = F\,x(t) with

F=(2−510−13).F = \begin{pmatrix} 2 & -5 \\ 10 & -13 \end{pmatrix}.

a) Compute the eigenvalues and the eigenvectors of FF, write eFte^{Ft} with the change of basis, say which type of trajectories in the plane the system has (hyperbolic, parabolic, elliptical or spiral) and whether the equilibrium xeq=0x_{eq} = 0 is asymptotically stable.

b) Find all the initial states x(0)x(0) for which the trajectory is rectilinear through the origin, and write the solution x(t)x(t) for each of them.

c) Compute x(t)x(t) for x(0)=(3, 8)Tx(0) = (3,\ 8)^T. Using the coordinates in the basis of the eigenvectors, find the relation between the two coordinates along the trajectory, and describe the direction from which the trajectory approaches the origin.

Show the result

a) λ1=−3\lambda_1 = -3 with eigenvector (1,1)T(1, 1)^T, λ2=−8\lambda_2 = -8 with eigenvector (1,2)T(1, 2)^T; T=(1112)T = \begin{pmatrix} 1 & 1 \\ 1 & 2 \end{pmatrix}, eFt=T diag⁡(e−3t,e−8t) T−1e^{Ft} = T\,\operatorname{diag}\big(e^{-3t}, e^{-8t}\big)\,T^{-1}, that is eFt=(2e−3t−e−8t−e−3t+e−8t2e−3t−2e−8t−e−3t+2e−8t)e^{Ft} = \begin{pmatrix} 2e^{-3t} - e^{-8t} & -e^{-3t} + e^{-8t} \\ 2e^{-3t} - 2e^{-8t} & -e^{-3t} + 2e^{-8t} \end{pmatrix}. Real eigenvalues of the same sign: pseudo-parabolic trajectories. Both eigenvalues are negative: asymptotically stable.

b) The initial states on the line x2=x1x_2 = x_1 (solution x(t)=e−3tx(0)x(t) = e^{-3t}x(0)) and on the line x2=2x1x_2 = 2x_1 (solution x(t)=e−8tx(0)x(t) = e^{-8t}x(0)), origin excluded.

c) x(t)=(−2e−3t+5e−8t−2e−3t+10e−8t)x(t) = \begin{pmatrix} -2e^{-3t} + 5e^{-8t} \\ -2e^{-3t} + 10e^{-8t} \end{pmatrix}. In the eigenvector coordinates z1=−2e−3tz_1 = -2e^{-3t}, z2=5e−8tz_2 = 5e^{-8t}, with z2=5 (∣z1∣/2)8/3z_2 = 5\,(|z_1|/2)^{8/3}. For large tt the trajectory approaches the origin tangent to the line x2=x1x_2 = x_1, the line of the slow eigenvector.

Show the full solution

a) Eigenvalues, eigenvectors, stability. The characteristic polynomial is (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 →)

ΔF(λ)=det⁡(λ−25−10λ+13)=(λ−2)(λ+13)+50=λ2+11 λ+24=(λ+3)(λ+8)\Delta_F(\lambda) = \det\begin{pmatrix} \lambda - 2 & 5 \\ -10 & \lambda + 13 \end{pmatrix} = (\lambda - 2)(\lambda + 13) + 50 = \lambda^2 + 11\,\lambda + 24 = (\lambda + 3)(\lambda + 8)

(check: the trace is 2−13=−112 - 13 = -11 and the determinant is −26+50=24-26 + 50 = 24). The eigenvalues are λ1=−3\lambda_1 = -3 and λ2=−8\lambda_2 = -8, real and distinct, so FF is diagonalizable. The eigenvectors:

  • λ1=−3\lambda_1 = -3: F+3I=(5−510−10)F + 3I = \begin{pmatrix} 5 & -5 \\ 10 & -10 \end{pmatrix}, whose kernel is given by x1=x2x_1 = x_2: Ker⁡(F+3I)=⟨(1,1)T⟩\operatorname{Ker}(F + 3I) = \langle (1, 1)^T \rangle;
  • λ2=−8\lambda_2 = -8: F+8I=(10−510−5)F + 8I = \begin{pmatrix} 10 & -5 \\ 10 & -5 \end{pmatrix}, whose kernel is given by 2x1=x22x_1 = x_2: Ker⁡(F+8I)=⟨(1,2)T⟩\operatorname{Ker}(F + 8I) = \langle (1, 2)^T \rangle.

(Check: F(1,1)T=(−3,−3)TF(1,1)^T = (-3, -3)^T and F(1,2)T=(−8,−16)TF(1,2)^T = (-8, -16)^T.) With the eigenvectors as columns, T=(1112)T = \begin{pmatrix} 1 & 1 \\ 1 & 2 \end{pmatrix}, det⁡T=1\det T = 1, T−1=(2−1−11)T^{-1} = \begin{pmatrix} 2 & -1 \\ -1 & 1 \end{pmatrix} and F=TDT−1F = TDT^{-1} with D=diag⁡(−3,−8)D = \operatorname{diag}(-3, -8). Then (Solution of LTI Systems and the Matrix ExponentialThe autonomous LTI system x' = Fx with x(0) = x0 has solution x(t) = exp(Ft) x0, where the matrix exponential is a power series; it is computed with diagonalization or with the Laplace transform, shown on a worked 2 by 2 example.Solution of LTI Systems and the Matrix Exponential →)

eFt=T(e−3t00e−8t)T−1=(e−3te−8te−3t2e−8t)(2−1−11)=(2e−3t−e−8t−e−3t+e−8t2e−3t−2e−8t−e−3t+2e−8t).e^{Ft} = T\begin{pmatrix} e^{-3t} & 0 \\ 0 & e^{-8t} \end{pmatrix}T^{-1} = \begin{pmatrix} e^{-3t} & e^{-8t} \\ e^{-3t} & 2e^{-8t} \end{pmatrix}\begin{pmatrix} 2 & -1 \\ -1 & 1 \end{pmatrix} = \begin{pmatrix} 2e^{-3t} - e^{-8t} & -e^{-3t} + e^{-8t} \\ 2e^{-3t} - 2e^{-8t} & -e^{-3t} + 2e^{-8t} \end{pmatrix}.

At t=0t = 0 it is the identity. Since λ1\lambda_1 and λ2\lambda_2 are real with λ1λ2=24>0\lambda_1\lambda_2 = 24 > 0, the trajectories are pseudo-parabolic (case 2 of Trajectories of Second-Order LTI SystemsThe shape of the trajectories of a second-order LTI system in the plane depends on its eigenvalues: hyperbolic, parabolic, elliptical or spiral curves; rectilinear trajectories occur when the initial state is an eigenvector.Trajectories of Second-Order LTI Systems →); both eigenvalues are negative, so every trajectory converges to the origin and the equilibrium is asymptotically stable. Typical mistakes: building TT with the eigenvectors in a different order than DD; an arithmetic slip in T−1T^{-1} (check that TT−1=ITT^{-1} = I).

b) Rectilinear trajectories. By the proposition of the same note, the trajectory is rectilinear through the origin, x(t)∥x(0)x(t) \parallel x(0), if and only if Fx(0)=λ x(0)Fx(0) = \lambda\,x(0) with λ∈R\lambda \in \mathbb{R}, that is if and only if x(0)x(0) is an eigenvector of FF (with a real eigenvalue). The candidates are therefore the non-zero vectors of the two eigenspaces:

  • x(0)=α (1,1)Tx(0) = \alpha\,(1, 1)^T, α≠0\alpha \neq 0 (the line x2=x1x_2 = x_1): x(t)=e−3tx(0)x(t) = e^{-3t}x(0), the state moves along the line towards the origin and excites only the mode e−3te^{-3t};
  • x(0)=β (1,2)Tx(0) = \beta\,(1, 2)^T, β≠0\beta \neq 0 (the line x2=2x1x_2 = 2x_1): x(t)=e−8tx(0)x(t) = e^{-8t}x(0), only the mode e−8te^{-8t}, much faster.

Proof of the first case: x(t)=∑k(Ft)kx(0)/k!=∑k(−3t)kx(0)/k!=e−3tx(0)x(t) = \sum_k (Ft)^kx(0)/k! = \sum_k (-3t)^kx(0)/k! = e^{-3t}x(0), because Fx(0)=−3 x(0)Fx(0) = -3\,x(0). There are no other rectilinear trajectories through the origin: a state outside the two lines is not an eigenvector, so the condition fails. Typical mistake: saying that the rectilinear trajectories are the coordinate axes (they are the eigenspaces, which here are not the axes).

c) A generic initial state. Write x(0)=(3,8)Tx(0) = (3, 8)^T in the basis of the eigenvectors: z(0)=T−1x(0)=(2−1−11)(38)=(−25)z(0) = T^{-1}x(0) = \begin{pmatrix} 2 & -1 \\ -1 & 1 \end{pmatrix}\begin{pmatrix} 3 \\ 8 \end{pmatrix} = \begin{pmatrix} -2 \\ 5 \end{pmatrix}, that is

x(0)=−2(11)+5(12).x(0) = -2\begin{pmatrix} 1 \\ 1 \end{pmatrix} + 5\begin{pmatrix} 1 \\ 2 \end{pmatrix} .

Each component evolves with its own mode, z1(t)=−2 e−3tz_1(t) = -2\,e^{-3t} and z2(t)=5 e−8tz_2(t) = 5\,e^{-8t}, so

x(t)=−2 e−3t(11)+5 e−8t(12)=(−2e−3t+5e−8t−2e−3t+10e−8t).x(t) = -2\,e^{-3t}\begin{pmatrix} 1 \\ 1 \end{pmatrix} + 5\,e^{-8t}\begin{pmatrix} 1 \\ 2 \end{pmatrix} = \begin{pmatrix} -2e^{-3t} + 5e^{-8t} \\ -2e^{-3t} + 10e^{-8t} \end{pmatrix}.

(Check with eFtx(0)e^{Ft}x(0): first row (2e−3t−e−8t) 3+(−e−3t+e−8t) 8=−2e−3t+5e−8t(2e^{-3t} - e^{-8t})\,3 + (-e^{-3t} + e^{-8t})\,8 = -2e^{-3t} + 5e^{-8t}.) Relation between the coordinates. From z1=−2e−3tz_1 = -2e^{-3t} we get e−3t=∣z1∣/2e^{-3t} = |z_1|/2 and therefore e−8t=(e−3t)8/3=(∣z1∣/2)8/3e^{-8t} = \big(e^{-3t}\big)^{8/3} = (|z_1|/2)^{8/3}, so

z2=5(∣z1∣2)8/3,z_2 = 5\left(\frac{|z_1|}{2}\right)^{8/3},

the generalisation of the curve x2=c x12x_2 = c\,x_1^2 found for the eigenvalues 11 and 22 in the note, where the exponent is the ratio of the eigenvalues, here λ2/λ1=8/3\lambda_2/\lambda_1 = 8/3 (this ratio is a reading of the method of the note, which treats the diagonal case with eigenvalues 11 and 22 only). In the original coordinates the curve is the image of this one under the linear map TT. Direction of approach. The fast term e−8te^{-8t} dies out first: for large tt, x(t)≅−2 e−3t(1,1)Tx(t) \cong -2\,e^{-3t}(1, 1)^T, so the trajectory reaches the origin tangent to the line x2=x1x_2 = x_1, the line of the slow eigenvalue. Numerically x2/x1=0.74x_2/x_1 = 0.74 at t=0.5t = 0.5 and 0.9830.983 at t=1t = 1. On the way the first coordinate changes sign at the time when 5 e−8t=2 e−3t5\,e^{-8t} = 2\,e^{-3t}, that is e−5t=0.4e^{-5t} = 0.4, t=ln⁡2.55≅0.183t = \tfrac{\ln 2.5}{5} \cong 0.183, and the second one at e−5t=0.2e^{-5t} = 0.2, t=ln⁡55≅0.322t = \tfrac{\ln 5}{5} \cong 0.322: the trajectory starts in the first quadrant and ends in the third. Typical mistakes: writing x(t)=e−3tx(0)x(t) = e^{-3t}x(0) for a generic initial state (valid only for an eigenvector); forgetting that the coefficient −2-2 is negative.

Exercise 3 (points 6)

Consider the two nonlinear systems, both with the equilibrium xeq=0x_{eq} = 0:

(A)x˙1=x2,x˙2=−8 x1−3 x23;\text{(A)}\quad \dot x_1 = x_2, \qquad \dot x_2 = -8\,x_1 - 3\,x_2^3 ;

(B)x˙1=−3 x13−8 x1x22,x˙2=−3 x23−8 x12x2.\text{(B)}\quad \dot x_1 = -3\,x_1^3 - 8\,x_1x_2^2, \qquad \dot x_2 = -3\,x_2^3 - 8\,x_1^2x_2 .

a) For system (A) check that the origin is the only equilibrium, linearize the system at the origin, compute the eigenvalues of the linearization and say what the linearization theorem allows to conclude about the stability of the origin.

b) For system (A) use the function V(x)=8 x12+x22V(x) = 8\,x_1^2 + x_2^2: show that it is positive definite, compute V˙\dot V along the trajectories and state what the Lyapunov direct method allows to conclude (stability, asymptotic stability or nothing). Show also that the simpler candidate V0(x)=x12+x22V_0(x) = x_1^2 + x_2^2 does not give a conclusion.

c) For system (B) show that the linearization is inconclusive, and prove with V(x)=x12+x22V(x) = x_1^2 + x_2^2 that the origin is asymptotically stable.

Show the result

a) f(x)=0f(x) = 0 only for x=0x = 0. F=(01−80)F = \begin{pmatrix} 0 & 1 \\ -8 & 0 \end{pmatrix}, λ1,2=± j 22≅± 2.83 j\lambda_{1,2} = \pm\,j\,2\sqrt2 \cong \pm\,2.83\,j: the linearization is stable but not asymptotically stable (critical case), so the theorem says nothing.

b) V=xTPxV = x^TPx with P=diag⁡(8,1)≻0P = \operatorname{diag}(8, 1) \succ 0; V˙=−6 x24≤0\dot V = -6\,x_2^4 \le 0, so the origin is stable; V˙\dot V is not negative for x2=0x_2 = 0, so asymptotic stability is not proved. With V0V_0: V˙0=−14 x1x2−6 x24\dot V_0 = -14\,x_1x_2 - 6\,x_2^4, which takes both signs near the origin: no conclusion.

c) The Jacobian at 00 is the zero matrix, with eigenvalues 0,00, 0: critical case. V˙=−6 x14−32 x12x22−6 x24<0\dot V = -6\,x_1^4 - 32\,x_1^2x_2^2 - 6\,x_2^4 < 0 for x≠0x \neq 0: asymptotically stable.

Show the full solution

a) Equilibrium and linearization. An equilibrium satisfies f(x)=0f(x) = 0: the first equation gives x2=0x_2 = 0, and then the second gives −8 x1=0-8\,x_1 = 0, so x1=0x_1 = 0. The origin is the only equilibrium. The Jacobian of f=(x2, −8 x1−3 x23)Tf = (x_2,\ -8\,x_1 - 3\,x_2^3)^T is (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 →)

Jf(x)=(01−8−9 x22),F=Jf(0)=(01−80).J_f(x) = \begin{pmatrix} 0 & 1 \\ -8 & -9\,x_2^2 \end{pmatrix}, \qquad F = J_f(0) = \begin{pmatrix} 0 & 1 \\ -8 & 0 \end{pmatrix}.

The characteristic polynomial is λ2+8\lambda^2 + 8, so λ1,2=± j8=± j 22\lambda_{1,2} = \pm\,j\sqrt8 = \pm\,j\,2\sqrt2. Both eigenvalues have zero real part and are simple, so the linearized system is stable (its trajectories are ellipses, as in the pendulum without friction) but not asymptotically stable. This is the critical case of Stability of Nonlinear Systems by LinearizationThe stability of an equilibrium of a nonlinear system can be read from the eigenvalues of its linearization when they are all strictly stable or when one is unstable, while the critical case of a merely stable linearization says nothing about the nonlinear system.Stability of Nonlinear Systems by Linearization →: the cubic term, which the linearization removes, decides the behaviour and the theorem cannot conclude. Typical mistake: saying "the eigenvalues have zero real part, so the origin is stable for the nonlinear system"; the theorem gives conclusions only if FF is asymptotically stable or unstable.

b) Lyapunov function. The quadratic function V(x)=8 x12+x22=xTPxV(x) = 8\,x_1^2 + x_2^2 = x^TPx has P=(8001)P = \begin{pmatrix} 8 & 0 \\ 0 & 1 \end{pmatrix}, which is positive definite by the Sylvester criterion (leading minors 8>08 > 0 and det⁡P=8>0\det P = 8 > 0, see Positive Definite Matrices and the Sylvester CriterionA symmetric matrix is positive definite when its smallest eigenvalue is positive, and the Sylvester criterion tests this through the signs of the leading minors, which is how energy-like functions x^T P x are checked in Lyapunov arguments.Positive Definite Matrices and the Sylvester Criterion →), so V(x)>0V(x) > 0 for x≠0x \neq 0 and V(0)=0V(0) = 0. The derivative along the trajectories is V˙=∇V⋅x˙\dot V = \nabla V \cdot \dot x with ∇V=(16 x1, 2 x2)\nabla V = (16\,x_1,\ 2\,x_2):

V˙=16 x1 x2+2 x2(−8 x1−3 x23)=16 x1x2−16 x1x2−6 x24=−6 x24≤0.\dot V = 16\,x_1\,x_2 + 2\,x_2\left(-8\,x_1 - 3\,x_2^3\right) = 16\,x_1x_2 - 16\,x_1x_2 - 6\,x_2^4 = -6\,x_2^4 \le 0 .

The mixed terms cancel exactly, and this is the reason for the coefficient 8 in VV (it is the coefficient of x1x_1 in the second equation). By the theorem of Lyapunov Direct Method for Nonlinear SystemsThe Lyapunov direct method proves stability of an equilibrium of a nonlinear system by finding a positive definite energy-like function V whose derivative along trajectories is nonpositive, or negative for asymptotic stability, without solving the equations.Lyapunov Direct Method for Nonlinear Systems → the origin is stable. The derivative is only non-positive: V˙=0\dot V = 0 at every point of the axis x2=0x_2 = 0, not only at the origin, so the condition V˙<0\dot V < 0 required for asymptotic stability is not satisfied and, with this theorem, asymptotic stability is not proved.

The candidate V0=x12+x22V_0 = x_1^2 + x_2^2. It is positive definite, but

V˙0=2 x1x2+2 x2(−8 x1−3 x23)=−14 x1x2−6 x24.\dot V_0 = 2\,x_1x_2 + 2\,x_2\left(-8\,x_1 - 3\,x_2^3\right) = -14\,x_1x_2 - 6\,x_2^4 .

At the points (ε, ε)(\varepsilon,\ \varepsilon) this is −14 ε2−6 ε4<0-14\,\varepsilon^2 - 6\,\varepsilon^4 < 0, at (−ε, ε)(-\varepsilon,\ \varepsilon) it is 14 ε2−6 ε4>014\,\varepsilon^2 - 6\,\varepsilon^4 > 0 for small ε>0\varepsilon > 0: V˙0\dot V_0 takes both signs arbitrarily close to the origin, so the theorem cannot be applied. A failed candidate proves nothing: a better function has to be found (here the "energy" 8 x12+x228\,x_1^2 + x_2^2 suggested by the linear part). Typical mistakes: concluding that the origin is unstable because one candidate has V˙0>0\dot V_0 > 0 somewhere; saying that the origin is asymptotically stable because "−6 x24-6\,x_2^4 is negative".

c) System (B). Linearization. The nonlinear terms are all cubic, so every partial derivative vanishes at the origin:

Jf(0)=(−9 x12−8 x22−16 x1x2−16 x1x2−9 x22−8 x12)∣x=0=(0000).J_f(0) = \begin{pmatrix} -9\,x_1^2 - 8\,x_2^2 & -16\,x_1x_2 \\ -16\,x_1x_2 & -9\,x_2^2 - 8\,x_1^2 \end{pmatrix}\Bigg|_{x=0} = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}.

The eigenvalues are 0,00, 0, with geometric multiplicity 2 (the matrix is diagonal), so the linearization is stable but not asymptotically stable: again the critical case, and the linearization theorem says nothing.

Lyapunov function. Take V=x12+x22>0V = x_1^2 + x_2^2 > 0 for x≠0x \neq 0. Then

V˙=2 x1(−3 x13−8 x1x22)+2 x2(−3 x23−8 x12x2)=−6 x14−16 x12x22−6 x24−16 x12x22,\dot V = 2\,x_1\left(-3\,x_1^3 - 8\,x_1x_2^2\right) + 2\,x_2\left(-3\,x_2^3 - 8\,x_1^2x_2\right) = -6\,x_1^4 - 16\,x_1^2x_2^2 - 6\,x_2^4 - 16\,x_1^2x_2^2,

V˙=−6 x14−32 x12x22−6 x24.\dot V = -6\,x_1^4 - 32\,x_1^2x_2^2 - 6\,x_2^4 .

Each of the three terms is ≤0\le 0 and the sum is zero only if x14=0x_1^4 = 0 and x24=0x_2^4 = 0, that is only at the origin. So V˙<0\dot V < 0 for every x≠0x \neq 0 and, by the theorem of Lyapunov Direct Method for Nonlinear SystemsThe Lyapunov direct method proves stability of an equilibrium of a nonlinear system by finding a positive definite energy-like function V whose derivative along trajectories is nonpositive, or negative for asymptotic stability, without solving the equations.Lyapunov Direct Method for Nonlinear Systems →, the origin is asymptotically stable. (The expression is not a perfect square as in the second example of that note, but the sign argument is the same.) A remark, which is a reading and is not needed for the answer: on the line x1=x2=sx_1 = x_2 = s the system reduces to s˙=−11 s3\dot s = -11\,s^3, whose solution s(t)=s0/1+22 s02 ts(t) = s_0/\sqrt{1 + 22\,s_0^2\,t} goes to zero more slowly than any exponential, in agreement with the two zero eigenvalues of the linearization. Typical mistake: looking for the exponent of the decay from the eigenvalues of the linearization: here they are zero, so they carry no information.

Exercise 4 (points 6)

A discrete-time LTI system x(t+1)=Fx(t)+Gu(t)x(t+1) = Fx(t) + Gu(t), y(t)=Hx(t)+Ju(t)y(t) = Hx(t) + Ju(t) has

F=(010.240.5),G=(01),H=(31),J=0.F = \begin{pmatrix} 0 & 1 \\ 0.24 & 0.5 \end{pmatrix}, \qquad G = \begin{pmatrix} 0 \\ 1 \end{pmatrix}, \qquad H = \begin{pmatrix} 3 & 1 \end{pmatrix}, \qquad J = 0 .

a) Compute the eigenvalues of FF, the modes of the free evolution and say whether the system is asymptotically stable. For the constant input ueq=1u_{eq} = 1 compute the equilibrium xeqx_{eq} and the corresponding output yeqy_{eq}.

b) Compute the transfer function W(z)=H(zI−F)−1G+JW(z) = H(zI - F)^{-1}G + J and, with a partial fraction expansion of W(z)/zW(z)/z, the impulse response w(t)w(t). Check the values w(1)w(1) and w(2)w(2) with the formula in the time domain.

c) The state is x(0)=0x(0) = 0 and the input is the unit step, u(t)=1u(t) = 1 for t≥0t \ge 0. Compute Y(z)Y(z) and y(t)y(t) with the z-transform, give y(0),…,y(4)y(0), \dots, y(4) and show that y(t)y(t) converges to yeqy_{eq}.

Show the result

a) λ1=0.8\lambda_1 = 0.8, λ2=−0.3\lambda_2 = -0.3; modes 0.8t0.8^t and (−0.3)t(-0.3)^t; both moduli are below 1, so the system is asymptotically stable. xeq=(5013, 5013)T≅(3.846, 3.846)Tx_{eq} = \left(\tfrac{50}{13},\ \tfrac{50}{13}\right)^T \cong (3.846,\ 3.846)^T, yeq=20013≅15.38y_{eq} = \tfrac{200}{13} \cong 15.38.

b) W(z)=z+3(z−0.8)(z+0.3)=z+3z2−0.5 z−0.24W(z) = \dfrac{z + 3}{(z - 0.8)(z + 0.3)} = \dfrac{z + 3}{z^2 - 0.5\,z - 0.24}; w(0)=0w(0) = 0 and, for t≥1t \ge 1, w(t)=9522 (0.8)t+9011 (−0.3)tw(t) = \tfrac{95}{22}\,(0.8)^t + \tfrac{90}{11}\,(-0.3)^t; w(1)=1w(1) = 1, w(2)=3.5w(2) = 3.5.

c) Y(z)=−19011 zz−0.8+270143 zz+0.3+20013 zz−1Y(z) = -\tfrac{190}{11}\,\dfrac{z}{z - 0.8} + \tfrac{270}{143}\,\dfrac{z}{z + 0.3} + \tfrac{200}{13}\,\dfrac{z}{z - 1}; y(t)=−19011 (0.8)t+270143 (−0.3)t+20013y(t) = -\tfrac{190}{11}\,(0.8)^t + \tfrac{270}{143}\,(-0.3)^t + \tfrac{200}{13} for t≥0t \ge 0; y(0..4)=0, 1, 4.5, 6.49, 8.325y(0..4) = 0,\ 1,\ 4.5,\ 6.49,\ 8.325; y(t)→20013=yeq=W(1)y(t) \to \tfrac{200}{13} = y_{eq} = W(1).

Show the full solution

a) Eigenvalues, stability, equilibrium. The characteristic polynomial is

ΔF(z)=det⁡(z−1−0.24z−0.5)=z(z−0.5)−0.24=z2−0.5 z−0.24=(z−0.8)(z+0.3),\Delta_F(z) = \det\begin{pmatrix} z & -1 \\ -0.24 & z - 0.5 \end{pmatrix} = z(z - 0.5) - 0.24 = z^2 - 0.5\,z - 0.24 = (z - 0.8)(z + 0.3),

(check: 0.8⋅(−0.3)=−0.240.8 \cdot (-0.3) = -0.24 and 0.8−0.3=0.50.8 - 0.3 = 0.5). The eigenvalues are λ1=0.8\lambda_1 = 0.8 and λ2=−0.3\lambda_2 = -0.3, distinct and simple, so the modes of x(t)=Ftx(0)x(t) = F^tx(0) are 0.8t0.8^t and (−0.3)t(-0.3)^t (the second one alternates in sign because the eigenvalue is negative; see Modes and Convergence of Discrete-Time SystemsDiscrete-time modes are samples of continuous-time modes through the map lambda bar equals e to the lambda, and a mode t to the k times rho to the t times cosine of theta t converges to zero when rho is below one, stays bounded when rho equals one with k equal to zero, and diverges otherwise.Modes and Convergence of Discrete-Time Systems →). In discrete time the system is asymptotically stable if ∣λi∣<1|\lambda_i| < 1 for every eigenvalue (Equilibria and Stability of Discrete-Time LTI SystemsA discrete-time LTI system is asymptotically stable when every eigenvalue has modulus below one, stable when all modes are bounded, and unstable otherwise, and its equilibria solve an algebraic equation involving I minus F, with finite-time convergence possible when all eigenvalues are zero.Equilibria and Stability of Discrete-Time LTI Systems →): here ∣0.8∣=0.8<1|0.8| = 0.8 < 1 and ∣−0.3∣=0.3<1|-0.3| = 0.3 < 1, so the system is asymptotically stable.

Equilibrium. In discrete time xeq=Fxeq+Gueqx_{eq} = Fx_{eq} + Gu_{eq}, that is (I−F) xeq=Gueq(I - F)\,x_{eq} = Gu_{eq}. The matrix I−F=(1−1−0.240.5)I - F = \begin{pmatrix} 1 & -1 \\ -0.24 & 0.5 \end{pmatrix} has determinant 0.5−0.24=0.26≠00.5 - 0.24 = 0.26 \neq 0 (equivalently 11 is not an eigenvalue of FF), so the solution is unique. With ueq=1u_{eq} = 1 the system is

x1−x2=0,−0.24 x1+0.5 x2=1.x_1 - x_2 = 0, \qquad -0.24\,x_1 + 0.5\,x_2 = 1 .

The first equation gives x1=x2x_1 = x_2; the second becomes 0.26 x1=10.26\,x_1 = 1, so xeq=(5013, 5013)T≅(3.846, 3.846)Tx_{eq} = \left(\tfrac{50}{13},\ \tfrac{50}{13}\right)^T \cong (3.846,\ 3.846)^T and yeq=Hxeq=(3+1)5013=20013≅15.38y_{eq} = Hx_{eq} = (3 + 1)\tfrac{50}{13} = \tfrac{200}{13} \cong 15.38. Typical mistakes: using the continuous-time condition Re⁡(λ)<0\operatorname{Re}(\lambda) < 0, or the equation Fxeq+Gueq=0Fx_{eq} + Gu_{eq} = 0 (that is the continuous-time equilibrium): in discrete time the right equation is xeq=Fxeq+Gueqx_{eq} = Fx_{eq} + Gu_{eq}.

b) Transfer function and impulse response. From Z-Transform and Transfer Function of Discrete-Time SystemsThe z-transform turns the difference equation of a discrete-time LTI system into the algebraic solution X(z) equal to z times the inverse of zI minus F times x(0) plus the inverse of zI minus F times G U(z), giving the transfer matrix W(z) and the modes through partial fractions.Z-Transform and Transfer Function of Discrete-Time Systems →, W(z)=H(zI−F)−1G+JW(z) = H(zI - F)^{-1}G + J. The inverse of zI−F=(z−1−0.24z−0.5)zI - F = \begin{pmatrix} z & -1 \\ -0.24 & z - 0.5 \end{pmatrix}, whose determinant is ΔF(z)=z2−0.5 z−0.24\Delta_F(z) = z^2 - 0.5\,z - 0.24, is

(zI−F)−1=1z2−0.5 z−0.24(z−0.510.24z)(zI - F)^{-1} = \frac{1}{z^2 - 0.5\,z - 0.24}\begin{pmatrix} z - 0.5 & 1 \\ 0.24 & z \end{pmatrix}

(adjugate of a 2×22 \times 2 matrix: exchange the diagonal entries and change the sign of the off-diagonal ones). Then

(zI−F)−1G=1ΔF(z)(1z),W(z)=3⋅1+1⋅zΔF(z)=z+3(z−0.8)(z+0.3).(zI - F)^{-1}G = \frac{1}{\Delta_F(z)}\begin{pmatrix} 1 \\ z \end{pmatrix}, \qquad W(z) = \frac{3 \cdot 1 + 1 \cdot z}{\Delta_F(z)} = \frac{z + 3}{(z - 0.8)(z + 0.3)} .

No pole is cancelled, so both modes appear in W(z)W(z). To invert it we need terms of the form zz−λ\tfrac{z}{z - \lambda} (whose inverse transform is λt\lambda^t), so we expand W(z)/zW(z)/z:

W(z)z=z+3z (z−0.8)(z+0.3)=Az+Bz−0.8+Cz+0.3,\frac{W(z)}{z} = \frac{z + 3}{z\,(z - 0.8)(z + 0.3)} = \frac{A}{z} + \frac{B}{z - 0.8} + \frac{C}{z + 0.3},

A=3(−0.8)(0.3)=−252,B=0.8+30.8 (0.8+0.3)=3.80.88=9522,C=−0.3+3(−0.3)(−0.3−0.8)=2.70.33=9011.A = \frac{3}{(-0.8)(0.3)} = -\frac{25}{2}, \qquad B = \frac{0.8 + 3}{0.8\,(0.8 + 0.3)} = \frac{3.8}{0.88} = \frac{95}{22}, \qquad C = \frac{-0.3 + 3}{(-0.3)(-0.3 - 0.8)} = \frac{2.7}{0.33} = \frac{90}{11} .

(Check: A+B+C=−27522+9522+18022=0A + B + C = -\tfrac{275}{22} + \tfrac{95}{22} + \tfrac{180}{22} = 0, as it must since W(z)/zW(z)/z decays like 1/z21/z^2.) Hence

W(z)=−252+9522 zz−0.8+9011 zz+0.3,w(t)=[−252 δ(t)+9522 (0.8)t+9011 (−0.3)t]δ−1(t),W(z) = -\frac{25}{2} + \frac{95}{22}\,\frac{z}{z - 0.8} + \frac{90}{11}\,\frac{z}{z + 0.3}, \qquad w(t) = \left[-\frac{25}{2}\,\delta(t) + \frac{95}{22}\,(0.8)^t + \frac{90}{11}\,(-0.3)^t\right]\delta_{-1}(t),

where δ(t)\delta(t) is the Kronecker delta and δ−1(t)\delta_{-1}(t) the unit step. At t=0t = 0 the three terms give −12.5+4.318+8.182=0-12.5 + 4.318 + 8.182 = 0, so w(0)=0w(0) = 0, and for t≥1t \ge 1 the term with δ(t)\delta(t) disappears: w(t)=9522 (0.8)t+9011 (−0.3)tw(t) = \tfrac{95}{22}\,(0.8)^t + \tfrac{90}{11}\,(-0.3)^t.

Check in the time domain. From Solution of Discrete-Time LTI SystemsA discrete-time LTI system is solved by iterating the difference equation, which gives a free evolution F to the power t times the initial state plus a convolution with F to the power t minus one times G, and the matrix power is computed through the diagonal or Jordan form with binomial coefficients.Solution of Discrete-Time LTI Systems → the impulse response is w(t)=HFt−1Gw(t) = HF^{t-1}G for t≥1t \ge 1 (and J δ(t)=0J\,\delta(t) = 0 here). For t=1t = 1: HG=3⋅0+1⋅1=1HG = 3 \cdot 0 + 1 \cdot 1 = 1; the formula gives 9522(0.8)+9011(−0.3)=3.4545−2.4545=1\tfrac{95}{22}(0.8) + \tfrac{90}{11}(-0.3) = 3.4545 - 2.4545 = 1. For t=2t = 2: FG=(1, 0.5)TFG = (1,\ 0.5)^T and HFG=3+0.5=3.5HFG = 3 + 0.5 = 3.5; the formula gives 9522(0.64)+9011(0.09)=2.7636+0.7364=3.5\tfrac{95}{22}(0.64) + \tfrac{90}{11}(0.09) = 2.7636 + 0.7364 = 3.5. Both match. Typical mistakes: expanding W(z)W(z) directly without dividing by zz (this gives terms 1z−λ\tfrac{1}{z - \lambda}, whose inverse is λt−1\lambda^{t-1}, not λt\lambda^t); forgetting the constant term −252-\tfrac{25}{2}, which only affects t=0t = 0.

c) Step response. With x(0)=0x(0) = 0 the output is the forced one, Y(z)=W(z) U(z)Y(z) = W(z)\,U(z), and the z-transform of the unit step is U(z)=zz−1U(z) = \tfrac{z}{z - 1} (it is Z[λt]\mathcal{Z}[\lambda^t] with λ=1\lambda = 1). So

Y(z)z=W(z)z−1=z+3(z−0.8)(z+0.3)(z−1)=B′z−0.8+C′z+0.3+D′z−1,\frac{Y(z)}{z} = \frac{W(z)}{z - 1} = \frac{z + 3}{(z - 0.8)(z + 0.3)(z - 1)} = \frac{B'}{z - 0.8} + \frac{C'}{z + 0.3} + \frac{D'}{z - 1},

B′=3.8(1.1)(−0.2)=−19011,C′=2.7(−1.1)(−1.3)=270143,D′=4(0.2)(1.3)=20013.B' = \frac{3.8}{(1.1)(-0.2)} = -\frac{190}{11}, \qquad C' = \frac{2.7}{(-1.1)(-1.3)} = \frac{270}{143}, \qquad D' = \frac{4}{(0.2)(1.3)} = \frac{200}{13}.

There is no pole at z=0z = 0 because W(z)W(z) has none. Therefore

Y(z)=−19011 zz−0.8+270143 zz+0.3+20013 zz−1,y(t)=−19011 (0.8)t+270143 (−0.3)t+20013,t≥0.Y(z) = -\frac{190}{11}\,\frac{z}{z - 0.8} + \frac{270}{143}\,\frac{z}{z + 0.3} + \frac{200}{13}\,\frac{z}{z - 1}, \qquad y(t) = -\frac{190}{11}\,(0.8)^t + \frac{270}{143}\,(-0.3)^t + \frac{200}{13}, \quad t \ge 0 .

The values: y(0)=−17.2727+1.8881+15.3846=0y(0) = -17.2727 + 1.8881 + 15.3846 = 0 (consistent with J=0J = 0 and x(0)=0x(0) = 0), y(1)=1y(1) = 1, y(2)=4.5y(2) = 4.5, y(3)=6.49y(3) = 6.49, y(4)=8.325y(4) = 8.325. Check by iterating the difference equation: x(1)=G=(0,1)Tx(1) = G = (0, 1)^T and y(1)=1y(1) = 1; x(2)=Fx(1)+G=(1, 0.5)T+(0, 1)T=(1, 1.5)Tx(2) = Fx(1) + G = (1,\ 0.5)^T + (0,\ 1)^T = (1,\ 1.5)^T and y(2)=3+1.5=4.5y(2) = 3 + 1.5 = 4.5; x(3)=(1.5, 0.24+0.75+1)T=(1.5, 1.99)Tx(3) = (1.5,\ 0.24 + 0.75 + 1)^T = (1.5,\ 1.99)^T and y(3)=4.5+1.99=6.49y(3) = 4.5 + 1.99 = 6.49. Convergence: since 0.8t→00.8^t \to 0 and (−0.3)t→0(-0.3)^t \to 0, y(t)→20013≅15.38y(t) \to \tfrac{200}{13} \cong 15.38, the same value as yeqy_{eq} of part a, and it is also W(1)=40.26=20013W(1) = \tfrac{4}{0.26} = \tfrac{200}{13} (the value of the transfer function at z=1z = 1 is the steady-state gain for a constant input). The decay is governed by the dominant eigenvalue 0.80.8: about 0.810≅0.110.8^{10} \cong 0.11 after 10 steps. Typical mistakes: using 1z−1\tfrac{1}{z - 1} for the transform of the step (the correct one is zz−1\tfrac{z}{z - 1}); writing the limit as y(∞)=0y(\infty) = 0 because "the system is stable" (a stable system with a constant input converges to a non-zero equilibrium).

Exercise 5 (points 6)

A sensor is modelled as y=θ1+θ2 x+θ3 u+ey = \theta_1 + \theta_2\,x + \theta_3\,u + e, where xx is the applied quantity, uu is a second quantity that the acquisition system records together with xx, yy is the reading and ee the noise. In the six measurements of the experiment the second quantity was always proportional to the first, ui=3 xiu_i = 3\,x_i:

ii 1 2 3 4 5 6
xix_i 0.3 0.8 1.3 1.8 2.3 2.8
ui=3 xiu_i = 3\,x_i 0.9 2.4 3.9 5.4 6.9 8.4
yiy_i 2.83 4.47 6.05 7.95 9.18 11.30

a) Write the regression matrix Φ∈R6×3\Phi \in \mathbb{R}^{6 \times 3} and show that ΦTΦ\Phi^T\Phi is not invertible. Show that the least squares solutions are all the vectors θ=(θ1,θ2,θ3)T\theta = (\theta_1, \theta_2, \theta_3)^T with θ1\theta_1 fixed and θ2+3θ3\theta_2 + 3\theta_3 fixed, find the two values and the common sum of squared residuals, and describe the set of solutions through the kernel of Φ\Phi.

b) State the rank rr of Φ\Phi and the shape of Σ1\Sigma_1 in the singular value decomposition Φ=U1Σ1V1T\Phi = U_1\Sigma_1V_1^T. Compute the solution of minimal norm θ^=Φ+y\hat\theta = \Phi^+y and its norm, and compare it with the solution that has θ3=0\theta_3 = 0.

c) A new reading is made at x=3x = 3 with u=9u = 9, and another at x=3x = 3 with u=12u = 12. Compute the predictions of the minimal-norm solution, of the solution with θ3=0\theta_3 = 0 and of the solution with θ2=0\theta_2 = 0. What do the data allow to say about θ2\theta_2 and θ3\theta_3, and what does the minimal-norm choice mean?

Show the result

a) The third column of Φ\Phi is 33 times the second, so rank⁡Φ=2\operatorname{rank}\Phi = 2 and det⁡ΦTΦ=0\det\Phi^T\Phi = 0, with ΦTΦ=(69.327.99.318.7956.3727.956.37169.11)\Phi^T\Phi = \begin{pmatrix} 6 & 9.3 & 27.9 \\ 9.3 & 18.79 & 56.37 \\ 27.9 & 56.37 & 169.11 \end{pmatrix}, ΦTy=(41.78, 79.354, 238.062)T\Phi^Ty = (41.78,\ 79.354,\ 238.062)^T. Solutions: θ1=1.7925\theta_1 = 1.7925, θ2+3θ3=3.336\theta_2 + 3\theta_3 = 3.336; the sum of squared residuals is 0.14020.1402 for all of them. The set is θ^p+z\hat\theta_p + z with z∈Ker⁡Φ=⟨(0,3,−1)T⟩z \in \operatorname{Ker}\Phi = \langle (0, 3, -1)^T \rangle.

b) r=2r = 2, Σ1\Sigma_1 is 2×22 \times 2 and diagonal with the two nonzero singular values (≅13.88\cong 13.88 and 1.171.17). θ^=Φ+y=(1.7925, 0.3336, 1.0008)T\hat\theta = \Phi^+y = (1.7925,\ 0.3336,\ 1.0008)^T, ∥θ^∥≅2.080\lVert\hat\theta\rVert \cong 2.080; the solution (1.7925, 3.336, 0)T(1.7925,\ 3.336,\ 0)^T has norm 3.7873.787.

c) At (x,u)=(3,9)(x, u) = (3, 9) all three solutions predict 11.8011.80. At (3,12)(3, 12) the predictions are 14.8014.80 (minimal norm), 11.8011.80 (θ3=0\theta_3 = 0) and 15.1415.14 (θ2=0\theta_2 = 0). The data fix only θ1\theta_1 and θ2+3θ3\theta_2 + 3\theta_3; the minimal norm is a rule to select one solution, not an estimate of the true θ2\theta_2 and θ3\theta_3.

Show the full solution

a) Rank-deficient normal equation. The regression matrix has the rows (1, xi, ui)=(1, xi, 3xi)(1,\ x_i,\ u_i) = (1,\ x_i,\ 3x_i):

Φ=(10.30.910.82.411.33.911.85.412.36.912.88.4),y=(2.834.476.057.959.1811.30).\Phi = \begin{pmatrix} 1 & 0.3 & 0.9 \\ 1 & 0.8 & 2.4 \\ 1 & 1.3 & 3.9 \\ 1 & 1.8 & 5.4 \\ 1 & 2.3 & 6.9 \\ 1 & 2.8 & 8.4 \end{pmatrix}, \qquad y = \begin{pmatrix} 2.83 \\ 4.47 \\ 6.05 \\ 7.95 \\ 9.18 \\ 11.30 \end{pmatrix}.

The sums are the same as for a straight line, with the third column equal to three times the second (Least Squares Estimation - Linear and Weighted Least SquaresThe least squares estimator minimises the sum of squared deviations between observed and predicted outputs; for models linear in the parameters it has a closed form given by the normal equation, extended to weighted least squares and illustrated on a straight-line fit and on a DC motor.Least Squares Estimation - Linear and Weighted Least Squares →): ∑xi=9.3\sum x_i = 9.3, ∑xi2=18.79\sum x_i^2 = 18.79, ∑yi=41.78\sum y_i = 41.78, ∑xiyi=79.354\sum x_iy_i = 79.354, and then ∑ui=27.9\sum u_i = 27.9, ∑xiui=56.37\sum x_iu_i = 56.37, ∑ui2=169.11\sum u_i^2 = 169.11, ∑uiyi=238.062\sum u_iy_i = 238.062. So

ΦTΦ=(69.327.99.318.7956.3727.956.37169.11),ΦTy=(41.7879.354238.062).\Phi^T\Phi = \begin{pmatrix} 6 & 9.3 & 27.9 \\ 9.3 & 18.79 & 56.37 \\ 27.9 & 56.37 & 169.11 \end{pmatrix}, \qquad \Phi^Ty = \begin{pmatrix} 41.78 \\ 79.354 \\ 238.062 \end{pmatrix}.

The third column of ΦTΦ\Phi^T\Phi is 33 times the second, and so is the third row: the columns of Φ\Phi are dependent, rank⁡Φ=2\operatorname{rank}\Phi = 2, det⁡ΦTΦ=0\det\Phi^T\Phi = 0, and the formula (ΦTΦ)−1ΦTy(\Phi^T\Phi)^{-1}\Phi^Ty cannot be used.

What the model can say. The model output is Φθ=θ11+(θ2+3θ3) x\Phi\theta = \theta_1\mathbf{1} + (\theta_2 + 3\theta_3)\,x: it depends on θ2\theta_2 and θ3\theta_3 only through the sum a=θ2+3θ3a = \theta_2 + 3\theta_3, so the cost ∥y−Φθ∥2\lVert y - \Phi\theta\rVert^2 is the cost of the straight-line model with parameters (θ1,a)(\theta_1, a). Its minimiser is given by the normal equation of the straight line, which is solved with the sums above:

(69.39.318.79)(θ1a)=(41.7879.354),det⁡=6⋅18.79−9.32=26.25,θ1=18.79⋅41.78−9.3⋅79.35426.25=1.7925,a=6⋅79.354−9.3⋅41.7826.25=3.336.\begin{pmatrix} 6 & 9.3 \\ 9.3 & 18.79 \end{pmatrix}\begin{pmatrix} \theta_1 \\ a \end{pmatrix} = \begin{pmatrix} 41.78 \\ 79.354 \end{pmatrix}, \quad \det = 6 \cdot 18.79 - 9.3^2 = 26.25, \quad \theta_1 = \frac{18.79 \cdot 41.78 - 9.3 \cdot 79.354}{26.25} = 1.7925, \quad a = \frac{6 \cdot 79.354 - 9.3 \cdot 41.78}{26.25} = 3.336 .

The residuals are 0.037, 0.009, −0.079, 0.153, −0.285, 0.1670.037,\ 0.009,\ -0.079,\ 0.153,\ -0.285,\ 0.167 and the sum of their squares is 0.14020.1402. All the vectors with θ1=1.7925\theta_1 = 1.7925 and θ2+3θ3=3.336\theta_2 + 3\theta_3 = 3.336 give the same output Φθ\Phi\theta and so the same cost: they are all least squares solutions. Written with the kernel, the set of solutions is (note Pseudoinverse and SVD for Rank-Deficient Least SquaresWhen the matrix of the normal equation is not invertible the least squares problem has infinitely many solutions; using the singular value decomposition and the pseudoinverse one picks the solution of minimal norm, derived here step by step.Pseudoinverse and SVD for Rank-Deficient Least Squares →)

Θ={θ: ΦTΦ θ=ΦTy}={θ^p+z: z∈Ker⁡Φ},Ker⁡Φ=⟨(03−1)⟩,\Theta = \{\theta:\ \Phi^T\Phi\,\theta = \Phi^Ty\} = \{\hat\theta_p + z:\ z \in \operatorname{Ker}\Phi\}, \qquad \operatorname{Ker}\Phi = \left\langle \begin{pmatrix} 0 \\ 3 \\ -1 \end{pmatrix} \right\rangle,

because Φ (0,3,−1)T=3 xi−ui=0\Phi\,(0, 3, -1)^T = 3\,x_i - u_i = 0 for every row. For example θ^p=(1.7925, 3.336, 0)T\hat\theta_p = (1.7925,\ 3.336,\ 0)^T is a solution. Typical mistakes: inverting ΦTΦ\Phi^T\Phi with a calculator that returns a huge meaningless matrix; thinking that the fit is bad because the matrix is singular (the fit is exactly as good as the straight-line fit).

b) Pseudoinverse. The rank is r=2r = 2: in the singular value decomposition Φ=UΣVT\Phi = U\Sigma V^T only two singular values are nonzero, Σ1∈R2×2\Sigma_1 \in \mathbb{R}^{2 \times 2} is diagonal and contains them (numerically about 13.8813.88 and 1.171.17), while U1U_1 and V1V_1 keep the first r=2r = 2 columns of UU and VV. The pseudoinverse is Φ+=V1Σ1−1U1T\Phi^+ = V_1\Sigma_1^{-1}U_1^T and θ^=Φ+y\hat\theta = \Phi^+y is the least squares solution of minimal norm. To compute it without the decomposition, use the structure of the solution set: the norm ∥θ∥2=θ12+θ22+θ32\lVert\theta\rVert^2 = \theta_1^2 + \theta_2^2 + \theta_3^2 is minimal on Θ\Theta for the solution orthogonal to the kernel (in the proof of the note the component z=V2z~z = V_2\tilde z along the kernel is set to zero). With θ1=1.7925\theta_1 = 1.7925 fixed, the pair (θ2,θ3)(\theta_2, \theta_3) must satisfy θ2+3θ3=3.336\theta_2 + 3\theta_3 = 3.336 and be orthogonal to (3,−1)(3, -1), that is (θ2,θ3)=s (1,3)(\theta_2, \theta_3) = s\,(1, 3):

s+9s=3.336 ⇒ s=0.3336,θ^=Φ+y=(1.79250.33361.0008),∥θ^∥=1.79252+0.33362+1.00082≅2.080.s + 9s = 3.336 \ \Rightarrow\ s = 0.3336, \qquad \hat\theta = \Phi^+y = \begin{pmatrix} 1.7925 \\ 0.3336 \\ 1.0008 \end{pmatrix}, \qquad \lVert\hat\theta\rVert = \sqrt{1.7925^2 + 0.3336^2 + 1.0008^2} \cong 2.080 .

(Check: θ2+3θ3=0.3336+3.0024=3.336\theta_2 + 3\theta_3 = 0.3336 + 3.0024 = 3.336, and θ^T(0,3,−1)T=1.0008−1.0008=0\hat\theta^T(0, 3, -1)^T = 1.0008 - 1.0008 = 0.) The same value follows from the factorisation Φ=ΦrM\Phi = \Phi_rM with Φr=(1  x)\Phi_r = (\mathbf{1}\ \ x) and M=(100013)M = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 3 \end{pmatrix}, which gives Φ+y=MT(MMT)−1(θ1,a)T\Phi^+y = M^T(MM^T)^{-1}(\theta_1, a)^T with MMT=diag⁡(1,10)MM^T = \operatorname{diag}(1, 10). The solution with θ3=0\theta_3 = 0, (1.7925, 3.336, 0)T(1.7925,\ 3.336,\ 0)^T, has the same residuals but norm 1.79252+3.3362≅3.787\sqrt{1.7925^2 + 3.336^2} \cong 3.787, much larger: the minimal-norm solution spreads the effect over θ2\theta_2 and θ3\theta_3 in the proportion 1:31:3. Typical mistakes: believing that Φ+y\Phi^+y gives a smaller cost than the other solutions (all the solutions have the same cost; it has the smallest norm); minimising θ22+θ32\theta_2^2 + \theta_3^2 without the constraint (the minimum would be 00).

c) Interpretation. Take the three solutions θ(a)=(1.7925, 0.3336, 1.0008)T\theta^{(a)} = (1.7925,\ 0.3336,\ 1.0008)^T (minimal norm), θ(b)=(1.7925, 3.336, 0)T\theta^{(b)} = (1.7925,\ 3.336,\ 0)^T and θ(c)=(1.7925, 0, 1.112)T\theta^{(c)} = (1.7925,\ 0,\ 1.112)^T (it has θ2=0\theta_2 = 0 and 3θ3=3.3363\theta_3 = 3.336). The prediction is y^=θ1+θ2x+θ3u\hat y = \theta_1 + \theta_2x + \theta_3u.

  • At (x,u)=(3,9)(x, u) = (3, 9), which keeps the proportion u=3xu = 3x of the experiment: all three give 1.7925+3.336⋅3=11.801.7925 + 3.336 \cdot 3 = 11.80, because for u=3xu = 3x the prediction depends only on θ2+3θ3\theta_2 + 3\theta_3.
  • At (x,u)=(3,12)(x, u) = (3, 12), which breaks the proportion: θ(a)\theta^{(a)} gives 1.7925+1.0008+12.0096=14.801.7925 + 1.0008 + 12.0096 = 14.80, θ(b)\theta^{(b)} gives 1.7925+10.008=11.801.7925 + 10.008 = 11.80 and θ(c)\theta^{(c)} gives 1.7925+13.344=15.141.7925 + 13.344 = 15.14. The three models, equally good on the data, disagree by 3 units or more.

The experiment contains no information to separate θ2\theta_2 from θ3\theta_3: the data determine only θ1\theta_1 and the combination θ2+3θ3\theta_2 + 3\theta_3, and any model that uses the sensor outside the line u=3xu = 3x is unreliable. The minimal-norm solution is a convenient rule that picks one point of the set Θ\Theta; it is not an estimate of the true θ2\theta_2 and θ3\theta_3, and its prediction at (3,12)(3, 12) has no special merit. The remedy is not in the algebra but in the experiment: the quantities xx and uu must be varied independently, so that the columns of Φ\Phi are independent and the problem has a unique solution (a reading of the note, which states that ΦTΦ\Phi^T\Phi is invertible if and only if the columns of Φ\Phi are independent). Typical mistakes: stating that θ^3=1.0008\hat\theta_3 = 1.0008 is "the" estimate of the third parameter; judging the model only by the residuals, which are identical for the three solutions.

Self-assessment grid
Exercise Points What must be there for the full points Typical mistakes
1 a) 2 Equations from incoming minus outgoing flows, FF, GG, HH with the correct positions, sign structure, column sums equal to minus the leak Transposed FF, missing f32f_{32} in the diagonal of compartment 3
1 b) 2 ΔF\Delta_F factored, three negative eigenvalues, asymptotic stability, xˉ\bar x with the right sign, balance f30xˉ3=uˉf_{30}\bar x_3 = \bar u Equilibrium with the wrong sign, arithmetic slips in the 2×22 \times 2 block
1 c) 2 Eigenvalues 0,−0.8,−1.10, -0.8, -1.1, kernel (0,3,5)(0,3,5), stable not asymptotically stable, limit by conservation, no equilibrium with uˉ=5\bar u = 5 Declaring asymptotic stability, limit x1→10x_1 \to 10
2 a) 2 ΔF\Delta_F, eigenvalues −3,−8-3, -8, eigenvectors (1,1)(1,1) and (1,2)(1,2), TT, eFte^{Ft} with the change of basis, pseudo-parabolic trajectories, asymptotic stability Eigenvectors in the wrong order in TT, error in T−1T^{-1}
2 b) 2 Rectilinear trajectories only on the two eigenspaces (lines x2=x1x_2 = x_1 and x2=2x1x_2 = 2x_1), solutions e−3tx(0)e^{-3t}x(0) and e−8tx(0)e^{-8t}x(0) Taking the coordinate axes, or eλtx(0)e^{\lambda t}x(0) for any initial state
2 c) 2 Coordinates (−2,5)(-2, 5), x(t)x(t), relation z2=5(∣z1∣/2)8/3z_2 = 5(\lvert z_1\rvert/2)^{8/3}, tangency to the slow eigenvector Forgetting the sign of the coefficient −2-2, exponent 22 instead of the ratio of the eigenvalues
3 a) 2 Only equilibrium, Jacobian, eigenvalues ±j 22\pm j\,2\sqrt2, critical case, no conclusion Concluding stability from the imaginary eigenvalues
3 b) 2 VV positive definite (Sylvester), V˙=−6 x24\dot V = -6\,x_2^4, stability only, failure of V0V_0 shown with two points Claiming asymptotic stability, or instability from the failed V0V_0
3 c) 2 Zero Jacobian and critical case, V˙=−6 x14−32 x12x22−6 x24<0\dot V = -6\,x_1^4 - 32\,x_1^2x_2^2 - 6\,x_2^4 < 0, asymptotic stability Looking for the decay rate in the zero eigenvalues
4 a) 2 Eigenvalues 0.8,−0.30.8, -0.3, modes, moduli below 1, (I−F)xeq=Gueq(I-F)x_{eq} = Gu_{eq}, xeqx_{eq} and yeqy_{eq} Using Re⁡(λ)<0\operatorname{Re}(\lambda) < 0 or the continuous-time equilibrium equation
4 b) 2 (zI−F)−1(zI-F)^{-1}, W(z)W(z), expansion of W/zW/z, w(t)w(t), check of w(1)w(1) and w(2)w(2) No division by zz, missing the term at t=0t = 0
4 c) 2 Y(z)=W(z) z/(z−1)Y(z) = W(z)\,z/(z-1), partial fractions, y(t)y(t), values y(0..4)y(0..4), limit equal to W(1)W(1) Step transform written as 1/(z−1)1/(z-1), limit zero
5 a) 2 Φ\Phi with the dependent column, ΦTΦ\Phi^T\Phi singular, solutions with θ1=1.7925\theta_1 = 1.7925 and θ2+3θ3=3.336\theta_2 + 3\theta_3 = 3.336, residual sum 0.14020.1402, kernel (0,3,−1)(0, 3, -1) Inverting ΦTΦ\Phi^T\Phi, thinking the fit is bad
5 b) 2 Rank 2, Σ1\Sigma_1 of size 2×22 \times 2, minimal-norm solution (1.7925,0.3336,1.0008)(1.7925, 0.3336, 1.0008), norm 2.0802.080, comparison with θ3=0\theta_3 = 0 Minimising θ22+θ32\theta_2^2 + \theta_3^2 without the constraint, believing that the cost is smaller
5 c) 2 Predictions 11.8011.80 for the three solutions at u=3xu = 3x, 14.8014.80, 11.8011.80, 15.1415.14 at u=12u = 12, only θ1\theta_1 and θ2+3θ3\theta_2 + 3\theta_3 identified, minimal norm is a selection rule, independent variation of xx and uu Treating 1.00081.0008 as the estimate of θ3\theta_3

Total: 5 exercises ×\times 6 points = 30 points. A request is worth its 2 points only if the method, the intermediate values and the final result with the correct units are all present; give half the points for a correct method with an arithmetic slip.