Is There an Easier Way to Find the Signs of Eigenvalues for Sparse Matrices?

In summary, the conversation discusses finding the signs of the eigenvalues of an nxn matrix with zeros everywhere except for the two diagonals directly above and below the main diagonal. The conversation explores various methods, including taking the determinant and solving the characteristic equation, performing elementary row/column operations, and using a theorem on real eigenvalues. The conversation also mentions Descartes' rule of signs and the possibility of finding a recursion relation for the determinant. The final conclusion is that the determinant of the matrix is an even function of lambda for even values of n and an odd function for odd values of n.
  • #1
JJ6
13
0

Homework Statement



Hey guys, for my linear algebra class I need to find the signs of the eigenvalues (I just need to know how many are positive and how many are negative) of an nxn matrix with zeros everywhere except for the two diagonals directly above and directly below the main diagonal, which both have all entries 1/2. Here's a picture with n=10:

http://img249.imageshack.us/img249/9405/10x10lo9.png
http://g.imageshack.us/img249/10x10lo9.png/1/

Homework Equations





The Attempt at a Solution



I know that I can take teh determinant and solve the characteristic equation, but I don't know how I would do that for an nxn matrix. Also, it seems like it shouldn't require so much work, since I need to know their signs but not their values. Can anybody point me in the right direction?
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
i would try to preform some elementary row/column operations on it.
try for the n=4,5,6
 
  • #3
If I apply row/column operations on the matrix, will the eigenvalues be the same for the original matrix as they are for the echelon form?
 
  • #4
JJ6 said:
I know that I can take teh determinant and solve the characteristic equation, but I don't know how I would do that for an nxn matrix.
:confused: Surely you know an algorithm for computing the determinant of any matrix...

edit: bleh, the closed form solution is ugly. :frown:
edit: but you can still find the roots of the closed form solution
edit: and there's a much easier trick if you already know the eigenvalues are real
 
Last edited:
  • #5
JJ6 said:
If I apply row/column operations on the matrix, will the eigenvalues be the same for the original matrix as they are for the echelon form?
Well I don't think so, since it's eigenvalues and not determinant. You can try it out for n=3,4.
 
  • #6
Unfortunately, just row- reducing a matrix will NOT tell you its eigenvalues. If it did, finding eigenvalues would be a lot easier!
 
  • #7
I've been trying to come up with a "clever" solution for a while, but to no avail. In my book, we have the theorem:

Let A be a matrix, and let its eigenvalues all be real numbers. Then A is diagonalizable if and only if the geometric multiplicity of each eigenvalue equals its algebraic multiplicity.

This is the only theorem I could find in our book that deals with real eigenvalues. Is there a clever way of applying this that I'm missing?
 
  • #8
HallsofIvy said:
Unfortunately, just row- reducing a matrix will NOT tell you its eigenvalues. If it did, finding eigenvalues would be a lot easier!
However, row reducing [itex]A - \lambda I[/itex] does help you calculate the determinant, which gives you the characteristic polynomial of A.

But given that the matrix is so sparse, I wonder why not just apply the normal, general purpose algorithm that works to compute the determinant of any matrix.
 
  • #9
If you knew that [itex]\det(A-\lambda I)[/itex] was an odd or even polynomial in [itex]\lambda[/itex], the answer would be immediately obvious.
 
  • #10
Avodyne said:
If you knew that [itex]\det(A-\lambda I)[/itex] was an odd or even polynomial in [itex]\lambda[/itex], the answer would be immediately obvious.
Only if you also knew that the polynomial was totally real. Odd and even polynomials can still have complex roots, and so their sign would be undefined.
 
  • #11
I was assuming the OP would have read the 3rd edit in your post #4. :smile:
 
  • #12
Oh, I think we all know it has real eigenvalues, don't we?
 
  • #13
I have a quick question. If we have n = 2, then the matrix (after subtracting λ*I) has top row [-λ 1/2] and bottom row [1/2 -λ]. Then the characteristic equation is:

λ^2 - 1/4 = 0

But in this case, λ could be either positive or negative, right? If these λ that can be either + or - pop up, how do I tell what the matrix's eigenvalues are?

Edit: Wait, that was a really stupid question. We could factor to (λ - 1/2)(λ + 1/2), so our two eigenvalues would be 1/2 and -1/2, correct?
 
Last edited:
  • #14
OK, I'm guessing from what you guys are saying that I need to use Decartes' rule of signs, but I'm not quite sure how I need to apply it. Assuming that I have a polynomial of degree n with all real roots, I should have number of positive roots + number of negative roots + multiplicity of 0 = n. But I don't know what 0's multiplicity will be, and I don't know how many sign changes there will be to calculate the number of positive roots.
 
  • #15
Zero is a root only if your original matrix has zero determinant. Does it?

You don't need to solve [itex]\lambda^2-{1\over 4}=0[/itex] to see that if [itex]\lambda[/itex] is a solution, so is [itex]-\lambda[/itex].
 
  • #16
OK, the original matrix will have determinant zero when n is odd. If n is even, det(A) = (-1/2)^n. So if n is even, we'll have n roots that are either odd or even, and if n is odd, we'll have n-1 roots that are either even or odd. Then can I say that if λ is a solution, -λ is a solution also, so we'll have the same number of even and odd roots?
 
  • #17
Avodyne is saying that for even n det(A-lambda*I) has only terms of even power in lambda and for odd, only odd powers. I don't think this follows from what you are saying. I know he's right, but it seems like it should have a lot easier proof than anything I've come up with. And it's not Descartes rule of signs. It's just that if lambda and -lambda both have to be eigenvalues and you know you have n real eigenvalues, it's pretty easy to count the positive ones. I hope Avodyne is a he. Correct me if I'm wrong.
 
Last edited:
  • #18
The method I had in mind was to find a recursion relation for [itex]d_n = \det(A-\lambda I)[/itex]. Using cofactors, it's not too hard to express [itex]d_n[/itex] in terms of [itex]d_{n-1}[/itex] and [itex]d_{n-2}[/itex]. Then, using [itex]d_1=-\lambda[/itex] and [itex]d_0=1[/itex], it's pretty easy to show that [itex]d_n[/itex] is an even (odd) function of [itex]\lambda[/itex] if [itex]n[/itex] is even (odd).

And yes, I'm a he!
 
  • #19
That sounds promising. I've just started to realize I haven't been paying enough attention to showing that there aren't multiple zero roots which something like that could give you. And actually Descartes rule of signs does come in pretty handy. I forgot to look up exactly what it was before dismissing it. Sorry JJ6.
 
Last edited:
  • #20
Oh, I finally understand this. I got the recursion to work out fine, and I managed to find the signs of the eigenvalues. Thank you very much, everyone.
 
  • #21
It seems to me that it is not all that difficult to find the general form for the characteristic equation. If we let [itex]P_n(\lambda)[/itex] be the charactistic [polynomial, then expanding by the top row, [itex]P_n()\lambda)[/itex] is just [itex]-\lambda[/itex] times [itex]P_{n-1}(\lambda)[/itex] minus 1/2 times 1/2 times [itex]P_{n-2}(\lambda)[/itex]. That is, [itex]P_{n}(\lambda)= -\lambda P_{n-1}(\lambda)+ (1/4)P_{n-2}(\lambda)[/itex]. Calculating a few of those, I see what Hurkyl meant: "bleh, the closed form solution is ugly." but I think we can conjecture:
If n is even, the signs alternate. If n is odd, we have [itex]\lambda[/itex] times a polymomial with alternating signs.

You ought to be able to prove that, say, by induction. I would be inclined to conjecture: if n is even half the eigenvalues are positive and half negative. If n is odd, 0 is an eigenvalue and half the remaining eigenvalues are positive, half negative. Again, you might be able to prove that by induction on the size of the determinant.
 
  • #22
HallsofIvy said:
It seems to me that it is not all that difficult to find the general form for the characteristic equation. If we let [itex]P_n(\lambda)[/itex] be the charactistic [polynomial, then expanding by the top row, [itex]P_n()\lambda)[/itex] is just [itex]-\lambda[/itex] times [itex]P_{n-1}(\lambda)[/itex] minus 1/2 times 1/2 times [itex]P_{n-2}(\lambda)[/itex]. That is, [itex]P_{n}(\lambda)= -\lambda P_{n-1}(\lambda)+ (1/4)P_{n-2}(\lambda)[/itex]. Calculating a few of those, I see what Hurkyl meant: "bleh, the closed form solution is ugly." but I think we can conjecture:
If n is even, the signs alternate. If n is odd, we have [itex]\lambda[/itex] times a polymomial with alternating signs.

You ought to be able to prove that, say, by induction. I would be inclined to conjecture: if n is even half the eigenvalues are positive and half negative. If n is odd, 0 is an eigenvalue and half the remaining eigenvalues are positive, half negative. Again, you might be able to prove that by induction on the size of the determinant.

Yes but given the fact that this matrix is sparse shouldn't there be an easier way of finding the signs of the eigenvalues? In a lot of algorithms row reducing big (and in general sparse) matrices much has been discovered about the eigenvalues. I wonder if there is a much easier way...
 
  • #23
dirk_mec1 said:
Yes but given the fact that this matrix is sparse shouldn't there be an easier way of finding the signs of the eigenvalues? In a lot of algorithms row reducing big (and in general sparse) matrices much has been discovered about the eigenvalues. I wonder if there is a much easier way...

Yes there is. It's the method Avodyne suggested. If you take the recursion relation it's pretty easy to see the alternating nature of the coefficients.
 
Last edited:

1. What are eigenvalues of a matrix?

Eigenvalues of a matrix are the scalar values that represent the scale factor by which the eigenvectors of the matrix are stretched or compressed.

2. How do you find eigenvalues of a matrix?

To find eigenvalues of a matrix, you need to solve the characteristic equation of the matrix, which is obtained by setting the determinant of the matrix minus a scalar value equal to 0. The solutions to this equation are the eigenvalues.

3. What is the significance of eigenvalues of a matrix?

Eigenvalues of a matrix are important in many areas of mathematics and science, such as in understanding the behavior of systems, analyzing the stability of dynamic systems, and solving differential equations.

4. Can a matrix have complex eigenvalues?

Yes, a matrix can have complex eigenvalues. This means that the eigenvalues will have a real part and an imaginary part. In this case, the eigenvectors will also be complex.

5. How are eigenvalues of a matrix related to its eigenvectors?

The eigenvalues of a matrix determine the scaling factor for its eigenvectors. Each eigenvector corresponds to a specific eigenvalue, and the two are related through the equation Av = λv, where A is the matrix, λ is the eigenvalue, and v is the eigenvector.

Similar threads

  • Calculus and Beyond Homework Help
Replies
8
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
387
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
18
Views
2K
  • Linear and Abstract Algebra
Replies
2
Views
606
  • Calculus and Beyond Homework Help
Replies
5
Views
6K
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
12K
Replies
3
Views
1K
Back
Top