is parallel to the vector x, i.e
.
The general algebraic eigenvalue problem is given by
with I the identity matrix, with an arbitrary square matrix A, an unknown scalar
, and the unknown vector x. A non-trivial solution to this system of n linear homogeneous equations exists if and only if the determinant
This nth degree polynomial in
is called the characteristic equation.
Its roots
are called the eigenvalues and the corresponding vectors x eigenvectors. In the example, x is a right eigenvector for
; a left eigenvector y is defined by
.
Solving this polynomial for
is not a practical method to solve eigenvalue problems; a QR-based method is a much more adequate tool (
[Golub89]); it works as follows:
A is reduced to the (upper) Hessenberg matrix H or, if A is symmetric, to a tridiagonal matrix T. The Hessenberg and tridiagonal matrices have the form:
The algorithm is surprisingly simple: H = H1 is decomposed H1 = Q1R1, then an H2 is computed, H2 = R1Q1. H2 is similar to H1 because H2 = R1Q1 = Q1-1H1Q1, and is decomposed to H2 = Q2R2. Then H3 is formed, H3 = R2Q2, etc. In this way a sequence of Hi's (with the same eigenvalues) is generated, that finally converges to (for conditions, see [Golub89])
For access to software,
Linear Algebra Packages;
the modern literature also gives code, e.g. [Press95].