1. Home
  2. Explore
  3. Mathematics
  4. Computing Eigenvalues and Singular Values

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Computing Eigenvalues and Singular Values

Numerical Computation of Eigenvalues and Singular Values

1. Overview

Computing eigenvalues and singular values is a central task in numerical linear algebra. Although software systems provide commands such as eig and SVD, the underlying algorithms are built from fundamental matrix factorizations and transformations.

The central ideas are:

  • QR iteration computes eigenvalues while preserving them through similarity transformations.

  • Shifts accelerate QR iteration by moving an eigenvalue closer to zero before factoring.

  • Hessenberg reduction introduces zeros that make repeated QR factorizations much faster.

  • For symmetric matrices, Hessenberg form becomes tridiagonal form.

  • Singular values are preserved by multiplying on the left and right by orthogonal matrices, allowing reduction to bidiagonal form.

  • For extremely large or sparse matrices, Krylov subspace methods approximate eigenvalues using a much smaller problem.

The goal is generally not to obtain exact symbolic eigenvalues. For matrices of sufficiently large size, exact formulas are impossible or impractical. Instead, numerical algorithms produce approximations within a desired tolerance.


2. Why Eigenvalue Computation Is Different from Solving Linear Systems

Solving a system

Ax=bAx=bAx=b

can be accomplished through elimination, producing an upper-triangular matrix. Once the system has been reduced to triangular form, the solution can be obtained by back substitution.

Eigenvalue computation is more difficult. The eigenvalues of an n×nn \times nn×n matrix are the roots of its characteristic polynomial,

det⁡(A−λI)=0.\det(A-\lambda I)=0.det(A−λI)=0.

For matrices of size 5×55 \times 55×5 or larger, there is generally no formula using only elementary arithmetic operations and radicals that expresses the roots of an arbitrary fifth-degree or higher polynomial. This result is associated with the work of Abel and explains why eigenvalue algorithms rely on iterative approximation rather than exact formulas.

Important consequences include:

  • Eigenvalues usually cannot be computed exactly by a finite sequence of simple algebraic steps.

  • Numerical algorithms instead produce increasingly accurate approximations.

  • The same limitation applies to singular values when they are derived from eigenvalue problems.

  • A successful algorithm must preserve the relevant spectral information while gradually simplifying the matrix.


3. QR Factorization

Every suitable matrix AAA can be factored as

A=QR,A=QR,A=QR,

where:

  • QQQ is orthogonal, so

    QTQ=I,Q^TQ=I,QTQ=I,
  • RRR is upper triangular.

For a matrix with columns that are not generally orthogonal, QR factorization constructs an orthogonal basis for the column space. The columns of QQQ are obtained by orthogonalizing the columns of AAA, often through a version of Gram–Schmidt or through more stable orthogonal transformations. The upper-triangular matrix RRR records how the original columns are expressed in terms of the orthogonalized columns.

QR factorization is the computational core of the QR eigenvalue algorithm.


4. The Basic QR Iteration

4.1 Algorithm

Start with the matrix whose eigenvalues are required:

A0=A.A_0=A.A0​=A.

At the first step, compute its QR factorization:

A0=Q0R0.A_0=Q_0R_0.A0​=Q0​R0​.

Then reverse the order of the factors to define the next matrix:

A1=R0Q0.A_1=R_0Q_0.A1​=R0​Q0​.

The process is repeated:

  1. Factor the current matrix: $$ A_k=Q_kR_k. $$

  2. Reverse the factors: $$ A_{k+1}=R_kQ_k. $$

Thus, the iteration is

A0⟶A1⟶A2⟶⋯ .A_0 \longrightarrow A_1 \longrightarrow A_2 \longrightarrow \cdots.A0​⟶A1​⟶A2​⟶⋯.

The key questions are:

  • Do all the matrices AkA_kAk​ have the same eigenvalues?

  • Does the matrix become simpler as the iteration continues?

  • If it becomes simpler, where do the eigenvalues appear?


4.2 Why the Eigenvalues Are Preserved

The QR iteration preserves eigenvalues because consecutive matrices are similar.

From

A0=Q0R0,A_0=Q_0R_0,A0​=Q0​R0​,

and the fact that Q0Q_0Q0​ is orthogonal,

Q0−1=Q0T.Q_0^{-1}=Q_0^T.Q0−1​=Q0T​.

The definition of A1A_1A1​ is

A1=R0Q0.A_1=R_0Q_0.A1​=R0​Q0​.

Since

Q0=A0R0−1,Q_0=A_0R_0^{-1},Q0​=A0​R0−1​,

substitution gives

A1=R0Q0=R0A0R0−1.A_1 =R_0Q_0 =R_0A_0R_0^{-1}.A1​=R0​Q0​=R0​A0​R0−1​.

Therefore,

A1=R0A0R0−1.A_1=R_0A_0R_0^{-1}.A1​=R0​A0​R0−1​.

This is a similarity transformation. More generally,

Ak+1=RkAkRk−1.A_{k+1}=R_kA_kR_k^{-1}.Ak+1​=Rk​Ak​Rk−1​.

Similar matrices have the same eigenvalues, including algebraic multiplicities.

Consequently, every matrix in the QR sequence has the same eigenvalues as the original matrix:

eig⁡(A0)=eig⁡(A1)=eig⁡(A2)=⋯ .\operatorname{eig}(A_0) = \operatorname{eig}(A_1) = \operatorname{eig}(A_2) =\cdots.eig(A0​)=eig(A1​)=eig(A2​)=⋯.

This is the fundamental invariant of the QR method.


4.3 Convergence of QR Iteration

Although the QR iteration preserves eigenvalues, it progressively changes the locations of the matrix entries. For many matrices, entries below the main diagonal become smaller with each iteration.

A typical sequence has the form

A0⟶A1⟶A2⟶⋯A_0 \longrightarrow A_1 \longrightarrow A_2 \longrightarrow \cdotsA0​⟶A1​⟶A2​⟶⋯

where the lower-triangular portion gradually approaches zero. In the limit, the matrix becomes approximately upper triangular:

Ak≈[λ1∗∗0λ2∗00λ3].A_k\approx \begin{bmatrix} \lambda_1 & * & * \\ 0 & \lambda_2 & * \\ 0 & 0 & \lambda_3 \end{bmatrix}.Ak​≈​λ1​00​∗λ2​0​∗∗λ3​​​.

The diagonal entries of an upper-triangular matrix are its eigenvalues. Therefore, once the entries below the diagonal are sufficiently small, the diagonal entries of AkA_kAk​ provide approximations to the eigenvalues of AAA.

For a general nonsymmetric real matrix, the limiting form may be quasi-upper-triangular, containing 1×11 \times 11×1 and 2×22 \times 22×2 diagonal blocks. The 2×22 \times 22×2 blocks represent complex-conjugate eigenvalue pairs.

The convergence should be interpreted numerically:

  • The matrix does not usually become exactly triangular after a finite number of iterations.

  • The subdiagonal entries become small enough that the diagonal or diagonal blocks accurately reveal the eigenvalues.

  • The iteration continues until the remaining errors are below a chosen tolerance.


4.4 Rapid Convergence in a 2×22 \times 22×2 Example

A simple 2×22 \times 22×2 example illustrates the speed of QR convergence. In an appropriate parameterization involving an angle θ\thetaθ, an off-diagonal term can transform approximately as

sin⁡θ⟶sin⁡3θ⟶sin⁡9θ⟶sin⁡27θ⟶⋯ .\sin\theta \longrightarrow \sin^3\theta \longrightarrow \sin^9\theta \longrightarrow \sin^{27}\theta \longrightarrow \cdots.sinθ⟶sin3θ⟶sin9θ⟶sin27θ⟶⋯.

The exponents follow the pattern

3,  9,  27,…,3,\;9,\;27,\ldots,3,9,27,…,

so the off-diagonal quantity is repeatedly raised to higher powers. If ∣sin⁡θ∣<1|\sin\theta|<1∣sinθ∣<1, these powers rapidly drive the quantity toward zero.

This behavior is described as cubic convergence. Cubic convergence is much faster than linear convergence because the number of correct digits can increase dramatically from one iteration to the next when the iteration is close to its limiting behavior.


5. Shifted QR Iteration

5.1 Motivation for Shifts

The basic QR method can be accelerated by introducing a shift. A shift replaces the matrix AkA_kAk​ temporarily by

Ak−sI,A_k-sI,Ak​−sI,

where sss is a scalar and III is the identity matrix.

The shift is selected to approximate an eigenvalue. If sss is close to an eigenvalue λ\lambdaλ, then

λ−s\lambda-sλ−s

is close to zero. This causes the corresponding part of the QR iteration to converge much more rapidly.


5.2 Effect of Subtracting a Multiple of the Identity

Suppose

A0v=λv.A_0v=\lambda v.A0​v=λv.

Then

(A0−sI)v=A0v−sIv=λv−sv=(λ−s)v.(A_0-sI)v = A_0v-sIv = \lambda v-sv = (\lambda-s)v.(A0​−sI)v=A0​v−sIv=λv−sv=(λ−s)v.

Therefore:

  • The eigenvectors remain unchanged.

  • Each eigenvalue is shifted from λ\lambdaλ to λ−s\lambda-sλ−s.

Thus, subtracting sIsIsI changes the eigenvalues but not the eigenvectors.

After carrying out the QR iteration on the shifted matrix, the shift is added back so that the resulting matrix has the same eigenvalues as the original matrix.


5.3 Shifted QR Algorithm

At iteration kkk, choose a shift sks_ksk​ and factor

Ak−skI=QkRk.A_k-s_kI=Q_kR_k.Ak​−sk​I=Qk​Rk​.

Reverse the factors and restore the shift:

Ak+1=RkQk+skI.A_{k+1}=R_kQ_k+s_kI.Ak+1​=Rk​Qk​+sk​I.

The steps are:

  1. Subtract a multiple of the identity: $$ A_k-s_kI. $$

  2. Compute its QR factorization: $$ A_k-s_kI=Q_kR_k. $$

  3. Reverse the factors: $$ R_kQ_k. $$

  4. Add the shift back: $$ A_{k+1}=R_kQ_k+s_kI. $$


5.4 Why the Shifted Method Still Preserves Eigenvalues

The shifted iteration is still a similarity transformation.

From

Ak−skI=QkRk,A_k-s_kI=Q_kR_k,Ak​−sk​I=Qk​Rk​,

one has

Qk=(Ak−skI)Rk−1.Q_k=(A_k-s_kI)R_k^{-1}.Qk​=(Ak​−sk​I)Rk−1​.

Then

Ak+1=RkQk+skI=Rk(Ak−skI)Rk−1+skI=RkAkRk−1−skRkIRk−1+skI.\begin{aligned} A_{k+1} &=R_kQ_k+s_kI \\ &=R_k(A_k-s_kI)R_k^{-1}+s_kI \\ &=R_kA_kR_k^{-1}-s_kR_kIR_k^{-1}+s_kI. \end{aligned}Ak+1​​=Rk​Qk​+sk​I=Rk​(Ak​−sk​I)Rk−1​+sk​I=Rk​Ak​Rk−1​−sk​Rk​IRk−1​+sk​I.​

Because

RkIRk−1=I,R_kIR_k^{-1}=I,Rk​IRk−1​=I,

the shift terms cancel:

Ak+1=RkAkRk−1.A_{k+1} = R_kA_kR_k^{-1}.Ak+1​=Rk​Ak​Rk−1​.

Thus, Ak+1A_{k+1}Ak+1​ is similar to AkA_kAk​, and the eigenvalues are preserved.

A shift changes the matrix used during factorization, but subtracting and then adding the shift produces a matrix similar to the original one.


5.5 Choosing a Shift

The ideal shift would be an exact eigenvalue, but the eigenvalues are precisely what the algorithm is trying to compute. In practice, a shift is estimated from information already available in the current matrix, often using an entry near the bottom-right corner.

A good shift:

  • Is close to an eigenvalue that has not yet converged.

  • Makes one eigenvalue of Ak−skIA_k-s_kIAk​−sk​I very small.

  • Accelerates the movement of that eigenvalue toward the diagonal.

  • Can lead to very rapid, sometimes effectively cubic, convergence.

The shift does not substantially increase the cost of the iteration. The expensive operation remains the QR factorization.


6. Where the Computational Work Occurs

The shifted QR iteration involves:

  • Subtracting or adding sIsIsI.

  • Computing a QR factorization.

  • Multiplying RkQkR_kQ_kRk​Qk​.

The shift operation is inexpensive because it only modifies diagonal entries. Reversing the factors is also relatively inexpensive compared with the factorization.

The dominant cost is the repeated QR factorization. Therefore, an important improvement is to transform the matrix into a form in which QR factorization can be performed much more efficiently.


7. Hessenberg Reduction

7.1 Upper Hessenberg Form

An upper Hessenberg matrix has zeros below the first subdiagonal. Its structure is

H=[∗∗∗∗⋯∗∗∗∗⋯0∗∗∗⋯00∗∗⋯⋮⋮⋮⋱⋱].H= \begin{bmatrix} * & * & * & * & \cdots \\ * & * & * & * & \cdots \\ 0 & * & * & * & \cdots \\ 0 & 0 & * & * & \cdots \\ \vdots & \vdots & \vdots & \ddots & \ddots \end{bmatrix}.H=​∗∗00⋮​∗∗∗0⋮​∗∗∗∗⋮​∗∗∗∗⋱​⋯⋯⋯⋯⋱​​.

All entries below the first subdiagonal are zero.

An upper Hessenberg matrix is almost upper triangular, but it retains one additional nonzero diagonal below the main diagonal.


7.2 Why Hessenberg Form Is Useful

A dense n×nn \times nn×n matrix contains on the order of n2n^2n2 entries. During QR factorization, many operations are required to eliminate entries below the diagonal.

For an upper Hessenberg matrix, most of those entries are already zero. The QR factorization can therefore skip many operations. Even better, the Hessenberg structure is preserved by subsequent QR iterations.

This produces a major computational saving:

  • The initial reduction to Hessenberg form is performed once.

  • Shifted QR iteration is then applied to the Hessenberg matrix.

  • Each subsequent iteration is much cheaper than factoring a fully dense matrix.


7.3 Similarity Reduction to Hessenberg Form

The matrix is not merely sparsified arbitrarily. It must be transformed in a way that preserves its eigenvalues.

The reduction has the form

H=QTAQ,H=Q^TAQ,H=QTAQ,

where QQQ is orthogonal. Since

Q−1=QT,Q^{-1}=Q^T,Q−1=QT,

this can also be written as

H=Q−1AQ.H=Q^{-1}AQ.H=Q−1AQ.

Therefore, HHH is similar to AAA and has exactly the same eigenvalues.

The full practical eigenvalue algorithm begins with:

  1. Reduce AAA to upper Hessenberg form through an orthogonal similarity transformation.

  2. Apply shifted QR iteration to the Hessenberg matrix.


7.4 Why the Matrix Cannot Generally Be Reduced Directly to Diagonal Form

If a general matrix could be reduced to diagonal form using simple, universally applicable operations while preserving its eigenvalues, the eigenvalues would be obtained immediately from the diagonal. Such a process would amount to an exact general solution of the characteristic polynomial.

For matrices of degree five or higher, no general formula using elementary operations and radicals exists. Therefore, numerical algorithms aim for progressively simpler forms such as:

  • Upper Hessenberg form for general matrices.

  • Tridiagonal form for symmetric matrices.

  • Bidiagonal form for singular-value computations.

These forms are sparse enough to make computation efficient but do not reveal the eigenvalues or singular values immediately.


8. Symmetric Matrices and Tridiagonal Reduction

8.1 Preservation of Symmetry

Suppose A0A_0A0​ is symmetric:

A0T=A0.A_0^T=A_0.A0T​=A0​.

The QR iteration preserves symmetry when implemented in the appropriate similarity form. Since the orthogonal matrix satisfies

Q0−1=Q0T,Q_0^{-1}=Q_0^T,Q0−1​=Q0T​,

the transformed matrix can be expressed using an orthogonal similarity transformation. This ensures that the next matrix remains symmetric.

Symmetric matrices have especially favorable numerical properties:

  • Their eigenvalues are real.

  • Their eigenvectors can be chosen orthogonal.

  • Their QR iteration can use a much sparser matrix structure.


8.2 Symmetric Hessenberg Matrices

If a matrix is both:

  1. Upper Hessenberg, and

  2. Symmetric,

then symmetry forces the entries above and below the main diagonal to correspond. Because all entries below the first subdiagonal are zero, the corresponding entries above the first superdiagonal must also be zero.

The resulting structure is tridiagonal:

T=[d1e10⋯0e1d2e2⋱⋮0e2d3⋱0⋮⋱⋱⋱en−10⋯0en−1dn].T= \begin{bmatrix} d_1 & e_1 & 0 & \cdots & 0 \\ e_1 & d_2 & e_2 & \ddots & \vdots \\ 0 & e_2 & d_3 & \ddots & 0 \\ \vdots & \ddots & \ddots & \ddots & e_{n-1} \\ 0 & \cdots & 0 & e_{n-1} & d_n \end{bmatrix}.T=​d1​e1​0⋮0​e1​d2​e2​⋱⋯​0e2​d3​⋱0​⋯⋱⋱⋱en−1​​0⋮0en−1​dn​​​.

A tridiagonal matrix has nonzero entries only on:

  • The main diagonal.

  • The first diagonal above the main diagonal.

  • The first diagonal below the main diagonal.

Thus, a symmetric matrix can be reduced to

T=QTAQ,T=Q^TAQ,T=QTAQ,

where TTT is symmetric and tridiagonal.


8.3 Computational Benefits

A dense symmetric matrix requires on the order of n2n^2n2 storage locations. A symmetric tridiagonal matrix requires only approximately 2n2n2n numerical values:

  • nnn diagonal entries.

  • n−1n-1n−1 off-diagonal entries.

Because the tridiagonal structure is preserved during the specialized QR iteration, each step is very fast. This is the basis of efficient symmetric eigenvalue routines.

The symmetric eigenvalue workflow is:

  1. Reduce the symmetric matrix to symmetric tridiagonal form.

  2. Apply shifted QR iteration to the tridiagonal matrix.

  3. Read the converged eigenvalues from the diagonal.


9. Singular Values

9.1 Definition Through ATAA^TAATA

For a matrix AAA, the singular values are the nonnegative square roots of the eigenvalues of ATAA^TAATA.

If λi\lambda_iλi​ are the eigenvalues of ATAA^TAATA, then the singular values are

σi=λi.\sigma_i=\sqrt{\lambda_i}.σi​=λi​​.

This follows from the singular value decomposition,

A=UΣVT,A=U\Sigma V^T,A=UΣVT,

where:

  • UUU and VVV are orthogonal matrices.

  • Σ\SigmaΣ is diagonal or rectangular diagonal.

  • The diagonal entries of Σ\SigmaΣ are the singular values σi\sigma_iσi​.

Indeed,

ATA=VΣTUTUΣVT=VΣTΣVT.A^TA = V\Sigma^T U^T U\Sigma V^T = V\Sigma^T\Sigma V^T.ATA=VΣTUTUΣVT=VΣTΣVT.

Thus, the eigenvalues of ATAA^TAATA are σi2\sigma_i^2σi2​.


9.2 Why One Should Not Form ATAA^TAATA

Although the definition uses ATAA^TAATA, a numerical algorithm should generally avoid explicitly forming this product.

Forming ATAA^TAATA can be harmful because:

  • It increases the condition number approximately by squaring it:

    κ(ATA)≈κ(A)2.\kappa(A^TA)\approx \kappa(A)^2.κ(ATA)≈κ(A)2.
  • Squaring the condition number can severely magnify numerical errors.

  • Important information may be lost through cancellation and finite-precision arithmetic.

  • The product requires additional computation and storage.

  • It is unnecessary because the singular values can be computed directly from AAA.

A stable SVD algorithm works with AAA itself and uses orthogonal transformations rather than first forming ATAA^TAATA.


9.3 Orthogonal Invariance of Singular Values

Eigenvalues are preserved under similarity transformations of the form

Q−1AQ.Q^{-1}AQ.Q−1AQ.

Singular values have a different invariance property. They are preserved when the matrix is multiplied on the left and right by orthogonal matrices:

A⟼Q1AQ2T,A\longmapsto Q_1AQ_2^T,A⟼Q1​AQ2T​,

where Q1Q_1Q1​ and Q2Q_2Q2​ are orthogonal.

Using the SVD,

A=UΣVT,A=U\Sigma V^T,A=UΣVT,

consider

Q1AQ2T.Q_1AQ_2^T.Q1​AQ2T​.

Substituting the SVD gives

Q1AQ2T=Q1UΣVTQ2T.Q_1AQ_2^T = Q_1U\Sigma V^TQ_2^T.Q1​AQ2T​=Q1​UΣVTQ2T​.

This can be regrouped as

Q1AQ2T=(Q1U)Σ(Q2V)T.Q_1AQ_2^T = (Q_1U)\Sigma(Q_2V)^T.Q1​AQ2T​=(Q1​U)Σ(Q2​V)T.

Because products of orthogonal matrices are orthogonal, both Q1UQ_1UQ1​U and Q2VQ_2VQ2​V are orthogonal. Therefore, this is another SVD with the same middle factor Σ\SigmaΣ.

The singular values remain unchanged under independent orthogonal transformations on the left and right.

This provides more freedom than eigenvalue similarity transformations because the left and right orthogonal matrices do not need to be the same.


10. Bidiagonal Reduction for the SVD

10.1 Bidiagonal Form

Because singular values are invariant under transformations of the form

A⟼Q1AQ2T,A\longmapsto Q_1AQ_2^T,A⟼Q1​AQ2T​,

a general matrix can be reduced to bidiagonal form.

A typical upper bidiagonal matrix is

B=[d1e10⋯00d2e2⋱⋮00d3⋱0⋮⋱⋱⋱en−10⋯00dn].B= \begin{bmatrix} d_1 & e_1 & 0 & \cdots & 0 \\ 0 & d_2 & e_2 & \ddots & \vdots \\ 0 & 0 & d_3 & \ddots & 0 \\ \vdots & \ddots & \ddots & \ddots & e_{n-1} \\ 0 & \cdots & 0 & 0 & d_n \end{bmatrix}.B=​d1​00⋮0​e1​d2​0⋱⋯​0e2​d3​⋱0​⋯⋱⋱⋱0​0⋮0en−1​dn​​​.

It has nonzero entries only on:

  • The main diagonal.

  • One adjacent diagonal, usually the superdiagonal.

The reduction has the form

B=Q1AQ2T,B=Q_1AQ_2^T,B=Q1​AQ2T​,

with Q1Q_1Q1​ and Q2Q_2Q2​ orthogonal. Therefore, BBB has exactly the same singular values as AAA.


10.2 Two-Stage SVD Algorithm

The practical SVD algorithm has two main stages:

Stage 1: Reduce to bidiagonal form

Use orthogonal transformations on the left and right to obtain

A⟶B.A\longrightarrow B.A⟶B.

The matrix BBB is much sparser than AAA but retains the singular values.

Stage 2: Compute the singular values of the bidiagonal matrix

Apply an iterative algorithm, often a QR-type method, to the bidiagonal matrix. The sparsity makes each step efficient.

The general strategy is therefore:

  1. Create zeros in locations that will remain zero.

  2. Work only with the resulting structured matrix.

  3. Iterate until the diagonal entries converge to the singular values.


10.3 Relationship Between Bidiagonal and Tridiagonal Forms

If BBB is bidiagonal, then

BTBB^TBBTB

is symmetric tridiagonal. For example, if BBB is upper bidiagonal, then each column of BBB overlaps only with itself and its neighboring column. Consequently, BTBB^TBBTB has nonzero entries only on the main diagonal and the two adjacent diagonals.

Thus:

  • A bidiagonal matrix leads to a tridiagonal BTBB^TBBTB.

  • A symmetric tridiagonal eigenvalue problem is closely connected to the SVD of a bidiagonal matrix.

  • The SVD algorithm obtains the advantages of tridiagonal eigenvalue algorithms without explicitly forming ATAA^TAATA.

This relationship explains why bidiagonal reduction is the natural preprocessing step for singular-value computation.


11. Practical Software Implementations

High-quality numerical software does not normally apply the most naive version of these algorithms. Instead, it uses carefully optimized routines based on:

  • Orthogonal transformations.

  • Hessenberg reduction.

  • Tridiagonal reduction for symmetric problems.

  • Bidiagonal reduction for SVD problems.

  • Shifted QR iterations.

  • Deflation when parts of the matrix have already converged.

Libraries such as LAPACK contain professionally developed routines for eigenvalue and singular-value computation. High-level systems such as MATLAB, Python numerical libraries, and Julia typically call such optimized low-level routines.

The important conceptual point is that a command such as an eigenvalue or SVD routine is backed by a sequence of structured reductions and iterations rather than by direct symbolic solution of the characteristic polynomial.


12. Computational Complexity and Matrix Size

For dense matrices of moderate to large size, QR-based methods are highly successful. A typical eigenvalue computation can achieve a desired accuracy with computational work on the order of

O(n3).O(n^3).O(n3).

This is impressive because the method approximates the roots of an nnnth-degree characteristic polynomial without requiring an explicit symbolic formula.

However, the O(n3)O(n^3)O(n3) cost becomes prohibitive when nnn is extremely large. Additional difficulties arise because:

  • Storing a dense n×nn \times nn×n matrix requires O(n2)O(n^2)O(n2) memory.

  • Each matrix-vector product may itself be expensive.

  • A complete decomposition may compute far more eigenvalues or singular values than are actually needed.

For very large or sparse matrices, algorithms often compute only a small number of eigenvalues or singular values using iterative subspace methods.


13. Krylov Subspace Methods

13.1 Constructing a Krylov Subspace

A Krylov method begins with a vector bbb and repeatedly multiplies by AAA:

b,Ab,A2b,A3b,….b,\quad Ab,\quad A^2b,\quad A^3b,\quad \ldots.b,Ab,A2b,A3b,….

The first mmm such vectors span the Krylov subspace

Km(A,b)=span⁡{b,Ab,A2b,…,Am−1b}.\mathcal{K}_m(A,b) = \operatorname{span}\{b,Ab,A^2b,\ldots,A^{m-1}b\}.Km​(A,b)=span{b,Ab,A2b,…,Am−1b}.

For example, with m=100m=100m=100,

K100(A,b)=span⁡{b,Ab,A2b,…,A99b}.\mathcal{K}_{100}(A,b) = \operatorname{span}\{b,Ab,A^2b,\ldots,A^{99}b\}.K100​(A,b)=span{b,Ab,A2b,…,A99b}.

The vectors may not initially be orthogonal, so they are orthogonalized to form a stable basis.


13.2 Reducing a Large Problem

Suppose AAA is a matrix of size one million by one million, but only a relatively small number of eigenvalues are required.

A Krylov method constructs a subspace of dimension perhaps 100100100 rather than working with the full million-dimensional space. Let

V100=[v1v2⋯v100]V_{100} = \begin{bmatrix} v_1 & v_2 & \cdots & v_{100} \end{bmatrix}V100​=[v1​​v2​​⋯​v100​​]

contain an orthonormal basis for the subspace.

The large matrix AAA is then represented on this subspace by the smaller projected matrix

H100=V100TAV100.H_{100}=V_{100}^TAV_{100}.H100​=V100T​AV100​.

The original eigenvalue problem is approximated by the 100×100100 \times 100100×100 eigenvalue problem

H100y=θy.H_{100}y=\theta y.H100​y=θy.

The values θ\thetaθ are approximate eigenvalues of AAA, and the corresponding approximate eigenvectors in the original space are

x=V100y.x=V_{100}y.x=V100​y.

The large problem has been replaced by a much smaller one.


13.3 Why Krylov Spaces Can Capture Eigenvectors

If a starting vector bbb has components in the directions of several eigenvectors of AAA, repeated multiplication by AAA scales those components by increasing powers of the corresponding eigenvalues.

If

b=∑icivib=\sum_i c_i v_ib=∑i​ci​vi​

for eigenvectors viv_ivi​, then

Akb=∑iciλikvi.A^kb=\sum_i c_i\lambda_i^k v_i.Akb=∑i​ci​λik​vi​.

The powers λik\lambda_i^kλik​ change the relative importance of the eigenvector components. As a result, the Krylov subspace can become strongly aligned with eigenvectors associated with particular parts of the spectrum.

The effectiveness of the method depends on factors such as:

  • The choice of starting vector.

  • The separation between eigenvalues.

  • The number of Krylov vectors.

  • Whether the matrix is sparse.

  • The desired part of the spectrum.

The method is especially useful when matrix-vector multiplication AxAxAx is inexpensive, as occurs with sparse matrices.


13.4 Approximation and Truncation

When AAA acts on a vector in the Krylov subspace, the result may not remain exactly in that subspace. It can be decomposed into:

  • A component inside the subspace.

  • A residual component outside the subspace.

Krylov methods project the action of AAA back onto the selected subspace and either ignore or monitor the residual. The smaller the residual, the more reliable the approximate eigenpair.

The method does not necessarily produce the first 100100100 eigenvalues in numerical order. It produces the eigenvalues that are best represented by the chosen subspace and algorithm. Additional techniques are required when particular eigenvalues—such as the smallest or largest ones—are desired.


13.5 Relation to Gram–Schmidt

Krylov methods repeatedly return to the same fundamental operation used in QR factorization: orthogonalization.

The sequence

b,  Ab,  A2b,…b,\;Ab,\;A^2b,\ldotsb,Ab,A2b,…

usually becomes linearly dependent or nearly dependent numerically. Orthogonalizing the vectors:

  • Produces a stable basis.

  • Prevents loss of useful directions.

  • Allows the projected matrix to be formed cleanly.

  • Connects Krylov methods to QR factorization and related orthogonalization procedures.

Thus, Gram–Schmidt and orthogonal transformations are central not only to QR iteration but also to large-scale iterative eigenvalue algorithms.


14. Key Comparisons

Eigenvalue computation

  • Invariant: Similarity transformations preserve eigenvalues.

  • Transformation: A↦Q−1AQA\mapsto Q^{-1}AQA↦Q−1AQ or, in the orthogonal case, A↦QTAQA\mapsto Q^TAQA↦QTAQ.

  • Structured form: Upper Hessenberg for general matrices; tridiagonal for symmetric matrices.

  • Main iteration: Shifted QR iteration.

  • Output: Eigenvalues appear on the diagonal or in converged diagonal blocks.

Singular-value computation

  • Invariant: Independent orthogonal transformations on the left and right preserve singular values.

  • Transformation: A↦Q1AQ2TA\mapsto Q_1AQ_2^TA↦Q1​AQ2T​.

  • Structured form: Bidiagonal.

  • Main iteration: QR-type iteration on the bidiagonal matrix.

  • Output: Singular values converge from the structured reduced problem.

Very large or sparse matrices

  • Invariant or principle: Approximate the action of AAA on a low-dimensional subspace.

  • Transformation: Projection onto a Krylov subspace.

  • Structured problem: A small projected matrix.

  • Main operation: Repeated sparse matrix-vector multiplication and orthogonalization.

  • Output: Approximate eigenvalues and eigenvectors.


15. Essential Takeaways

Similarity is the key invariant for eigenvalues. If two matrices are similar, they have the same eigenvalues.

QR iteration preserves eigenvalues while making the matrix progressively more triangular.

Shifts accelerate QR iteration by moving an estimated eigenvalue close to zero before the factorization.

Hessenberg reduction makes QR practical for general dense matrices by introducing zeros that remain in place.

Symmetric Hessenberg matrices are tridiagonal, making symmetric eigenvalue computation especially efficient.

Singular values are invariant under independent orthogonal transformations on the left and right, which allows reduction to bidiagonal form.

One should not explicitly form ATAA^TAATA to compute singular values because doing so can worsen conditioning and lose numerical accuracy.

Krylov methods handle very large or sparse matrices by approximating the eigenvalue problem in a much smaller subspace generated by repeated matrix-vector multiplication.

Numerical linear algebra therefore replaces unavailable exact formulas with structure-preserving transformations, rapidly convergent iterations, and carefully chosen low-dimensional approximations.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent