In linear algebra, eigendecomposition (also known as eigenvalue decomposition or EVD) is a factorization of a matrix A into a canonical form given by A=QDQ−𝟣, where D is a diagonal matrix containing the eigenvalues of A on the diagonal, and Q is a matrix whose columns are the corresponding eigenvectors of A. Only diagonalizable matrices can be factorized in this way. When the matrix being factorized is a normal or real symmetric matrix, the decomposition is called "spectral decomposition", derived from the spectral theorem.
Fundamental theory of matrix eigenvectors and eigenvalues
A nonzero vector v of dimension N is an eigenvector of a square N × N matrix A if it satisfies a linear equation of the form 𝐀𝐯=λ𝐯 for some scalar λ. Then, λ is called the eigenvalue corresponding to v. Geometrically speaking, the eigenvectors of A are the vectors that A merely elongates or shrinks, and the amount that each of them elongates/shrinks by is the corresponding eigenvalue. The above equation is called the eigenvalue equation or the eigenvalue problem. This yields an equation for the eigenvalues: det(𝐀−λ𝐈)=0. We call this equation the characteristic equation of 𝐀; it is an Nth-order polynomial equation in the unknown λ. We call p(λ)=det(𝐀−λ𝐈) the characteristic polynomial of 𝐀. The present article only considers algebraically closed fields of scalars. Then, the characteristic equation will have Nλ distinct solutions, where 1 ≤ Nλ ≤ N. The set of solutions, that is, of eigenvalues, is called the spectrum of 𝐀. We can factor p as p(λ)=(λ1−λ)n1(λ2−λ)n2⋯(λNλ−λ)nNλ, and the characteristic equation becomes (λ1−λ)n1(λ2−λ)n2⋯(λNλ−λ)nNλ=0. The integer ni is termed the algebraic multiplicity of the eigenvalue λi. The algebraic multiplicities sum to N: ∑i=1Nλni=N. For each eigenvalue λi, we have a specific eigenvalue equation in the unknown 𝐯: (𝐀−λi𝐈)𝐯=0. There will be 1 ≤ mi ≤ ni linearly independent solutions to each eigenvalue equation. The linear combinations of the mi solutions (except the one which gives the zero vector) 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 mi ≤ ni. 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: ∑i=1Nλmi=N𝐯. The eigenvectors can be indexed by eigenvalues, using a double index, with vij 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.
Eigendecomposition of a matrix Let A be a square n × n matrix with n linearly independent eigenvectors qi (where i = 1, ..., n). Then A can be factored as 𝐀=𝐐𝜦𝐐−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, Λii = λi. Note that only diagonalizable matrices can be factorized in this way. For example, the defective matrix [1101] (which is a shear matrix) cannot be diagonalized. The n eigenvectors qi are usually normalized, but they do not have to be. A non-normalized set of n eigenvectors vi can also be used as the columns of Q. That can be understood by noting that the magnitude of the eigenvectors in Q gets canceled in the decomposition by the presence of Q−1. If one of the eigenvalues λi has multiple linearly independent eigenvectors (that is, the geometric multiplicity of λi is greater than 1), then the eigenvectors for this eigenvalue λi can be chosen to be mutually orthogonal. However, if two eigenvectors belong to two different eigenvalues, it may be impossible for them to be orthogonal to each other. For instance, the matrix [1013] cannot be diagonalized in an orthogonal basis (see Example below). One special case is when A is a normal matrix; then by the spectral theorem, it is always possible to diagonalize A in an orthonormal basis {qi}. The decomposition can be derived from the fundamental property of eigenvectors: 𝐀𝐯=λ𝐯𝐀𝐐=𝐐𝜦𝐀=𝐐𝜦𝐐−1. The linearly independent eigenvectors qi with nonzero eigenvalues form a basis (not necessarily orthonormal) for all possible products 𝐀𝐱, for 𝐱∈ℂn, which is the same as the image (or range) of the corresponding matrix transformation, and also the column space of the matrix 𝐀. The number of linearly independent eigenvectors qi with nonzero eigenvalues is equal to the rank of the matrix 𝐀, and also the dimension of the image (or range) of the corresponding matrix transformation, as well as its column space. The linearly independent eigenvectors qi with an eigenvalue of zero form a basis (which can be chosen to be orthonormal) for the null space (also known as the kernel) of the matrix transformation 𝐀.
… excerpt ends here. Continue reading the full article.
