Distinct Eigenvalues in matlab

AI Thread Summary
Eigenvalues and their negatives are considered distinct when analyzing matrices. The discussion revolves around a matrix with eigenvalues 4, 1, -2, 3, and -1, which should theoretically allow for five linearly independent eigenvectors for diagonalization. However, confusion arises regarding the characteristic polynomial and the potential repetition of eigenvalues, which could affect the diagonalizability. The participants confirm that the eigenvalues are distinct, and the process of finding eigenvectors is clarified through specific equations derived from the matrix. Ultimately, the method of determining eigenvalues and eigenvectors using MATLAB is validated, while a manual approach is also discussed.
samurye
Messages
5
Reaction score
0
All I want to know is if a number and its negative appear as eigenvalues of a matrix, are they considered distinct?

I have 4,1,-2,3 and -1 as eigenvalues of a particular matrix, but I can't get 5 linearly independent eigenvectors (to diagonalise the original matrix). I've plugged away and used Matlab and this is the only way it would make sense to me.
 
Physics news on Phys.org
samurye said:
All I want to know is if a number and its negative appear as eigenvalues of a matrix, are they considered distinct?
yes
samurye said:
I have 4,1,-2,3 and -1 as eigenvalues of a particular matrix, but I can't get 5 linearly independent eigenvectors (to diagonalise the original matrix). I've plugged away and used Matlab and this is the only way it would make sense to me.

Are you sure you have the right characteristic polynomial or haven't otherwise made a sign error? What you're saying makes me think that one of the eigenvalues is repeated, in which case they wouldn't be distinct. If the eigenspace for the repeated eigenvalue is of dimension 1, then you'll get only four vectors total.
 
The problem is whether the following matrix is diagonalisable:

4 0 0 1 0
0 1 0 0 0
1 0 -2 0 0
0 0 0 3 0
0 0 0 -2 -1

I can't think of any easier way to find the e'values other than by brute force, which looks hard for a 5x5 matrix (or Matlab :smile: ), save to say that they appear on the diagonal on this example. Are there easier ways?

Matlab tells me there are 5 e'values and enumerates the e'vectors and e'values with the code [v,e]=eig(A).

The e'vals given are 4, 1, -2, 3, -1. Given that there are 5 distinct e'vals then it should be diagonalisable.

Edit. I have just worked it out in Matlab but is there an easier way by hand. My notes tell me the Geometric multiplicity will equal the Algebraic multiplicity, so do I now have to work out the ref of each A-\lambdaI to get this?
 
Last edited:
Well, for this particular matrix, it is pretty easy to see, by expanding the determinant A-\lambda I by minors, that we can always choose a row or column with only one non-zero entry so the eigenvalues are just the numbers on the diagonal:-1, 1, -2, 3, and 4.

To answer your first question, yes , of course, -1 and 1 are different numbers and so "distinct eigenvalues". By simply multiplying out Av= \lambda v I get
4x_1+ x_4= \lambda x_1
x_2= -\lambda x_2
x_1- 3x_3= \lambda x_3
3x_4= \lambda x_4
-2x_4- x_5= \lambda x_5
Putting \lambda= -1, 1, 2, 3, and 4 gives equations to solve for the corresponding eigenvectors. I get, for example, that the eigenvectors corresponding to \lambda= -1 are all multiples of <0, 0, 0, 0, 1> and the eigenvectors corresponding to \lambda= 1 are all multiples of <0, 1, 0, 0, 1>.
 
Aha. Thanks for the help.
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...

Similar threads

Replies
32
Views
4K
Replies
5
Views
2K
Replies
2
Views
2K
Replies
27
Views
3K
Replies
6
Views
2K
Replies
7
Views
2K
Back
Top