Eigenvalues/eigenvectors using householder and QR

  • Thread starter Thread starter mrcaze
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on determining eigenvalues and eigenvectors of a symmetric matrix using Householder transformations and QR factorization. The user successfully transforms the original matrix A into a tri-diagonal matrix B, computes the eigenvalues and eigenvectors, and verifies the results against a reference book. However, confusion arises regarding the eigenvectors, as they differ between matrices A and B, despite both having the same eigenvalues. The key takeaway is that while similar matrices share eigenvalues, their eigenvectors are generally different, and the eigenvectors of A can be obtained by transforming those of B using the inverse of the Householder transformation matrix.

PREREQUISITES
  • Understanding of eigenvalues and eigenvectors in linear algebra
  • Familiarity with Householder transformations
  • Knowledge of QR factorization and QR algorithms
  • Basic programming skills in C++ for numerical implementation
NEXT STEPS
  • Study the properties of similar matrices and their implications on eigenvalues and eigenvectors
  • Learn about the implementation of Householder transformations in numerical methods
  • Explore the QR algorithm in detail, including convergence properties
  • Review numerical linear algebra resources, such as "Computing for Numerical Methods Using Visual C++" by Salleh et al.
USEFUL FOR

Mathematicians, data scientists, and software developers working with numerical methods, particularly those implementing eigenvalue problems in C++.

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 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
 
I am studying the mathematical formalism behind non-commutative geometry approach to quantum gravity. I was reading about Hopf algebras and their Drinfeld twist with a specific example of the Moyal-Weyl twist defined as F=exp(-iλ/2θ^(μν)∂_μ⊗∂_ν) where λ is a constant parametar and θ antisymmetric constant tensor. {∂_μ} is the basis of the tangent vector space over the underlying spacetime Now, from my understanding the enveloping algebra which appears in the definition of the Hopf algebra...

Similar threads

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