SlideShare a Scribd company logo
1 of 15
Download to read offline
Eigen Problem
          Power and Inverse Power Method
                        QR Decomposition
                              QR Algorithm
 Techniques used to Accelerate Convergence
                                 References




            Understanding the QR Algorithm

                            Kenneth Mwangi
                       Northern Arizona University


                               December 3, 2008




Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
                 Power and Inverse Power Method
                               QR Decomposition
                                     QR Algorithm
        Techniques used to Accelerate Convergence
                                        References


Table of contents

  1   Eigen Problem
  2   Power and Inverse Power Method
        Power Method
        Inverse Power Method
  3   QR Decomposition
       QR Decomposition
  4   QR Algorithm
       QR Algorithm
  5   Techniques used to Accelerate Convergence
  6   References

       Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
               Power and Inverse Power Method
                             QR Decomposition
                                   QR Algorithm
      Techniques used to Accelerate Convergence
                                      References


Introduction to the Eigen Value Problem


      The classical mathematical eigenvalue problem is defined as
      the solution of the following equation:
      Avn = λvn ; n = 1, 2, . . . , N
      Eigen Problem reveals the following facts;

         1   A is a n matrix either real or complex.
         2   n is small (1000,2000,. . . )
         3   Calculate all the Eigenvalue. Eigenvectors?

      The generalised eigenvalue problem is; Avn = Bλvn


     Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
              Power and Inverse Power Method
                            QR Decomposition      Power Method
                                  QR Algorithm    Inverse Power Method
     Techniques used to Accelerate Convergence
                                     References


Power Method



     The power iteration is a very simple algorithm.

     It does not decompose the matrix and thus it can be used
     when A is a large matrix.

     Nevertheless, it will find only one eigenvalue (one with the
     greatest absolute value) and it may converge only slowly.




    Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
              Power and Inverse Power Method
                            QR Decomposition      Power Method
                                  QR Algorithm    Inverse Power Method
     Techniques used to Accelerate Convergence
                                     References


The power method algorithm is highlighted below;

                                          u (0) = x0
                                             k=1

                                            Repeat

                             w = Au (k−1)
               λ = entry of u with the largest magnitude.

                                      u (k) = wλ
                                     k ←k +1
                              until u (k) − u (k−1) <


   Kenneth Mwangi Northern Arizona University     Understanding the QR Algorithm
Eigen Problem
                Power and Inverse Power Method
                              QR Decomposition      Power Method
                                    QR Algorithm    Inverse Power Method
       Techniques used to Accelerate Convergence
                                       References


Inverse Power Method

  Inverse iteration is also an iterative eigenvalue algorithm.From the
  power method, the method seeks to improve the performance
  While the power method always converges to the largest
  eigenvalue, inverse iteration also enables the choice of eigenvalue
  to converge to.
  The inverse iteration algorithm converges fairly quickly.However,
  we can achieve even faster convergence by using a better
  eigenvalue approximation each time (Rayleigh quotient iteration).
  The inverse iteration algorithm requires solving a linear system at
  each step. This would appear to require O(n3 ) operations.
  However, this can be reduced to O(n2 ) if we first reduce A to
  Hessenberg form.
      Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
          Power and Inverse Power Method
                        QR Decomposition      Power Method
                              QR Algorithm    Inverse Power Method
 Techniques used to Accelerate Convergence
                                 References




               To get the eigenvalue of A closet to q

                         Eigenvalue of (A − qI )−1

                                 1       1               1
                           =   λ1 −q , λ2 −q , . . . , λn −q


 Suppose λk is the eigenvalue of A closet to q. Thus the
        modification on the power algorithm is;

                          w (k) = (A − qI )−1 u (k−1)



Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
                Power and Inverse Power Method
                              QR Decomposition
                                                    QR Decomposition
                                    QR Algorithm
       Techniques used to Accelerate Convergence
                                       References


QR Decomposition

  QR Decomposition is the factorization of a matrix into an
  orthogonal and a right triangular matrix;

                                             A = QR


  where Q is an orthogonal matrix (meaning thatQ T Q = I ) and R is
  an upper triangular matrix (also called right triangular matrix).

  Although the QR factorization is more computationally rigorous
  than the LU factorization the method offers superior stability
  properties.

      Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
                Power and Inverse Power Method
                              QR Decomposition
                                                    QR Decomposition
                                    QR Algorithm
       Techniques used to Accelerate Convergence
                                       References




The QR decomposition is usually calculated using the following
ways;
  1   Gram-Schmidt process;
  2   Householder reflections; and
  3   Givens rotations.

Mostly used process is the Householder reflection because it has
greater numerical stability than the Gram-Schmidt method.




      Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
                Power and Inverse Power Method
                              QR Decomposition
                                                      QR Decomposition
                                    QR Algorithm
       Techniques used to Accelerate Convergence
                                       References


Householder Transformation

  If X and Y are vectors with the same norm, there exists an
  orthogonal symmetric matrix P such that;

                      Y = PX where P = I − 2WW T and
          X −Y
  W =     X −Y     . Since P is both orthogonal and symmetric, it follows
                                 that P −1 = P.

                  *             *     *     *       *         *             *    *     *   *
                  *             *     *     *       *                       *    *     *   *
  Conclusion; X = *             *     *     *       * and Y =                    *     *   *
                  *             *     *     *       *                                  *   *
                  *             *     *     *       *                                      *

      Kenneth Mwangi Northern Arizona University      Understanding the QR Algorithm
Eigen Problem
                Power and Inverse Power Method
                              QR Decomposition
                                                    QR Algorithm
                                    QR Algorithm
       Techniques used to Accelerate Convergence
                                       References


QR Algorithm

  The overall stability theory for the QR algorithm was given by
  Wilkinson’s in 1965 in his work the algebraic eigenvalue problem.
  We now investigate a well known and efficient method for finding
  all the eigenvalues of a general n × n real matrix; but working with
  a general matrix takes many iterations and becomes expensive and
  time consuming.
  Therefore the QR Method works much faster on special matrices,
  hence the reason to decompose the general matrices to a
  Hessenberg form.
  Hessenberg matrix is one that is ”almost” triangular. To be exact,
  an upper Hessenberg matrix has zero entries below the first
  subdiagonal.
      Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
                  Power and Inverse Power Method
                                QR Decomposition
                                                      QR Algorithm
                                      QR Algorithm
         Techniques used to Accelerate Convergence
                                         References


QR Algorithm Implementation

  To find eigenvalues of a real matrix A using the QR factorization,
  we will generate a sequence of matrices A(m) that are orthogonal
  and similar to A, the QR proceeds by forming a sequences of
  matrices A = A(1) , A(2) , . . . , as follows.

    1   A(1) = A is factored as a product A(1) = Q (1) R (1) , where Q (1) is
        orthogonal and R (1) is upper triangular.
    2   A(2) is defined as A(2) = R (1) Q (1) .

  Thus if the eigenvalues satisfy |λ1 | > |λ2 | > . . . > |λ2 |, the iterates
  converge to T , an upper triangular matrix with the eigenvalues on
  the diagonal.

        Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
               Power and Inverse Power Method
                             QR Decomposition
                                                   QR Algorithm
                                   QR Algorithm
      Techniques used to Accelerate Convergence
                                      References


QR Algorithm


                                      Given A ∈ R n×n

                                       Define A1 = A

                                  For k = 1, 2, . . . , do

              Calculate the QR decomposition Ak = Qk Rk ,

                                   Define Ak+1 = Ak .



     Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
                Power and Inverse Power Method
                              QR Decomposition
                                    QR Algorithm
       Techniques used to Accelerate Convergence
                                       References


Techniques used to Accelerate Convergence



  Deflation

  Aggressive deflation (due to Francis 1961, Watkins 1995)

  Ad hoc shifts




      Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm
Eigen Problem
                  Power and Inverse Power Method
                                QR Decomposition
                                      QR Algorithm
         Techniques used to Accelerate Convergence
                                         References


References

    1   Burden and Faires , Numerical Analysis , 8th Edition

    2   Laurene V. Fausett, Applied Numerical Analysis Using MATLAB,
        2nd Edition

    3   Marco Latini ,The QR Algorithm, Past and Future

    4   Wikipedia

    5   Dr. Shafiu Jibrin, Numerical Analysis notes.


        Kenneth Mwangi Northern Arizona University    Understanding the QR Algorithm

More Related Content

What's hot

Maths-->>Eigenvalues and eigenvectors
Maths-->>Eigenvalues and eigenvectorsMaths-->>Eigenvalues and eigenvectors
Maths-->>Eigenvalues and eigenvectorsJaydev Kishnani
 
Instance based learning
Instance based learningInstance based learning
Instance based learningswapnac12
 
Deep learning with Keras
Deep learning with KerasDeep learning with Keras
Deep learning with KerasQuantUniversity
 
Eigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to DiagonalisationEigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to DiagonalisationChristopher Gratton
 
Eigen values and eigen vectors engineering
Eigen values and eigen vectors engineeringEigen values and eigen vectors engineering
Eigen values and eigen vectors engineeringshubham211
 
Loss Function.pptx
Loss Function.pptxLoss Function.pptx
Loss Function.pptxfunnyworld18
 
Eigen values and eigenvectors
Eigen values and eigenvectorsEigen values and eigenvectors
Eigen values and eigenvectorsAmit Singh
 
0 1 knapsack using branch and bound
0 1 knapsack using branch and bound0 1 knapsack using branch and bound
0 1 knapsack using branch and boundAbhishek Singh
 
Matrix chain multiplication
Matrix chain multiplicationMatrix chain multiplication
Matrix chain multiplicationRespa Peter
 
Eigen value , eigen vectors, caley hamilton theorem
Eigen value , eigen vectors, caley hamilton theoremEigen value , eigen vectors, caley hamilton theorem
Eigen value , eigen vectors, caley hamilton theoremgidc engineering college
 
Recurrence relations
Recurrence relationsRecurrence relations
Recurrence relationsIIUM
 
Determinants - Mathematics
Determinants - MathematicsDeterminants - Mathematics
Determinants - MathematicsDrishti Bhalla
 
Linear Systems Gauss Seidel
Linear Systems   Gauss SeidelLinear Systems   Gauss Seidel
Linear Systems Gauss SeidelEric Davishahl
 

What's hot (20)

Maths-->>Eigenvalues and eigenvectors
Maths-->>Eigenvalues and eigenvectorsMaths-->>Eigenvalues and eigenvectors
Maths-->>Eigenvalues and eigenvectors
 
Introduction to optimization Problems
Introduction to optimization ProblemsIntroduction to optimization Problems
Introduction to optimization Problems
 
Ridge regression
Ridge regressionRidge regression
Ridge regression
 
Instance based learning
Instance based learningInstance based learning
Instance based learning
 
Numerical Method
Numerical Method Numerical Method
Numerical Method
 
Deep learning with Keras
Deep learning with KerasDeep learning with Keras
Deep learning with Keras
 
Eigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to DiagonalisationEigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to Diagonalisation
 
Eigen values and eigen vectors engineering
Eigen values and eigen vectors engineeringEigen values and eigen vectors engineering
Eigen values and eigen vectors engineering
 
Brute force
Brute forceBrute force
Brute force
 
Loss Function.pptx
Loss Function.pptxLoss Function.pptx
Loss Function.pptx
 
Eigen values and eigenvectors
Eigen values and eigenvectorsEigen values and eigenvectors
Eigen values and eigenvectors
 
0 1 knapsack using branch and bound
0 1 knapsack using branch and bound0 1 knapsack using branch and bound
0 1 knapsack using branch and bound
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programming
 
Matrix chain multiplication
Matrix chain multiplicationMatrix chain multiplication
Matrix chain multiplication
 
Eigen value , eigen vectors, caley hamilton theorem
Eigen value , eigen vectors, caley hamilton theoremEigen value , eigen vectors, caley hamilton theorem
Eigen value , eigen vectors, caley hamilton theorem
 
Recurrence relations
Recurrence relationsRecurrence relations
Recurrence relations
 
Lu decomposition
Lu decompositionLu decomposition
Lu decomposition
 
Newton Raphson
Newton RaphsonNewton Raphson
Newton Raphson
 
Determinants - Mathematics
Determinants - MathematicsDeterminants - Mathematics
Determinants - Mathematics
 
Linear Systems Gauss Seidel
Linear Systems   Gauss SeidelLinear Systems   Gauss Seidel
Linear Systems Gauss Seidel
 

Recently uploaded

SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 

Recently uploaded (20)

SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 

QR Algorithm Explained for Eigenvalue Problems

  • 1. Eigen Problem Power and Inverse Power Method QR Decomposition QR Algorithm Techniques used to Accelerate Convergence References Understanding the QR Algorithm Kenneth Mwangi Northern Arizona University December 3, 2008 Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 2. Eigen Problem Power and Inverse Power Method QR Decomposition QR Algorithm Techniques used to Accelerate Convergence References Table of contents 1 Eigen Problem 2 Power and Inverse Power Method Power Method Inverse Power Method 3 QR Decomposition QR Decomposition 4 QR Algorithm QR Algorithm 5 Techniques used to Accelerate Convergence 6 References Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 3. Eigen Problem Power and Inverse Power Method QR Decomposition QR Algorithm Techniques used to Accelerate Convergence References Introduction to the Eigen Value Problem The classical mathematical eigenvalue problem is defined as the solution of the following equation: Avn = λvn ; n = 1, 2, . . . , N Eigen Problem reveals the following facts; 1 A is a n matrix either real or complex. 2 n is small (1000,2000,. . . ) 3 Calculate all the Eigenvalue. Eigenvectors? The generalised eigenvalue problem is; Avn = Bλvn Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 4. Eigen Problem Power and Inverse Power Method QR Decomposition Power Method QR Algorithm Inverse Power Method Techniques used to Accelerate Convergence References Power Method The power iteration is a very simple algorithm. It does not decompose the matrix and thus it can be used when A is a large matrix. Nevertheless, it will find only one eigenvalue (one with the greatest absolute value) and it may converge only slowly. Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 5. Eigen Problem Power and Inverse Power Method QR Decomposition Power Method QR Algorithm Inverse Power Method Techniques used to Accelerate Convergence References The power method algorithm is highlighted below; u (0) = x0 k=1 Repeat w = Au (k−1) λ = entry of u with the largest magnitude. u (k) = wλ k ←k +1 until u (k) − u (k−1) < Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 6. Eigen Problem Power and Inverse Power Method QR Decomposition Power Method QR Algorithm Inverse Power Method Techniques used to Accelerate Convergence References Inverse Power Method Inverse iteration is also an iterative eigenvalue algorithm.From the power method, the method seeks to improve the performance While the power method always converges to the largest eigenvalue, inverse iteration also enables the choice of eigenvalue to converge to. The inverse iteration algorithm converges fairly quickly.However, we can achieve even faster convergence by using a better eigenvalue approximation each time (Rayleigh quotient iteration). The inverse iteration algorithm requires solving a linear system at each step. This would appear to require O(n3 ) operations. However, this can be reduced to O(n2 ) if we first reduce A to Hessenberg form. Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 7. Eigen Problem Power and Inverse Power Method QR Decomposition Power Method QR Algorithm Inverse Power Method Techniques used to Accelerate Convergence References To get the eigenvalue of A closet to q Eigenvalue of (A − qI )−1 1 1 1 = λ1 −q , λ2 −q , . . . , λn −q Suppose λk is the eigenvalue of A closet to q. Thus the modification on the power algorithm is; w (k) = (A − qI )−1 u (k−1) Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 8. Eigen Problem Power and Inverse Power Method QR Decomposition QR Decomposition QR Algorithm Techniques used to Accelerate Convergence References QR Decomposition QR Decomposition is the factorization of a matrix into an orthogonal and a right triangular matrix; A = QR where Q is an orthogonal matrix (meaning thatQ T Q = I ) and R is an upper triangular matrix (also called right triangular matrix). Although the QR factorization is more computationally rigorous than the LU factorization the method offers superior stability properties. Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 9. Eigen Problem Power and Inverse Power Method QR Decomposition QR Decomposition QR Algorithm Techniques used to Accelerate Convergence References The QR decomposition is usually calculated using the following ways; 1 Gram-Schmidt process; 2 Householder reflections; and 3 Givens rotations. Mostly used process is the Householder reflection because it has greater numerical stability than the Gram-Schmidt method. Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 10. Eigen Problem Power and Inverse Power Method QR Decomposition QR Decomposition QR Algorithm Techniques used to Accelerate Convergence References Householder Transformation If X and Y are vectors with the same norm, there exists an orthogonal symmetric matrix P such that; Y = PX where P = I − 2WW T and X −Y W = X −Y . Since P is both orthogonal and symmetric, it follows that P −1 = P. * * * * * * * * * * * * * * * * * * * Conclusion; X = * * * * * and Y = * * * * * * * * * * * * * * * * Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 11. Eigen Problem Power and Inverse Power Method QR Decomposition QR Algorithm QR Algorithm Techniques used to Accelerate Convergence References QR Algorithm The overall stability theory for the QR algorithm was given by Wilkinson’s in 1965 in his work the algebraic eigenvalue problem. We now investigate a well known and efficient method for finding all the eigenvalues of a general n × n real matrix; but working with a general matrix takes many iterations and becomes expensive and time consuming. Therefore the QR Method works much faster on special matrices, hence the reason to decompose the general matrices to a Hessenberg form. Hessenberg matrix is one that is ”almost” triangular. To be exact, an upper Hessenberg matrix has zero entries below the first subdiagonal. Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 12. Eigen Problem Power and Inverse Power Method QR Decomposition QR Algorithm QR Algorithm Techniques used to Accelerate Convergence References QR Algorithm Implementation To find eigenvalues of a real matrix A using the QR factorization, we will generate a sequence of matrices A(m) that are orthogonal and similar to A, the QR proceeds by forming a sequences of matrices A = A(1) , A(2) , . . . , as follows. 1 A(1) = A is factored as a product A(1) = Q (1) R (1) , where Q (1) is orthogonal and R (1) is upper triangular. 2 A(2) is defined as A(2) = R (1) Q (1) . Thus if the eigenvalues satisfy |λ1 | > |λ2 | > . . . > |λ2 |, the iterates converge to T , an upper triangular matrix with the eigenvalues on the diagonal. Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 13. Eigen Problem Power and Inverse Power Method QR Decomposition QR Algorithm QR Algorithm Techniques used to Accelerate Convergence References QR Algorithm Given A ∈ R n×n Define A1 = A For k = 1, 2, . . . , do Calculate the QR decomposition Ak = Qk Rk , Define Ak+1 = Ak . Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 14. Eigen Problem Power and Inverse Power Method QR Decomposition QR Algorithm Techniques used to Accelerate Convergence References Techniques used to Accelerate Convergence Deflation Aggressive deflation (due to Francis 1961, Watkins 1995) Ad hoc shifts Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm
  • 15. Eigen Problem Power and Inverse Power Method QR Decomposition QR Algorithm Techniques used to Accelerate Convergence References References 1 Burden and Faires , Numerical Analysis , 8th Edition 2 Laurene V. Fausett, Applied Numerical Analysis Using MATLAB, 2nd Edition 3 Marco Latini ,The QR Algorithm, Past and Future 4 Wikipedia 5 Dr. Shafiu Jibrin, Numerical Analysis notes. Kenneth Mwangi Northern Arizona University Understanding the QR Algorithm