Docsity

Eigenvalue Analysis of Matrices A, B and Stability Check using Routh-Hurwitz Test - Prof. , Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
EEL๎˜ƒ3105๎˜ƒFall๎˜ƒ2011๎˜ƒ
Homework๎˜ƒ6๎˜ƒ
Consider๎˜ƒmatrices๎˜ƒ
๎˜ƒ12
123
13
4
01
010
001
Ak
Bbb
C
ccc
๏ƒฉ๏ƒน
๏€ฝ๏ƒช๏ƒบ
๏ƒซ๏ƒป
๏ƒฉ๏ƒน
๏€ฝ๏ƒช๏ƒบ
๏€ญ๏€ญ
๏ƒซ๏ƒป
๏ƒฉ
๏ƒน
๏ƒช
๏ƒบ
๏€ฝ
๏ƒช
๏ƒบ
๏ƒช
๏ƒบ
๏€ญ
๏€ญ๏€ญ
๏ƒซ
๏ƒป
๎˜ƒ
1. For๎˜ƒA,๎˜ƒchoose๎˜ƒk๎˜ƒ=๎˜ƒ3.๎˜ƒFind๎˜ƒthe๎˜ƒeigenvalues๎˜ƒof๎˜ƒthe๎˜ƒresulting๎˜ƒmatrix.๎˜ƒAre๎˜ƒthey๎˜ƒreal?๎˜ƒWhy?๎˜ƒ
Solution:๎˜ƒThe๎˜ƒcharacteristic๎˜ƒpolynomial๎˜ƒof๎˜ƒA๎˜ƒis๎˜ƒ๎˜ƒ
๎˜ƒ2
13
det( ) det 5 5
34
IA
๏ฌ
๏ฌ๏ฌ๏ฌ
๏ฌ
๏€ญ๏€ญ
๏ƒฉ๏ƒน
๏€ญ๏€ฝ ๏€ฝ๏€ญ๏€ญ
๏ƒช๏ƒบ
๏€ญ๏€ญ
๏ƒซ๏ƒป
๎˜ƒ
Itโ€™s๎˜ƒroots๎˜ƒare๎˜ƒgiven๎˜ƒby๎˜ƒ5.85๎˜ƒand๎˜ƒโ€0.85๎˜ƒwhich๎˜ƒare๎˜ƒthe๎˜ƒeigenvalues๎˜ƒof๎˜ƒA.๎˜ƒThey๎˜ƒare๎˜ƒreal.๎˜ƒThe๎˜ƒreason๎˜ƒis๎˜ƒthat๎˜ƒ
the๎˜ƒmatrix๎˜ƒA๎˜ƒis๎˜ƒa๎˜ƒreal๎˜ƒsymmetric๎˜ƒmatrix๎˜ƒfor๎˜ƒk=3.๎˜ƒAlso,๎˜ƒnote๎˜ƒthat๎˜ƒthe๎˜ƒsum๎˜ƒof๎˜ƒeigenvalues๎˜ƒis๎˜ƒ5๎˜ƒwhich๎˜ƒis๎˜ƒthe๎˜ƒ
trace๎˜ƒof๎˜ƒA๎˜ƒand๎˜ƒtheir๎˜ƒproduct๎˜ƒis๎˜ƒโ€5๎˜ƒwhich๎˜ƒis๎˜ƒthe๎˜ƒdeterminant๎˜ƒof๎˜ƒA.๎˜ƒ
2. Find๎˜ƒa๎˜ƒformula๎˜ƒfor๎˜ƒeigenvalues๎˜ƒof๎˜ƒA๎˜ƒas๎˜ƒa๎˜ƒfunction๎˜ƒof๎˜ƒk.๎˜ƒ๎˜ƒSuppose๎˜ƒk๎˜ƒis๎˜ƒa๎˜ƒdesign๎˜ƒparameter๎˜ƒ
which๎˜ƒranges๎˜ƒfrom๎˜ƒโ€100๎˜ƒto๎˜ƒ+100.๎˜ƒUse๎˜ƒthe๎˜ƒformula๎˜ƒto๎˜ƒplot๎˜ƒthe๎˜ƒeigenvalues๎˜ƒof๎˜ƒA๎˜ƒas๎˜ƒa๎˜ƒfunction๎˜ƒ
of๎˜ƒk๎˜ƒin๎˜ƒthe๎˜ƒcomplex๎˜ƒplane.๎˜ƒUse๎˜ƒMATLAB๎˜ƒto๎˜ƒverify๎˜ƒyour๎˜ƒanswer.๎˜ƒSuch๎˜ƒa๎˜ƒplot๎˜ƒis๎˜ƒcalled๎˜ƒroot๎˜ƒ
locus.๎˜ƒComment๎˜ƒon๎˜ƒyour๎˜ƒresults.๎˜ƒ
Solution:๎˜ƒNow๎˜ƒwe๎˜ƒwill๎˜ƒlet๎˜ƒk๎˜ƒremain๎˜ƒa๎˜ƒ๎˜ƒdesign๎˜ƒparameter.๎˜ƒThe๎˜ƒcharacteristic๎˜ƒpolynomial๎˜ƒis๎˜ƒ๎˜ƒ
๎˜ƒ2
13
det( ) det 5 (4 3 )
4
I
Ak
k
๏ฌ
๏ฌ๏ฌ๏ฌ
๏ฌ
๏€ญ๏€ญ
๏ƒฉ๏ƒน
๏€ญ๏€ฝ ๏€ฝ๏€ญ๏€ซ๏€ญ
๏ƒช๏ƒบ
๏€ญ๏€ญ
๏ƒซ๏ƒป
๎˜ƒ
Itโ€™s๎˜ƒroots๎˜ƒwhich๎˜ƒare๎˜ƒthe๎˜ƒeigenvalues๎˜ƒof๎˜ƒA๎˜ƒare๎˜ƒgiven๎˜ƒby:๎˜ƒ๎˜ƒ
๎˜ƒ5912
2
k๏‚ฑ๏€ซ ๎˜ƒ
We๎˜ƒneed๎˜ƒto๎˜ƒplot๎˜ƒthese๎˜ƒtwo๎˜ƒroots๎˜ƒas๎˜ƒa๎˜ƒfunction๎˜ƒof๎˜ƒk.๎˜ƒFirst,๎˜ƒlet๎˜ƒus๎˜ƒanalyze๎˜ƒthe๎˜ƒbehavior๎˜ƒof๎˜ƒthese๎˜ƒroots.๎˜ƒTheir๎˜ƒ
sum๎˜ƒwill๎˜ƒalways๎˜ƒbe๎˜ƒ2.5.๎˜ƒIf๎˜ƒ9+12K๎˜ƒis๎˜ƒnonโ€negative,๎˜ƒi.e.,๎˜ƒ0.75 100,k
๏€ญ
๏‚ฃ๏‚ฃ ,๎˜ƒthen๎˜ƒthe๎˜ƒroots๎˜ƒwill๎˜ƒbe๎˜ƒreal๎˜ƒ
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Eigenvalue Analysis of Matrices A, B and Stability Check using Routh-Hurwitz Test - Prof. and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

EEL 3105 Fall 2011

Homework 6

Consider matrices

1 2 1 2 3

A

k

B

b b

C

c c c

  1. For A, choose k = 3. Find the eigenvalues of the resulting matrix. Are they real? Why? Solution: The characteristic polynomial of A is

det( ) det 5 5

I A

๏ƒฉ ๏€ญ^ ๏€ญ ๏ƒน

๏ƒซ ๏€ญ^ ๏€ญ ๏ƒป

Itโ€™s roots are given by 5.85 and โ€0.85 which are the eigenvalues of A. They are real. The reason is that the matrix A is a real symmetric matrix for k=3. Also, note that the sum of eigenvalues is 5 which is the trace of A and their product is โ€ 5 which is the determinant of A.

  1. Find a formula for eigenvalues of A as a function of k. Suppose k is a design parameter which ranges from โ€ 100 to +100. Use the formula to plot the eigenvalues of A as a function of k in the complex plane. Use MATLAB to verify your answer. Such a plot is called root locus. Comment on your results. Solution: Now we will let k remain a design parameter. The characteristic polynomial is

det( ) det 1 3 2 5 (4 3 )

I A k

k

๏ƒฉ ๏€ญ^ ๏€ญ ๏ƒน

๏ƒซ ๏€ญ^ ๏€ญ ๏ƒป

Itโ€™s roots which are the eigenvalues of A are given by:

๏‚ฑ ๏€ซ k

We need to plot these two roots as a function of k. First, let us analyze the behavior of these roots. Their

sum will always be 2.5. If 9+12K is nonโ€negative, i.e., ๏€ญ0.75 ๏‚ฃ k ๏‚ฃ 100,, then the roots will be real

adding up to 5. At k=100, the eigenvalues are โ€14.89 and 19.89. At k=โ€0.75, the eigenvalues are 2.5 and 2.5, i.e., we have repeated eigenvalues. In problem 1, we saw that for k=3, the eigenvalues are 5.85 and โ€0.85. At k=0, they are 1 and 4. Thus, as k decreases from 100 to โ€0.75, the eigenvalues get closer to each

other until they meet at 2.5. Now, what happens for the remaining range of k, ๏€ญ 100 ๏‚ฃ k ๏€ผ ๏€ญ0.75?

Well, the first thing we can conclude is that the eigenvalues are complex as the quantity under the square root sign is negative. In this range of k, the eigenvalues are

๏€ญ 2.5 ๏‚ฑ j ( 9๏€ญ ๏€ญ12 ) / 4 k

For k=โ€100, the eigenvalues are 2.5 ๏‚ฑ j 17.25. As k increases from โ€ 100 to โ€0.75, these two complex

roots get closer to each other along the vertical direction and at k=โ€0.75, they meet at 2.5. This completes the picture of the eigenvalues as k varies from โ€ 100 to 100. The plot is shown below. Figure 1 We can use MATLAB to make this plot as well. [ Please see my comments on the color code for figures in MATLAB in Prob 4 solution. Here I have played around with the color code! ] k=-100:.01:100; EA=zeros(20000,2); for n=1:1: b1=k(n); A=[1 3;b1 4]; v= eig(A); EA(n,1)=v(1);

The pattern appears to be as follows: matrices have 1โ€™s on the superโ€diagonal [diagonal above the diagonal] and the coefficients in the last row appear as coefficients of the characteristic polynomial. We can see if the following guess for an nxn matrix is correct: 1 2 3 1 2 2 1 3 2 1

det( ) ...

n n n n n n

A

I A

๏ฌ ๏ฌ ๏ก ๏ฌ ๏€ญ^ ๏ก ๏€ญ๏ฌ๏€ญ ๏ก ๏ฌ ๏ก ๏ฌ ๏ก

The easiest way to try to do this is proof by induction. So, suppose this formula holds for (nโ€1) x (nโ€1) matrices of this form. Can we then show that it holds for n x n matrices of the same form? First, we write 1 2 3

n

I A

๏€ญ ๏€ฝ ๏ƒช^ ๏ƒบ

Let us compute the determinant of this matrix by expanding it via the first column. Now the cofactor of 1,1 entry ๏ฌ is precisely an (nโ€1) x (nโ€1) matrix of the same form. Since we have assumed that the formula holds for (nโ€1)x(nโ€1) matrices, we can use it for the cofactor of the 1,1 term. Now, the only other nonโ€ zero entry in the first column is ๏ก 1. It cofactor is (โ€1) (nโ€1).^ Thus, we get the characteristic polynomial of A to be ( 1) ( 1) 1 1 2 3 2 1 3 2 1 1 2 2 1 3 2 1

det( ) ( (1,1)) ( 1) ( 1)

[ ... ] ( 1)

n n n n n n n n n n n n n

๏ฌ I A ๏ฌ cofactor ๏ก

๏€ซ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ญ

This shows that the formula holds for n if we assume it holds for (nโ€1). Since we have shown it for n=2, by induction we have shown it for any n. These types of matrices are called companion matrices. By the way, we can transpose these matrices and get another form of companion matrices with 1โ€™s along the subโ€diagonal and the ๏กโ€™s along the last column. Companion matrices play a role in the theory of digital filters. Digital filters are implementations of analog filters using digital signal processing chips. [In the old days, analog filters were constructed using R, L, C and operational amplifiers.] Digital signal processing is a very large business. Texas Instruments,

ST Microelectronics, etc. have large businesses in digital signal processing chips. Such filters are used in consumer electronics devices such as televisions, music players, DVD players, etc. See http://en.wikipedia.org/wiki/Digital_signal_processing, http://www.ti.com/ for interesting information these chips.

  1. Fix b 2 =1. Suppose b 1 be a design parameter that ranges from 0 to 100. It may represent the value of a physical component ( e.g., mass or resistance ). Find the eigenvalues of B as a function of b 1 and plot them in the complex plane. Comment on your answer. Suppose for certain design considerations (having to do with transient response), we want the angle of

the eigenvalues to be ๏‚ฑ 3 ๏ฐ / 4.Choose the value of the design parameter b 1 to satisfy this

constraint. Solution: We start by evaluating the characteristic polynomial of B. 2 2 1 1 2

det( I B ) det b b

b b

Now b 2 =1. We can substitute this value into the characteristic polynomial and solve for roots of 2

๏ฌ ๏€ซ ๏ฌ๏€ซ b 1 ๏€ฝ0.

We can compute the roots of this quadratic. For b1 between 0 and 0.25, they are real and are given by 1 1 1 2

b

b

๏ฌ ๏ฌ

For b 1 > 0.25, they are complex and are given by 1 1 1 2

j b

j b

๏ฌ ๏ฌ

At b 1 = 0, they are 0 and โ€1. As b 1 increases from 0 to 0.25, the eigenvalues come closer to each other such that at b 1 =0.25, they coalesce at โ€0.5. For b 1 > 0.25, they become complex with real part being โ€0.5. We can plot this on the complex plane as below:

We can use MATLAB for plotting as well as visualizing the geometry. MATLAB Code: b=0:.01:100; EA=zeros(10000,2); for n=1:1: b1=b(n); B=[0 1;-b1 -1]; v= eig(B); EA(n,1)=v(1); EA(n,2)=v(2); end plot(EA) ๏€  Figure 4 In Figure 4, I donโ€™t like the color code MATLAB chooses because it seems to indicate that the eigenvalue from the positive imaginary part [blue] goes to the right toward the origin while the one with the negative imaginary part [red] goes left to โ€ 1 after they both meet each other at โ€0.5 on the real axis. Other than this minor quibble, the plot in Figure 4 is very much like the plot we got from our own analytical calculations in Figure 3 above.

We can now zoom into the part where the เต‡ 3 ๏ฐ/4 lines will intersect the plot as shown below.

-1 -0.9 -0.8 -0.7 -0.6 -0.5 -0.4 -0.3 -0.2 -0.1 0

    • 0 2 4 6 8 10

Figure 5

  1. Let A be an nxn matrix. Show that eigenvalues of A are the same as those of A T^. This is easy. Eigenvalues of A are the roots of det(๏ฌIโ€A). Now, det(๏ฌIโ€A) = det(๏ฌIโ€A)T^ = det(๏ฌIโ€ A T^ ). The roots of the last polynomial are the eigenvalues of A T^. Thus, the eigenvalues of A and A T^ are the same. We have also shown in the process that the characteristic polynomial of A and A T^ are the same.
  2. Consider matrices
  1. Now suppose A and B are two matrices (not necessarily square) such that AB and BA are both well defined. Suppose๏€ ๏ฌ is a nonโ€zero eigenvalue of AB. Show that it is also an eigenvalue of BA. Solution. Suppose ๏ฌ is a nonโ€zero eigenvalue of AB. Then there exists a nonโ€zero eigenvector v such that

ABv ๏€ฝ ๏ฌ v

We need to show that ๏ฌ is also an eigenvalue of BA. We will do this by producing an eigenvector of BA. Note that Bv cannot be zero since ๏ฌ is nonโ€zero. Let w=Bv. Now,

BAw ๏€ฝ BABv ๏€ฝ B ๏ฌ v ๏€ฝ ๏ฌ Bv ๏€ฝ๏ฌ w

Thus, w is an eigenvector of BA with eigenvalue ๏ฌ.

Not for grading [hard problem for exploration and challenge]:

  1. Let us return to Problem 3. Recall I told you in class that in order to ensure stability, all eigenvalues should have negative real parts. If we have numerical values for the parameters b 1 , b 2 , (or c 1 , c 2 , and c 2 ), then we can use MATLAB to compute the eigenvalues and see if the real parts of eigenvalues are negative. But if they are unknown parameters, then this task is harder. This is especially so as the matrix size gets larger. How could you check if all eigenvalues have negative real parts in terms of the parameters? Explore the web resources to find an answer to this question. Solution: Stability of a system requires that the eigenvalues have negative real parts. In other words, all the eigenvalues must be in the left half of the complex plane. From a mathematical point of view, we need to check if all roots of a polynomial (the characteristic polynomial) are in the left half of the complex plane. When theory of control systems was being developed, this was a major issue since computation of eigenvalues was very hard. This problem was solved by E. J. Routh and the resulting test is called Routhโ€Hurwitz test. It is an algorithm that takes coefficients of the characteristic polynomial and does some simple algebraic calculations and tests whether all roots are in the left half plane. For details of the algorithm, see http://en.wikipedia.org/wiki/Routh%E2%80%93Hurwitz_stability_criterion and the books cited at the end of that webpage.