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

Systems and Models - Mock Exam 4

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 built on the notes of the course only. Official format, from the course description: 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 (three requests of 2 points), for a total of 30. The systems, the matrices and the data are new: it is not a copy of any real test.

The five exercises come from five different parts of the course: a nonlinear population model (modelling and linearization), the trajectories of second-order LTI systems, the equilibria and the stability of discrete-time systems, the a priori identifiability of a parametric model (identification), and the transfer function of a plant validated against a step response (validation and critical reading).

Conventions used in the whole test: xx is the state, uu the input, "a.s." means asymptotically stable, g=9.81 m/s2g = 9.81\ \text{m/s}^2. Every system and every table of data is given completely, so the figures can be redrawn on the sheet before starting.

How to use it: work with a timer, write every formula in letters before putting the numbers in, and look at the "Result" only when an exercise is finished. Where a part asks for a comment, the "Solution" says which sentences of the notes support it, and it marks as a reading the points where two notes are joined.

Exercise 1 (points 6)

A wildlife agency models a prey population x1x_1 and a predator population x2x_2, both measured in thousands of individuals; time is in years. The assumptions are:

  • the prey are born at a rate proportional to x1x_1, with coefficient α\alpha;
  • the prey compete for food, so the number of prey deaths due to crowding is proportional to x12x_1^2, with coefficient β\beta;
  • the number of prey killed by the predators is proportional to both x1x_1 and x2x_2, with coefficient dd;
  • the number of new predators is proportional to x1x2x_1x_2, with coefficient cc, and the number of predator deaths is proportional to x2x_2, with coefficient aa.

Data: α=0.9 yr−1\alpha = 0.9\ \text{yr}^{-1}, β=0.09 yr−1\beta = 0.09\ \text{yr}^{-1} per thousand individuals, d=0.4d = 0.4, c=0.1c = 0.1 (both per thousand individuals and per year), a=0.4 yr−1a = 0.4\ \text{yr}^{-1}.

a) Write the state equations x˙=f(x)\dot x = f(x). Show that for β=0\beta = 0 you obtain the Lotka-Volterra model of the course and that for x2=0x_2 = 0 you obtain the logistic model. Find all the equilibria, with their numerical values (2 points).

b) Compute the Jacobian of ff. For each equilibrium write the linearized system, compute the eigenvalues and say what the linearization theorem allows to conclude. For the equilibrium with both populations present, give the period of the oscillations and the time in which their envelope is halved (2 points).

c) The predators become more mortal: a=1.2 yr−1a = 1.2\ \text{yr}^{-1}, all the other data unchanged. Show that the equilibrium with both populations is no longer acceptable, study the stability of the equilibrium with only prey and say what happens to the predators. Find the value of aa at which the situation changes (2 points).

Show the result

a) x˙1=αx1−βx12−d x1x2\dot x_1 = \alpha x_1 - \beta x_1^2 - d\,x_1x_2, x˙2=c x1x2−a x2\dot x_2 = c\,x_1x_2 - a\,x_2. Equilibria: E0=(0,0)E_0 = (0, 0), E1=(10,0)E_1 = (10, 0) and E2=(4, 1.35)E_2 = (4,\ 1.35) (thousands).

b) J(x)=(α−2βx1−dx2−dx1cx2cx1−a)J(x) = \begin{pmatrix} \alpha - 2\beta x_1 - d x_2 & -d x_1 \\ c x_2 & c x_1 - a \end{pmatrix}. At E0E_0: eigenvalues 0.90.9 and −0.4-0.4, unstable. At E1E_1: F=(−0.9−400.6)F = \begin{pmatrix} -0.9 & -4 \\ 0 & 0.6 \end{pmatrix}, eigenvalues −0.9-0.9 and 0.60.6, unstable. At E2E_2: F=(−0.36−1.60.1350)F = \begin{pmatrix} -0.36 & -1.6 \\ 0.135 & 0 \end{pmatrix}, eigenvalues −0.18±j 0.4285 yr−1-0.18 \pm j\,0.4285\ \text{yr}^{-1}, a.s.; period 14.7 yr14.7\ \text{yr}, envelope halved in 3.85 yr3.85\ \text{yr}.

c) For a=1.2a = 1.2: the equilibrium with coexistence would be (12, −0.45)(12,\ -0.45), not acceptable (x2<0x_2 < 0). At E1E_1 the eigenvalues are −0.9-0.9 and −0.2 yr−1-0.2\ \text{yr}^{-1}: a.s., the predators die out and the prey settle at 1010 thousand. The threshold is a=cα/β=1.0 yr−1a = c\alpha/\beta = 1.0\ \text{yr}^{-1}.

Show the full solution

a) Model and equilibria. Each state variable changes by births minus deaths, as in Modelling Examples - Lotka-Volterra and Car SuspensionThree modelling exercises turn physical laws into state equations: the logistic population model, the Lotka-Volterra predator-prey model studied by linearization, and a two-mass car suspension model with the road as input.Modelling Examples - Lotka-Volterra and Car Suspension →. Prey: +αx1+\alpha x_1 (births), −βx12-\beta x_1^2 (crowding), −dx1x2-d x_1x_2 (predation). Predators: +cx1x2+c x_1x_2 (the predation of the prey feeds the predators, as in the course), −ax2-a x_2 (deaths):

x˙1=αx1−βx12−d x1x2,x˙2=c x1x2−a x2.\dot x_1 = \alpha x_1 - \beta x_1^2 - d\,x_1x_2, \qquad \dot x_2 = c\,x_1x_2 - a\,x_2.

Two checks with the models of the course. For β=0\beta = 0 the equations become x˙1=αx1−dx1x2\dot x_1 = \alpha x_1 - d x_1x_2 and x˙2=cx1x2−ax2\dot x_2 = c x_1x_2 - a x_2, which is the Lotka-Volterra model with b=αb = \alpha. For x2=0x_2 = 0 the second equation is trivially satisfied and the first one is x˙1=αx1−βx12\dot x_1 = \alpha x_1 - \beta x_1^2, the logistic model p˙=αp−βp2\dot p = \alpha p - \beta p^2 with p=x1p = x_1. The model is therefore the union of the two examples of the course; the logistic term is the only new ingredient.

An equilibrium is a point with f(xˉ)=0f(\bar x) = 0 (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 →). Factorize the two equations:

x1(α−βx1−dx2)=0,x2(cx1−a)=0.x_1\big(\alpha - \beta x_1 - d x_2\big) = 0, \qquad x_2\big(c x_1 - a\big) = 0.

The second one gives x2=0x_2 = 0 or x1=a/cx_1 = a/c.

  • If x2=0x_2 = 0, the first one gives x1=0x_1 = 0 or x1=α/βx_1 = \alpha/\beta: the equilibria E0=(0,0)E_0 = (0, 0) and E1=(α/β, 0)=(0.9/0.09, 0)=(10, 0)E_1 = (\alpha/\beta,\ 0) = (0.9/0.09,\ 0) = (10,\ 0).
  • If x1=a/c=0.4/0.1=4x_1 = a/c = 0.4/0.1 = 4, the first factor must vanish: α−β ac−dx2=0\alpha - \beta\,\frac{a}{c} - d x_2 = 0, so x2=α−βa/cd=0.9−0.09⋅40.4=0.540.4=1.35,x_2 = \frac{\alpha - \beta a/c}{d} = \frac{0.9 - 0.09 \cdot 4}{0.4} = \frac{0.54}{0.4} = 1.35, that is E2=(4, 1.35)E_2 = (4,\ 1.35), acceptable because x2>0x_2 > 0.

There are three equilibria. Typical mistake: forgetting E1E_1 (the equilibrium with only prey, which does not exist in the model without the logistic term) or accepting a solution with a negative population.

b) Linearization. For x˙=f(x)\dot x = f(x) the linearized matrix at an equilibrium xˉ\bar x is the Jacobian F=Jf(xˉ)F = J_f(\bar x), and for xˉ≠0\bar x \neq 0 one works with z=x−xˉz = x - \bar x (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 →). Differentiating f1=αx1−βx12−dx1x2f_1 = \alpha x_1 - \beta x_1^2 - d x_1x_2 and f2=cx1x2−ax2f_2 = c x_1x_2 - a x_2:

J(x)=(α−2βx1−dx2−dx1cx2cx1−a).J(x) = \begin{pmatrix} \alpha - 2\beta x_1 - d x_2 & -d x_1 \\ c x_2 & c x_1 - a \end{pmatrix}.

The theorem 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 → is used at each equilibrium: if FF is a.s. the equilibrium is a.s., if FF is unstable the equilibrium is unstable, if FF is only stable nothing is concluded.

Equilibrium E0E_0. J(0,0)=(α00−a)=(0.900−0.4)J(0,0) = \begin{pmatrix} \alpha & 0 \\ 0 & -a \end{pmatrix} = \begin{pmatrix} 0.9 & 0 \\ 0 & -0.4 \end{pmatrix} with modes e0.9te^{0.9t} and e−0.4te^{-0.4t} (this is the linearization at the origin written in the course for the Lotka-Volterra model). One mode grows, so FF is unstable and E0E_0 is unstable for the nonlinear model: a small population of prey grows exponentially, with rate α\alpha.

Equilibrium E1=(10,0)E_1 = (10, 0). The entries are α−2β⋅10−0=0.9−1.8=−0.9\alpha - 2\beta \cdot 10 - 0 = 0.9 - 1.8 = -0.9, −d⋅10=−4-d \cdot 10 = -4, c⋅0=0c \cdot 0 = 0 and c⋅10−a=1−0.4=0.6c \cdot 10 - a = 1 - 0.4 = 0.6:

F1=(−0.9−400.6).F_1 = \begin{pmatrix} -0.9 & -4 \\ 0 & 0.6 \end{pmatrix}.

The matrix is upper triangular, so the eigenvalues are the diagonal entries, −0.9-0.9 and 0.6 yr−10.6\ \text{yr}^{-1}. The second one is positive, so F1F_1 is unstable and E1E_1 is unstable: if a few predators are introduced into a prey population at its carrying capacity, they multiply (the mode e0.6te^{0.6t}), because each predator finds enough prey, c⋅10=1>a=0.4c\cdot 10 = 1 > a = 0.4.

Equilibrium E2=(4,1.35)E_2 = (4, 1.35). The entry (1,1)(1,1) is α−2β⋅4−d⋅1.35=0.9−0.72−0.54=−0.36\alpha - 2\beta\cdot 4 - d \cdot 1.35 = 0.9 - 0.72 - 0.54 = -0.36 (it is also −βxˉ1=−0.36-\beta \bar x_1 = -0.36, because the first factor of f1f_1 vanishes at E2E_2). The other entries are −dxˉ1=−1.6-d \bar x_1 = -1.6, cxˉ2=0.135c\bar x_2 = 0.135 and cxˉ1−a=0c\bar x_1 - a = 0:

F2=(−0.36−1.60.1350),tr⁡F2=−0.36,det⁡F2=0+1.6⋅0.135=0.216.F_2 = \begin{pmatrix} -0.36 & -1.6 \\ 0.135 & 0 \end{pmatrix}, \qquad \operatorname{tr}F_2 = -0.36, \qquad \det F_2 = 0 + 1.6 \cdot 0.135 = 0.216.

The characteristic polynomial is λ2+0.36 λ+0.216\lambda^2 + 0.36\,\lambda + 0.216 with discriminant 0.1296−0.864<00.1296 - 0.864 < 0, so

λ1,2=−0.18±j0.216−0.0324=−0.18±j 0.4285 yr−1.\lambda_{1,2} = -0.18 \pm j\sqrt{0.216 - 0.0324} = -0.18 \pm j\,0.4285\ \text{yr}^{-1}.

The real part is negative, so F2F_2 is a.s. and, by the theorem, E2E_2 is a.s. for the nonlinear model. The eigenvalues are complex, so the trajectories near E2E_2 spiral inwards (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 →): the modes are e−0.18tcos⁡(0.4285 t)e^{-0.18t}\cos(0.4285\,t) and the corresponding sine. The period is 2π/0.4285=14.7 yr2\pi/0.4285 = 14.7\ \text{yr}. The envelope e−0.18te^{-0.18t} is halved when 0.18 t=ln⁡20.18\,t = \ln 2, that is after t=3.85 yrt = 3.85\ \text{yr}; in one period it is multiplied by e−0.18⋅14.66=0.071e^{-0.18 \cdot 14.66} = 0.071, so the oscillations of the two populations are strongly damped (the logistic crowding is what damps them: in the model without it the linearization would have imaginary eigenvalues). Typical mistake: using the matrix F2F_2 on the populations xx instead of on the deviations z=x−xˉz = x - \bar x.

c) Mortal predators, a=1.2a = 1.2. The three equilibria are found as before. The coexistence point has xˉ1=a/c=12\bar x_1 = a/c = 12 and

xˉ2=α−βa/cd=0.9−0.09⋅120.4=−0.180.4=−0.45<0,\bar x_2 = \frac{\alpha - \beta a/c}{d} = \frac{0.9 - 0.09 \cdot 12}{0.4} = \frac{-0.18}{0.4} = -0.45 < 0,

which is not acceptable: a population cannot be negative, so the model has no coexistence equilibrium. The equilibria in the acceptable region are E0=(0,0)E_0 = (0,0) and E1=(10,0)E_1 = (10, 0), unchanged. At E0E_0 the Jacobian is diag⁡(0.9, −1.2)\operatorname{diag}(0.9,\ -1.2): still unstable, because of the prey mode e0.9te^{0.9t}. At E1E_1 the only entry that changes is c⋅10−a=1−1.2=−0.2c \cdot 10 - a = 1 - 1.2 = -0.2:

F1=(−0.9−40−0.2),λ=−0.9, −0.2 yr−1.F_1 = \begin{pmatrix} -0.9 & -4 \\ 0 & -0.2 \end{pmatrix}, \qquad \lambda = -0.9,\ -0.2\ \text{yr}^{-1}.

Both eigenvalues are negative, so F1F_1 is a.s. and E1E_1 is a.s. for the nonlinear model: near E1E_1 the predators die out (the mode e−0.2te^{-0.2t}, time constant 5 yr5\ \text{yr}) and the prey tend to 1010 thousand, the carrying capacity of the logistic model.

Threshold. The coexistence equilibrium is acceptable if and only if xˉ2>0\bar x_2 > 0, that is α−βa/c>0\alpha - \beta a/c > 0, a<cα/β=0.1⋅0.9/0.09=1.0 yr−1a < c\alpha/\beta = 0.1 \cdot 0.9/0.09 = 1.0\ \text{yr}^{-1}. The same number is the value of aa at which the eigenvalue c⋅10−ac\cdot 10 - a of F1F_1 changes sign: for a<1.0a < 1.0 it is positive (E1E_1 unstable, predators can invade), for a>1.0a > 1.0 it is negative (E1E_1 a.s.). At a=1.0a = 1.0 exactly the eigenvalues of F1F_1 are −0.9-0.9 and 00, a critical case in which the linearization theorem says nothing. The two situations, a=0.4a = 0.4 and a=1.2a = 1.2, are the two possible outcomes of the model: coexistence with damped oscillations or extinction of the predators. Typical mistake: computing a negative xˉ2\bar x_2 and keeping it as an equilibrium.

Exercise 2 (points 6)

Three second-order LTI systems x˙=Fx\dot x = F x are given (time in seconds).

a) FA=(−0.42.9−2.9−0.4)F_A = \begin{pmatrix} -0.4 & 2.9 \\ -2.9 & -0.4 \end{pmatrix}. Write FAF_A as σI+Ω\sigma I + \Omega, give the eigenvalues and the matrix eFAte^{F_At}. For x(0)=(2, −1)Tx(0) = (2,\ -1)^T write x(t)x(t) and ∥x(t)∥\|x(t)\|, say in which direction the state turns around the origin, and find after how many seconds, and after how many turns, the norm falls below one hundredth of its initial value (2 points).

b) The pendulum without friction of length L=2.0 mL = 2.0\ \text{m}, linearized around its stable equilibrium, with state x=(θ, θ˙)x = (\theta,\ \dot\theta) in rad and rad/s: FB=(01−g/L0)F_B = \begin{pmatrix} 0 & 1 \\ -g/L & 0 \end{pmatrix}. For x(0)=(0.2, 0)Tx(0) = (0.2,\ 0)^T write x(t)x(t), the period, and the curve described by the state in the plane, with the points where it crosses the axes. Why is it an ellipse and not a circle? What does this linear picture say about the stability of the nonlinear pendulum (2 points)?

c) FC=(0413)F_C = \begin{pmatrix} 0 & 4 \\ 1 & 3 \end{pmatrix}. Compute the eigenvalues, say which type of trajectories occurs and find all the initial states for which the trajectory is rectilinear. Decide for x(0)=(2, 2)Tx(0) = (2,\ 2)^T, (−8, 2)T(-8,\ 2)^T, (3, 0)T(3,\ 0)^T and (1, 2)T(1,\ 2)^T. For the last one, write x(t)x(t) and say towards which direction the trajectory tends for large tt (2 points).

Show the result

a) FA=σI+ΩF_A = \sigma I + \Omega with σ=−0.4\sigma = -0.4, Ω=(02.9−2.90)\Omega = \begin{pmatrix} 0 & 2.9 \\ -2.9 & 0 \end{pmatrix}; λ=−0.4±j 2.9 s−1\lambda = -0.4 \pm j\,2.9\ \text{s}^{-1}; x(t)=e−0.4t(2cos⁡2.9t−sin⁡2.9t−2sin⁡2.9t−cos⁡2.9t)x(t) = e^{-0.4t}\begin{pmatrix} 2\cos 2.9t - \sin 2.9t \\ -2\sin 2.9t - \cos 2.9t \end{pmatrix}; ∥x(t)∥=5 e−0.4t\|x(t)\| = \sqrt5\,e^{-0.4t}; clockwise; t=ln⁡100/0.4=11.5 st = \ln 100/0.4 = 11.5\ \text{s}, that is 5.35.3 turns (period 2.17 s2.17\ \text{s}).

b) g/L=4.905 s−2g/L = 4.905\ \text{s}^{-2}, ω=2.2147 rad/s\omega = 2.2147\ \text{rad/s}; x(t)=(0.2cos⁡ωt, −0.4429sin⁡ωt)x(t) = (0.2\cos\omega t,\ -0.4429\sin\omega t); period 2.837 s2.837\ \text{s}; ellipse 4.905 x12+x22=0.19624.905\,x_1^2 + x_2^2 = 0.1962 with semi-axes 0.2 rad0.2\ \text{rad} and 0.4429 rad/s0.4429\ \text{rad/s}. The two off-diagonal entries of FBF_B have different magnitudes. The eigenvalues ±j 2.2147\pm j\,2.2147 are on the imaginary axis: critical case, the linearization theorem does not decide the stability of the nonlinear pendulum.

c) λ1=4\lambda_1 = 4, λ2=−1\lambda_2 = -1, opposite signs: pseudo-hyperbolic trajectories. Eigenvectors (1,1)T(1, 1)^T for 44 and (4,−1)T(4, -1)^T for −1-1. Rectilinear: x(0)=(2,2)Tx(0) = (2,2)^T (diverges as e4te^{4t}) and (−8,2)T(-8, 2)^T (tends to 00 as e−te^{-t}); not rectilinear: (3,0)T(3,0)^T and (1,2)T(1,2)^T. For (1,2)T(1,2)^T: x(t)=1.8 e4t(1,1)T−0.2 e−t(4,−1)Tx(t) = 1.8\,e^{4t}(1,1)^T - 0.2\,e^{-t}(4,-1)^T, which tends to the direction (1,1)T(1,1)^T.

Show the full solution

a) Spiral. The matrix has the form σI+Ω\sigma I + \Omega with σ=−0.4\sigma = -0.4 and ω=2.9\omega = 2.9 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 →, case 3. Its eigenvalues are σ±jω=−0.4±j 2.9 s−1\sigma \pm j\omega = -0.4 \pm j\,2.9\ \text{s}^{-1} (Ω\Omega has eigenvalues ±jω\pm j\omega, and σI\sigma I only shifts them). Since σtI\sigma tI and Ωt\Omega t commute,

eFAt=eσt(cos⁡ωtsin⁡ωt−sin⁡ωtcos⁡ωt),x(t)=e−0.4t(x1(0)cos⁡2.9t+x2(0)sin⁡2.9t−x1(0)sin⁡2.9t+x2(0)cos⁡2.9t).e^{F_At} = e^{\sigma t}\begin{pmatrix} \cos\omega t & \sin\omega t \\ -\sin\omega t & \cos\omega t \end{pmatrix}, \qquad x(t) = e^{-0.4t}\begin{pmatrix} x_1(0)\cos 2.9t + x_2(0)\sin 2.9t \\ -x_1(0)\sin 2.9t + x_2(0)\cos 2.9t \end{pmatrix}.

With x(0)=(2,−1)Tx(0) = (2, -1)^T:

x1(t)=e−0.4t(2cos⁡2.9t−sin⁡2.9t),x2(t)=e−0.4t(−2sin⁡2.9t−cos⁡2.9t).x_1(t) = e^{-0.4t}\left(2\cos 2.9t - \sin 2.9t\right), \qquad x_2(t) = e^{-0.4t}\left(-2\sin 2.9t - \cos 2.9t\right).

For instance x(1)=(−1.462, 0.330)Tx(1) = (-1.462,\ 0.330)^T. The matrix in x(t)x(t) is a rotation, so it keeps the norm, and ∥x(t)∥=e−0.4t∥x(0)∥=5 e−0.4t\|x(t)\| = e^{-0.4t}\|x(0)\| = \sqrt5\,e^{-0.4t} (at t=1t = 1: 2.236⋅0.670=1.4992.236 \cdot 0.670 = 1.499, which is the norm of the vector above). Direction: at the point (1,0)(1, 0) the velocity is FA(1,0)T=(−0.4, −2.9)TF_A(1,0)^T = (-0.4,\ -2.9)^T, pointing down, so the state turns clockwise. Time: ∥x(t)∥≤0.01 ∥x(0)∥\|x(t)\| \le 0.01\,\|x(0)\| when e−0.4t≤0.01e^{-0.4t} \le 0.01, that is t≥ln⁡100/0.4=11.51 st \ge \ln 100/0.4 = 11.51\ \text{s}. One turn takes 2π/2.9=2.167 s2\pi/2.9 = 2.167\ \text{s}, so 11.51/2.167=5.311.51/2.167 = 5.3 turns. Since σ<0\sigma < 0 the trajectory is a spiral towards the origin. Typical mistake: counting the turns with the period 2π/∣λ∣2\pi/|\lambda| instead of 2π/ω2\pi/\omega (the imaginary part, not the modulus of the eigenvalue).

b) Ellipse of the pendulum. With L=2.0 mL = 2.0\ \text{m}, g/L=9.81/2.0=4.905 s−2g/L = 9.81/2.0 = 4.905\ \text{s}^{-2} and FBF_B has λ2+4.905=0\lambda^2 + 4.905 = 0, λ=±jω\lambda = \pm j\omega with ω=4.905=2.2147 rad/s\omega = \sqrt{4.905} = 2.2147\ \text{rad/s}. For x2(0)=0x_2(0) = 0 the formulas of the note for the pendulum without friction give

x1(t)=x1(0)cos⁡ωt=0.2cos⁡ωt,x2(t)=−x1(0) ωsin⁡ωt=−0.4429 sin⁡ωt.x_1(t) = x_1(0)\cos\omega t = 0.2\cos\omega t, \qquad x_2(t) = -x_1(0)\,\omega\sin\omega t = -0.4429\,\sin\omega t.

The period is 2π/ω=2.837 s2\pi/\omega = 2.837\ \text{s}. Eliminating tt with cos⁡2+sin⁡2=1\cos^2 + \sin^2 = 1:

(x10.2)2+(x20.4429)2=1⟺4.905 x12+x22=4.905⋅0.04=0.1962.\left(\frac{x_1}{0.2}\right)^2 + \left(\frac{x_2}{0.4429}\right)^2 = 1 \quad\Longleftrightarrow\quad 4.905\,x_1^2 + x_2^2 = 4.905 \cdot 0.04 = 0.1962.

The curve crosses the x1x_1 axis at x1=±0.2 radx_1 = \pm 0.2\ \text{rad} and the x2x_2 axis at x2=±0.2⋅2.2147=±0.4429 rad/sx_2 = \pm 0.2 \cdot 2.2147 = \pm 0.4429\ \text{rad/s}, as in the example of the note. It is an ellipse because σ=0\sigma = 0 and the off-diagonal entries of FBF_B have different magnitudes (11 and 4.9054.905); only when the two magnitudes are equal, as in (0ω−ω0)\begin{pmatrix} 0 & \omega \\ -\omega & 0 \end{pmatrix}, the curve is a circle. Validity: the amplitude 0.2 rad0.2\ \text{rad} is 11.511.5 degrees, below the 1717 degrees quoted in 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 a good approximation.

Stability. The linear model is stable but not a.s.: the eigenvalues are simple and on the imaginary axis. 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 pendulum without friction, case 1): the theorem gives no conclusion on the nonlinear pendulum. The closed ellipses are a property of the linear model; for the nonlinear one a different argument is needed. Typical mistake: concluding that the nonlinear pendulum oscillates forever because the linearized one does.

c) Real eigenvalues of opposite signs. tr⁡FC=3\operatorname{tr}F_C = 3 and det⁡FC=0⋅3−4⋅1=−4\det F_C = 0 \cdot 3 - 4 \cdot 1 = -4, so λ2−3λ−4=(λ−4)(λ+1)=0\lambda^2 - 3\lambda - 4 = (\lambda - 4)(\lambda + 1) = 0, λ1=4\lambda_1 = 4, λ2=−1\lambda_2 = -1. They are real with λ1λ2<0\lambda_1\lambda_2 < 0: the trajectories are pseudo-hyperbolic (Summary 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 →); the system is unstable.

By the proposition of the note, a trajectory is rectilinear if and only if Fx(0)=λx(0)Fx(0) = \lambda x(0) with λ∈R\lambda \in \mathbb R, that is if x(0)x(0) is an eigenvector. For λ1=4\lambda_1 = 4: (F−4I)v=(−441−1)v=0(F - 4I)v = \begin{pmatrix} -4 & 4 \\ 1 & -1 \end{pmatrix}v = 0 gives v1=(1,1)Tv_1 = (1, 1)^T. For λ2=−1\lambda_2 = -1: (F+I)v=(1414)v=0(F + I)v = \begin{pmatrix} 1 & 4 \\ 1 & 4 \end{pmatrix}v = 0 gives v2=(4,−1)Tv_2 = (4, -1)^T. The rectilinear trajectories through the origin are therefore those of the initial states x(0)=α(1,1)Tx(0) = \alpha(1,1)^T, with x(t)=e4tx(0)x(t) = e^{4t}x(0) (moving away from the origin), and x(0)=β(4,−1)Tx(0) = \beta(4,-1)^T, with x(t)=e−tx(0)x(t) = e^{-t}x(0) (moving towards the origin). Check on the four states:

  • x(0)=(2,2)Tx(0) = (2,2)^T: Fx(0)=(8, 8)T=4 x(0)F x(0) = (8,\ 8)^T = 4\,x(0), rectilinear, mode e4te^{4t};
  • x(0)=(−8,2)Tx(0) = (-8,2)^T: Fx(0)=(8, −8+6)T=(8, −2)T=−1⋅x(0)F x(0) = (8,\ -8 + 6)^T = (8,\ -2)^T = -1\cdot x(0), rectilinear, mode e−te^{-t}, converging;
  • x(0)=(3,0)Tx(0) = (3, 0)^T: Fx(0)=(0, 3)TF x(0) = (0,\ 3)^T, not parallel to x(0)x(0), not rectilinear;
  • x(0)=(1,2)Tx(0) = (1, 2)^T: Fx(0)=(8, 7)TF x(0) = (8,\ 7)^T, not parallel to (1,2)T(1,2)^T, not rectilinear.

For x(0)=(1,2)Tx(0) = (1,2)^T write it in the basis of the eigenvectors, x(0)=c1v1+c2v2x(0) = c_1 v_1 + c_2 v_2: c1+4c2=1c_1 + 4c_2 = 1 and c1−c2=2c_1 - c_2 = 2, so c2=−0.2c_2 = -0.2 and c1=1.8c_1 = 1.8. Each component of the decomposition evolves with its own mode (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 →):

x(t)=1.8 e4t(11)−0.2 e−t(4−1)=(1.8 e4t−0.8 e−t1.8 e4t+0.2 e−t).x(t) = 1.8\,e^{4t}\begin{pmatrix} 1 \\ 1 \end{pmatrix} - 0.2\,e^{-t}\begin{pmatrix} 4 \\ -1 \end{pmatrix} = \begin{pmatrix} 1.8\,e^{4t} - 0.8\,e^{-t} \\ 1.8\,e^{4t} + 0.2\,e^{-t} \end{pmatrix}.

The first term grows and the second vanishes, so for large tt the trajectory tends to the direction (1,1)T(1,1)^T, the line x2=x1x_2 = x_1, to which it gets closer: x2−x1=e−t→0x_2 - x_1 = e^{-t} \to 0 while both components diverge. Reading, joining the note with the change of basis: in the coordinates along v1v_1 and v2v_2 the invariants are z1z24=1.8⋅(0.2)4=0.00288z_1 z_2^4 = 1.8 \cdot (0.2)^4 = 0.00288 for this trajectory (the product x1x2=cx_1x_2 = c of the note is the case λ1=−λ2\lambda_1 = -\lambda_2). Typical mistakes: taking a vector with Fx(0)≠λx(0)F x(0) \neq \lambda x(0) as rectilinear because it "looks" aligned with an eigenvector; forgetting that only the eigenvector with λ2<0\lambda_2 < 0 gives a trajectory that converges to zero.

Exercise 3 (points 6)

The discrete-time systems below evolve for t=0,1,2,…t = 0, 1, 2, \dots

a) Let x(t+1)=Fx(t)+Gu(t)x(t+1) = F x(t) + G u(t) with F=(10.400.9)F = \begin{pmatrix} 1 & 0.4 \\ 0 & 0.9 \end{pmatrix}. Compute the eigenvalues of FF and say whether the free system is a.s., stable or unstable. Find the equilibria for u=0u = 0. For the constant input u=2u = 2, find the equilibria when G=Ga=(0.4−0.1)G = G_a = \begin{pmatrix} 0.4 \\ -0.1 \end{pmatrix} and when G=Gb=(10)G = G_b = \begin{pmatrix} 1 \\ 0 \end{pmatrix}. For GaG_a and x(0)=(1, 0)Tx(0) = (1,\ 0)^T compute x(t)x(t) and its limit; for GbG_b and x(0)=(0, 0)Tx(0) = (0,\ 0)^T compute x(t)x(t) (2 points).

b) For a∈Ra \in \mathbb R consider FA(a)=(a10a)F_A(a) = \begin{pmatrix} a & 1 \\ 0 & a \end{pmatrix} and FB(a)=(a00a)F_B(a) = \begin{pmatrix} a & 0 \\ 0 & a \end{pmatrix}. Compute the powers of FA(a)F_A(a), the Jordan structure of the two matrices and classify the free systems x(t+1)=Fx(t)x(t+1) = F x(t) for a=0.9a = 0.9, a=1a = 1, a=−1a = -1 and a=1.1a = 1.1 (2 points).

c) Let FN=(00.40000.9000)F_N = \begin{pmatrix} 0 & 0.4 & 0 \\ 0 & 0 & 0.9 \\ 0 & 0 & 0 \end{pmatrix}. Compute the eigenvalues, FN2F_N^2 and FN3F_N^3. For x(0)=(1, 2, 4)Tx(0) = (1,\ 2,\ 4)^T and u=0u = 0 find x(1)x(1), x(2)x(2), x(3)x(3). With the input matrix G=(1, 0.9, 1.4)TG = (1,\ 0.9,\ 1.4)^T and the constant input u=2u = 2, find the equilibrium and show that the state reaches it in a finite number of steps, starting from x(0)=(0,0,0)Tx(0) = (0,0,0)^T and from x(0)=(1,2,4)Tx(0) = (1,2,4)^T (2 points).

Show the result

a) λ=1, 0.9\lambda = 1,\ 0.9: modes 1t1^t and 0.9t0.9^t, all bounded: stable, not a.s. For u=0u = 0 the equilibria are Ker⁡(I−F)=⟨(1,0)T⟩\operatorname{Ker}(I - F) = \langle (1,0)^T \rangle, the whole x1x_1 axis. With GaG_a: Gau=(0.8, −0.2)TG_au = (0.8,\ -0.2)^T is in the image of I−FI - F, the equilibria are (c, −2)T(c,\ -2)^T for every cc; with GbG_b: no equilibrium. For GaG_a: x1(t)=9−8⋅0.9tx_1(t) = 9 - 8\cdot 0.9^t, x2(t)=−2+2⋅0.9tx_2(t) = -2 + 2\cdot 0.9^t, limit (9,−2)T(9, -2)^T. For GbG_b: x(t)=(2t, 0)Tx(t) = (2t,\ 0)^T, which diverges.

b) FA(a)t=(att at−10at)F_A(a)^t = \begin{pmatrix} a^t & t\,a^{t-1} \\ 0 & a^t \end{pmatrix}; FAF_A has one Jordan block of size 2, FBF_B two blocks of size 1. a=0.9a = 0.9: both a.s. (FAF_A with a transient peak). a=1a = 1 and a=−1a = -1: FAF_A unstable, FBF_B stable and not a.s. a=1.1a = 1.1: both unstable.

c) λ=0,0,0\lambda = 0,0,0; FN2=(000.36000000)F_N^2 = \begin{pmatrix} 0 & 0 & 0.36 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{pmatrix}, FN3=0F_N^3 = 0. Free: x(1)=(0.8, 3.6, 0)Tx(1) = (0.8,\ 3.6,\ 0)^T, x(2)=(1.44, 0, 0)Tx(2) = (1.44,\ 0,\ 0)^T, x(3)=0x(3) = 0. With the input: xeq=(3.728, 4.32, 2.8)Tx_{eq} = (3.728,\ 4.32,\ 2.8)^T, reached exactly at t=3t = 3 from both initial states.

Show the full solution

a) Equilibria and stability. FF is upper triangular, so the eigenvalues are 11 and 0.90.9. The modes of x(t)=Ftx(0)x(t) = F^tx(0) are 1t=11^t = 1 and 0.9t0.9^t (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 →). The eigenvalues are simple, so no factor tt appears: the mode with modulus 11 is bounded, and by the classification of 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 → the free system is stable but not a.s. (it would be a.s. if all moduli were below 11).

Equilibria. In discrete time the equation is xeq=Fxeq+Gueqx_{eq} = Fx_{eq} + Gu_{eq}, that is (I−F)xeq=Gueq(I - F)x_{eq} = Gu_{eq}. Here

I−F=(0−0.400.1),I - F = \begin{pmatrix} 0 & -0.4 \\ 0 & 0.1 \end{pmatrix},

with det⁡=0\det = 0 and rank 11 (the eigenvalue 11 of FF makes I−FI - F singular). For u=0u = 0 the equilibria are Ker⁡(I−F)\operatorname{Ker}(I - F): −0.4x2=0-0.4x_2 = 0 gives x2=0x_2 = 0 and x1x_1 is free, so Ker⁡(I−F)=⟨(1,0)T⟩\operatorname{Ker}(I - F) = \langle (1, 0)^T \rangle, a whole line of equilibria. When I−FI - F is not invertible, the note says that for ueq≠0u_{eq} \neq 0 there are infinitely many equilibria or none, depending on whether GueqGu_{eq} belongs to the image of I−FI - F, which is the line spanned by (−0.4, 0.1)T(-0.4,\ 0.1)^T, equivalently by (−4,1)T(-4, 1)^T.

  • Gau=(0.8, −0.2)T=−2 (−0.4, 0.1)TG_a u = (0.8,\ -0.2)^T = -2\,(-0.4,\ 0.1)^T belongs to the image: the system (I−F)x=Gau(I - F)x = G_au reads −0.4x2=0.8-0.4x_2 = 0.8 and 0.1x2=−0.20.1x_2 = -0.2, both satisfied by x2=−2x_2 = -2, with x1x_1 free. The equilibria are (c, −2)T(c,\ -2)^T, c∈Rc \in \mathbb R, infinitely many.
  • Gbu=(2, 0)TG_bu = (2,\ 0)^T does not belong to the image: −0.4x2=2-0.4x_2 = 2 gives x2=−5x_2 = -5 and 0.1x2=00.1x_2 = 0 gives x2=0x_2 = 0, a contradiction. No equilibrium exists.

Solution for GaG_a. The second component is decoupled: x2(t+1)=0.9 x2(t)−0.1⋅2x_2(t+1) = 0.9\,x_2(t) - 0.1\cdot 2, so x2(t)+2x_2(t) + 2 is multiplied by 0.90.9 at each step; with x2(0)=0x_2(0) = 0, x2(t)=−2+2⋅0.9tx_2(t) = -2 + 2\cdot 0.9^t. The first component is x1(t+1)=x1(t)+0.4 x2(t)+0.4⋅2=x1(t)+0.4 (x2(t)+2)=x1(t)+0.8⋅0.9tx_1(t+1) = x_1(t) + 0.4\,x_2(t) + 0.4\cdot 2 = x_1(t) + 0.4\,(x_2(t) + 2) = x_1(t) + 0.8\cdot 0.9^t. Summing from 00 to t−1t - 1 (the geometric sum is (1−0.9t)/0.1(1 - 0.9^t)/0.1):

x1(t)=1+0.8 1−0.9t0.1=9−8⋅0.9t.x_1(t) = 1 + 0.8\,\frac{1 - 0.9^t}{0.1} = 9 - 8\cdot 0.9^t.

The limit is (9, −2)T(9,\ -2)^T, one of the equilibria (c,−2)T(c, -2)^T, the one with c=9c = 9. For a different initial state the limit changes: for x(0)=(1, 3)Tx(0) = (1,\ 3)^T the same computation gives c=1+0.4⋅5⋅10=21c = 1 + 0.4\cdot 5\cdot 10 = 21. The system converges, but to a point of the line that depends on x(0)x(0).

Solution for GbG_b. With x(0)=0x(0) = 0: x2(t)=0x_2(t) = 0 for all tt and x1(t+1)=x1(t)+2x_1(t+1) = x_1(t) + 2, so x(t)=(2t, 0)Tx(t) = (2t,\ 0)^T. The state diverges, although the free system is stable: the constant input excites the mode of the eigenvalue 11 (a bounded free system with eigenvalue of modulus 11 is not enough for bounded outputs with an input). Typical mistakes: writing Fxeq+Gueq=0Fx_{eq} + Gu_{eq} = 0, which is the continuous-time equation; saying that a stable system always converges to an equilibrium for a constant input.

b) Jordan structure and classification. For FA(a)=aI+NF_A(a) = aI + N with N=(0100)N = \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}, aIaI and NN commute and N2=0N^2 = 0, so the binomial formula of 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 → stops at the first power of NN:

FA(a)t=(aI)t+t (aI)t−1N=(att at−10at).F_A(a)^t = (aI)^t + t\,(aI)^{t-1}N = \begin{pmatrix} a^t & t\,a^{t-1} \\ 0 & a^t \end{pmatrix}.

The modes are ata^t and t att\,a^t (for a≠0a \neq 0, t at−1=t at/at\,a^{t-1} = t\,a^t/a is proportional to t att\,a^t). The geometric multiplicity of aa is 2−rank⁡(FA−aI)=2−rank⁡N=12 - \operatorname{rank}(F_A - aI) = 2 - \operatorname{rank}N = 1: one Jordan block of size 2. For FB(a)=aIF_B(a) = aI the matrix is already diagonal, rank⁡(FB−aI)=0\operatorname{rank}(F_B - aI) = 0, geometric multiplicity 2, two blocks of size 1, and FBt=atIF_B^t = a^tI with only the mode ata^t. In both cases the algebraic multiplicity is 2 and the eigenvalue is aa.

Classification with the rules of 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 → (modes tkρtcos⁡(θt)t^k\rho^t\cos(\theta t), convergent if ρ<1\rho < 1, bounded if ρ=1\rho = 1 and k=0k = 0, divergent if ρ>1\rho > 1 or ρ=1\rho = 1 with k>0k > 0), with ρ=∣a∣\rho = |a|:

aa FA(a)F_A(a), modes ata^t and t att\,a^t FB(a)F_B(a), mode ata^t
0.90.9 ρ<1\rho < 1: a.s. ρ<1\rho < 1: a.s.
11 ρ=1\rho = 1, k=1k = 1: unstable, x1(t)=x1(0)+t x2(0)x_1(t) = x_1(0) + t\,x_2(0) ρ=1\rho = 1, k=0k = 0: stable, not a.s. (FB=IF_B = I, every state is an equilibrium)
−1-1 ρ=1\rho = 1, k=1k = 1: unstable, x1(t)=(−1)tx1(0)+t (−1)t−1x2(0)x_1(t) = (-1)^t x_1(0) + t\,(-1)^{t-1}x_2(0) ρ=1\rho = 1, k=0k = 0: stable, not a.s. (the state alternates in sign)
1.11.1 ρ>1\rho > 1: unstable ρ>1\rho > 1: unstable

For a=0.9a = 0.9 and x(0)=(0,1)Tx(0) = (0, 1)^T the first component of FAtx(0)F_A^t x(0) is t⋅0.9t−1t\cdot 0.9^{t-1}: it starts from 00, grows and reaches its maximum 9⋅0.98=10⋅0.99=3.879\cdot 0.9^8 = 10\cdot 0.9^9 = 3.87 at t=9t = 9 and t=10t = 10, and then decays to zero. A.s. does not mean a monotone decay: the block of size 2 produces a transient growth before the exponential wins. Typical mistakes: calling FA(1)F_A(1) and FB(1)F_B(1) equal in behaviour because they have the same eigenvalues (the Jordan structure decides); saying that FA(−1)F_A(-1) is stable because the eigenvalue −1-1 "alternates".

c) Finite-time convergence. FNF_N is strictly upper triangular, so all the eigenvalues are 00. Compute the powers (the Jordan form turns out to be a single block of size 33, because FN2≠0F_N^2 \neq 0):

FN2=(000.4⋅0.9000000)=(000.36000000),FN3=FNFN2=0.F_N^2 = \begin{pmatrix} 0 & 0 & 0.4\cdot 0.9 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{pmatrix} = \begin{pmatrix} 0 & 0 & 0.36 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{pmatrix}, \qquad F_N^3 = F_N F_N^2 = 0.

By the argument of 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 →, with all the eigenvalues equal to zero and the largest block of size K=3K = 3, FNτ=0F_N^\tau = 0 for every τ≥3\tau \ge 3: the free state is exactly zero after three steps. For x(0)=(1,2,4)Tx(0) = (1, 2, 4)^T:

x(1)=FNx(0)=(0.4⋅2, 0.9⋅4, 0)T=(0.8, 3.6, 0)T,x(2)=FNx(1)=(0.4⋅3.6, 0, 0)T=(1.44, 0, 0)T,x(3)=0.x(1) = F_Nx(0) = (0.4\cdot 2,\ 0.9\cdot 4,\ 0)^T = (0.8,\ 3.6,\ 0)^T, \qquad x(2) = F_Nx(1) = (0.4\cdot 3.6,\ 0,\ 0)^T = (1.44,\ 0,\ 0)^T, \qquad x(3) = 0.

The same result follows from x(2)=FN2x(0)=(0.36⋅4, 0, 0)T=(1.44, 0, 0)Tx(2) = F_N^2x(0) = (0.36\cdot 4,\ 0,\ 0)^T = (1.44,\ 0,\ 0)^T.

With the input. I−FNI - F_N is invertible (it is upper triangular with ones on the diagonal), so the equilibrium for ueq=2u_{eq} = 2 is unique and solves (I−FN)xeq=Gueq=(2, 1.8, 2.8)T(I - F_N)x_{eq} = Gu_{eq} = (2,\ 1.8,\ 2.8)^T. From the last row x3=2.8x_3 = 2.8; from the second x2−0.9 x3=1.8x_2 - 0.9\,x_3 = 1.8, so x2=1.8+2.52=4.32x_2 = 1.8 + 2.52 = 4.32; from the first x1−0.4 x2=2x_1 - 0.4\,x_2 = 2, so x1=2+1.728=3.728x_1 = 2 + 1.728 = 3.728:

xeq=(3.728, 4.32, 2.8)T.x_{eq} = (3.728,\ 4.32,\ 2.8)^T.

Let e(t)=x(t)−xeqe(t) = x(t) - x_{eq}. Subtracting xeq=Fxeq+Gueqx_{eq} = Fx_{eq} + Gu_{eq} from x(t+1)=Fx(t)+Gueqx(t+1) = Fx(t) + Gu_{eq} gives e(t+1)=FNe(t)e(t+1) = F_Ne(t), so e(3)=FN3e(0)=0e(3) = F_N^3e(0) = 0: the state is exactly at the equilibrium after three steps, whatever x(0)x(0). Direct check from x(0)=0x(0) = 0: x(1)=Gu=(2, 1.8, 2.8)Tx(1) = Gu = (2,\ 1.8,\ 2.8)^T, x(2)=FNx(1)+Gu=(0.4⋅1.8+2, 0.9⋅2.8+1.8, 2.8)T=(2.72, 4.32, 2.8)Tx(2) = F_Nx(1) + Gu = (0.4\cdot 1.8 + 2,\ 0.9\cdot 2.8 + 1.8,\ 2.8)^T = (2.72,\ 4.32,\ 2.8)^T and x(3)=(0.4⋅4.32+2, 0.9⋅2.8+1.8, 2.8)T=(3.728, 4.32, 2.8)T=xeqx(3) = (0.4\cdot 4.32 + 2,\ 0.9\cdot 2.8 + 1.8,\ 2.8)^T = (3.728,\ 4.32,\ 2.8)^T = x_{eq}. From x(0)=(1,2,4)Tx(0) = (1,2,4)^T: e(0)=(−2.728, −2.32, 1.2)Te(0) = (-2.728,\ -2.32,\ 1.2)^T, e(1)=FNe(0)=(−0.928, 1.08, 0)Te(1) = F_Ne(0) = (-0.928,\ 1.08,\ 0)^T, e(2)=(0.432, 0, 0)Te(2) = (0.432,\ 0,\ 0)^T, e(3)=0e(3) = 0; the states are x(1)=(2.8, 5.4, 2.8)Tx(1) = (2.8,\ 5.4,\ 2.8)^T, x(2)=(4.16, 4.32, 2.8)Tx(2) = (4.16,\ 4.32,\ 2.8)^T and x(3)=xeqx(3) = x_{eq}. In continuous time the same behaviour cannot occur: the state of x˙=Fx\dot x = Fx reaches the equilibrium only as t→+∞t \to +\infty, and it would need λ→−∞\lambda \to -\infty (note on the convergence in finite time). Typical mistakes: thinking that three zero eigenvalues give a modulus 0<10 < 1 but a slow convergence (it is exact after KK steps); using the size of the matrix instead of the size of the largest Jordan block as the number of steps (here they coincide, but not in general).

Exercise 4 (points 6)

A cart of unknown mass mm (in kg) moves on a straight track. It is attached to a wall by a spring of unknown stiffness kk (in N/m) and by a damper of unknown coefficient cc (in N⋅\cdots/m). It is pushed by the force γu\gamma u, where uu (in V) is the command of an actuator of unknown gain γ\gamma (in N/V). The measured output is the position qq of the cart (in m). The model class M(θ)\mathcal M(\theta) with θ=(k, c, m, γ)\theta = (k,\ c,\ m,\ \gamma) is given by the force balance

m q¨=−k q−c q˙+γ u,y=q,m\,\ddot q = -k\,q - c\,\dot q + \gamma\,u, \qquad y = q,

with state x=(q, q˙)Tx = (q,\ \dot q)^T.

a) Write the matrices F(θ)F(\theta), G(θ)G(\theta), H(θ)H(\theta), compute the transfer function W(s)W(s) and write the observational parameters of the model class as functions of θ\theta (2 points).

b) An experiment with an impulsive command and noise-free measurements gives W^1(s)=14.4s2+2.4 s+9.6\hat W_1(s) = \dfrac{14.4}{s^2 + 2.4\,s + 9.6}. Find all the values of θ\theta compatible with it, give two of them with different masses, say which combinations of the parameters can be computed, and classify each parameter and the model class as globally identifiable, locally identifiable or unidentifiable (2 points).

c) Two remedies are proposed. (i) The cart is weighed: m=0.5 kgm = 0.5\ \text{kg}. Find kk, cc, γ\gamma. (ii) The cart is not weighed, but a second experiment is made after fixing to the cart an extra mass of 0.25 kg0.25\ \text{kg} (all the other elements unchanged); it gives W^2(s)=9.6s2+1.6 s+6.4\hat W_2(s) = \dfrac{9.6}{s^2 + 1.6\,s + 6.4}. Find mm, kk, cc, γ\gamma and classify the extended problem. Would a second sensor measuring the velocity q˙\dot q also solve the problem (2 points)?

Show the result

a) F=(01−k/m−c/m)F = \begin{pmatrix} 0 & 1 \\ -k/m & -c/m \end{pmatrix}, G=(0γ/m)G = \begin{pmatrix} 0 \\ \gamma/m \end{pmatrix}, H=(10)H = \begin{pmatrix} 1 & 0 \end{pmatrix}; W(s)=γ/ms2+(c/m) s+k/mW(s) = \dfrac{\gamma/m}{s^2 + (c/m)\,s + k/m}; observational parameters ρ1=c/m\rho_1 = c/m, ρ2=k/m\rho_2 = k/m, ρ3=γ/m\rho_3 = \gamma/m.

b) c/m=2.4c/m = 2.4, k/m=9.6k/m = 9.6, γ/m=14.4\gamma/m = 14.4: the solutions are (k, c, m, γ)=(9.6 m, 2.4 m, m, 14.4 m)(k,\ c,\ m,\ \gamma) = (9.6\,m,\ 2.4\,m,\ m,\ 14.4\,m) for every m>0m > 0, for instance (4.8, 1.2, 0.5, 7.2)(4.8,\ 1.2,\ 0.5,\ 7.2) and (19.2, 4.8, 2, 28.8)(19.2,\ 4.8,\ 2,\ 28.8). Only the ratios to mm are computable. Every parameter is unidentifiable, and so is the model class.

c) (i) k=4.8 N/mk = 4.8\ \text{N/m}, c=1.2 N⋅s/mc = 1.2\ \text{N}\cdot\text{s/m}, γ=7.2 N/V\gamma = 7.2\ \text{N/V}, unique. (ii) (m+0.25)/m=9.6/6.4=1.5(m + 0.25)/m = 9.6/6.4 = 1.5, so m=0.5 kgm = 0.5\ \text{kg}, and then the same kk, cc, γ\gamma: unique solution, globally identifiable. A velocity sensor does not help: its transfer function is s W(s)s\,W(s), with the same three observational parameters.

Show the full solution

a) State-space form and observational parameters. With x1=qx_1 = q and x2=q˙x_2 = \dot q the force balance gives x˙1=x2\dot x_1 = x_2 and x˙2=1m(−k x1−c x2+γu)\dot x_2 = \dfrac{1}{m}\big(-k\,x_1 - c\,x_2 + \gamma u\big), hence

F=(01−k/m−c/m),G=(0γ/m),H=(10).F = \begin{pmatrix} 0 & 1 \\ -k/m & -c/m \end{pmatrix}, \qquad G = \begin{pmatrix} 0 \\ \gamma/m \end{pmatrix}, \qquad H = \begin{pmatrix} 1 & 0 \end{pmatrix}.

The transfer function is W(s)=H(sI−F)−1GW(s) = H(sI - F)^{-1}G (Transfer Matrix of Continuous-Time LTI SystemsThe Laplace transform turns an LTI state-space model into the transfer matrix W(s) equal to H times the inverse of sI minus F times G plus J, which is invariant under a change of state basis, has the modes of the system as poles, and can hide modes through zero-pole cancellations.Transfer Matrix of Continuous-Time LTI Systems →). The matrix is sI−F=(s−1k/ms+c/m)sI - F = \begin{pmatrix} s & -1 \\ k/m & s + c/m \end{pmatrix} with determinant s2+(c/m) s+k/ms^2 + (c/m)\,s + k/m; inverting a 2×22 \times 2 matrix (swap the diagonal entries, change the sign of the off-diagonal ones),

(sI−F)−1=1s2+(c/m) s+k/m(s+c/m1−k/ms),W(s)=γ/ms2+(c/m) s+k/m.(sI - F)^{-1} = \frac{1}{s^2 + (c/m)\,s + k/m}\begin{pmatrix} s + c/m & 1 \\ -k/m & s \end{pmatrix}, \qquad W(s) = \frac{\gamma/m}{s^2 + (c/m)\,s + k/m}.

For an LTI SISO system the observational parameters are always the coefficients of the transfer function (A Priori Identifiability of Parametric ModelsA parametric model is identifiable a priori if its parameters can be recovered from observational parameters computed from the noise-free continuous output to an impulse input; for linear time-invariant SISO systems these are the transfer function coefficients, shown on a two-state example.A Priori Identifiability of Parametric Models →): with a unit impulse U(s)=1U(s) = 1, so Y(s)=W(s)Y(s) = W(s) and the coefficients can be computed from the output. Here the denominator is monic and the numerator is a constant:

ρ1=cm,ρ2=km,ρ3=γm.\rho_1 = \frac{c}{m}, \qquad \rho_2 = \frac{k}{m}, \qquad \rho_3 = \frac{\gamma}{m}.

There are four unknowns and only three observational parameters, so a unique solution is not possible. Typical mistake: writing the numerator as γ\gamma (forgetting that GG contains 1/m1/m).

b) Solving for θ\theta. Comparing W^1(s)\hat W_1(s) with the form of part a): ρ^1=2.4\hat\rho_1 = 2.4, ρ^2=9.6\hat\rho_2 = 9.6, ρ^3=14.4\hat\rho_3 = 14.4, that is

cm=2.4,km=9.6,γm=14.4.\frac{c}{m} = 2.4, \qquad \frac{k}{m} = 9.6, \qquad \frac{\gamma}{m} = 14.4 .

Each equation fixes one parameter as a multiple of mm, and mm is free: c=2.4 mc = 2.4\,m, k=9.6 mk = 9.6\,m, γ=14.4 m\gamma = 14.4\,m for every m>0m > 0. For m=0.5 kgm = 0.5\ \text{kg}: (k,c,m,γ)=(4.8, 1.2, 0.5, 7.2)(k, c, m, \gamma) = (4.8,\ 1.2,\ 0.5,\ 7.2); for m=2 kgm = 2\ \text{kg}: (19.2, 4.8, 2, 28.8)(19.2,\ 4.8,\ 2,\ 28.8). Both give exactly W^1(s)\hat W_1(s): for the first, γ/m=7.2/0.5=14.4\gamma/m = 7.2/0.5 = 14.4, c/m=1.2/0.5=2.4c/m = 1.2/0.5 = 2.4, k/m=4.8/0.5=9.6k/m = 4.8/0.5 = 9.6; for the second, 28.8/2=14.428.8/2 = 14.4, 4.8/2=2.44.8/2 = 2.4, 19.2/2=9.619.2/2 = 9.6. There are infinitely many solutions, so by the definitions of the note every parameter (kk, cc, mm and γ\gamma) is unidentifiable, and so is the model class. What can be computed are the three ratios k/mk/m, c/mc/m, γ/m\gamma/m: they are enough to predict the position for any command uu (the model output depends only on them), but not to know the stiffness, the damping or the actuator gain in physical units. The reason is that an input-output experiment sees the force γu\gamma u only through its effect on the acceleration, γu/m\gamma u/m, so a heavier cart with a proportionally stronger actuator, spring and damper is indistinguishable. Typical mistake: counting equations and unknowns and concluding "three equations, so three parameters can be found and one is free" without saying which ones: here none of the four is determined.

c) Remedies. The note lists two: change the model class or change the system (actuators, sensors); here the system is changed by adding information.

(i) Known mass. With m=0.5 kgm = 0.5\ \text{kg} taken as known, the three equations give c=2.4⋅0.5=1.2 N⋅s/mc = 2.4 \cdot 0.5 = 1.2\ \text{N}\cdot\text{s/m}, k=9.6⋅0.5=4.8 N/mk = 9.6 \cdot 0.5 = 4.8\ \text{N/m}, γ=14.4⋅0.5=7.2 N/V\gamma = 14.4 \cdot 0.5 = 7.2\ \text{N/V}, each one with a unique solution: the parameters kk, cc, γ\gamma are globally identifiable once mm is a known constant (this is a different model class, with three unknowns).

(ii) Second experiment with an added mass. The system changes: the mass is now m+0.25m + 0.25, with the same kk, cc, γ\gamma, so the observational parameters of the second experiment are c/(m+0.25)c/(m + 0.25), k/(m+0.25)k/(m + 0.25) and γ/(m+0.25)\gamma/(m + 0.25). From W^2(s)\hat W_2(s):

cm+0.25=1.6,km+0.25=6.4,γm+0.25=9.6.\frac{c}{m + 0.25} = 1.6, \qquad \frac{k}{m + 0.25} = 6.4, \qquad \frac{\gamma}{m + 0.25} = 9.6 .

Divide the equation k/m=9.6k/m = 9.6 of the first experiment by the equation k/(m+0.25)=6.4k/(m + 0.25) = 6.4 of the second one: the unknown kk cancels and

m+0.25m=9.66.4=1.5⟹0.25=0.5 m⟹m=0.5 kg.\frac{m + 0.25}{m} = \frac{9.6}{6.4} = 1.5 \quad\Longrightarrow\quad 0.25 = 0.5\,m \quad\Longrightarrow\quad m = 0.5\ \text{kg}.

The other two ratios give the same value (for cc: 2.4/1.6=1.52.4/1.6 = 1.5; for γ\gamma: 14.4/9.6=1.514.4/9.6 = 1.5, so the three equations are consistent). Then k=9.6⋅0.5=4.8 N/mk = 9.6 \cdot 0.5 = 4.8\ \text{N/m}, c=2.4⋅0.5=1.2 N⋅s/mc = 2.4 \cdot 0.5 = 1.2\ \text{N}\cdot\text{s/m}, γ=14.4⋅0.5=7.2 N/V\gamma = 14.4 \cdot 0.5 = 7.2\ \text{N/V}, the same as in (i). The six equations of the two experiments have one solution for the four unknowns: every parameter is globally identifiable, and so is the extended model class. Reading, joining the note with the model: the extra mass is a change of the system that has the same effect as knowing mm, without a scale.

Velocity sensor. With y=q˙y = \dot q one has H=(0  1)H = (0\ \ 1) and, using the second row of (sI−F)−1(sI - F)^{-1} from part a, Wv(s)=(γ/m) ss2+(c/m) s+k/m=s W(s)W_v(s) = \dfrac{(\gamma/m)\,s}{s^2 + (c/m)\,s + k/m} = s\,W(s). Its coefficients are the same three combinations c/mc/m, k/mk/m, γ/m\gamma/m: no new information, the class stays unidentifiable. The sensors of the note's remedy must measure something that depends on the parameters in a different way; here what is missing is information on the mass, which no measurement of the motion produced by γu\gamma u can give. Typical mistakes: thinking that a second sensor always cures an identifiability problem; taking mm from the first experiment alone ("the numerator is 14.414.4, so m=1m = 1").

Exercise 5 (points 6)

Two engineers model the same plant, with input uu (in V) and output yy (in K). Engineer A proposes a first-order model,

(A)x˙=−0.9 x+u,y=4 x.\text{(A)}\quad \dot x = -0.9\,x + u, \qquad y = 4\,x.

Engineer B proposes a model with an additional internal variable x2x_2 (a concentration, not measured):

(B)x˙1=−0.9 x1+u,x˙2=0.4 x2+1.9 u,y=4 x1.\text{(B)}\quad \dot x_1 = -0.9\,x_1 + u, \qquad \dot x_2 = 0.4\,x_2 + 1.9\,u, \qquad y = 4\,x_1.

To validate the models, the plant, starting at rest, is driven with the step u(t)=1 Vu(t) = 1\ \text{V} for t≥0t \ge 0, and yy is measured:

tt (s) 0.5 1 2 3 5 8
yy (K) 1.64 2.60 3.76 4.13 4.44 4.41

a) Compute the transfer function of each model. For model B, change the state variable with z=Txz = Tx, T=(1201)T = \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix}, write the new matrices FTF_T, GTG_T, HTH_T and check that the transfer function does not change (2 points).

b) Write the step response predicted by each model, compute the residuals with respect to the data and their sum of squares for each model, and say what the experiment says about the two models. What is the value of yy at steady state (2 points)?

c) Compute the eigenvalues of the two state matrices and the poles of the transfer function. For model B and the step input compute x2(t)x_2(t) and its value at t=5, 10, 20 st = 5,\ 10,\ 20\ \text{s}. Find the equilibrium of each model for u=1 Vu = 1\ \text{V} and say whether it is reached. Critical question: what can the validated transfer function say about the stability of the plant, and what would change if the sensor measured 4x1+x24x_1 + x_2 (2 points)?

Show the result

a) WA(s)=WB(s)=4s+0.9W_A(s) = W_B(s) = \dfrac{4}{s + 0.9}. For B, FT=(−0.92.600.4)F_T = \begin{pmatrix} -0.9 & 2.6 \\ 0 & 0.4 \end{pmatrix}, GT=(4.81.9)G_T = \begin{pmatrix} 4.8 \\ 1.9 \end{pmatrix}, HT=(4−8)H_T = \begin{pmatrix} 4 & -8 \end{pmatrix}, and again WT(s)=4/(s+0.9)W_T(s) = 4/(s + 0.9).

b) Both models predict y(t)=409(1−e−0.9t)y(t) = \dfrac{40}{9}\big(1 - e^{-0.9t}\big): 1.611, 2.637, 3.710, 4.146, 4.395, 4.441 K1.611,\ 2.637,\ 3.710,\ 4.146,\ 4.395,\ 4.441\ \text{K}. Residuals (0.029, −0.037, 0.050, −0.016, 0.045, −0.031) K(0.029,\ -0.037,\ 0.050,\ -0.016,\ 0.045,\ -0.031)\ \text{K}, sum of squares 8.0⋅10−3 K28.0\cdot 10^{-3}\ \text{K}^2, identical for A and B: the data cannot distinguish them. Steady state: 40/9=4.444 K40/9 = 4.444\ \text{K}.

c) FAF_A: −0.9-0.9, a.s. FBF_B: −0.9-0.9 and 0.40.4, unstable. The only pole of WW is −0.9-0.9. For B, x2(t)=4.75 (e0.4t−1)x_2(t) = 4.75\,(e^{0.4t} - 1): 30.330.3, 254.6254.6, 1.4⋅1041.4\cdot 10^4 at t=5,10,20 st = 5, 10, 20\ \text{s}. Equilibria for u=1u = 1: A at x=10/9x = 10/9, B at (10/9, −4.75)(10/9,\ -4.75); the output is 4.444 K4.444\ \text{K} in both, but B never reaches its equilibrium (unstable). The transfer function validated by the experiment describes the input-output behaviour only; with y=4x1+x2y = 4x_1 + x_2 the transfer function would be 5.9 s+0.11(s+0.9)(s−0.4)\dfrac{5.9\,s + 0.11}{(s + 0.9)(s - 0.4)}, with the unstable pole visible.

Show the full solution

a) Transfer functions. For A: WA(s)=H(sI−F)−1G=4 (s+0.9)−1⋅1=4s+0.9W_A(s) = H(sI - F)^{-1}G = 4\,(s + 0.9)^{-1}\cdot 1 = \dfrac{4}{s + 0.9} (Transfer Matrix of Continuous-Time LTI SystemsThe Laplace transform turns an LTI state-space model into the transfer matrix W(s) equal to H times the inverse of sI minus F times G plus J, which is invariant under a change of state basis, has the modes of the system as poles, and can hide modes through zero-pole cancellations.Transfer Matrix of Continuous-Time LTI Systems →). For B the matrix FB=diag⁡(−0.9, 0.4)F_B = \operatorname{diag}(-0.9,\ 0.4) is diagonal, so (sI−FB)−1=diag⁡ ⁣(1s+0.9, 1s−0.4)(sI - F_B)^{-1} = \operatorname{diag}\!\Big(\dfrac{1}{s + 0.9},\ \dfrac{1}{s - 0.4}\Big) and, with GB=(1, 1.9)TG_B = (1,\ 1.9)^T and HB=(4, 0)H_B = (4,\ 0),

WB(s)=(40)(1s+0.9001s−0.4)(11.9)=4s+0.9+0⋅1.9s−0.4=4s+0.9.W_B(s) = \begin{pmatrix} 4 & 0 \end{pmatrix}\begin{pmatrix} \dfrac{1}{s + 0.9} & 0 \\ 0 & \dfrac{1}{s - 0.4} \end{pmatrix}\begin{pmatrix} 1 \\ 1.9 \end{pmatrix} = \frac{4}{s + 0.9} + 0\cdot\frac{1.9}{s - 0.4} = \frac{4}{s + 0.9}.

The term of the mode e0.4te^{0.4t} is multiplied by the zero entry of HBH_B, so it disappears: the two models have the same transfer function, as in the example of the note on the modes hidden in W(s)W(s).

Change of basis. With z=Txz = Tx the matrices become FT=TFBT−1F_T = TF_BT^{-1}, GT=TGBG_T = TG_B, HT=HBT−1H_T = H_BT^{-1}. The inverse is T−1=(1−201)T^{-1} = \begin{pmatrix} 1 & -2 \\ 0 & 1 \end{pmatrix}, and

TFB=(−0.90.800.4),FT=TFBT−1=(−0.91.8+0.800.4)=(−0.92.600.4),GT=(1+3.81.9)=(4.81.9),HT=(4−8).TF_B = \begin{pmatrix} -0.9 & 0.8 \\ 0 & 0.4 \end{pmatrix}, \quad F_T = TF_BT^{-1} = \begin{pmatrix} -0.9 & 1.8 + 0.8 \\ 0 & 0.4 \end{pmatrix} = \begin{pmatrix} -0.9 & 2.6 \\ 0 & 0.4 \end{pmatrix}, \quad G_T = \begin{pmatrix} 1 + 3.8 \\ 1.9 \end{pmatrix} = \begin{pmatrix} 4.8 \\ 1.9 \end{pmatrix}, \quad H_T = \begin{pmatrix} 4 & -8 \end{pmatrix}.

Then HT(sI−FT)−1H_T(sI - F_T)^{-1} is the row (4s+0.9, −8s+0.9)\Big(\dfrac{4}{s + 0.9},\ \dfrac{-8}{s + 0.9}\Big) (the matrix sI−FTsI - F_T is upper triangular) and

WT(s)=4⋅4.8−8⋅1.9s+0.9=19.2−15.2s+0.9=4s+0.9,W_T(s) = \frac{4 \cdot 4.8 - 8 \cdot 1.9}{s + 0.9} = \frac{19.2 - 15.2}{s + 0.9} = \frac{4}{s + 0.9},

the same transfer function, as the invariance under change of basis requires. The matrices look very different, the input-output behaviour does not. Typical mistake: multiplying in the wrong order (T−1FTT^{-1}FT instead of TFT−1TFT^{-1} when z=Txz = Tx).

b) Predictions and residuals. For the step U(s)=1/sU(s) = 1/s and zero initial state the output is the forced response Y(s)=W(s)U(s)Y(s) = W(s)U(s) (Forced Response and Impulse Response of LTI SystemsThe state of a non-autonomous LTI system is the sum of a free evolution driven by the initial state and a forced evolution given by the convolution of the input with the matrix exponential, and the output response to a Dirac delta input is the impulse response.Forced Response and Impulse Response of LTI Systems →):

Y(s)=4s (s+0.9)=409(1s−1s+0.9)⟹y(t)=409(1−e−0.9t),Y(s) = \frac{4}{s\,(s + 0.9)} = \frac{40}{9}\left(\frac{1}{s} - \frac{1}{s + 0.9}\right) \quad\Longrightarrow\quad y(t) = \frac{40}{9}\big(1 - e^{-0.9t}\big),

for both models, because they have the same W(s)W(s) and the same initial output. At the six times: t=0.5t = 0.5: 4.444 (1−0.6376)=1.6114.444\,(1 - 0.6376) = 1.611; t=1t = 1: 4.444 (1−0.4066)=2.6374.444\,(1 - 0.4066) = 2.637; t=2t = 2: 3.7103.710; t=3t = 3: 4.1464.146; t=5t = 5: 4.3954.395; t=8t = 8: 4.4414.441 (K). The residuals yi−y^iy_i - \hat y_i are

(1.64−1.611, 2.60−2.637, 3.76−3.710, 4.13−4.146, 4.44−4.395, 4.41−4.441)=(0.029, −0.037, 0.050, −0.016, 0.045, −0.031) K,(1.64 - 1.611,\ 2.60 - 2.637,\ 3.76 - 3.710,\ 4.13 - 4.146,\ 4.44 - 4.395,\ 4.41 - 4.441) = (0.029,\ -0.037,\ 0.050,\ -0.016,\ 0.045,\ -0.031)\ \text{K},

and the sum of squares is 0.02952+0.03752+0.05022+0.01582+0.04492+0.03112=8.0⋅10−3 K20.0295^2 + 0.0375^2 + 0.0502^2 + 0.0158^2 + 0.0449^2 + 0.0311^2 = 8.0 \cdot 10^{-3}\ \text{K}^2, the same number for A and for B: the residuals are small and with both signs, and the model is compatible with the data. The experiment says nothing that separates the models: the data depend on the models only through W(s)W(s), which is the same. The steady-state output is lim⁡s→0 sY(s)=W(0)=4/0.9=40/9=4.444 K\lim_{s \to 0}\,sY(s) = W(0) = 4/0.9 = 40/9 = 4.444\ \text{K} (both models), as the last samples suggest. The notes stress that least squares-type fitting only compares the model with the data it has seen and does not address generalisation (System Identification - Estimation Problem and Parametric Model ClassesEstimation means reconstructing an unknown function from noisy samples; the problem is ill posed, so one fixes a parametric model class, and the basic objects (statistic, estimator, estimate) are defined, with the gray-box and black-box versions for dynamical systems.System Identification - Estimation Problem and Parametric Model Classes →): here even a perfect fit leaves two different internal structures. Typical mistake: concluding that model A is "better" because it is simpler or because its residuals are smaller (they are equal).

c) Stability, equilibria and the critical reading. The matrix FA=(−0.9)F_A = (-0.9) has the eigenvalue −0.9-0.9: a.s. The matrix FBF_B has eigenvalues −0.9-0.9 and 0.40.4: the second is positive, so B is unstable. The only pole of W(s)W(s) is −0.9-0.9 for both: the pole 0.40.4 does not appear in WB(s)W_B(s) because of the zero in HBH_B (see a)).

State of B under the step. The second equation is decoupled from the first: x˙2=0.4 x2+1.9\dot x_2 = 0.4\,x_2 + 1.9 with x2(0)=0x_2(0) = 0. By the formula of the forced evolution, x2(t)=∫0te0.4(t−τ) 1.9 dτ=1.90.4(e0.4t−1)=4.75 (e0.4t−1)x_2(t) = \int_0^t e^{0.4(t - \tau)}\,1.9\,d\tau = \dfrac{1.9}{0.4}\big(e^{0.4t} - 1\big) = 4.75\,\big(e^{0.4t} - 1\big):

x2(5)=4.75 (e2−1)=30.3,x2(10)=4.75 (e4−1)=254.6,x2(20)=4.75 (e8−1)=1.4⋅104.x_2(5) = 4.75\,(e^{2} - 1) = 30.3, \qquad x_2(10) = 4.75\,(e^{4} - 1) = 254.6, \qquad x_2(20) = 4.75\,(e^{8} - 1) = 1.4 \cdot 10^4.

(The output never shows it: y=4x1y = 4x_1 is exactly the same as in A.) The internal quantity grows without bound, and a real plant would saturate, overflow or break.

Equilibria for u=1 Vu = 1\ \text{V}. From Transfer Matrix of Continuous-Time LTI SystemsThe Laplace transform turns an LTI state-space model into the transfer matrix W(s) equal to H times the inverse of sI minus F times G plus J, which is invariant under a change of state basis, has the modes of the system as poles, and can hide modes through zero-pole cancellations.Transfer Matrix of Continuous-Time LTI Systems →, the equilibrium solves Fxeq+Gu0=0Fx_{eq} + Gu_0 = 0, xeq=−F−1Gu0x_{eq} = -F^{-1}Gu_0 when FF is invertible. For A: xeq=1/0.9=1.111x_{eq} = 1/0.9 = 1.111, yeq=4.444 Ky_{eq} = 4.444\ \text{K}. For B, FBF_B is invertible (det⁡=−0.36\det = -0.36): xeq=(1/0.9, −1.9/0.4)=(1.111, −4.75)x_{eq} = \big(1/0.9,\ -1.9/0.4\big) = (1.111,\ -4.75) and yeq=4⋅1.111=4.444 Ky_{eq} = 4 \cdot 1.111 = 4.444\ \text{K}: the same value as in A. The note says that if the system is a.s. the state tends to xeqx_{eq}; B is not a.s., and the response above shows that x2x_2 moves away from −4.75-4.75 (the distance is x2+4.75=4.75 e0.4tx_2 + 4.75 = 4.75\,e^{0.4t}). So the equilibrium of B exists but is not reached, whereas the equilibrium of A is reached with the time constant 1/0.9=1.11 s1/0.9 = 1.11\ \text{s}.

Critical reading. The experiment validated the input-output behaviour: both models reproduce yy, and W(s)=4/(s+0.9)W(s) = 4/(s + 0.9) has all its poles with negative real part. But from the transfer function alone it cannot be concluded that the plant is stable: the eigenvalues of the state matrix include 0.40.4 in model B, which is invisible in W(s)W(s). A conclusion on stability needs either a model of the internal structure, or a measurement of the internal state. Reading, joining this note with the remedy of the identifiability note ("change the sensors"): with the output y=4x1+x2y = 4x_1 + x_2, that is H=(4  1)H = (4\ \ 1),

W(s)=4s+0.9+1.9s−0.4=4(s−0.4)+1.9(s+0.9)(s+0.9)(s−0.4)=5.9 s+0.11(s+0.9)(s−0.4),W(s) = \frac{4}{s + 0.9} + \frac{1.9}{s - 0.4} = \frac{4(s - 0.4) + 1.9(s + 0.9)}{(s + 0.9)(s - 0.4)} = \frac{5.9\,s + 0.11}{(s + 0.9)(s - 0.4)},

and now the pole at 0.40.4 is in W(s)W(s): the step response contains the divergent mode e0.4te^{0.4t}, and a new experiment with this sensor would separate model B from model A (A would predict again 4/(s+0.9)4/(s + 0.9)). Typical mistakes: saying that the plant is stable because W(s)W(s) has only the pole −0.9-0.9; saying that model B is wrong because it is unstable, when the data are consistent with it; believing that the equilibrium of B is reached because it exists.

Self-assessment grid
Exercise Points What must be in the answer for full marks Typical mistakes
Exercise 1 6 a) equations with logistic, predation and conversion terms, the two checks, equilibria (0,0)(0,0), (10,0)(10,0), (4,1.35)(4,1.35) (2); b) Jacobian, FF at the three points, eigenvalues 0.90.9 and −0.4-0.4, −0.9-0.9 and 0.60.6, −0.18±j 0.4285-0.18 \pm j\,0.4285, conclusions, period 14.7 yr14.7\ \text{yr} and halving time 3.85 yr3.85\ \text{yr} (2); c) x2<0x_2 < 0 at the coexistence point, E1E_1 a.s. with −0.9-0.9 and −0.2-0.2, threshold a=1.0a = 1.0 (2) Equilibrium E1E_1 forgotten; negative population kept as an equilibrium; Jacobian used on xx instead of on z=x−xˉz = x - \bar x
Exercise 2 6 a) σ\sigma, ω\omega, eFAte^{F_At}, x(t)x(t), norm 5 e−0.4t\sqrt5\,e^{-0.4t}, clockwise, 11.5 s11.5\ \text{s} and 5.35.3 turns (2); b) ω=2.2147\omega = 2.2147, x(t)x(t), ellipse 4.905x12+x22=0.19624.905x_1^2 + x_2^2 = 0.1962, crossings, reason for the ellipse, critical case (2); c) eigenvalues 44 and −1-1, eigenvectors, test of the four states, x(t)x(t) for (1,2)(1,2) and its limit direction (2) Period computed with the modulus of λ\lambda; conclusion on the nonlinear pendulum; non-eigenvector taken as rectilinear
Exercise 3 6 a) eigenvalues 11, 0.90.9, stable not a.s., Ker⁡(I−F)\operatorname{Ker}(I - F), equilibria for GaG_a and none for GbG_b, x(t)x(t) and limit (9,−2)(9,-2), divergence (2t,0)(2t, 0) (2); b) FAtF_A^t, Jordan blocks, table for the four values of aa (2); c) FN3=0F_N^3 = 0, free states x(1),x(2),x(3)x(1), x(2), x(3), equilibrium (3.728,4.32,2.8)(3.728, 4.32, 2.8), reached at t=3t = 3 (2) Continuous-time equilibrium equation; confusing FAF_A and FBF_B; stable system assumed to converge with a constant input
Exercise 4 6 a) FF, GG, HH, W(s)=(γ/m)/(s2+(c/m)s+k/m)W(s) = (\gamma/m)/(s^2 + (c/m)s + k/m), ρ=(c/m, k/m, γ/m)\rho = (c/m,\ k/m,\ \gamma/m) (2); b) family (9.6m, 2.4m, m, 14.4m)(9.6m,\ 2.4m,\ m,\ 14.4m), two members, all four parameters and the class unidentifiable, computable ratios (2); c) known mass gives (4.8, 1.2, 7.2)(4.8,\ 1.2,\ 7.2); ratio 1.51.5 of the two experiments gives m=0.5m = 0.5 and global identifiability; the velocity sensor gives sW(s)sW(s) and no new information (2) Numerator written as γ\gamma; equations counted without checking which parameters are determined; second sensor assumed to cure the problem
Exercise 5 6 a) WA=WB=4/(s+0.9)W_A = W_B = 4/(s + 0.9), FTF_T, GTG_T, HTH_T and the same WTW_T (2); b) y(t)=(40/9)(1−e−0.9t)y(t) = (40/9)(1 - e^{-0.9t}), six residuals, sum of squares 8.0⋅10−38.0 \cdot 10^{-3} for both, the data cannot separate A and B, steady state 4.444 K4.444\ \text{K} (2); c) eigenvalues of FAF_A and FBF_B, x2(t)=4.75(e0.4t−1)x_2(t) = 4.75(e^{0.4t} - 1) and its values, equilibria and their reachability, validated WW does not prove stability, sensor 4x1+x24x_1 + x_2 gives (5.9s+0.11)/((s+0.9)(s−0.4))(5.9s + 0.11)/((s + 0.9)(s - 0.4)) (2) Stability concluded from the poles of WW; model preferred without evidence; equilibrium of B assumed to be reached; T−1FTT^{-1}FT instead of TFT−1TFT^{-1}
30

A request is worth its 2 points only if the formula is written in letters, the units are right and the final value is checked (equilibrium substituted in the equations, the sum of the three Jordan block sizes, the same W(s)W(s) computed in two bases, the ratios of the two experiments consistent). Give half of the points for a correct method with an arithmetic slip. Do not give points for a comment that is not tied to a result of the exercise.