Eigenvalues/eigenvectors using householder and QR

  • Context: Graduate 
  • Thread starter Thread starter mrcaze
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the computation of eigenvalues and eigenvectors using Householder transformations and QR factorization, specifically addressing the relationship between the eigenvalues and eigenvectors of a symmetric matrix and its transformed tri-diagonal form.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant outlines their steps for determining eigenvalues and eigenvectors, questioning the validity of applying results from a diagonal matrix to the original matrix A.
  • Another participant suggests that if A is real and symmetric, the transformation to a tri-diagonal matrix preserves eigenvalues but not necessarily eigenvectors.
  • A participant clarifies that eigenvalues and eigenvectors can be computed for any square matrix and proposes checking results by verifying the equation Av = λv.
  • Further clarification is provided that while matrices A and B are similar and share eigenvalues, their eigenvectors may differ, and a method to obtain eigenvectors of A from those of B is discussed.
  • Participants express uncertainty about the equality of eigenvectors between the original and transformed matrices.

Areas of Agreement / Disagreement

Participants generally agree that eigenvalues are preserved under similarity transformations, but there is disagreement regarding the equality of eigenvectors, with some asserting they are not the same and others expressing confusion about this point.

Contextual Notes

Participants reference specific numerical methods and implementations, indicating a practical application context. There is an acknowledgment of the need for further understanding of linear algebra concepts related to matrix similarity.

Who May Find This Useful

This discussion may be useful for individuals interested in numerical methods for linear algebra, particularly those implementing algorithms for eigenvalue and eigenvector computations in programming contexts.

mrcaze
Messages
3
Reaction score
0
Dear Friends,

I need to determinate eigenvalues/eigenvectors using householder and QR. I did the follow steps:
1. Transform A matriz to diagonal matriz using householder. I read that matrices are similar, aren't they?
2. Find eigenvalues/eigenvectors using QR Factorization;
3. Adjust found values using QR Algorithm.

However, eigenvalues/eigenvectors work only on the Av=Lv equation for diagonal matrix, but not for A (original). Is this correct? Why? May I say that the eigenvalues/eigenvectors found are the eigenvalues/eigenvectors of A?

thanks
 
Physics news on Phys.org
Hello mrcaze. Welcome to physicsforums!

This is a little outside my expertise, but no one else is answering so I thought I would get things going.

First, could you explain just a little more about what you are doing? For example, is A real and symmetric?
mrcaze said:
Dear Friends,
I need to determinate eigenvalues/eigenvectors using householder and QR. I did the follow steps:
1. Transform A matriz to diagonal matriz using householder. I read that matrices are similar, aren't they?
2. Find eigenvalues/eigenvectors using QR Factorization;
3. Adjust found values using QR Algorithm.

If A is either real and symmetric or complex an Hermitian, then I'm guessing by "transform to diagonal" you mean what many people call tri-diagonal. Also, any similarity transformation (https://en.wikipedia.org/wiki/Matrix_similarity) preserves the eigenvalues and eigenvectors. If you are not familiar with similar matrices, then you probably need to learn more linear algebra before you embark on implementing the QR algorithm. There are a couple of good, free books:
http://joshua.smcvt.edu/linearalgebra/#current_version
http://www.math.brown.edu/~treil/papers/LADW/LADW.html

mrcaze said:
However, eigenvalues/eigenvectors work only on the Av=Lv equation for diagonal matrix, but not for A (original). Is this correct? Why? May I say that the eigenvalues/eigenvectors found are the eigenvalues/eigenvectors of A?

thanks
I'm not sure what you are asking. You can find the eigenvalues and eigenvectors of any square matrix. Once you compute the eigenvalues/eigenvectrs you can check your answer. For exmaple, if you think ##v## is an eigenvector with eigenvalue ##\lambda##, you can compute ##A v## and see how close it is to ##\lambda v##.

jason
 
Hello Jason!
First of all, thanks for answer me. Let me explain better my question. I have a symetric matrix (nxn) and I want to compute eigenvalues/eigenvectors using numerical methods, because I need to implement it in C++. I read about this issue and I tried to use householder transformation followed by QR factorization/algorithm. So, I have this original matrix A which becomes a tri-diagonal matrix B after householder transformation. After that I used QR over B to finaly compute eigenvalues/eigenvectors. I implemented the example on pages 295-302, in Computing for Numerical Methods Using Visual C++ book (by Salleh et al.). These pages are avaliable to be read in google books. My computed values are the same as the book, but when I checked in Av=λv formula, worked for only B matrix. Not for A. Why?

tahnks again

marcio
 
Your matrices ##A## and ##B## are similar, and while similar matrices have the same eigenvalued the eigenvectors are usually different.
In your case ##B=U A U^{-1}##, where ##U=Q_{n-1} Q_{n-2}\ldots Q_1## is the product of elementary Householder matrices. Note that ##U## is an orthogonal matrix, so ##U^{-1}=U^T = Q_1 Q_2 \ldots Q_{n-1}##.

Using the identity ##B=U A U^{-1}## you can rewrite ##B v=\lambda v## as $$UAU^{-1} v = \lambda v,$$ or equivalently (left multiplying both sides by ##U^{-1}##) $$AU^{-1} v =\lambda U^{-1} v . $$
Thus, to get eigevectors of ##A## you just need to multiply the eigenvectors of ##B## by the matrix ##U^{-1}##.
 
  • Like
Likes   Reactions: FactChecker, HallsofIvy and jasonRF
Hawkeye18,

Thanks for adding to this and pointing out my incorrect statement about preserving eigenvectors.

mrcaze,

are you at least getting the correct eigenvalues?

jason
 
Jason and Hawkeye,

Yes! The eigenvalues are correct! I thought that eigenvectors should be equal too. I will try to do what Hawkeye said.

Thanks a lot
 

Similar threads

  • · Replies 33 ·
2
Replies
33
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
18K
  • · Replies 2 ·
Replies
2
Views
9K
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 4 ·
Replies
4
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K