Docsity

Eigenvalues and Eigenvectors Analysis of Linear Systems, Exercises of Aerospace Engineering

Toggle sidebar
bg1
AAE 421
Homework 8 - Solution
Exercise 1 (a) Given the matrix
A=0 1
4 0
we need to identify the eigenvalues and eigenvectors.
det(λI−A) = det  λ−1
−4λ =λ2−4 = (λ+ 2) (λ−2)
Hence the eigenvalues are: λ1/2=±2 .
The eigenvalues are defined such that the determinant of the matrix is 0. Hence,
we know that there exists at least one non-trivial (6=0) solution vector satisfying
(λI−A)v=0. So the geometric multiplicity is greater or equal to 1 and the resulting
matrix will be singular.
(i) λ1= -2: −2−1
−4−2v1=0
Pick v1,1= 1 ⇒v1,2= -2. Hence, v1= (1,-2)T.
(ii) λ2= 2: 2−1
−4 2 v2=0
Pick v2,1= 1 ⇒v2,2= 2. Hence, v2= (1,2)T.
(b) Recalling ˙
x=Ax solutions (see Section 9.6 of the notes):
x(t) = X
i
aieλitvisuch that: x(0) = X
i
aivi.
We need to identify the given initial conditions in terms of eigenvectors:
(i) x(0) = (1,2)T=v2.
x(t) = 1
2e2t
(ii) x(0) = (1,−2)T=v1.
x(t) = 1
−2e−2t
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Eigenvalues and Eigenvectors Analysis of Linear Systems and more Exercises Aerospace Engineering in PDF only on Docsity!

AAE 421

Homework 8 - Solution

Exercise 1 (a) Given the matrix

A =

[ 0 1

]

we need to identify the eigenvalues and eigenvectors. det(λI − A) = det

([ (^) λ − 1 − 4 λ

])

= λ^2 − 4 = (λ + 2) (λ − 2)

Hence the eigenvalues are: λ 1 / 2 = ±. The eigenvalues are defined such that the determinant of the matrix is 0. Hence, we know that there exists at least one non-trivial ( 6 = 0 ) solution vector satisfying (λI − A)v = 0. So the geometric multiplicity is greater or equal to 1 and the resulting matrix will be singular. (i) λ 1 = -2: (^) [ − 2 − 1 − 4 − 2

]

v 1 = 0

Pick v 1 , 1 = 1 ⇒ v 1 , 2 = -2. Hence, v 1 = (1, -2)T^. (ii) λ 2 = 2: (^) [ 2 − 1 − 4 2

]

v 2 = 0

Pick v 2 , 1 = 1 ⇒ v 2 , 2 = 2. Hence, v 2 = (1, 2)T^. (b) Recalling ˙x = Ax solutions (see Section 9.6 of the notes): x(t) =

i

ai eλi^ t^ vi such that: x(0) =

i

aivi.

We need to identify the given initial conditions in terms of eigenvectors: (i) x(0) = (1, 2)T^ = v 2. x(t) =

e^2 t

(ii) x(0) = (1, −2)T^ = v 1. x(t) =

e−^2 t

(iii) x(0) = (1, 0)T^ = 0. 5 v 1 + 0. 5 v 2.

x(t) =

e−^2 t^ +

e^2 t

Exercise 2 Given the matrix A =

[ 1

]

we compute the eigenvalues and eigenvectors as in the previous exercise: det(λI − A) = det

([−1 + λ − 2 2 −1 + λ

])

= λ^2 − 2 λ + 5 ⇒ λ 1 / 2 = 1 ±

Hence the eigenvalues are: λ 1 / 2 = 1 ± 2 j and we obtain the eigenvectors: (i) λ 1 = 1 + 2j: (^) [ 2 j − 2 2 2 j

]

v 1 = 0 The matrix is singular, pick v 1 , 1 = 1 ⇒ v 1 , 2 = j. Hence, v 1 = (1, j)T^. (ii) λ 2 = 1 − 2 j ⇒ (^) [ − 2 j − 2 2 − 2 j

]

v 2 = 0 Hence, v 2 = (j, 1)T^. Without using calculations: a

x 0 =

= real(v 1 )

x(t) = et

( (^) cos(2t) −sin(2t)

b

x 0 =

= real(v 2 )

x(t) = et

(sin(2t) cos(2t)

c

x 0 =

= real(v 1 ) + real(v 2 )

x(t) = et

(cos(2t) + sin(2t) cos(2t) − sin(2t)

So we get the eigenvectors associated with the eigenvalues as:

λ 1 = − 1 , λ 2 = 1, λ 3 = −j, λ 4 = j

v ¯ 1 =

 ,^ v¯^2 =

 ,^ ¯v^3 =

−j − 1 j

 ,^ ¯v^4 =

j − 1 −j

Exercise 4 (a) Recalling Homework 5, Exercise 1 we get:

mq¨ 1 = −c · q˙ 1 − k · q 1 + C · ( ˙q 2 − q˙ 1 ) + K · (q 2 − q 1 ) mq¨ 2 = −c · q˙ 2 − k · q 2 + C · ( ˙q 1 − q˙ 2 ) + K · (q 1 − q 2 ) relabeling the variables: x 1 = q 1 , x 2 = ˙q 1 , x 3 = q 2 , x 4 = ˙q 2 the state space was obtained as:   

x ˙ 1 x ˙ 2 x ˙ 3 x ˙ 4

x 2 − (^) mc x 2 − (^) mk x 1 + Cm (x 4 − x 2 ) + Km (x 3 − x 1 ) x 4 − (^) mc x 4 − (^) mk x 3 + Cm (x 2 − x 4 ) + Km (x 1 − x 3 )

this formulation can be rearranged to:   

x ˙ 1 x ˙ 2 x ˙ 3 x ˙ 4

x 2 −k+mK x 1 −c+mC x 2 +Km x 3 + Cm x 4 K^ x^4 m x^1 mC x^2 −k+mK x^3 −c+mC x^4

Hence we obtain the A-matrix as:

A =

−k+mK −c+mC Km Cm K^0 0 0 m Cm −k+mK −c+mC

such that: ¯x˙ = Ax¯. (b) Using the script Listing 1: script Exercise 4 m^ clear=1; K^ all ;=49; Cclc ;=2; k=1; c =0.5; kKm= (k+K) /m; cCm= (c+C) /m; Cm= C/m; Km= K/m; A[v= (^) , [0 ,1 ,0 ,0;lambda] = - kKmeig (, (^) A-)cCm, Km, Cm; 0 ,0 ,0 ,1; Km, Cm, - kKm, - cCm];

we obtain the following eigenvalues and eigenvectors for our system A-matrix (note that the A-matrix is real. Therefore we get complex conjugates if we have complex eigenvalues): λ 1 / 2 = − 2. 2500 ± 9. 6921 j, λ 3 / 4 = − 0. 2500 ± 0. 9682 j

v ¯ 1 / 2 =

− 0. 0160 ∓ 0. 0689 j

  1. 7036
  2. 0160 ± 0. 0689 j − 0. 7036

 ,^ ¯v^3 /^4 =

− 0. 1250 ± 0. 4841 j

  1. 5000 − 0. 1250 ± 0. 4841 j

From there we see, that one mode has a frequency, which is approximately 10 times higher than the other. However, the damping ζ of the modes is more equal as the numbers approximately ”scale” with 10. Note, that the first sign stands for the first eigenvalue/-vector ⇒ ∓ in ¯v 1 / 2.

(c) If we choose an initial condition that is a multiple of the eigenvector associated with the eigenvalue of the mode, we get selected excitation. If we have complex eigenvalues/- vectors, then we would have complex modes. However, we do not see them in a real system in particular as they always come in pairs, causing oscillations. As we have a real A-matrix, we can choose either the real and/or the imaginary part of the eigenvector as a real initial condition for our system (see Section 9.5.1). Also any linear combination of the eigenvectors would be a valid initial condition. Using any combination of the real (e.g. R(¯v 1 ) = ¯v 1 + ¯v 2 ) and the imaginary part (e.g. I(¯v 1 ) = −j(¯v 1 − ¯v 2 )) of the complex conjugate pairs of eigenvalues/-vectors, we can reconstruct the inital conditions from Exercise 6 in Homework 1. Using the SIMULINK model from there (see solutions for Homework 1), we can pick: (i) q 2 (0) = q 1 (0) = 1, q˙ 2 (0) = ˙q 1 (0) = 0 to excite the in-phase mode for λ 3 / 4 having a low frequency. (¯x(0) = 2·R(¯v 3 )+scale·I(¯v 3 ) with (^) scale^2 ≈ 00 ..^48411250 ⇒ scale ≈ 0 .516) (ii) q 2 (0) = −q 1 (0) = 1, q˙ 2 (0) = ˙q 1 (0) = 0 to excite the out-of-phase mode for λ 1 / 2 having a high frequency. (¯x(0) = scale·I(¯v 1 ) with scale ≈ (^0). 06891 ⇒ scale ≈ 14 .51) Now we can recall the solution for Exercise 6 in Homework 1, which is shown in Figure 1. As expected, we see a slow in-phase mode for case I and a much faster out-of-phase mode for case II. That’s what we already observed in Homework 1. Now, we are also able to identify the associated damping and frequencies as we calculated λ = α + jω, which relates to the natural frequency ωn and damping ζ of a second order system according to Section 9.3.2 of the notes.

Exercise 5 The system can be written as:

x˙ =

︸ ︷︷ A ︸

x

The A-matrix is given in companion form (see Exercise 3) and the characteristic polymoial is: p(s) = s^3 − s^2 + 4s − 4 hint = (s − 1) (s^2 + 4) Hence, we get: λ 1 = 1 and λ 2 / 3 = ± 2 j. Solving for eigenvectors

(λiI − A) vi = 0 ; λiI − A =

λi − 1 0 0 λi − 1 − 4 4 λ − 1

 (^) ⇒ vi =

λi λ^2 i

Hence,

λ 1 = 1, λ 2 = − 2 j, λ 3 = 2j

v ¯ 1 =

 (^) , ¯v 3 =

− 2 j − 4

 (^) , v¯ 4 =

+2j − 4

(a) For x(0) = 2 v 1 :

x(t) = 2 et

(b) For x(0) = (− 1 , 0 , 4)T^ = −^12 (v 2 + v 3 )

x(t) = −^12

− 2 j − 4

 (^) e−^2 j t^ +

2 j − 4

 (^) e^2 j t

 = −^1

 (^) cos 2t +

 (^) sin 2t

where ejωt^ = cos ωt + j sin ωt. Hence,

x(t) =

− cos 2t −2 sin 2t 4 cos 2t

Exercise 6 The most recent work on the SIMULINK flight model was done in Homework 6, Exercise 3. See the solutions there for how to setup the model shown in Figure 2. Running the script in Listing 2, we solve the different tasks.

Listing 2: Exercise 6: script clear InitCessna all ; (^) ; clc ;tSim clear=300; (^) partf i g u r e s =1; ;ue = [0; 0]; % find trim first

% %disp ( a ’ ’) ; disp ( ’a ) trim con dit ions ’) ; if ([ partxe, ==1)ueSave % (^) ] gliding= trim( ’ FlySys ’ , x0Cess182, [0; 0] ,[150; 0] ,[] ,[1 ,2] ,[]) ; else[ (^) xe%, horizontalueSave] = trim( ’ FlySys ’ , x0Cess182, [0; 100] ,[150; 0] ,[] ,2 ,2) ; enddisp ([ ’ Trim el = ’ , num2str (rad2deg(ueSave(1) ) ) , ’ deg ’ ]) ; disp ([disp ([ ’ Trim’ Trim velal == ’’ ,, num2str (num2str (xerad2deg (1) ) , (^) (xe’ ft / sec ’(2) ) ) , ]) ;’ deg ’ ]) ; disp ([disp ([ ’ Trim’ Trim (^) qtheta == ’’ ,, num2str (num2str (rad2degxe (4) ) , (xe’ (3) ) ) ,rad / sec ’ ’ (^) ]) ;deg ’ ]) ;

% %disp ( b ’ ’) ; disp ( ’b ) A - matrix ’) ; disp ( ’ ’) ; [A,B,C,D]= linmod( ’ FlySys ’ , xe, ueSave) ; A % %disp ( c ’ ’) ; disp ( ’c ) e i g e n v a l u e s / - vectors ’) ; disp ( ’ ’) ; [v, lam] = eig (A) % %disp ( d ’ ’) ; disp ( ’d ) short / phugoid mode ’) ; disp ( ’ ’) ; lam = eig (A) ; disp ([disp ([ ’’ shortphugoid : : ’’ ,, num2str (num2str (lamlam(1) ) ]) ;(3) ) ]) ; %% MatlabMatlab sortssorts automaticallyautomatically

% %disp ( e ’ ’) ; disp ( ’e ) periods ’) ; disp ( ’ ’) ; disp ([disp ([ ’’ shortphugoid : : ’’ ,, num2str (2* pi / imag (num2str (2* pi / imag (lamlam(1) ) ) ,(3) ) ) , ’’ sec ’sec ’ ]) ;]) ;

% % ue f= simulationsueSave; sys = s s (A,B,C,D) ; for (^) ifi =1:2 ( i ==1) tSim=3; else tSim=250; end ; tL = 0:0.1:tSim; xpert[tNL, (^) xNL= 0.05* real (] = sim( ’ FlySys ’v(: ,2* i ) ) ;) ; xR=xe+ xpert ; x0Cess182 = xR; [~ ,~ ,if ( i (^) ==1)xL] mode= lsim= ’ ( sysmode : , zeros ([ length ( short period ’tL; ) ,else length ( modeue= ’ ) ]) ,mode : tL ,phugoid ’ xpert ) ;; end ;

pfigure (4* = plot (^ tNLi^ -3) ;, xNL%^ V(: ,1) -xe (1) , tL, xL(: ,1) , ’ -. ’) ; grid on; y^ t^ ==^ title ([ylabel (^ ’\ delta’\ delta^ VV^ [ ft / s ] ’p ’^ ,^ num2str () ; SetFigure^ part^ ) ,mode (p, ]) ;x, yx, =^ t xlabel (, 3) ;^ ’t^ [ s ] ’) ; saveas (4* i -3 ,[ ’ Vpart ’ , num2str ( part ) , num2str ( i ) , ’. jpg ’ ]) ; pfigure (4* = plot (^ tNLi^ -2) ;, rad2deg%^ alpha(xNL(: ,2) -xe(2) ) , tL, rad2deg(xL(: ,2) ) , ’ -. ’) ; y^ t^ ==^ title ([ylabel (^ ’\ delta’\ delta^ \ alpha\ alpha^ [ deg ] ’p ’^ ,^ num2str () ; grid onpart; ) ,SetFiguremode]) ;^ x(=p^ , xlabel (x, y, ’tt ,^ [ s ] ’3) ; ) ; saveas (4* i -2 ,[ ’ Alpart ’ , num2str ( part ) , num2str ( i ) , ’. jpg ’ ]) ; pfigure (4* = plot (^ tNLi^ -1) ;, rad2deg%^ theta(xNL(: ,3) -xe(3) ) , tL, rad2deg(xL(: ,3) ) , ’ -. ’) ; y^ t^ ==^ title ([ylabel (^ ’\ delta’\ delta^ \ theta\ theta^ [ deg ] ’p ’^ ,^ num2str () ; grid onpart; ) ,SetFiguremode]) ;^ x(=p^ , xlabel (x, y, ’tt ,^ [ s ] ’3) ; ) ; saveas (4* i -1 ,[ ’ Tepart ’ , num2str ( part ) , num2str ( i ) , ’. jpg ’ ]) ; pfigure (4* = plot (^ tNLi^ ) ;^ , %^ rad2degq (xNL(: ,4) -xe(4) ) , tL, rad2deg(xL(: ,4) ) , ’ -. ’) ; y^ t^ ==^ title ([ylabel (^ ’\ delta’\ delta^ qq^ [ deg / sec ] ’p ’^ ,^ num2str () ; grid^ part on) ,mode; SetFigure]) ;^ x=^ xlabel ( (p, x,^ ’ty^ , [ s ] ’t , ) ;3) ; saveas (4* i ,[ ’ Qpart ’ , num2str ( part ) , num2str ( i ) , ’. jpg ’ ]) ;

(d) According to the imaginary part of the eigenvalues λ = α + j ω, we get a higher frequency ω for λ 1 / 2 , which is the short period. Hence: λ 1 / 2 ⇒ short period mode , λ 3 / 4 ⇒ phugoid mode (e) Note that MATLAB is sorting the eigenvalues such that the real parts are ordered. Therefore we can determine the short period by the first eigenvalue λ = α + j ω. From there we will get the period as: T = (^2) ωπ. Tshort = 3.5089 sec , Tphugoid = 25.0729 sec

(f/g) The plots, we obtained by the simulation using the script in listing 2, are shown in Figures 5 and 6. Note that you want to put a small pertubation on the equilibrium values. Therefore we perturb the initial state by 0.05 of the real part of the normalized eigenvector. However, we still see that our velocity response is slightly different for the linear and nonlinear simulation. Investigating it further, we will see that the nonlinear simulation also has a slight excitation of the phugoid mode in it, such that we get a very slow mode, which overlays the fast results of the short period. The plots confirm the difference and the order for the periods of the different modes. The short period mode is very well damped and does not overshoot very much. Whereas the phugoid has a light damping and a longer period. However, it is not so sensitive to initial conditions as an initial short period contribution would be decaying much faster. We also note, that both of our modes are stable. Therefore we can match the linear with the nonlinear results close to the equilibrium state. According to the eigenvectors, we will also see a difference in excitation. Picking the phugoid mode, we are mainly concerned about a change in velocity. Looking at the plots confirms that as for example α changes in the 4th digit of its value in degree. We see a damped oscillations for the phugoid mode whereas the short period damps out very quickly. Also, the pertubation for q is in a different direction (different sign than the other pertubation entries), which gets obvious for the short period mode. (♥) Having the level flight conditions: th = 100 hp and el = 0, we obtain: (a) The trim conditions (⇒ qe^ = 0 ) are (see Homework 4 as well):

V e^ = 182. (^94) secft, αe^ = 0.8249 deg, θe^ = 0.8249 deg, ele^ = 1.5919 deg, the^ = 100 hp

(b) Applying the linmod command returns the A-matrix as:

A =

Figure 3: Exercise 6, ♣ short period mode

(c) The eigenvalues and vectors will be computed with [v, lam] = eig(A): λ 1 / 2 = − 4. 2882 ± 2. 2353 j, λ 3 / 4 = − 0. 0195 ± 0. 2001 j

¯v 1 / 2 =

  1. 4038 ± 0. 1268 j
  2. 1838 ± 0. 1813 j
  3. 1560 ± 0. 0813 j − 0. 8505

 ,^ v¯^3 /^4 =

  1. 0003 ∓ 0. 0000 j
  2. 0009 ± 0. 0062 j − 0. 0013 ± 0. 0001 j

The order of the signs (see ∓, ±) is chosen according to the sign of the complex conjugate eigenvalue the vector is refering to. We also note that the 3rd and 4th eigenvector is close to a unit-vector, which would give us a defective eigenvalue. (d) According to the imaginary part of the eigenvalues λ = α + j ω, we get a higher frequency ω for λ 1 / 2 , which is the short period. Hence: λ 1 / 2 ⇒ short period mode , λ 3 / 4 ⇒ phugoid mode (e) Note that MATLAB is sorting the eigenvalues such that the real parts are ordered. Therefore we can determine the short period by the first eigenvalue λ = α + j ω. From there we will get the period as: T = (^2) ωπ. Tshort = 2.8109 sec , Tphugoid = 31.3978 sec (f/g) The plots, we obtained by the simulation, using the script in Listing 2 are shown in Figures 5 and 6. See discussion for the previous case. The flying behavior did not change that much. Just the frequencies and numbers are a bit different, such that the modes are faster now as we are flying with a higher velocity V.

Exercise 7 We determine the system stability by looking at the eigenvalues of the A-matrix and ”calculate” the roots according to the notes on p. 169 where p(s) = α 2 s^2 + α 1 s + α 0 with α 2 > 0: (♠) ( (^) x˙ 1 x ˙ 2

[− 2 1

]

︸ ︷︷ A ︸

(x 1 x 2

⇒ det(sI − A) = det

([s + 2 − 1 − 1 s + 1

])

det(sI − A) = (s + 2) (s + 1) − 1 = s^2 + 3s + 1 = 0! (λ 1 / 2 = − 1. 5 ± √ 2. 25 − 1) The real part of both eigenvalues is negative (α 1 , α 2 > 0). Hence, the system is stable. (♣) ( (^) x˙ 1 x ˙ 2

[− 2 1

]

A

(x 1 x 2

⇒ det(sI − A) = det

([s + 2 − 1 − 1 s − 1

])

det(sI − A) = (s + 2) (s − 1) − 1 = s^2 + s − 3 = 0! (λ 1 / 2 = − 0. 5 ± √ 0 .25 + 3)

Figure 5: Exercise 6, ♥ short period mode

The real part of at least one of the eigenvalues is positive (α 0 < 0). Hence, the system is unstable. (♦) ( (^) x˙ 1 x ˙ 2

[− 1 1

]

A

(x 1 x 2

⇒ det(sI − A) = det

([s + 1 − 1 4 s + 1

])

det(sI − A) = (s + 1)^2 + 4 = s^2 + 2s + 5 = 0! (λ 1 / 2 = − 1 ± 2 j) The real part of both eigenvalues is negative (α 1 , α 2 > 0). Hence, the system is stable. (♥) ( (^) x˙ 1 x ˙ 2

[ 0

]

︸ ︷︷ A ︸

(x 1 x 2

⇒ det(sI − A) = det

([s − 2 4 s

])

det(sI − A) = s^2 + 8 = 0! ⇒ λ 1 / 2 = ± 2

2 j All eigenvalues lie on the imaginary axis. Hence, the system is neutrally stable.

Exercise 8 Note that A is the same from Exercise 3. Since there is an eigenvalue in the open left-hand plane, the system is unstable.