# Eigendecomposition of a matrix

In linear algebra, eigendecomposition is the factorization of a matrix into a canonical form, whereby the matrix is represented in terms of its eigenvalues and eigenvectors. 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 $\mathbf {A} \mathbf {v} =\lambda \mathbf {v}$ 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 they elongate/shrink by is the eigenvalue. 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, that is, the eigenvalues, is called the spectrum of A.
If the field of scalars is algebraically closed, then we can factor p as $p(\lambda )=\left(\lambda -\lambda _{1}\right)^{n_{1}}\left(\lambda -\lambda _{2}\right)^{n_{2}}\cdots \left(\lambda -\lambda _{N_{\lambda }}\right)^{n_{N_{\lambda }}}=0.$ The integer n$_i$ is termed the algebraic multiplicity of eigenvalue λ$_i$. The algebraic multiplicities sum to N: ∑$_{i=1}$$^{Nλ}$n$_i$=N.{\textstyle \sum _{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 ≤ m$_i$ ≤ n$_i$ linearly independent solutions to each eigenvalue equation. The linear combinations of the m$_i$ solutions (except the one which gives the zero vector) are the eigenvectors associated with the eigenvalue λ$_i$. The integer m$_i$ is termed the geometric multiplicity of λ$_i$. It is important to keep in mind that the algebraic multiplicity n$_i$ and geometric multiplicity m$_i$ may or may not be equal, but we always have m$_i$ ≤ n$_i$. The simplest case is of course when m$_i$ = n$_i$ = 1. The total number of linearly independent eigenvectors, N$_v$, can be calculated by summing the geometric multiplicities $\sum _{i=1}^{N_{\lambda }}{m_{i}}=N_{\mathbf {v} }.$
The eigenvectors can be indexed by eigenvalues, using a double index, with v$_{ij}$ being the jth eigenvector for the ith eigenvalue. The eigenvectors can also be indexed using the simpler notation of a single index v$_k$, with k = 1, 2, ..., N$_v$.

## Eigendecomposition of a matrix

Let A be a square n × n matrix with n linearly independent eigenvectors q$_i$ (where i = 1, ..., n). Then A can be factored as $\mathbf {A} =\mathbf {Q} \mathbf {\Lambda } \mathbf {Q} ^{-1}$ where Q is the square n × n matrix whose ith column is the eigenvector q$_i$ 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 $\left[{\begin{smallmatrix}1&1\\0&1\end{smallmatrix}}\right]$ (which is a shear matrix) cannot be diagonalized.
The n eigenvectors q$_i$ are usually normalized, but they don't have to be. A non-normalized set of n eigenvectors, v$_i$ 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 these 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 (see Example below). One special case is that if A is a normal matrix, then by the spectral theorem, it's always possible to diagonalize A in an orthonormal basis {q$_i$}.
The decomposition can be derived from the fundamental property of eigenvectors: ${\begin{aligned}\mathbf {A} \mathbf {v} &=\lambda \mathbf {v} \\\mathbf {A} \mathbf {Q} &=\mathbf {Q} \mathbf {\Lambda } \\\mathbf {A} &=\mathbf {Q} \mathbf {\Lambda } \mathbf {Q} ^{-1}.\end{aligned}}$ The linearly independent eigenvectors q$_i$ with nonzero eigenvalues form a basis (not necessarily orthonormal) for all possible products Ax, for x ∈ C$^n$, which is the same as the image (or range) of the corresponding matrix transformation, and also the column space of the matrix A. The number of linearly independent eigenvectors q$_i$ with nonzero eigenvalues is equal to the rank of the matrix A, and also the dimension of the image (or range) of the corresponding matrix transformation, as well as its column space.
The linearly independent eigenvectors q$_i$ 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 A.

### Example

The 2 × 2 real matrix A $\mathbf {A} ={\begin{bmatrix}1&0\\1&3\\\end{bmatrix}}$ may be decomposed into a diagonal matrix through multiplication of a non-singular matrix Q $\mathbf {Q} ={\begin{bmatrix}a&b\\c&d\end{bmatrix}}\in \mathbb {R} ^{2\times 2}.$
Then ${\begin{bmatrix}a&b\\c&d\end{bmatrix}}^{-1}{\begin{bmatrix}1&0\\1&3\end{bmatrix}}{\begin{bmatrix}a&b\\c&d\end{bmatrix}}={\begin{bmatrix}x&0\\0&y\end{bmatrix}},$ for some real diagonal matrix $\left[{\begin{smallmatrix}x&0\\0&y\end{smallmatrix}}\right]$.
Multiplying both sides of the equation on the left by Q: ${\begin{bmatrix}1&0\\1&3\end{bmatrix}}{\begin{bmatrix}a&b\\c&d\end{bmatrix}}={\begin{bmatrix}a&b\\c&d\end{bmatrix}}{\begin{bmatrix}x&0\\0&y\end{bmatrix}}.$ The above equation can be decomposed into two simultaneous equations: ${\begin{cases}{\begin{bmatrix}1&0\\1&3\end{bmatrix}}{\begin{bmatrix}a\\c\end{bmatrix}}={\begin{bmatrix}ax\\cx\end{bmatrix}}\\[1.2ex]{\begin{bmatrix}1&0\\1&3\end{bmatrix}}{\begin{bmatrix}b\\d\end{bmatrix}}={\begin{bmatrix}by\\dy\end{bmatrix}}\end{cases}}.$ Factoring out the eigenvalues x and y: ${\begin{cases}{\begin{bmatrix}1&0\\1&3\end{bmatrix}}{\begin{bmatrix}a\\c\end{bmatrix}}=x{\begin{bmatrix}a\\c\end{bmatrix}}\\[1.2ex]{\begin{bmatrix}1&0\\1&3\end{bmatrix}}{\begin{bmatrix}b\\d\end{bmatrix}}=y{\begin{bmatrix}b\\d\end{bmatrix}}\end{cases}}$ Letting $\mathbf {a} ={\begin{bmatrix}a\\c\end{bmatrix}},\quad \mathbf {b} ={\begin{bmatrix}b\\d\end{bmatrix}},$ this gives us two vector equations: ${\begin{cases}\mathbf {A} \mathbf {a} =x\mathbf {a} \\\mathbf {A} \mathbf {b} =y\mathbf {b} \end{cases}}$ And can be represented by a single vector equation involving two solutions as eigenvalues: $\mathbf {A} \mathbf {u} =\lambda \mathbf {u}$ where λ represents the two eigenvalues x and y, and u represents the vectors a and b.
Shifting λu to the left hand side and factoring u out $\left(\mathbf {A} -\lambda \mathbf {I} \right)\mathbf {u} =\mathbf {0}$ Since Q is non-singular, it is essential that u is nonzero. Therefore, $\det(\mathbf {A} -\lambda \mathbf {I} )=0$ Thus $(1-\lambda )(3-\lambda )=0$ giving us the solutions of the eigenvalues for the matrix A as λ = 1 or λ = 3, and the resulting diagonal matrix from the eigendecomposition of A is thus $\left[{\begin{smallmatrix}1&0\\0&3\end{smallmatrix}}\right]$.
Putting the solutions back into the above simultaneous equations ${\begin{cases}{\begin{bmatrix}1&0\\1&3\end{bmatrix}}{\begin{bmatrix}a\\c\end{bmatrix}}=1{\begin{bmatrix}a\\c\end{bmatrix}}\\[1.2ex]{\begin{bmatrix}1&0\\1&3\end{bmatrix}}{\begin{bmatrix}b\\d\end{bmatrix}}=3{\begin{bmatrix}b\\d\end{bmatrix}}\end{cases}}$
Solving the equations, we have $a=-2c\quad {\text{and}}\quad b=0,\qquad c,d\in \mathbb {R} .$ Thus the matrix Q required for the eigendecomposition of A is $\mathbf {Q} ={\begin{bmatrix}-2c&0\\c&d\end{bmatrix}},\qquad c,d\in \mathbb {R} ,$ that is: ${\begin{bmatrix}-2c&0\\c&d\end{bmatrix}}^{-1}{\begin{bmatrix}1&0\\1&3\end{bmatrix}}{\begin{bmatrix}-2c&0\\c&d\end{bmatrix}}={\begin{bmatrix}1&0\\0&3\end{bmatrix}},\qquad c,d\in \mathbb {R}$

### Matrix inverse via eigendecomposition

If a matrix A can be eigendecomposed and if none of its eigenvalues are zero, then A is invertible and its inverse is given by $\mathbf {A} ^{-1}=\mathbf {Q} \mathbf {\Lambda } ^{-1}\mathbf {Q} ^{-1}$ If $\mathbf {A}$ is a symmetric matrix, since $\mathbf {Q}$ is formed from the eigenvectors of $\mathbf {A}$, $\mathbf {Q}$ is guaranteed to be an orthogonal matrix, therefore $\mathbf {Q} ^{-1}=\mathbf {Q} ^{\mathrm {T} }$. Furthermore, because Λ is a diagonal matrix, its inverse is easy to calculate: $\left[\mathbf {\Lambda } ^{-1}\right]_{ii}={\frac {1}{\lambda _{i}}}$

#### Practical implications

When eigendecomposition is used on a matrix of measured, real data, the inverse may be less valid when all eigenvalues are used unmodified in the form above. This is because as eigenvalues become relatively small, their contribution to the inversion is large. Those near zero or at the "noise" of the measurement system will have undue influence and could hamper solutions (detection) using the inverse.
Two mitigations have been proposed: truncating small or zero eigenvalues, and extending the lowest reliable eigenvalue to those below it. See also Tikhonov regularization as a statistically motivated but biased method for rolling off eigenvalues as they become dominated by noise.
The first mitigation method is similar to a sparse sample of the original matrix, removing components that are not considered valuable. However, if the solution or detection process is near the noise level, truncating may remove components that influence the desired solution.
The second mitigation extends the eigenvalue so that lower values have much less influence over inversion, but do still contribute, such that solutions near the noise will still be found.
The reliable eigenvalue can be found by assuming that eigenvalues of extremely similar and low value are a good representation of measurement noise (which is assumed low for most systems).
If the eigenvalues are rank-sorted by value, then the reliable eigenvalue can be found by minimization of the Laplacian of the sorted eigenvalues: $\min \left|\nabla ^{2}\lambda _{\mathrm {s} }\right|$ where the eigenvalues are subscripted with an s to denote being sorted. The position of the minimization is the lowest reliable eigenvalue. In measurement systems, the square root of this reliable eigenvalue is the average noise over the components of the system.

## 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}+\cdots$ 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)$

### Examples

${\begin{aligned}\mathbf {A} ^{2}&=\left(\mathbf {Q} \mathbf {\Lambda } \mathbf {Q} ^{-1}\right)\left(\mathbf {Q} \mathbf {\Lambda } \mathbf {Q} ^{-1}\right)=\mathbf {Q} \mathbf {\Lambda } \left(\mathbf {Q} ^{-1}\mathbf {Q} \right)\mathbf {\Lambda } \mathbf {Q} ^{-1}=\mathbf {Q} \mathbf {\Lambda } ^{2}\mathbf {Q} ^{-1}\\[1.2ex]\mathbf {A} ^{n}&=\mathbf {Q} \mathbf {\Lambda } ^{n}\mathbf {Q} ^{-1}\\[1.2ex]\exp \mathbf {A} &=\mathbf {Q} \exp(\mathbf {\Lambda } )\mathbf {Q} ^{-1}\end{aligned}}$ which are examples for the functions $f(x)=x^{2},\;f(x)=x^{n},\;f(x)=\exp {x}$. Furthermore, $\exp {\mathbf {A} }$ is the matrix exponential.

## Decomposition for spectral matrices

Spectral matrices are matrices that possess distinct eigenvalues and a complete set of eigenvectors. This characteristic allows spectral matrices to be fully diagonalizable, meaning they can be decomposed into simpler forms using eigendecomposition. This decomposition process reveals fundamental insights into the matrix's structure and behavior, particularly in fields such as quantum mechanics, signal processing, and numerical analysis.

### Normal matrices

A complex-valued square matrix $A$ is normal (meaning , $\mathbf {A} ^{*}\mathbf {A} =\mathbf {A} \mathbf {A} ^{*}$, where $\mathbf {A} ^{*}$ is the conjugate transpose) if and only if it can be decomposed as $\mathbf {A} =\mathbf {U} \mathbf {\Lambda } \mathbf {U} ^{*}$, where $\mathbf {U}$ is a unitary matrix (meaning $\mathbf {U} ^{*}=\mathbf {U} ^{-1}$) and $\mathbf {\Lambda } =$ diag($\lambda _{1},\ldots ,\lambda _{n}$) is a diagonal matrix. The columns $\mathbf {u} _{1},\cdots ,\mathbf {u} _{n}$ of $\mathbf {U}$ form an orthonormal basis and are eigenvectors of $\mathbf {A}$ with corresponding eigenvalues $\lambda _{1},\ldots ,\lambda _{n}$.
For example, consider the 2 x 2 normal matrix $\mathbf {A} ={\begin{bmatrix}1&2\\2&1\end{bmatrix}}$.
The eigenvalues are $\lambda _{1}=3$ and $\lambda _{2}=-1$.
The (normalized) eigenvectors corresponding to these eigenvalues are $\mathbf {u} _{1}={\frac {1}{\sqrt {2}}}{\begin{bmatrix}1\\1\end{bmatrix}}$ and $\mathbf {u} _{2}={\frac {1}{\sqrt {2}}}{\begin{bmatrix}-1\\1\end{bmatrix}}$.
The diagonalization is $\mathbf {A} =\mathbf {U} \mathbf {\Lambda } \mathbf {U} ^{*}$, where $\mathbf {U} ={\begin{bmatrix}1/{\sqrt {2}}&1/{\sqrt {2}}\\1/{\sqrt {2}}&-1/{\sqrt {2}}\end{bmatrix}}$, $\mathbf {\Lambda } =$${\begin{bmatrix}3&0\\0&-1\end{bmatrix}}$ and $\mathbf {U} ^{*}=\mathbf {U} ^{-1}=$${\begin{bmatrix}1/{\sqrt {2}}&1/{\sqrt {2}}\\1/{\sqrt {2}}&-1/{\sqrt {2}}\end{bmatrix}}$.
The verification is $\mathbf {U} \mathbf {\Lambda } \mathbf {U} ^{*}=$${\begin{bmatrix}1/{\sqrt {2}}&1/{\sqrt {2}}\\1/{\sqrt {2}}&-1/{\sqrt {2}}\end{bmatrix}}$${\begin{bmatrix}3&0\\0&-1\end{bmatrix}}$${\begin{bmatrix}1/{\sqrt {2}}&1/{\sqrt {2}}\\1/{\sqrt {2}}&-1/{\sqrt {2}}\end{bmatrix}}$$={\begin{bmatrix}1&2\\2&1\end{bmatrix}}=\mathbf {A}$.
This example illustrates the process of diagonalizing a normal matrix $\mathbf {A}$ by finding its eigenvalues and eigenvectors, forming the unitary matrix $\mathbf {U}$, the diagonal matrix $\mathbf {\Lambda }$, and verifying the decomposition.

### Real symmetric matrices

As a special case, for every n × n real symmetric matrix, the eigenvalues are real and the eigenvectors can be chosen real and orthonormal. Thus a real symmetric matrix A can be decomposed as $\mathbf {A} =\mathbf {Q} \mathbf {\Lambda } \mathbf {Q} ^{\mathsf {T}}$, where Q is an orthogonal matrix whose columns are the real, orthonormal eigenvectors of A, and Λ is a diagonal matrix whose entries are the eigenvalues of A.

### Diagonalizable matrices

Diagonalizable matrices can be decomposed using eigendecomposition, provided they have a full set of linearly independent eigenvectors. They can be expressed as$\mathbf {A} =\mathbf {P} \mathbf {D} \mathbf {P} ^{-1}$, where $\mathbf {P}$ is a matrix whose columns are eigenvectors of $\mathbf {A}$ and $\mathbf {D}$ is a diagonal matrix consisting of the corresponding eigenvalues of $\mathbf {A}$.

### Positive definite matrices

Positive definite matrices are matrices for which all eigenvalues are positive. They can be decomposed as $\mathbf {A} =\mathbf {L} \mathbf {L} ^{\mathsf {T}}$ using the Cholesky decomposition, where $\mathbf {L}$ is a lower triangular matrix.

### Unitary and Hermitian matrices

Unitary matrices satisfy $\mathbf {U} \mathbf {U} ^{*}=\mathbf {I}$ (real case) or $\mathbf {U} \mathbf {U} ^{\dagger }=\mathbf {I}$ (complex case), where $\mathbf {U} ^{*}$denotes the conjugate transpose and $\mathbf {U} ^{\dagger }$denotes the conjugate transpose. They diagonalize using unitary transformations.
Hermitian matrices satisfy $\mathbf {H} =\mathbf {H} ^{\dagger }$, where $\mathbf {H} ^{\dagger }$denotes the conjugate transpose. They can be diagonalized using unitary or orthogonal matrices.

## Useful facts
### Useful facts regarding eigenvalues

* The product of the eigenvalues is equal to the determinant of A $\det \left(\mathbf {A} \right)=\prod _{i=1}^{N_{\lambda }}{\lambda _{i}^{n_{i}}}$ Note that each eigenvalue is raised to the power n$_i$, the algebraic multiplicity.
* The sum of the eigenvalues is equal to the trace of A $\operatorname {tr} \left(\mathbf {A} \right)=\sum _{i=1}^{N_{\lambda }}{{n_{i}}\lambda _{i}}$ Note that each eigenvalue is multiplied by n$_i$, the algebraic multiplicity.
* If the eigenvalues of A are λ$_i$, and A is invertible, then the eigenvalues of A$^{−1}$ are simply λ$^{−1}$ $_i$.
* If the eigenvalues of A are λ$_i$, then the eigenvalues of f (A) are simply f (λ$_i$), for any holomorphic function f.

### Useful facts regarding eigenvectors

* If A is Hermitian and full-rank, the basis of eigenvectors may be chosen to be mutually orthogonal. The eigenvalues are real.
* The eigenvectors of A$^{−1}$ are the same as the eigenvectors of A.
* Eigenvectors are only defined up to a multiplicative constant. That is, if Av = λv then cv is also an eigenvector for any scalar c ≠ 0. In particular, −v and e$^{iθ}$v (for any θ) are also eigenvectors.
* In the case of degenerate eigenvalues (an eigenvalue having more than one eigenvector), the eigenvectors have an additional freedom of linear transformation, that is to say, any linear (orthonormal) combination of eigenvectors sharing an eigenvalue (in the degenerate subspace) is itself an eigenvector (in the subspace).

### Useful facts regarding eigendecomposition

* A can be eigendecomposed if and only if the number of linearly independent eigenvectors, N$_v$, equals the dimension of an eigenvector: N$_v$ = N
* If the field of scalars is algebraically closed and if p(λ) has no repeated roots, that is, if $N_{\lambda }=N,$ then A can be eigendecomposed.
* The statement "A can be eigendecomposed" does not imply that A has an inverse as some eigenvalues may be zero, which is not invertible.
* The statement "A has an inverse" does not imply that A can be eigendecomposed. A counterexample is $\left[{\begin{smallmatrix}1&1\\0&1\end{smallmatrix}}\right]$, which is an invertible defective matrix.

### Useful facts regarding matrix inverse

* A can be inverted if and only if all eigenvalues are nonzero: $\lambda _{i}\neq 0\quad \forall \,i$
* If λ$_i$ ≠ 0 and N$_v$ = N, the inverse is given by $\mathbf {A} ^{-1}=\mathbf {Q} \mathbf {\Lambda } ^{-1}\mathbf {Q} ^{-1}$

## Numerical computations
### 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 or above) polynomials cannot in general be expressed simply using nth roots. Therefore, general algorithms to find eigenvectors and eigenvalues are iterative.
Iterative numerical algorithms for approximating roots of polynomials exist, such as Newton's method, but in general it is impractical to compute the characteristic polynomial and then apply these methods. One reason is that small round-off errors in the coefficients of the characteristic polynomial can lead to large errors in the eigenvalues and eigenvectors: the roots are an extremely ill-conditioned function of the coefficients.
A simple and accurate iterative method is the power method: a random vector v is chosen and a sequence of unit vectors is computed as ${\frac {\mathbf {A} \mathbf {v} }{\left\|\mathbf {A} \mathbf {v} \right\|}},{\frac {\mathbf {A} ^{2}\mathbf {v} }{\left\|\mathbf {A} ^{2}\mathbf {v} \right\|}},{\frac {\mathbf {A} ^{3}\mathbf {v} }{\left\|\mathbf {A} ^{3}\mathbf {v} \right\|}},\ldots$
This sequence will almost always converge to an eigenvector corresponding to the eigenvalue of greatest magnitude, provided that v has a nonzero component of this eigenvector in the eigenvector basis (and also provided that there is only one eigenvalue of greatest magnitude). This simple algorithm is useful in some practical applications; for example, Google uses it to calculate the page rank of documents in their search engine. Also, the power method is the starting point for many more sophisticated algorithms. For instance, by keeping not just the last vector in the sequence, but instead looking at the span of all the vectors in the sequence, one can get a better (faster converging) approximation for the eigenvector, and this idea is the basis of Arnoldi iteration. Alternatively, the important QR algorithm is also based on a subtle transformation of a power method.

### Numerical computation of eigenvectors

Once the eigenvalues are computed, the eigenvectors could be calculated by solving the equation $\left(\mathbf {A} -\lambda _{i}\mathbf {I} \right)\mathbf {v} _{i,j}=\mathbf {0}$ using Gaussian elimination or any other method for solving matrix equations.
However, in practical large-scale eigenvalue methods, the eigenvectors are usually computed in other ways, as a byproduct of the eigenvalue computation. In power iteration, for example, the eigenvector is actually computed before the eigenvalue (which is typically computed by the Rayleigh quotient of the eigenvector). In the QR algorithm for a Hermitian matrix (or any normal matrix), the orthonormal eigenvectors are obtained as a product of the Q matrices from the steps in the algorithm. (For more general matrices, the QR algorithm yields the Schur decomposition first, from which the eigenvectors can be obtained by a backsubstitution procedure.) For Hermitian matrices, the Divide-and-conquer eigenvalue algorithm is more efficient than the QR algorithm if both eigenvectors and eigenvalues are desired.

## Additional topics
### 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 (first 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.

### 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 $\mathbf {A} \mathbf {v} =\lambda \mathbf {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.

### Generalized eigenvalue problem

A generalized eigenvalue problem (second sense) is the problem of finding a (nonzero) vector v that obeys $\mathbf {A} \mathbf {v} =\lambda \mathbf {B} \mathbf {v}$ where A and B are matrices. If v obeys this equation, with some λ, then we call v the generalized eigenvector of A and B (in the second sense), and λ is called the generalized eigenvalue of A and B (in the second sense) which corresponds to the generalized eigenvector v. The possible values of λ must obey the following equation $\det(\mathbf {A} -\lambda \mathbf {B} )=0.$
If n linearly independent vectors {v$_1$, …, v$_n$} can be found, such that for every i ∈ {1, …, n}, Av$_i$ = λ$_i$Bv$_i$, then we define the matrices P and D such that $P={\begin{bmatrix}|&&|\\\mathbf {v} _{1}&\cdots &\mathbf {v} _{n}\\|&&|\end{bmatrix}}\equiv {\begin{bmatrix}(\mathbf {v} _{1})_{1}&\cdots &(\mathbf {v} _{n})_{1}\\\vdots &&\vdots \\(\mathbf {v} _{1})_{n}&\cdots &(\mathbf {v} _{n})_{n}\end{bmatrix}}$ $(D)_{ij}={\begin{cases}\lambda _{i},&{\text{if }}i=j\\0,&{\text{otherwise}}\end{cases}}$ Then the following equality holds $\mathbf {A} =\mathbf {B} \mathbf {P} \mathbf {D} \mathbf {P} ^{-1}$ And the proof is $\mathbf {A} \mathbf {P} =\mathbf {A} {\begin{bmatrix}|&&|\\\mathbf {v} _{1}&\cdots &\mathbf {v} _{n}\\|&&|\end{bmatrix}}={\begin{bmatrix}|&&|\\A\mathbf {v} _{1}&\cdots &A\mathbf {v} _{n}\\|&&|\end{bmatrix}}={\begin{bmatrix}|&&|\\\lambda _{1}B\mathbf {v} _{1}&\cdots &\lambda _{n}B\mathbf {v} _{n}\\|&&|\end{bmatrix}}={\begin{bmatrix}|&&|\\B\mathbf {v} _{1}&\cdots &B\mathbf {v} _{n}\\|&&|\end{bmatrix}}\mathbf {D} =\mathbf {B} \mathbf {P} \mathbf {D}$
And since P is invertible, we multiply the equation from the right by its inverse, finishing the proof.
The set of matrices of the form A − λB, where λ is a complex number, is called a pencil; the term matrix pencil can also refer to the pair (A, B) of matrices.
If B is invertible, then the original problem can be written in the form $\mathbf {B} ^{-1}\mathbf {A} \mathbf {v} =\lambda \mathbf {v}$ 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. This is especially important if A and B are Hermitian matrices, since in this case B$^{−1}$A is not generally Hermitian and important properties of the solution are no longer apparent.
If A and B are both symmetric or Hermitian, and B is also a positive-definite matrix, the eigenvalues λ$_i$ are real and eigenvectors v$_1$ and v$_2$ with distinct eigenvalues are B-orthogonal (v$_1$$^*$Bv$_2$ = 0). In this case, eigenvectors can be chosen so that the matrix P defined above satisfies $\mathbf {P} ^{*}\mathbf {B} \mathbf {P} =\mathbf {I}$ or $\mathbf {P} \mathbf {P} ^{*}\mathbf {B} =\mathbf {I} ,$ and there exists a basis of generalized eigenvectors (it is not a defective problem). This case is sometimes called a Hermitian definite pencil or definite pencil.