Eigendecomposition of a matrix

From Wikipedia, the free encyclopedia

In the mathematical discipline of linear algebra, eigendecomposition or sometimes spectral decomposition is the factorization of a matrix into a canonical form, whereby the matrix is represented in terms of its eigenvalues and eigenvectors.

Contents

[edit] Fundamental theory of matrix eigenvectors and eigenvalues

A vector v of dimension N is an eigenvector of a square (N×N) matrix A if and only if it satisfies the linear equation

\mathbf{A}\mathbf{v}=\lambda \mathbf{v}

where λ is a scalar, termed the eigenvalue corresponding to v. The above equation is called the eigenvalue equation or the eigenvalue problem.

This yields an equation for the eigenvalues

 p\left(\lambda\right) := \det\left(\mathbf{A} - \lambda \mathbf{I}\right)= 0. \!\

We call p(λ) the characteristic polynomial, and the equation, called the characteristic equation, is an Nth order polynomial equation in the unknown λ. This equation will have Nλ distinct solutions, where 1 ≤ NλN . The set of solutions, i.e. the eigenvalues, is sometimes called the spectrum of A.

We can factor p as

p\left(\lambda\right)= (\lambda-\lambda_1)^{n_1}(\lambda-\lambda_2)^{n_2}...(\lambda-\lambda_k)^{n_k} = 0 \!\

where

\sum\limits_{i=1}^{N_{\lambda}}{n_i} =N.

For each eigenvalue, λi, we have a specific eigenvalue equation

 \left(\mathbf{A} - \lambda_i \mathbf{I}\right)\mathbf{v}  = 0. \!\

There will be 1 ≤ mini linearly independent solutions to each eigenvalue equation. The mi solutions are the eigenvectors associated with the eigenvalue λi. The integer mi is termed the geometric multiplicity of λi. It is important to keep in mind that the algebraic multiplicity ni and geometric multiplicity mi may or may not be equal, but we always have mini. The simplest case is of course when mi = ni = 1. The total number of linearly independent eigenvectors, Nv, can be calculated by summing the geometric multiplicities

\sum\limits_{i=1}^{N_{\lambda}}{m_i} =N_{\mathbf{v}}.

The eigenvectors can be indexed by eigenvalues, i.e. using a double index, with vi,j being the jth eigenvector for the ith eigenvalue. The eigenvectors can also be indexed using the simpler notation of a single index vk, with k=1, 2, ... , Nv.

[edit] Eigendecomposition of a matrix

Let A be a square (N×N) matrix with N linearly independent eigenvectors, q_i \,\, (i = 1, ..., N). Then A can be factorized as

\mathbf{A}=\mathbf{Q}\mathbf{\Lambda}\mathbf{Q}^{-1}

where Q is the square (N×N) matrix whose ith column is the eigenvector qi of A and Λ is the diagonal matrix whose diagonal elements are the corresponding eigenvalues, i.e., Λii = λi.

The eigenvectors q_i \,\, (i = 1, ..., N) are usually normalized, but they need not be. A non-normalized set of eigenvectors, v_i \,\, (i = 1, ..., N), can also be used as the columns of Q. That this is true can be understood by noting that the magnitude of the eigenvectors in Q gets canceled in the decomposition by the presence of Q-1.

[edit] Matrix inverse via eigendecomposition

Main article: Inverse matrix

If matrix A can be eigendecomposed and if none of its eigenvalues are zero, then A is nonsingular and its inverse is given by

\mathbf{A}^{-1}=\mathbf{Q}\mathbf{\Lambda}^{-1}\mathbf{Q}^{-1}

Because Λ is a diagonal matrix, its inverse is easy to calculate:

\left[\Lambda^{-1}\right]_{ii}=\frac{1}{\lambda_i}

[edit] Functional calculus

The eigendecomposition allows for much easier computation of power series of matrices. If f(x) is given by

f(x)=a_0+a_1 x+a_2 x^2+\ldots

then we know that

f\left(\mathbf{A}\right)=\mathbf{Q}f\left(\mathbf{\Lambda}\right)\mathbf{Q}^{-1}

Because Λ is a diagonal matrix, functions of Λ are very easy to calculate:

\left[f\left(\mathbf{\Lambda}\right)\right]_{ii}=f\left(\lambda_i\right)

The off-diagonal elements of f(Λ) are zero; that is, f(Λ) is also a diagonal matrix. Therefore, calculating f(A) reduces to just calculating the function on each of the eigenvalues .

A similar technique works more generally with the holomorphic functional calculus, using

\mathbf{A}^{-1}=\mathbf{Q}\mathbf{\Lambda}^{-1}\mathbf{Q}^{-1}

from above. Once again, we find that

\left[f\left(\mathbf{\Lambda}\right)\right]_{ii}=f\left(\lambda_i\right)

[edit] Decomposition for special matrices


[edit] Symmetric matrices

Any eigenvector basis for a real symmetric matrix is orthogonal, and can always be made into an orthonormal basis. Thus a real symmetric matrix can be decomposed as

\mathbf{A}=\mathbf{Q}\mathbf{\Lambda}\mathbf{Q}^{T}

where Q is an orthogonal matrix, and Λ is real and diagonal.

[edit] Normal matrices

Any eigenvector basis for a complex normal matrix is also orthogonal, so a real symmetric matrix can be decomposed as

\mathbf{A}=\mathbf{U}\mathbf{\Lambda}\mathbf{U}^{H}

where U is a unitary matrix. Further, if A is Hermitian, the diagonal matrix Λ has only real values, and if A is unitary, Λ takes all its values on the complex unit circle.

[edit] Useful facts

[edit] Useful facts regarding eigenvalues

  • The product of the eigenvalues is equal to the determinant of A
\det\left(\mathbf{A}\right) = \prod\limits_{i=1}^{N_{\lambda}}{\lambda_i^{n_i}} \!\

Note that each eigenvalue is raised to the power ni, the algebraic multiplicity.

  • The sum of the eigenvalues is equal to the trace of A
\operatorname{tr}\left(\mathbf{A}\right) = \sum\limits_{i=1}^{N_{\lambda}}{{n_i}\lambda_i} \!\

Note that each eigenvalue is multiplied by ni, the algebraic multiplicity.

  • If the eigenvalues of A are λi, and A is invertible, then the eigenvalues of A-1 are simply λi-1.
  • If the eigenvalues of A are λi, then the eigenvalues of f(A) are simply fi), for any holomorphic function f.

[edit] Useful facts regarding eigenvectors

  • If A is (real) symmetric, then Nv=N, the eigenvectors are real, mutually orthogonal and provide a basis for \mathbb{R}^{N}.
  • The eigenvectors of A-1 are the same as the eigenvectors of A
  • The eigenvectors of f(A) are the same as the eigenvectors of A

[edit] Useful facts regarding eigendecomposition

  • A can be eigendecomposed if and only if
N_{\mathbf{v}}=N
  • If p(λ) has no repeated roots, i.e. Nλ=N, then A can be eigendecomposed.
  • The statement "A can be eigendecomposed" does not imply that A has an inverse.
  • The statement "A has an inverse" does not imply that A can be eigendecomposed.

[edit] Useful facts regarding matrix inverse

  • \mathbf{A} can be inverted if and only if
\lambda_i \ne 0 \; \forall \,i
  • If \lambda_i \ne 0 \; \forall \,i and N_{\mathbf{v}}=N, the inverse is given by
\mathbf{A}^{-1}=\mathbf{Q}\mathbf{\Lambda}^{-1}\mathbf{Q}^{-1}

[edit] Numerical computations

For more details on this topic, see eigenvalue algorithm.

[edit] Numerical computation of eigenvalues

Suppose that we want to compute the eigenvalues of a given matrix. If the matrix is small, we can compute them symbolically using the characteristic polynomial. However, this is often impossible for larger matrices, in which case we must use a numerical method.

In practice, eigenvalues of large matrices are not computed using the characteristic polynomial. Computing the polynomial becomes expensive in itself, and exact (symbolic) roots of a high-degree polynomial can be difficult to compute and express: the Abel–Ruffini theorem implies that the roots of high-degree (5 and above) polynomials cannot in general be expressed simply using nth roots. Effective numerical algorithms for approximating roots of polynomials exist, but small errors in the eigenvalues can lead to large errors in the eigenvectors. Therefore, general algorithms to find eigenvectors and eigenvalues are iterative. The easiest method is the power method: a random vector v is chosen and a sequence of unit vectors is computed as

\frac{Av}{\|Av\|}, \frac{A^2v}{\|A^2v\|}, \frac{A^3v}{\|A^3v\|}, ...

This sequence will almost always converge to an eigenvector corresponding to the eigenvalue of greatest magnitude. This algorithm is simple, but not very useful by itself. However, popular methods such as the QR algorithm are based on it.

[edit] Numerical computation of eigenvectors

Once the eigenvalues are computed, the eigenvectors can be calculated by solving the equation

 \left(\mathbf{A} - \lambda_i \mathbf{I}\right)\mathbf{v}_{i,j}  = 0 \!\

using Gaussian elimination or any other method for solving matrix equations.

[edit] Additional topics

[edit] Generalized eigenspaces

Recall that the geometric multiplicity of an eigenvalue can be described as the dimension of the associated eigenspace, the nullspace of λI − A. The algebraic multiplicity can also be thought of as a dimension: it is the dimension of the associated generalized eigenspace (1st sense), which is the nullspace of the matrix (λI − A)k for any sufficiently large k. That is, it is the space of generalized eigenvectors (1st sense), where a generalized eigenvector is any vector which eventually becomes 0 if λI − A is applied to it enough times successively. Any eigenvector is a generalized eigenvector, and so each eigenspace is contained in the associated generalized eigenspace. This provides an easy proof that the geometric multiplicity is always less than or equal to the algebraic multiplicity.

This usage should not be confused with the generalized eigenvalue problem described below.

[edit] Conjugate eigenvector

A conjugate eigenvector or coneigenvector is a vector sent after transformation to a scalar multiple of its conjugate, where the scalar is called the conjugate eigenvalue or coneigenvalue of the linear transformation. The coneigenvectors and coneigenvalues represent essentially the same information and meaning as the regular eigenvectors and eigenvalues, but arise when an alternative coordinate system is used. The corresponding equation is

Av = \lambda v^*.\,

For example, in coherent electromagnetic scattering theory, the linear transformation A represents the action performed by the scattering object, and the eigenvectors represent polarization states of the electromagnetic wave. In optics, the coordinate system is defined from the wave's viewpoint, known as the Forward Scattering Alignment (FSA), and gives rise to a regular eigenvalue equation, whereas in radar, the coordinate system is defined from the radar's viewpoint, known as the Back Scattering Alignment (BSA), and gives rise to a coneigenvalue equation.

[edit] Generalized eigenvalue problem

A generalized eigenvalue problem (2nd sense) is of the form

 Av = \lambda B v \quad \quad

where A and B are matrices. The generalized eigenvalues (2nd sense) λ can be obtained by solving the equation

\det(A - \lambda B)=0.\,

The set of matrices of the form A − λB, where λ is a complex number, is called a pencil. If B is invertible, then the original problem can be written in the form

 B^{-1}Av = \lambda v \quad \quad

which is a standard eigenvalue problem. However, in most situations it is preferable not to perform the inversion, but rather to solve the generalized eigenvalue problem as stated originally.

[edit] See also

[edit] Bibliography

  • Golub, G. H. and Van Loan, C. F. (1996). "Matrix Computations". 3rd ed., Johns Hopkins University Press, Baltimore. ISBN 0-8018-5414-8.
  • Horn, Roger A. and Johnson, Charles R (1985). "Matrix Analysis". Cambridge University Press. ISBN 0-521-38632-2.
  • Horn, Roger A. and Johnson, Charles R (1991). Topics in Matrix Analysis. Cambridge University Press. ISBN 0-521-46713-6.
  • Strang G (1998). "Introduction to Linear Algebra". 3rd ed., Wellesley-Cambridge Press. ISBN 0-9614088-5-5.