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

Systems and Models - Mock Exam 5

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. The official format, from the course description, 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, and critical interpretation. This mock exam follows that list: Exercise 1 is about modelling and a first validation on measured data, Exercises 2 and 3 about state-space analysis (a continuous-time and a discrete-time LTI system), Exercise 4 about identification, Exercise 5 about the critical reading of two tests of stability. The distribution of the points (6 points per exercise, 30 in total) is a proposal of this site, not an official rule. The test is built only on the notes of the course; it is not a copy of any real test, and all systems and data are new.

Conventions used in the whole test: the notation of the course is used (xx state, uu input, yy output, FF state matrix, GG input matrix, HH output matrix, W(s)W(s) transfer function, a.s. = asymptotically stable). Every system and every data set is listed completely, so that the figures can be redrawn on the sheet before starting.

How to use it: work with a timer, write each formula in letters before the numbers, and look at the "Result" only when a question is finished. Some parts ask for a comment: the "Solution" says which sentences of the notes support it, and marks as "Reading" the places where two notes are joined.

Exercise 1 (points 6)

An RC ladder is built as follows. An ideal voltage source u(t)u(t) (in V) is connected to the resistor R1R_1; the other end of R1R_1 is the node AA, which is connected to ground by the capacitor C1C_1 and to the node BB by the resistor R2R_2; the node BB is connected to ground by the capacitor C2C_2, and nothing else is connected to BB. The output is the voltage y=VBy = V_B of the node BB with respect to ground. Data: R1=5 kΩR_1 = 5\ \text{k}\Omega, R2=10 kΩR_2 = 10\ \text{k}\Omega, C1=1 μFC_1 = 1\ \mu\text{F}, C2=0.5 μFC_2 = 0.5\ \mu\text{F}; times are measured in ms (the product kΩ⋅μ\Omega \cdot \muF is a ms).

a) Write the circuit laws at the two nodes and choose as state the capacitor voltages x=(VA,VB)Tx = (V_A, V_B)^T. Obtain the model x˙=Fx+Gu\dot x = Fx + Gu, y=Hxy = Hx with numerical matrices (2 points).

b) For the constant input uˉ=5 V\bar u = 5\ \text{V} find the equilibrium. Compute the eigenvalues and the eigenvectors of FF, the time constants, and say whether the system is a.s. and whether the modes oscillate (2 points).

c) At t=0t = 0 the capacitors are discharged, x(0)=(0,0)Tx(0) = (0, 0)^T, and the input is the step u(t)=5 Vu(t) = 5\ \text{V} for t≥0t \ge 0. Write x(t)x(t) using the eigenvectors and compute the predicted VBV_B at t=5,10,20t = 5, 10, 20 ms. The voltage VBV_B was then measured on the real circuit (resolution 0.010.01 V): 1.10 V1.10\ \text{V}, 2.45 V2.45\ \text{V}, 3.99 V3.99\ \text{V} at the same times. Compute the differences measured minus predicted and comment (2 points).

Show the result

a) x˙1=−0.3 x1+0.1 x2+0.2 u\dot x_1 = -0.3\,x_1 + 0.1\,x_2 + 0.2\,u, x˙2=0.2 x1−0.2 x2\dot x_2 = 0.2\,x_1 - 0.2\,x_2, y=x2y = x_2: F=(−0.30.10.2−0.2) ms−1F = \begin{pmatrix} -0.3 & 0.1 \\ 0.2 & -0.2 \end{pmatrix}\ \text{ms}^{-1}, G=(0.20) ms−1G = \begin{pmatrix} 0.2 \\ 0 \end{pmatrix}\ \text{ms}^{-1}, H=(01)H = \begin{pmatrix} 0 & 1 \end{pmatrix}.

b) xˉ=(5,5)T\bar x = (5, 5)^T V. Eigenvalues −0.1-0.1 and −0.4 ms−1-0.4\ \text{ms}^{-1}, with eigenvectors (1,2)T(1, 2)^T and (1,−1)T(1, -1)^T; time constants 1010 ms and 2.52.5 ms; a.s., real eigenvalues, no oscillation.

c) x1(t)=5−103e−0.1t−53e−0.4tx_1(t) = 5 - \tfrac{10}{3}e^{-0.1t} - \tfrac53e^{-0.4t}, x2(t)=5−203e−0.1t+53e−0.4tx_2(t) = 5 - \tfrac{20}{3}e^{-0.1t} + \tfrac53e^{-0.4t}. Predicted VB=1.182, 2.578, 4.098 VV_B = 1.182,\ 2.578,\ 4.098\ \text{V}; measured minus predicted =−0.082, −0.128, −0.108 V= -0.082,\ -0.128,\ -0.108\ \text{V}: all negative, larger than the resolution; the model with the nominal values is too fast.

Show the full solution

a) Model. Apply the laws of the circuit as in the RLC example of Examples of State-Space ModelsWorked state-space models: an RLC circuit, a controlled pendulum, population growth (exponential and logistic, continuous and discrete time), a three-class lab cell population and the Google PageRank iteration.Examples of State-Space Models →. The current in R1R_1 is (u−VA)/R1(u - V_A)/R_1 and the current in R2R_2 is (VA−VB)/R2(V_A - V_B)/R_2; the capacitor currents are C1V˙AC_1\dot V_A and C2V˙BC_2\dot V_B. At the node AA the current coming from R1R_1 splits into the capacitor C1C_1 and the resistor R2R_2; at the node BB all the current of R2R_2 goes into C2C_2:

u−VAR1=C1V˙A+VA−VBR2,VA−VBR2=C2V˙B.\frac{u - V_A}{R_1} = C_1\dot V_A + \frac{V_A - V_B}{R_2}, \qquad \frac{V_A - V_B}{R_2} = C_2\dot V_B.

With x1=VAx_1 = V_A, x2=VBx_2 = V_B, solving for the derivatives (see State-Space ModelsA state-space model describes a system with a state vector, an input and an output; it can be nonlinear, control-affine or linear (LTI or LTV), in continuous or discrete time.State-Space Models →):

x˙1=−(1R1C1+1R2C1)x1+1R2C1 x2+1R1C1 u,x˙2=1R2C2 x1−1R2C2 x2.\dot x_1 = -\left(\frac{1}{R_1C_1} + \frac{1}{R_2C_1}\right)x_1 + \frac{1}{R_2C_1}\,x_2 + \frac{1}{R_1C_1}\,u, \qquad \dot x_2 = \frac{1}{R_2C_2}\,x_1 - \frac{1}{R_2C_2}\,x_2.

The products are R1C1=5 msR_1C_1 = 5\ \text{ms}, R2C1=10 msR_2C_1 = 10\ \text{ms}, R2C2=5 msR_2C_2 = 5\ \text{ms}, so 1/(R1C1)=0.21/(R_1C_1) = 0.2, 1/(R2C1)=0.11/(R_2C_1) = 0.1, 1/(R2C2)=0.21/(R_2C_2) = 0.2 in ms−1\text{ms}^{-1}:

F=(−0.30.10.2−0.2),G=(0.20),H=(01).F = \begin{pmatrix} -0.3 & 0.1 \\ 0.2 & -0.2 \end{pmatrix}, \qquad G = \begin{pmatrix} 0.2 \\ 0 \end{pmatrix}, \qquad H = \begin{pmatrix} 0 & 1 \end{pmatrix}.

Typical mistakes: forgetting that R2R_2 also appears in the equation of node AA (the coupling term (VA−VB)/R2(V_A - V_B)/R_2 loads the first capacitor); mixing the units (with kΩ\Omega and μ\muF the rates come out in ms−1\text{ms}^{-1}).

b) Equilibrium and eigenvalues. For a constant input the equilibrium solves Fxˉ+Guˉ=0F\bar x + G\bar u = 0 (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 →, stability with constant inputs). The second row gives 0.2 xˉ1−0.2 xˉ2=00.2\,\bar x_1 - 0.2\,\bar x_2 = 0, so xˉ1=xˉ2\bar x_1 = \bar x_2; the first row then reads −0.3xˉ1+0.1xˉ1+0.2⋅5=0-0.3\bar x_1 + 0.1\bar x_1 + 0.2 \cdot 5 = 0, i.e. xˉ1=5\bar x_1 = 5. So xˉ=(5,5)T\bar x = (5, 5)^T V: in steady state no current flows in the resistors and both capacitors are charged to the source voltage. The matrix FF is invertible (det⁡F=0.06−0.02=0.04≠0\det F = 0.06 - 0.02 = 0.04 \ne 0), so this equilibrium is unique.

Eigenvalues: tr⁡F=−0.5\operatorname{tr}F = -0.5, det⁡F=0.04\det F = 0.04,

λ2+0.5 λ+0.04=0,λ=−0.5±0.25−0.162=−0.5±0.32=−0.1, −0.4  ms−1.\lambda^2 + 0.5\,\lambda + 0.04 = 0, \qquad \lambda = \frac{-0.5 \pm \sqrt{0.25 - 0.16}}{2} = \frac{-0.5 \pm 0.3}{2} = -0.1,\ -0.4\ \ \text{ms}^{-1}.

Eigenvectors (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 →): for λ=−0.1\lambda = -0.1, (F+0.1I)v=0(F + 0.1I)v = 0 is (−0.20.10.2−0.1)v=0\begin{pmatrix} -0.2 & 0.1 \\ 0.2 & -0.1 \end{pmatrix}v = 0, giving v1=(1,2)Tv_1 = (1, 2)^T; for λ=−0.4\lambda = -0.4, (0.10.10.20.2)v=0\begin{pmatrix} 0.1 & 0.1 \\ 0.2 & 0.2 \end{pmatrix}v = 0, giving v2=(1,−1)Tv_2 = (1, -1)^T. The two eigenvalues are real, distinct and negative: the modes are e−0.1te^{-0.1t} and e−0.4te^{-0.4t}, with no oscillation, and the system is a.s. (Modes and Asymptotic Behaviour of LTI SystemsThe state of an LTI system is a linear combination of modes t^k e^(sigma t) cos(omega t); the real part of the eigenvalues decides whether all modes converge, stay bounded or diverge, illustrated on the pendulum with and without friction and upside down.Modes and Asymptotic Behaviour of LTI Systems →, 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 →). Time constants 1/∣λ∣1/|\lambda|: 1010 ms and 2.52.5 ms. Typical mistake: expecting an oscillation because the circuit contains two storage elements (oscillations need complex eigenvalues, and here the discriminant is positive).

c) Step response and comparison with the data. The deviation z=x−xˉz = x - \bar x satisfies z˙=Fz\dot z = Fz with z(0)=x(0)−xˉ=(−5,−5)Tz(0) = x(0) - \bar x = (-5, -5)^T. With distinct eigenvalues z(t)=c1v1e−0.1t+c2v2e−0.4tz(t) = c_1v_1e^{-0.1t} + c_2v_2e^{-0.4t}, and the initial condition gives

c1+c2=−5,2c1−c2=−5 ⟹ 3c1=−10,c1=−103,c2=−53.c_1 + c_2 = -5, \qquad 2c_1 - c_2 = -5 \ \Longrightarrow\ 3c_1 = -10,\quad c_1 = -\tfrac{10}{3},\quad c_2 = -\tfrac53.

Therefore

x1(t)=5−103e−0.1t−53e−0.4t,x2(t)=5−203e−0.1t+53e−0.4tx_1(t) = 5 - \tfrac{10}{3}e^{-0.1t} - \tfrac53e^{-0.4t}, \qquad x_2(t) = 5 - \tfrac{20}{3}e^{-0.1t} + \tfrac53e^{-0.4t}

(check: x1(0)=x2(0)=0x_1(0) = x_2(0) = 0). The output is y=x2y = x_2. At t=5t = 5: e−0.5=0.6065e^{-0.5} = 0.6065, e−2=0.1353e^{-2} = 0.1353, y=5−4.0435+0.2256=1.182y = 5 - 4.0435 + 0.2256 = 1.182 V. At t=10t = 10: e−1=0.3679e^{-1} = 0.3679, e−4=0.0183e^{-4} = 0.0183, y=5−2.4525+0.0305=2.578y = 5 - 2.4525 + 0.0305 = 2.578 V. At t=20t = 20: e−2=0.1353e^{-2} = 0.1353, e−8=0.0003e^{-8} = 0.0003, y=5−0.9022+0.0006=4.098y = 5 - 0.9022 + 0.0006 = 4.098 V. The differences measured minus predicted are

1.10−1.182=−0.082 V,2.45−2.578=−0.128 V,3.99−4.098=−0.108 V.1.10 - 1.182 = -0.082\ \text{V}, \qquad 2.45 - 2.578 = -0.128\ \text{V}, \qquad 3.99 - 4.098 = -0.108\ \text{V}.

Comment. The three differences have the same sign and each is much larger than the resolution of the instrument (0.010.01 V), so they are not noise: the model with the nominal values predicts a voltage that rises faster than the real one (the relative errors are about 77, 55 and 33 percent). A possible cause, to be tested and not to be taken as proved, is that the real components differ from their labels, which changes the eigenvalues. Reading, built on the notes: the data were not used to build the model, so this is a first check of how the model predicts; a model that is wrong in the parameters can be improved by estimating them from the data (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 →), but then new data are needed to check again, because least squares only minimises the mismatch on the data it has seen. Three points are also a weak check. Typical mistake: using x(0)=0x(0) = 0 as initial condition of the deviation zz (it is −xˉ-\bar x).

Exercise 2 (points 6)

Consider the autonomous system x˙=Fx\dot x = Fx with time in s and

F=(−200−1−21−1−10).F = \begin{pmatrix} -2 & 0 & 0 \\ -1 & -2 & 1 \\ -1 & -1 & 0 \end{pmatrix}.

a) Compute the characteristic polynomial, the eigenvalues, and the algebraic and geometric multiplicity of each of them (use the rank of F−λIF - \lambda I). Write the Jordan matrix JJ, find an eigenvector for each eigenvalue and a generalized eigenvector completing the chain, build TT and check FT=TJFT = TJ (2 points).

b) Compute eFt=TeJtT−1e^{Ft} = Te^{Jt}T^{-1} and the solution x(t)x(t) for x(0)=(2,1,5)Tx(0) = (2, 1, 5)^T. Which modes appear? The component x2x_2 starts at 11: find the time at which it is largest and its value, and comment, since the system is a.s. (2 points).

c) Two outputs are measured: y1=x2−x3y_1 = x_2 - x_3 and y2=x1y_2 = x_1. Which modes appear in each of them, for every initial state? Show that y˙1=−y1\dot y_1 = -y_1 and give y1(t)y_1(t) and y2(t)y_2(t) for the initial state of part b) (2 points).

Show the result

a) ΔF(λ)=(λ+2)(λ+1)2\Delta_F(\lambda) = (\lambda + 2)(\lambda + 1)^2. λ=−2\lambda = -2: algebraic and geometric multiplicity 11. λ=−1\lambda = -1: algebraic multiplicity 22, rank⁡(F+I)=2\operatorname{rank}(F + I) = 2, geometric multiplicity 11: one block of size 22. J=(−2000−1100−1)J = \begin{pmatrix} -2 & 0 & 0 \\ 0 & -1 & 1 \\ 0 & 0 & -1 \end{pmatrix}; eigenvectors p=(1,1,1)Tp = (1, 1, 1)^T for −2-2 and v=(0,1,1)Tv = (0, 1, 1)^T for −1-1, generalized eigenvector w=(0,0,1)Tw = (0, 0, 1)^T with (F+I)w=v(F + I)w = v; T=(p  v  w)=(100110111)T = (p\ \,v\ \,w) = \begin{pmatrix} 1 & 0 & 0 \\ 1 & 1 & 0 \\ 1 & 1 & 1 \end{pmatrix}.

b) eFt=(e−2t00e−2t−e−t(1−t)e−tte−te−2t−e−t−te−t(1+t)e−t)e^{Ft} = \begin{pmatrix} e^{-2t} & 0 & 0 \\ e^{-2t} - e^{-t} & (1 - t)e^{-t} & te^{-t} \\ e^{-2t} - e^{-t} & -te^{-t} & (1 + t)e^{-t} \end{pmatrix} and x(t)=(2e−2t(4t−1)e−t+2e−2t(4t+3)e−t+2e−2t)x(t) = \begin{pmatrix} 2e^{-2t} \\ (4t - 1)e^{-t} + 2e^{-2t} \\ (4t + 3)e^{-t} + 2e^{-2t} \end{pmatrix}; modes e−2te^{-2t}, e−te^{-t}, te−tte^{-t}. The component x2x_2 is largest at t≈0.80t \approx 0.80 s with value 1.3921.392, then decays: a.s. does not mean monotone decrease.

c) H1F=−H1H_1F = -H_1 for H1=(0,1,−1)H_1 = (0, 1, -1), so y˙1=−y1\dot y_1 = -y_1 and only the mode e−te^{-t} appears: y1(t)=−4e−ty_1(t) = -4e^{-t}; y2(t)=2e−2ty_2(t) = 2e^{-2t}, only the mode e−2te^{-2t}. The mode te−tte^{-t} never appears in either output.

Show the full solution

a) Jordan structure. Expanding det⁡(λI−F)\det(\lambda I - F) along the first row, which is (λ+2, 0, 0)(\lambda + 2,\ 0,\ 0), gives (λ+2)det⁡(λ+2−11λ)=(λ+2)(λ2+2λ+1)=(λ+2)(λ+1)2=λ3+4λ2+5λ+2(\lambda + 2)\det\begin{pmatrix} \lambda + 2 & -1 \\ 1 & \lambda \end{pmatrix} = (\lambda + 2)\big(\lambda^2 + 2\lambda + 1\big) = (\lambda + 2)(\lambda + 1)^2 = \lambda^3 + 4\lambda^2 + 5\lambda + 2. The eigenvalues are −2-2 (algebraic multiplicity 11) and −1-1 (algebraic multiplicity 22). The geometric multiplicity is dim⁡Ker⁡(F−λI)=3−rank⁡(F−λI)\dim\operatorname{Ker}(F - \lambda I) = 3 - \operatorname{rank}(F - \lambda I) (Jordan Canonical FormEvery square matrix is similar to a Jordan matrix of blocks with the eigenvalue on the diagonal and ones above it; generalized eigenvectors built from kernel chains give the change of basis, and the exponential of a Jordan block contains the terms t^k e^(lambda t).Jordan Canonical Form →):

F+I=(−100−1−11−1−11).F + I = \begin{pmatrix} -1 & 0 & 0 \\ -1 & -1 & 1 \\ -1 & -1 & 1 \end{pmatrix}.

The rows 22 and 33 are equal and the first row is independent of them, so rank⁡(F+I)=2\operatorname{rank}(F + I) = 2 and the geometric multiplicity of −1-1 is 3−2=1<23 - 2 = 1 < 2: FF is not diagonalizable, and −1-1 has one Jordan block, of size 22. For −2-2 the geometric multiplicity is 11 (it cannot exceed the algebraic one and is at least 11). Therefore

J=(−2000−1100−1).J = \begin{pmatrix} -2 & 0 & 0 \\ 0 & -1 & 1 \\ 0 & 0 & -1 \end{pmatrix}.

Eigenvector for −2-2: (F+2I)p=0(F + 2I)p = 0 with F+2I=(000−101−1−12)F + 2I = \begin{pmatrix} 0 & 0 & 0 \\ -1 & 0 & 1 \\ -1 & -1 & 2 \end{pmatrix} gives p3=p1p_3 = p_1 and −p1−p2+2p3=0-p_1 - p_2 + 2p_3 = 0, so p2=p3=p1p_2 = p_3 = p_1: p=(1,1,1)Tp = (1, 1, 1)^T. Eigenvector for −1-1: (F+I)v=0(F + I)v = 0 gives −v1=0-v_1 = 0 and −v1−v2+v3=0-v_1 - v_2 + v_3 = 0, so v=(0,1,1)Tv = (0, 1, 1)^T. Generalized eigenvector: the chain of a block of size 22 asks Ft2=t1+λt2Ft_2 = t_1 + \lambda t_2, that is (F+I)w=v(F + I)w = v: the first row gives w1=0w_1 = 0 and the second −w2+w3=1-w_2 + w_3 = 1; choose w=(0,0,1)Tw = (0, 0, 1)^T (any other choice differs by a multiple of vv). Check that ww is not an eigenvector: (F+I)w=(0,1,1)T≠0(F + I)w = (0, 1, 1)^T \ne 0, while (F+I)2w=(F+I)v=0(F + I)^2w = (F + I)v = 0. Taking the columns in the order of the blocks,

T=(p  v  w)=(100110111),T−1=(100−1100−11).T = (p\ \ v\ \ w) = \begin{pmatrix} 1 & 0 & 0 \\ 1 & 1 & 0 \\ 1 & 1 & 1 \end{pmatrix}, \qquad T^{-1} = \begin{pmatrix} 1 & 0 & 0 \\ -1 & 1 & 0 \\ 0 & -1 & 1 \end{pmatrix}.

Check of FT=TJFT = TJ, column by column: Fp=(−2,−2,−2)T=−2pFp = (-2, -2, -2)^T = -2p; Fv=(0,−1,−1)T=−vFv = (0, -1, -1)^T = -v; Fw=(0,1,0)TFw = (0, 1, 0)^T and v−w=(0,1,0)Tv - w = (0, 1, 0)^T, which is the third column of TJTJ (t2+λt3t_2 + \lambda t_3 with λ=−1\lambda = -1). Typical mistakes: stopping at the characteristic polynomial and writing J=diag⁡(−2,−1,−1)J = \operatorname{diag}(-2, -1, -1) without the rank computation; taking for the generalized eigenvector a solution of (F+I)w=0(F + I)w = 0 (that is an ordinary eigenvector).

b) Matrix exponential and solution. As in Jordan Canonical FormEvery square matrix is similar to a Jordan matrix of blocks with the eigenvalue on the diagonal and ones above it; generalized eigenvectors built from kernel chains give the change of basis, and the exponential of a Jordan block contains the terms t^k e^(lambda t).Jordan Canonical Form →, eJt=(e−2t000e−tte−t00e−t)e^{Jt} = \begin{pmatrix} e^{-2t} & 0 & 0 \\ 0 & e^{-t} & te^{-t} \\ 0 & 0 & e^{-t} \end{pmatrix} (the block of size 22 with eigenvalue −1-1). Then TeJtTe^{Jt} has columns e−2t(1,1,1)Te^{-2t}(1, 1, 1)^T, e−t(0,1,1)Te^{-t}(0, 1, 1)^T and te−t(0,1,1)T+e−t(0,0,1)Tte^{-t}(0, 1, 1)^T + e^{-t}(0, 0, 1)^T, and multiplying on the right by T−1T^{-1}:

eFt=TeJtT−1=(e−2t00e−2t−e−t(1−t)e−tte−te−2t−e−t−te−t(1+t)e−t).e^{Ft} = Te^{Jt}T^{-1} = \begin{pmatrix} e^{-2t} & 0 & 0 \\ e^{-2t} - e^{-t} & (1 - t)e^{-t} & te^{-t} \\ e^{-2t} - e^{-t} & -te^{-t} & (1 + t)e^{-t} \end{pmatrix}.

Check: at t=0t = 0 it is II, and differentiating each entry and putting t=0t = 0 (for instance ddt(e−2t−e−t)=−2+1=−1\frac{d}{dt}(e^{-2t} - e^{-t}) = -2 + 1 = -1 and ddt[(1−t)e−t]=−1−1=−2\frac{d}{dt}\big[(1 - t)e^{-t}\big] = -1 - 1 = -2) gives exactly FF, as it must since ddteFt∣t=0=F\frac{d}{dt}e^{Ft}\big|_{t=0} = F. For x(0)=(2,1,5)Tx(0) = (2, 1, 5)^T the coordinates in the basis of TT are ξ=T−1x(0)=(2,−1,4)T\xi = T^{-1}x(0) = (2, -1, 4)^T, and

x(t)=eFtx(0)=(2e−2t(4t−1)e−t+2e−2t(4t+3)e−t+2e−2t).x(t) = e^{Ft}x(0) = \begin{pmatrix} 2e^{-2t} \\ (4t - 1)e^{-t} + 2e^{-2t} \\ (4t + 3)e^{-t} + 2e^{-2t} \end{pmatrix}.

The modes are e−2te^{-2t}, e−te^{-t} and te−tte^{-t} (Modes and Asymptotic Behaviour of LTI SystemsThe state of an LTI system is a linear combination of modes t^k e^(sigma t) cos(omega t); the real part of the eigenvalues decides whether all modes converge, stay bounded or diverge, illustrated on the pendulum with and without friction and upside down.Modes and Asymptotic Behaviour of LTI Systems →); all eigenvalues have negative real part, so x(t)→0x(t) \to 0 (FF is a.s., 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 →). The component x2x_2 starts at x2(0)=−1+2=1x_2(0) = -1 + 2 = 1. Its derivative is x˙2=4e−t−(4t−1)e−t−4e−2t=(5−4t)e−t−4e−2t\dot x_2 = 4e^{-t} - (4t - 1)e^{-t} - 4e^{-2t} = (5 - 4t)e^{-t} - 4e^{-2t}, which is positive at t=0t = 0 (5−4=15 - 4 = 1) and vanishes where 5−4t=4e−t5 - 4t = 4e^{-t}: at t=0.8t = 0.8 the two sides are 1.801.80 and 4e−0.8=1.7974e^{-0.8} = 1.797, so t≈0.80t \approx 0.80 s, with x2(0.80)=(3.2−1)e−0.8+2e−1.6=0.988+0.404=1.392x_2(0.80) = (3.2 - 1)e^{-0.8} + 2e^{-1.6} = 0.988 + 0.404 = 1.392. The component grows by 3939 percent before decaying: the polynomial mode te−tte^{-t} (with coefficient 44) dominates at first and the exponential dominates later; a.s. is a statement about the limit t→+∞t \to +\infty, not about monotone decay. Typical mistakes: writing eFt=eJte^{Ft} = e^{Jt} (forgetting TT and T−1T^{-1}); writing e−te^{-t} instead of te−tte^{-t} in the entry above the diagonal of the block.

c) Modes seen from the outputs. Write y1=H1xy_1 = H_1x with H1=(0, 1, −1)H_1 = (0,\ 1,\ -1). The product H1FH_1F is the second row minus the third row of FF: (−1+1, −2+1, 1−0)=(0,−1,1)=−H1(-1 + 1,\ -2 + 1,\ 1 - 0) = (0, -1, 1) = -H_1. Then, for every trajectory,

y˙1=H1x˙=H1Fx=−H1x=−y1 ⟹ y1(t)=y1(0)e−t.\dot y_1 = H_1\dot x = H_1Fx = -H_1x = -y_1 \ \Longrightarrow\ y_1(t) = y_1(0)e^{-t}.

So for every initial state only the mode e−te^{-t} appears in y1y_1 (equivalently H1eFt=e−tH1H_1e^{Ft} = e^{-t}H_1: the row (0,e−t,−e−t)(0, e^{-t}, -e^{-t}), as the matrix of part b) shows); the modes e−2te^{-2t} and te−tte^{-t}, present in the state, are invisible in this output, the situation of the exercise on the modes seen from the output in Matrix Exponential - Worked ExamplesTwo exercises show how to find the Jordan structure of a state matrix, compute the matrix exponential through the inverse Laplace transform of sI minus F inverse, and decide which modes are seen from the output.Matrix Exponential - Worked Examples →. For x(0)=(2,1,5)Tx(0) = (2, 1, 5)^T: y1(0)=1−5=−4y_1(0) = 1 - 5 = -4 and y1(t)=−4e−ty_1(t) = -4e^{-t}, which agrees with x2−x3=(4t−1−4t−3)e−t+0=−4e−tx_2 - x_3 = (4t - 1 - 4t - 3)e^{-t} + 0 = -4e^{-t}. For y2=x1y_2 = x_1 the first equation x˙1=−2x1\dot x_1 = -2x_1 is closed: y2(t)=2e−2ty_2(t) = 2e^{-2t}, only the mode e−2te^{-2t} (H2=(1,0,0)H_2 = (1, 0, 0) also satisfies H2F=−2H2H_2F = -2H_2). The mode te−tte^{-t} appears in neither output, although it is the one responsible for the overshoot of x2x_2 in part b). Typical mistake: assuming that every mode of the state appears in every output.

Exercise 3 (points 6)

Consider the discrete-time systems x(t+1)=Fx(t)x(t+1) = Fx(t), t=0,1,2,…t = 0, 1, 2, \dots, with

F1=(0.40.5−0.50.4),F3=(F100−0.8)∈R3×3.F_1 = \begin{pmatrix} 0.4 & 0.5 \\ -0.5 & 0.4 \end{pmatrix}, \qquad F_3 = \begin{pmatrix} F_1 & 0 \\ 0 & -0.8 \end{pmatrix} \in \mathbb R^{3 \times 3}.

a) For F1F_1 compute the characteristic polynomial and the eigenvalues, their modulus ρ\rho and angle θ\theta, and write the modes in the form ρtcos⁡(θt)\rho^t\cos(\theta t). Say whether F1F_1 is a.s. and what is the number of steps of one oscillation. If the sequence were made of the samples, at t=0,1,2,…t = 0, 1, 2, \dots, of the modes of a continuous-time system, which would be the eigenvalues of that system (2 points)?

b) For x(0)=(1,0)Tx(0) = (1, 0)^T write x(t)x(t) in closed form, check it for t=1,2t = 1, 2, and find the first time at which ∥x(t)∥<0.05\lVert x(t)\rVert < 0.05 (2 points).

c) For F3F_3 and x(0)=(1,0,1)Tx(0) = (1, 0, 1)^T write the three components of x(t)x(t). Which mode dominates for large tt? After how many steps are the first two components and the third one below 0.010.01 in absolute value (2 points)?

Show the result

a) ΔF1(λ)=λ2−0.8λ+0.41\Delta_{F_1}(\lambda) = \lambda^2 - 0.8\lambda + 0.41, λ=0.4±0.5 j\lambda = 0.4 \pm 0.5\,j, ρ=0.41=0.6403\rho = \sqrt{0.41} = 0.6403, θ=arctan⁡(0.5/0.4)=0.8961 rad\theta = \arctan(0.5/0.4) = 0.8961\ \text{rad} (51.3∘51.3^\circ); modes 0.6403tcos⁡(0.8961 t)0.6403^t\cos(0.8961\,t) and 0.6403tsin⁡(0.8961 t)0.6403^t\sin(0.8961\,t); a.s. (ρ<1\rho < 1); one oscillation every 2π/θ=7.012\pi/\theta = 7.01 steps. The continuous-time eigenvalues would be ln⁡λˉ=ln⁡ρ±jθ=−0.4458±0.8961 j\ln\bar\lambda = \ln\rho \pm j\theta = -0.4458 \pm 0.8961\,j.

b) x(t)=ρt(cos⁡θt, −sin⁡θt)Tx(t) = \rho^t\big(\cos\theta t,\ -\sin\theta t\big)^T: x(1)=(0.4,−0.5)Tx(1) = (0.4, -0.5)^T, x(2)=(−0.09,−0.4)Tx(2) = (-0.09, -0.4)^T; ∥x(t)∥=ρt\lVert x(t)\rVert = \rho^t, equal to 0.06890.0689 at t=6t = 6 and 0.04410.0441 at t=7t = 7: the first time is t=7t = 7.

c) x1(t)=0.6403tcos⁡(0.8961 t)x_1(t) = 0.6403^t\cos(0.8961\,t), x2(t)=−0.6403tsin⁡(0.8961 t)x_2(t) = -0.6403^t\sin(0.8961\,t), x3(t)=(−0.8)tx_3(t) = (-0.8)^t. The dominant mode is (−0.8)t(-0.8)^t (modulus 0.8>0.64030.8 > 0.6403), alternating in sign. The norm of the first two components is below 0.010.01 from t=11t = 11 (ρ11=0.0074\rho^{11} = 0.0074, while ρ10=0.0116\rho^{10} = 0.0116); the third component is below 0.010.01 in absolute value from t=21t = 21 (0.821=0.00920.8^{21} = 0.0092, while 0.820=0.01150.8^{20} = 0.0115).

Show the full solution

a) Eigenvalues and modes. The trace is 0.80.8 and the determinant is 0.4⋅0.4−0.5⋅(−0.5)=0.16+0.25=0.410.4 \cdot 0.4 - 0.5 \cdot (-0.5) = 0.16 + 0.25 = 0.41, so ΔF1(λ)=λ2−0.8λ+0.41\Delta_{F_1}(\lambda) = \lambda^2 - 0.8\lambda + 0.41 and

λ=0.8±0.64−1.642=0.8±−12=0.4±0.5 j.\lambda = \frac{0.8 \pm \sqrt{0.64 - 1.64}}{2} = \frac{0.8 \pm \sqrt{-1}}{2} = 0.4 \pm 0.5\,j.

Write λ=ρejθ\lambda = \rho e^{j\theta} (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 →): ρ=0.42+0.52=0.41=0.6403\rho = \sqrt{0.4^2 + 0.5^2} = \sqrt{0.41} = 0.6403 and θ=arctan⁡(0.5/0.4)=0.8961\theta = \arctan(0.5/0.4) = 0.8961 rad. Since λt=ρt(cos⁡θt+jsin⁡θt)\lambda^t = \rho^t\big(\cos\theta t + j\sin\theta t\big), the modes of F1F_1 are ρtcos⁡(θt)\rho^t\cos(\theta t) and ρtsin⁡(θt)\rho^t\sin(\theta t), with k=0k = 0 (the two eigenvalues are distinct). In discrete time a mode tkρtcos⁡(θt)t^k\rho^t\cos(\theta t) converges to zero if ρ<1\rho < 1, so F1F_1 is a.s. (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.6403<1\rho = 0.6403 < 1. The cosine repeats when θt\theta t increases by 2π2\pi, that is every 2π/θ=7.012\pi/\theta = 7.01 steps. For the second question use the correspondence between the modes of the two time scales: the CT mode eλte^{\lambda t} sampled at the integers is the DT mode λˉt\bar\lambda^t with λˉ=eλ\bar\lambda = e^{\lambda}, hence λ=ln⁡λˉ=ln⁡ρ+jθ\lambda = \ln\bar\lambda = \ln\rho + j\theta (note on discrete-time modes): ln⁡0.6403=−0.4458\ln 0.6403 = -0.4458, so the CT eigenvalues would be −0.4458±0.8961 j-0.4458 \pm 0.8961\,j, with the negative real part corresponding to ρ<1\rho < 1. (Reading: the angle θ\theta is defined up to 2π2\pi, so this is one of the continuous-time systems with those samples.) Typical mistakes: applying the continuous-time condition Re⁡(λ)<0\operatorname{Re}(\lambda) < 0 to 0.4±0.5j0.4 \pm 0.5j (the real part is positive, but in discrete time the test is on the modulus); taking θ\theta in degrees inside cos⁡(θt)\cos(\theta t).

b) Closed form. The matrix F1F_1 has the form (ab−ba)\begin{pmatrix} a & b \\ -b & a \end{pmatrix}. An eigenvector for λ=0.4+0.5j\lambda = 0.4 + 0.5j is (1,j)T(1, j)^T: F1(1,j)T=(0.4+0.5j, −0.5+0.4j)T=(0.4+0.5j)(1,j)TF_1(1, j)^T = (0.4 + 0.5j,\ -0.5 + 0.4j)^T = (0.4 + 0.5j)(1, j)^T (indeed (0.4+0.5j)j=−0.5+0.4j(0.4 + 0.5j)j = -0.5 + 0.4j). The initial state is (1,0)T=12(1,j)T+12(1,−j)T(1, 0)^T = \tfrac12(1, j)^T + \tfrac12(1, -j)^T, a sum of an eigenvector and its conjugate, so

x(t)=12λt(1j)+12λˉt(1−j)=Re⁡(λt(1j))=ρt(cos⁡θt−sin⁡θt),x(t) = \tfrac12\lambda^t\begin{pmatrix} 1 \\ j \end{pmatrix} + \tfrac12\bar\lambda^t\begin{pmatrix} 1 \\ -j \end{pmatrix} = \operatorname{Re}\left(\lambda^t\begin{pmatrix} 1 \\ j \end{pmatrix}\right) = \rho^t\begin{pmatrix} \cos\theta t \\ -\sin\theta t \end{pmatrix},

because Re⁡(j ejθt)=−sin⁡θt\operatorname{Re}(j\,e^{j\theta t}) = -\sin\theta t. Check: for t=1t = 1, ρ(cos⁡θ,−sin⁡θ)=0.6403 (0.6247,−0.7809)=(0.4,−0.5)\rho(\cos\theta, -\sin\theta) = 0.6403\,(0.6247, -0.7809) = (0.4, -0.5), which is the first column of F1F_1, F1x(0)F_1x(0); for t=2t = 2, F1x(1)=(0.16−0.25, −0.2−0.2)T=(−0.09,−0.40)TF_1x(1) = (0.16 - 0.25,\ -0.2 - 0.2)^T = (-0.09, -0.40)^T, and ρ2(cos⁡2θ,−sin⁡2θ)=0.41 (−0.2195,−0.9756)=(−0.09,−0.40)\rho^2(\cos2\theta, -\sin2\theta) = 0.41\,(-0.2195, -0.9756) = (-0.09, -0.40). The norm is ∥x(t)∥=ρt\lVert x(t)\rVert = \rho^t (cos⁡2+sin⁡2=1\cos^2 + \sin^2 = 1): ρ6=0.413=0.0689\rho^6 = 0.41^3 = 0.0689 and ρ7=0.0441\rho^7 = 0.0441. The first time with ∥x(t)∥<0.05\lVert x(t)\rVert < 0.05 is t=7t = 7 (from ρt<0.05\rho^t < 0.05: t>ln⁡20/ln⁡(1/ρ)=2.996/0.4458=6.72t > \ln 20/\ln(1/\rho) = 2.996/0.4458 = 6.72). Typical mistakes: writing ρtcos⁡(θt)\rho^t\cos(\theta t) for both components (the second one is −ρtsin⁡θt-\rho^t\sin\theta t); forgetting that ρt\rho^t is the norm only because the two modes have the same amplitude.

c) The 3x3 system. F3F_3 is block diagonal, so the first two components evolve with F1F_1 (part b) and the third one with the scalar −0.8-0.8, independent of the others:

x1(t)=ρtcos⁡θt,x2(t)=−ρtsin⁡θt,x3(t)=(−0.8)t(from x3(t+1)=−0.8 x3(t), x3(0)=1).x_1(t) = \rho^t\cos\theta t, \qquad x_2(t) = -\rho^t\sin\theta t, \qquad x_3(t) = (-0.8)^t \quad (\text{from } x_3(t+1) = -0.8\,x_3(t),\ x_3(0) = 1).

The eigenvalues are 0.4±0.5j0.4 \pm 0.5j (modulus 0.64030.6403) and −0.8-0.8 (modulus 0.80.8); all have modulus below 11, so the system is a.s. The mode of −0.8-0.8 has the larger modulus and therefore decays more slowly: for large tt it dominates. It is the mode ρtcos⁡(πt)\rho^t\cos(\pi t) with θ=π\theta = \pi of the note: its samples alternate in sign, 1,−0.8,0.64,−0.512,…1, -0.8, 0.64, -0.512, \dots. Times of convergence: the pair satisfies x12+x22=ρt\sqrt{x_1^2 + x_2^2} = \rho^t, with ρ10=0.0116\rho^{10} = 0.0116 and ρ11=0.0074\rho^{11} = 0.0074, so from t=11t = 11 on the norm of the first two components is below 0.010.01 (t>ln⁡100/ln⁡(1/ρ)=4.605/0.4458=10.33t > \ln 100/\ln(1/\rho) = 4.605/0.4458 = 10.33); the third component has ∣x3∣=0.8t|x_3| = 0.8^t, with 0.820=0.01150.8^{20} = 0.0115 and 0.821=0.00920.8^{21} = 0.0092, below 0.010.01 from t=21t = 21 (t>4.605/0.2231=20.6t > 4.605/0.2231 = 20.6). So x(t)x(t) is dominated by the real eigenvalue from the beginning on: at t=1t = 1 the third component is 0.80.8 against 0.64030.6403 for the other two together. Typical mistake: judging the speed of convergence from the complex pair because it is the "interesting" one: the slowest mode is the one with the largest modulus.

Exercise 4 (points 6)

A signal uu passes through a cascade of three first-order stages with unknown rates θ1,θ2,θ3>0\theta_1, \theta_2, \theta_3 > 0 (in s−1\text{s}^{-1}):

x˙1=−θ1x1+θ1u,x˙2=−θ2x2+θ2x1,x˙3=−θ3x3+θ3x2,\dot x_1 = -\theta_1x_1 + \theta_1u, \qquad \dot x_2 = -\theta_2x_2 + \theta_2x_1, \qquad \dot x_3 = -\theta_3x_3 + \theta_3x_2,

and the measured output is y=x3y = x_3 (noise-free, with an impulsive input).

a) Compute the transfer function from uu to yy and write the observational parameters of the model class as functions of θ\theta (2 points).

b) An experiment gives W^(s)=10s3+8s2+17s+10\hat W(s) = \dfrac{10}{s^3 + 8s^2 + 17s + 10}. Find all the values of θ\theta compatible with it and say whether each parameter and the model class are globally identifiable, locally identifiable or unidentifiable (2 points).

c) Two more sensors can be installed: one on x1x_1, with measured transfer function W^1(s)=1s+1\hat W_1(s) = \dfrac{1}{s + 1}, and one on x2x_2, with measured transfer function W^2(s)=2s2+3s+2\hat W_2(s) = \dfrac{2}{s^2 + 3s + 2}. Say what happens when only the sensor on x1x_1 is added, when only the sensor on x2x_2 is added, and when both are added (2 points).

Show the result

a) W(s)=θ1θ2θ3(s+θ1)(s+θ2)(s+θ3)=θ1θ2θ3s3+α3s2+α2s+α1W(s) = \dfrac{\theta_1\theta_2\theta_3}{(s + \theta_1)(s + \theta_2)(s + \theta_3)} = \dfrac{\theta_1\theta_2\theta_3}{s^3 + \alpha_3s^2 + \alpha_2s + \alpha_1} with α3=θ1+θ2+θ3\alpha_3 = \theta_1 + \theta_2 + \theta_3, α2=θ1θ2+θ1θ3+θ2θ3\alpha_2 = \theta_1\theta_2 + \theta_1\theta_3 + \theta_2\theta_3, α1=θ1θ2θ3\alpha_1 = \theta_1\theta_2\theta_3, and the numerator β1=θ1θ2θ3\beta_1 = \theta_1\theta_2\theta_3.

b) θ1+θ2+θ3=8\theta_1 + \theta_2 + \theta_3 = 8, θ1θ2+θ1θ3+θ2θ3=17\theta_1\theta_2 + \theta_1\theta_3 + \theta_2\theta_3 = 17, θ1θ2θ3=10\theta_1\theta_2\theta_3 = 10: the θi\theta_i are the roots 1,2,51, 2, 5 of z3−8z2+17z−10z^3 - 8z^2 + 17z - 10 in any order, six solutions. Each θi\theta_i takes the values 1,2,51, 2, 5: locally identifiable, and so is the model class.

c) Only x1x_1: θ1=1\theta_1 = 1 and (θ2,θ3)=(2,5)(\theta_2, \theta_3) = (2, 5) or (5,2)(5, 2), two solutions, locally identifiable. Only x2x_2: (θ1,θ2)=(1,2)(\theta_1, \theta_2) = (1, 2) or (2,1)(2, 1) and θ3=5\theta_3 = 5, two solutions, locally identifiable. Both: θ=(1,2,5)\theta = (1, 2, 5), unique, globally identifiable.

Show the full solution

a) Transfer function. In the Laplace domain with zero initial state each stage is (s+θi)Xi(s)=θiXi−1(s)(s + \theta_i)X_i(s) = \theta_iX_{i-1}(s), with X0=UX_0 = U. In matrix form F=(−θ100θ2−θ200θ3−θ3)F = \begin{pmatrix} -\theta_1 & 0 & 0 \\ \theta_2 & -\theta_2 & 0 \\ 0 & \theta_3 & -\theta_3 \end{pmatrix}, G=(θ1,0,0)TG = (\theta_1, 0, 0)^T, H=(0,0,1)H = (0, 0, 1), and H(sI−F)−1GH(sI - F)^{-1}G is obtained by solving the three equations in cascade (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 →):

X1=θ1s+θ1U,X2=θ2s+θ2X1,X3=θ3s+θ3X2 ⟹ W(s)=θ1θ2θ3(s+θ1)(s+θ2)(s+θ3).X_1 = \frac{\theta_1}{s + \theta_1}U, \qquad X_2 = \frac{\theta_2}{s + \theta_2}X_1, \qquad X_3 = \frac{\theta_3}{s + \theta_3}X_2 \ \Longrightarrow\ W(s) = \frac{\theta_1\theta_2\theta_3}{(s + \theta_1)(s + \theta_2)(s + \theta_3)}.

Expanding the denominator, W(s)=β1s3+α3s2+α2s+α1W(s) = \dfrac{\beta_1}{s^3 + \alpha_3s^2 + \alpha_2s + \alpha_1} with

α3=θ1+θ2+θ3,α2=θ1θ2+θ1θ3+θ2θ3,α1=β1=θ1θ2θ3.\alpha_3 = \theta_1 + \theta_2 + \theta_3, \qquad \alpha_2 = \theta_1\theta_2 + \theta_1\theta_3 + \theta_2\theta_3, \qquad \alpha_1 = \beta_1 = \theta_1\theta_2\theta_3.

For an LTI SISO system the observational parameters are 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 u=δ(t)u = \delta(t) one has Y(s)=W(s)Y(s) = W(s). Here α1\alpha_1 and β1\beta_1 are the same function of θ\theta, so there are three independent equations for three unknowns. Typical mistake: counting four observational parameters (α1,α2,α3,β1\alpha_1, \alpha_2, \alpha_3, \beta_1) when two of them coincide.

b) Solving for θ\theta. The measured function gives α^3=8\hat\alpha_3 = 8, α^2=17\hat\alpha_2 = 17, α^1=10\hat\alpha_1 = 10 (and β^1=10\hat\beta_1 = 10, consistent). The three numbers θi\theta_i have sum 88, sum of the products in pairs 1717 and product 1010: they are the roots of z3−8z2+17z−10=(z−1)(z−2)(z−5)z^3 - 8z^2 + 17z - 10 = (z - 1)(z - 2)(z - 5) (check: 1+2+5=81 + 2 + 5 = 8, 2+5+10=172 + 5 + 10 = 17, 1⋅2⋅5=101 \cdot 2 \cdot 5 = 10). The equations are symmetric in θ1,θ2,θ3\theta_1, \theta_2, \theta_3, so every assignment of the three values is a solution:

(θ1,θ2,θ3)∈{(1,2,5), (1,5,2), (2,1,5), (2,5,1), (5,1,2), (5,2,1)}.(\theta_1, \theta_2, \theta_3) \in \{(1,2,5),\ (1,5,2),\ (2,1,5),\ (2,5,1),\ (5,1,2),\ (5,2,1)\}.

Six solutions, a finite number: by the definitions of the note each θi\theta_i is locally identifiable (it takes the three values 1,2,51, 2, 5; not globally, since the solution is not unique, not unidentifiable, since they are not infinite) and the model class is locally identifiable. The meaning: the output does not tell which stage is the fast one, because the product ∏θis+θi\prod\frac{\theta_i}{s + \theta_i} does not depend on the order of the factors. Typical mistake: stopping at (1,2,5)(1, 2, 5) and declaring the model globally identifiable.

c) Extra sensors. The three observational sets are now different transfer functions, all computed as in part a).

  • Sensor on x1x_1: W1(s)=θ1s+θ1W_1(s) = \dfrac{\theta_1}{s + \theta_1}; from W^1=1s+1\hat W_1 = \dfrac{1}{s + 1}, θ1=1\theta_1 = 1, uniquely. Then θ2+θ3=8−1=7\theta_2 + \theta_3 = 8 - 1 = 7 and θ2θ3=10\theta_2\theta_3 = 10, so {θ2,θ3}={2,5}\{\theta_2, \theta_3\} = \{2, 5\} in either order: (1,2,5)(1, 2, 5) and (1,5,2)(1, 5, 2). The sensor fixes the first stage but not the order of the other two: locally identifiable.
  • Sensor on x2x_2: W2(s)=θ1θ2(s+θ1)(s+θ2)=θ1θ2s2+(θ1+θ2)s+θ1θ2W_2(s) = \dfrac{\theta_1\theta_2}{(s + \theta_1)(s + \theta_2)} = \dfrac{\theta_1\theta_2}{s^2 + (\theta_1 + \theta_2)s + \theta_1\theta_2}, which is symmetric in θ1,θ2\theta_1, \theta_2. From W^2\hat W_2: θ1+θ2=3\theta_1 + \theta_2 = 3, θ1θ2=2\theta_1\theta_2 = 2, so {θ1,θ2}={1,2}\{\theta_1, \theta_2\} = \{1, 2\}; the output equation then gives θ3=8−3=5\theta_3 = 8 - 3 = 5. Solutions (1,2,5)(1, 2, 5) and (2,1,5)(2, 1, 5): the order of the first two stages is still unknown: locally identifiable.
  • Both sensors: θ1=1\theta_1 = 1 from W1W_1; then θ2=3−1=2\theta_2 = 3 - 1 = 2 from W2W_2, and θ3=5\theta_3 = 5. Only (1,2,5)(1, 2, 5) is compatible with the three measured functions: all the parameters are globally identifiable, so is the model class.

The remedies of the note for an unidentifiable (here only locally identifiable) class are to change the sensors: one extra sensor is not enough, because it leaves a pair of stages that can be exchanged; the first two stages must both be observed. Typical mistake: believing that any additional sensor solves the problem (the sensor on x2x_2 alone leaves the exchange of the first two stages).

Exercise 5 (points 6)

a) Let A0∈R5×5A_0 \in \mathbb R^{5 \times 5} be the matrix with −0.1-0.1 on the diagonal, 11 on the first superdiagonal and 00 elsewhere. Find the eigenvalues of A0A_0 with their algebraic and geometric multiplicities, the Jordan form, the modes, and say whether x˙=A0x\dot x = A_0x is a.s. (1.5 points).

b) The entry (5,1)(5,1) of A0A_0 is changed from 00 to ε\varepsilon, obtaining AεA_\varepsilon. Show that the eigenvalues of AεA_\varepsilon solve (λ+0.1)5=ε(\lambda + 0.1)^5 = \varepsilon. Compute the eigenvalues for ε=10−6\varepsilon = 10^{-6} and ε=2⋅10−5\varepsilon = 2 \cdot 10^{-5}, find the value of ε\varepsilon at which the verdict on stability changes, and compare the size of the perturbation with the displacement of the eigenvalues. What does this say about the eigenvalue test of stability (2.5 points)?

c) A student studies x˙=Fx\dot x = Fx with F=diag⁡(−2,−5,1)F = \operatorname{diag}(-2, -5, 1) by the function V(x)=xTPxV(x) = x^TPx with P=diag⁡(1,1,0)P = \operatorname{diag}(1, 1, 0). Compute V˙\dot V, say what the student would conclude and where the argument fails. Then apply the recipe with Q=IQ = I (2 points).

Show the result

a) Eigenvalue −0.1-0.1 with algebraic multiplicity 55 and geometric multiplicity 11: a single Jordan block of size 55; modes tke−0.1tt^ke^{-0.1t}, k=0,…,4k = 0, \dots, 4; a.s.

b) The characteristic polynomial is (λ+0.1)5−ε(\lambda + 0.1)^5 - \varepsilon. For ε=10−6\varepsilon = 10^{-6}: λ=−0.1+0.0631 e2πjk/5\lambda = -0.1 + 0.0631\,e^{2\pi jk/5}, the largest real part is −0.0369-0.0369: a.s. For ε=2⋅10−5\varepsilon = 2 \cdot 10^{-5}: ε1/5=0.1149\varepsilon^{1/5} = 0.1149, the eigenvalue with k=0k = 0 is +0.0149+0.0149: unstable. The verdict changes at ε=0.15=10−5\varepsilon = 0.1^5 = 10^{-5} (eigenvalue 00). A perturbation of 2⋅10−52 \cdot 10^{-5} moves the eigenvalues by 0.11490.1149, about 57005700 times more.

c) V˙=−4x12−10x22≤0\dot V = -4x_1^2 - 10x_2^2 \le 0, which would suggest stability; but PP is only positive semidefinite, VV does not see x3x_3, and FF has the eigenvalue 11. With Q=IQ = I: P=diag⁡(0.25,0.1,−0.5)P = \operatorname{diag}(0.25, 0.1, -0.5), not positive definite, so FF is not a.s.

Show the full solution

a) The unperturbed matrix. A0=−0.1 I+NA_0 = -0.1\,I + N, with NN the nilpotent matrix with ones on the superdiagonal. The matrix is upper triangular, the eigenvalue is the diagonal entry −0.1-0.1 with algebraic multiplicity 55. The geometric multiplicity is 5−rank⁡(A0+0.1I)=5−rank⁡N=5−4=15 - \operatorname{rank}(A_0 + 0.1I) = 5 - \operatorname{rank}N = 5 - 4 = 1 (the four ones of the superdiagonal give four independent rows). One eigenvalue with geometric multiplicity 11 means one Jordan block, of size 55: A0A_0 is already in Jordan form (Jordan Canonical FormEvery square matrix is similar to a Jordan matrix of blocks with the eigenvalue on the diagonal and ones above it; generalized eigenvectors built from kernel chains give the change of basis, and the exponential of a Jordan block contains the terms t^k e^(lambda t).Jordan Canonical Form →). A block of size hh gives the modes eλt,teλt,…,th−1eλte^{\lambda t}, te^{\lambda t}, \dots, t^{h-1}e^{\lambda t}, so here tke−0.1tt^ke^{-0.1t} with k=0,…,4k = 0, \dots, 4. Since Re⁡(λ)=−0.1<0\operatorname{Re}(\lambda) = -0.1 < 0, every mode tke−0.1tt^ke^{-0.1t} converges to zero (the exponential dominates the power) and the system is a.s. (Modes and Asymptotic Behaviour of LTI SystemsThe state of an LTI system is a linear combination of modes t^k e^(sigma t) cos(omega t); the real part of the eigenvalues decides whether all modes converge, stay bounded or diverge, illustrated on the pendulum with and without friction and upside down.Modes and Asymptotic Behaviour of LTI Systems →, 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 →). Typical mistake: saying that the polynomial factors make the system unstable.

b) The perturbed matrix. Write μ=λ+0.1\mu = \lambda + 0.1. Then λI−Aε=μI−Nε\lambda I - A_\varepsilon = \mu I - N_\varepsilon, with μ\mu on the diagonal, −1-1 on the superdiagonal and −ε-\varepsilon in the position (5,1)(5,1). Expand the determinant along the first column, which has two entries, μ\mu in the position (1,1)(1,1) and −ε-\varepsilon in the position (5,1)(5,1). The minor of the entry μ\mu is upper triangular with μ\mu on the diagonal, so it is μ4\mu^4 and the contribution is μ5\mu^5. The minor of the entry (5,1)(5,1) (delete row 55 and column 11) is lower triangular with −1-1 on the diagonal, equal to (−1)4=1(-1)^4 = 1, and the cofactor sign is (−1)5+1=+1(-1)^{5+1} = +1, so the contribution is −ε-\varepsilon:

det⁡(λI−Aε)=μ5−ε=(λ+0.1)5−ε.\det(\lambda I - A_\varepsilon) = \mu^5 - \varepsilon = (\lambda + 0.1)^5 - \varepsilon.

This agrees with the note on ill-conditioning (Lyapunov Equation for Continuous-Time Linear SystemsThe Lyapunov approach tests asymptotic stability of a linear system without computing eigenvalues, by solving the matrix equation minus Q equals F transpose P plus P F and checking that the solution P is unique and positive definite.Lyapunov Equation for Continuous-Time Linear Systems →), where the same matrix with zeros on the diagonal has ∣λi∣=εn|\lambda_i| = \sqrt[n]{\varepsilon}. For ε>0\varepsilon > 0 the roots are μk=ε1/5e2πjk/5\mu_k = \varepsilon^{1/5}e^{2\pi jk/5}, k=0,…,4k = 0, \dots, 4, so λk=−0.1+ε1/5e2πjk/5\lambda_k = -0.1 + \varepsilon^{1/5}e^{2\pi jk/5}, with cos⁡(2π/5)=0.309\cos(2\pi/5) = 0.309 and cos⁡(4π/5)=−0.809\cos(4\pi/5) = -0.809. The largest real part is for k=0k = 0: −0.1+ε1/5-0.1 + \varepsilon^{1/5}.

  • ε=10−6\varepsilon = 10^{-6}: ε1/5=0.0631\varepsilon^{1/5} = 0.0631. The real parts are −0.0369-0.0369 (k=0k = 0), −0.1+0.0631⋅0.309=−0.0805-0.1 + 0.0631 \cdot 0.309 = -0.0805 (k=±1k = \pm 1) and −0.1−0.0510=−0.151-0.1 - 0.0510 = -0.151 (k=±2k = \pm 2): all negative, a.s.
  • ε=2⋅10−5\varepsilon = 2 \cdot 10^{-5}: ε1/5=0.1149\varepsilon^{1/5} = 0.1149. For k=0k = 0, λ0=+0.0149\lambda_0 = +0.0149; for k=±1k = \pm 1, −0.1+0.0355=−0.0645-0.1 + 0.0355 = -0.0645 (±0.1092 j\pm 0.1092\,j); for k=±2k = \pm 2, −0.1−0.0929=−0.193-0.1 - 0.0929 = -0.193 (±0.0675 j\pm 0.0675\,j). One real positive eigenvalue: unstable, with mode e0.0149te^{0.0149t}.

The verdict changes when ε1/5=0.1\varepsilon^{1/5} = 0.1, i.e. at ε=0.15=10−5\varepsilon = 0.1^5 = 10^{-5}, where λ0=0\lambda_0 = 0. The size of the perturbation is the change of one entry, 2⋅10−52 \cdot 10^{-5}, while the eigenvalues have moved from −0.1-0.1 to a distance 0.11490.1149: a displacement about 0.1149/(2⋅10−5)≈57000.1149/(2 \cdot 10^{-5}) \approx 5700 times larger. Conclusion, as in the note: eigenvalues are ill-conditioned, a tiny change in the matrix (a rounding error, or a parameter known with a small error) can change them a lot, and here it changes the verdict a.s. against unstable; so an eigenvalue test on a matrix that is almost defective (a large Jordan block) must be read with care. This is the motivation of the note for the Lyapunov approach. Typical mistakes: assuming that a perturbation of 10−510^{-5} moves the eigenvalues by about 10−510^{-5}; expanding the determinant with a wrong sign and finding μ5+ε\mu^5 + \varepsilon (which would change the position of the roots).

c) A positive semidefinite PP. With F=diag⁡(−2,−5,1)F = \operatorname{diag}(-2, -5, 1) and P=diag⁡(1,1,0)P = \operatorname{diag}(1, 1, 0) the function is V=x12+x22V = x_1^2 + x_2^2 and

V˙=2x1x˙1+2x2x˙2=2x1(−2x1)+2x2(−5x2)=−4x12−10x22≤0,\dot V = 2x_1\dot x_1 + 2x_2\dot x_2 = 2x_1(-2x_1) + 2x_2(-5x_2) = -4x_1^2 - 10x_2^2 \le 0,

that is −Q=FTP+PF=diag⁡(−4,−10,0)-Q = F^TP + PF = \operatorname{diag}(-4, -10, 0), with Q=diag⁡(4,10,0)Q = \operatorname{diag}(4, 10, 0) positive semidefinite (Lyapunov Equation for Continuous-Time Linear SystemsThe Lyapunov approach tests asymptotic stability of a linear system without computing eigenvalues, by solving the matrix equation minus Q equals F transpose P plus P F and checking that the solution P is unique and positive definite.Lyapunov Equation for Continuous-Time Linear Systems →). The student would conclude that the energy does not increase and that the system is stable. The argument fails because PP is only positive semidefinite, not positive definite (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 →): Ker⁡P=⟨(0,0,1)T⟩\operatorname{Ker}P = \langle(0, 0, 1)^T\rangle, so V(x)=0V(x) = 0 for every x=(0,0,∗)Tx = (0, 0, *)^T, and VV does not see the third coordinate, where x˙3=x3\dot x_3 = x_3 and x3(t)=etx3(0)x_3(t) = e^tx_3(0) diverges with V≡0V \equiv 0. The system is unstable (eigenvalue 11), exactly the situation of the example of the note ("P must be PD").

The correct recipe: choose Q=IQ = I and solve −I=FTP+PF-I = F^TP + PF. For the diagonal FF and a symmetric PP the equation for the entry (i,j)(i,j) is (λi+λj)pij=−δij(\lambda_i + \lambda_j)p_{ij} = -\delta_{ij}, with λi+λj≠0\lambda_i + \lambda_j \ne 0 for all the pairs, so PP is unique and diagonal: p11=−12(−2)=0.25p_{11} = \dfrac{-1}{2(-2)} = 0.25, p22=−12(−5)=0.1p_{22} = \dfrac{-1}{2(-5)} = 0.1, p33=−12⋅1=−0.5p_{33} = \dfrac{-1}{2 \cdot 1} = -0.5. Then P=diag⁡(0.25,0.1,−0.5)P = \operatorname{diag}(0.25, 0.1, -0.5) is unique but not positive definite (the leading minors are 0.250.25, 0.0250.025 and −0.0125-0.0125, so the last one is negative in the Sylvester test), so by the recipe FF is not a.s., in agreement with the eigenvalue 11 read on the diagonal. Typical mistakes: concluding stability from V˙≤0\dot V \le 0 without checking that VV is positive definite; reading "not a.s." as "unstable" from the test alone (the test does not say which of the two, here the eigenvalues do).

Self-assessment grid
Exercise Topic Points How to give them
1 Two-stage RC circuit: model, equilibrium, eigenvectors, step response and check on data 6 a) circuit laws, state, FF, GG, HH 2; b) equilibrium 0.5, eigenvalues and eigenvectors 1, time constants and a.s. 0.5; c) x(t)x(t) with the eigenvectors 1, predicted values and differences 0.5, comment on the data 0.5
2 Jordan chain, matrix exponential, solution, modes seen from the outputs 6 a) multiplicities by the rank 0.5, JJ 0.5, eigenvectors and generalized eigenvector 0.5, TT and check 0.5; b) eFte^{Ft} 1, x(t)x(t) 0.5, maximum of x2x_2 and comment 0.5; c) y˙1=−y1\dot y_1 = -y_1 1, the two outputs and the missing mode 1
3 Discrete-time system with complex eigenvalues, sampled modes, convergence times 6 a) polynomial, eigenvalues, ρ\rho and θ\theta 1, a.s. and period 0.5, continuous-time eigenvalues 0.5; b) closed form 1, check 0.5, first time 0.5; c) three components 1, dominant mode and the two times 1
4 A priori identifiability of a cascade and choice of sensors 6 a) W(s)W(s) 1, observational parameters 1; b) the six solutions 1, classification 1; c) each of the three cases 0.5, conclusion 0.5
5 Ill-conditioning of eigenvalues, positive semidefinite PP 6 a) multiplicities, Jordan form, modes, a.s. 1.5; b) characteristic polynomial 1, two values of ε\varepsilon 0.5, threshold 0.5, comparison and comment 0.5; c) V˙\dot V and failure 1, recipe with Q=IQ = I 1
Total 30

Give full points for a part only if the formula is written in letters, the units are right and the final value is checked (equilibrium substituted in the equations, FT=TJFT = TJ, x(1)x(1) computed both from the closed form and from F1x(0)F_1x(0), the six permutations of the identifiability problem, μ5−ε\mu^5 - \varepsilon). 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.