词条 | Eigenvalue algorithm | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
释义 |
In numerical analysis, one of the most important problems is designing efficient and stable algorithms for finding the eigenvalues of a matrix. These eigenvalue algorithms may also find eigenvectors. Eigenvalues and eigenvectors{{main|Eigenvalues and eigenvectors|Generalized eigenvector}}Given an {{math|n × n}} square matrix {{math|A}} of real or complex numbers, an eigenvalue {{math|λ}} and its associated generalized eigenvector {{math|v}} are a pair obeying the relation[1] where {{math|v}} is a nonzero {{math|n × 1}} column vector, {{math|I}} is the {{math|n × n}} identity matrix, {{math|k}} is a positive integer, and both {{math|λ}} and {{math|v}} are allowed to be complex even when {{math|A}} is real. When {{math|1=k = 1}}, the vector is called simply an eigenvector, and the pair is called an eigenpair. In this case, {{math|1=Av = λv}}. Any eigenvalue {{math|λ}} of {{math|A}} has ordinary[2] eigenvectors associated to it, for if {{math|k}} is the smallest integer such that {{math|1=(A - λI)k v = 0}} for a generalized eigenvector {{math|v}}, then {{math|1=(A - λI)k-1 v}} is an ordinary eigenvector. The value {{math|k}} can always be taken as less than or equal to {{math|n}}. In particular, {{math|1=(A - λI)n v = 0}} for all generalized eigenvectors {{math|v}} associated with {{math|λ.}} For each eigenvalue {{math|λ}} of {{math|A}}, the kernel {{math|ker(A - λI)}} consists of all eigenvectors associated with {{math|λ}} (along with 0), called the eigenspace of {{math|λ}}, while the vector space {{math|ker((A - λI)n)}} consists of all generalized eigenvectors, and is called the generalized eigenspace. The geometric multiplicity of {{math|λ}} is the dimension of its eigenspace. The algebraic multiplicity of {{math|λ}} is the dimension of its generalized eigenspace. The latter terminology is justified by the equation where {{math|det}} is the determinant function, the {{math|λi}} are all the distinct eigenvalues of {{math|A}} and the {{math|αi}} are the corresponding algebraic multiplicities. The function {{math|1=pA(z)}} is the characteristic polynomial of {{math|A}}. So the algebraic multiplicity is the multiplicity of the eigenvalue as a zero of the characteristic polynomial. Since any eigenvector is also a generalized eigenvector, the geometric multiplicity is less than or equal to the algebraic multiplicity. The algebraic multiplicities sum up to {{math|n}}, the degree of the characteristic polynomial. The equation {{math|1=pA(z) = 0}} is called the characteristic equation, as its roots are exactly the eigenvalues of {{math|A}}. By the Cayley–Hamilton theorem, {{math|A}} itself obeys the same equation: {{math|1=pA(A) = 0.}}[3] As a consequence, the columns of the matrix must be either 0 or generalized eigenvectors of the eigenvalue {{math|λj}}, since they are annihilated by In fact, the column space is the generalized eigenspace of {{math|λj.}} Any collection of generalized eigenvectors of distinct eigenvalues is linearly independent, so a basis for all of {{math|C n}} can be chosen consisting of generalized eigenvectors. More particularly, this basis {{math|{{(}}vi{{)}}{{Sup sub|n|i{{=}}1}}}} can be chosen and organized so that
If these basis vectors are placed as the column vectors of a matrix {{math|V {{=}} [ v1 v2 ... vn ]}}, then {{math|V}} can be used to convert {{math|A}} to its Jordan normal form: where the {{math|λi}} are the eigenvalues, {{math|1=βi = 1}} if {{math|1=(A - λi+1)vi+1 = vi}} and {{math|1=βi = 0}} otherwise. More generally, if {{math|W}} is any invertible matrix, and {{math|λ}} is an eigenvalue of {{math|A}} with generalized eigenvector {{math|v}}, then {{math|1=(W−1AW - λI )k W−kv = 0}}. Thus {{math|λ}} is an eigenvalue of {{math|W−1AW}} with generalized eigenvector {{math|W−kv}}. That is, similar matrices have the same eigenvalues. Normal, Hermitian, and real-symmetric matrices{{main|Adjoint matrix|Normal matrix|Hermitian matrix}}The adjoint {{math|M*}} of a complex matrix {{math|M}} is the transpose of the conjugate of {{math|M}}: {{math|1=M * = {{overline|M}} T}}. A square matrix {{math|A}} is called normal if it commutes with its adjoint: {{math|1=A*A = AA*}}. It is called hermitian if it is equal to its adjoint: {{math|1=A* = A}}. All hermitian matrices are normal. If {{math|A}} has only real elements, then the adjoint is just the transpose, and {{math|A}} is hermitian if and only if it is symmetric. When applied to column vectors, the adjoint can be used to define the canonical inner product on {{math|Cn}}: {{math|1=w · v = w* v}}.[4] Normal, hermitian, and real-symmetric matrices have several useful properties:
It is possible for a real or complex matrix to have all real eigenvalues without being hermitian. For example, a real triangular matrix has its eigenvalues along its diagonal, but in general is not symmetric. Condition numberAny problem of numeric calculation can be viewed as the evaluation of some function ƒ for some input {{math|x}}. The condition number {{math|κ(ƒ, x)}} of the problem is the ratio of the relative error in the function's output to the relative error in the input, and varies with both the function and the input. The condition number describes how error grows during the calculation. Its base-10 logarithm tells how many fewer digits of accuracy exist in the result than existed in the input. The condition number is a best-case scenario. It reflects the instability built into the problem, regardless of how it is solved. No algorithm can ever produce more accurate results than indicated by the condition number, except by chance. However, a poorly designed algorithm may produce significantly worse results. For example, as mentioned below, the problem of finding eigenvalues for normal matrices is always well-conditioned. However, the problem of finding the roots of a polynomial can be very ill-conditioned. Thus eigenvalue algorithms that work by finding the roots of the characteristic polynomial can be ill-conditioned even when the problem is not. For the problem of solving the linear equation {{math|1=Av = b}} where {{math|A}} is invertible, the condition number {{math|1=κ(A−1, b)}} is given by {{math|1={{!!}}A{{!!}}op{{!!}}A−1{{!!}}op}}, where {{nowrap|{{!!}} {{!!}}op}} is the operator norm subordinate to the normal Euclidean norm on {{math|C n}}. Since this number is independent of {{math|b}} and is the same for {{math|A}} and {{math|A−1}}, it is usually just called the condition number {{math|κ(A)}} of the matrix {{math|A}}. This value {{math|κ(A)}} is also the absolute value of the ratio of the largest eigenvalue of {{math|A}} to its smallest. If {{math|A}} is unitary, then {{math|1={{!!}}A{{!!}}op = {{!!}}A−1{{!!}}op = 1}}, so {{math|1=κ(A) = 1}}. For general matrices, the operator norm is often difficult to calculate. For this reason, other matrix norms are commonly used to estimate the condition number. For the eigenvalue problem, Bauer and Fike proved that if {{math|λ}} is an eigenvalue for a diagonalizable {{math|n × n}} matrix {{math|A}} with eigenvector matrix {{math|V}}, then the absolute error in calculating {{math|λ}} is bounded by the product of {{math|κ(V)}} and the absolute error in {{math|A}}.[5] As a result, the condition number for finding {{math|λ}} is {{math|1=κ(λ, A) = κ(V) = {{!!}}V {{!!}}op {{!!}}V −1{{!!}}op}}. If {{math|A}} is normal, then {{math|V}} is unitary, and {{math|1=κ(λ, A) = 1}}. Thus the eigenvalue problem for all normal matrices is well-conditioned. The condition number for the problem of finding the eigenspace of a normal matrix {{math|A}} corresponding to an eigenvalue {{math|λ}} has been shown to be inversely proportional to the minimum distance between {{math|λ}} and the other distinct eigenvalues of {{math|A}}.[6] In particular, the eigenspace problem for normal matrices is well-conditioned for isolated eigenvalues. When eigenvalues are not isolated, the best that can be hoped for is to identify the span of all eigenvectors of nearby eigenvalues. AlgorithmsAny monic polynomial is the characteristic polynomial of its companion matrix. Therefore, a general algorithm for finding eigenvalues could also be used to find the roots of polynomials. The Abel–Ruffini theorem shows that any such algorithm for dimensions greater than 4 must either be infinite, or involve functions of greater complexity than elementary arithmetic operations and fractional powers. For this reason algorithms that exactly calculate eigenvalues in a finite number of steps only exist for a few special classes of matrices. For general matrices, algorithms are iterative, producing better approximate solutions with each iteration. Some algorithms produce every eigenvalue, others will produce a few, or only one. However, even the latter algorithms can be used to find all eigenvalues. Once an eigenvalue {{math|λ}} of a matrix {{math|A}} has been identified, it can be used to either direct the algorithm towards a different solution next time, or to reduce the problem to one that no longer has {{math|λ}} as a solution. Redirection is usually accomplished by shifting: replacing {{math|A}} with {{math|A - μI}} for some constant {{math|μ}}. The eigenvalue found for {{math|A - μI}} must have {{math|μ}} added back in to get an eigenvalue for {{math|A}}. For example, for power iteration, {{math|1=μ = λ}}. Power iteration finds the largest eigenvalue in absolute value, so even when {{math|λ}} is only an approximate eigenvalue, power iteration is unlikely to find it a second time. Conversely, inverse iteration based methods find the lowest eigenvalue, so {{math|μ}} is chosen well away from {{math|λ}} and hopefully closer to some other eigenvalue. Reduction can be accomplished by restricting {{math|A}} to the column space of the matrix {{math|A - λI}}, which {{math|A}} carries to itself. Since {{math|A - λI}} is singular, the column space is of lesser dimension. The eigenvalue algorithm can then be applied to the restricted matrix. This process can be repeated until all eigenvalues are found. If an eigenvalue algorithm does not produce eigenvectors, a common practice is to use an inverse iteration based algorithm with {{math|μ}} set to a close approximation to the eigenvalue. This will quickly converge to the eigenvector of the closest eigenvalue to {{math|μ}}. For small matrices, an alternative is to look at the column space of the product of {{math|A - λ{{'}}I}} for each of the other eigenvalues {{math|λ{{'}}.}} Hessenberg and tridiagonal matrices{{main|Hessenberg matrix}}Because the eigenvalues of a triangular matrix are its diagonal elements, for general matrices there is no finite method like gaussian elimination to convert a matrix to triangular form while preserving eigenvalues. But it is possible to reach something close to triangular. An upper Hessenberg matrix is a square matrix for which all entries below the subdiagonal are zero. A lower Hessenberg matrix is one for which all entries above the superdiagonal are zero. Matrices that are both upper and lower Hessenberg are tridiagonal. Hessenberg and tridiagonal matrices are the starting points for many eigenvalue algorithms because the zero entries reduce the complexity of the problem. Several methods are commonly used to convert a general matrix into a Hessenberg matrix with the same eigenvalues. If the original matrix was symmetric or hermitian, then the resulting matrix will be tridiagonal. When only eigenvalues are needed, there is no need to calculate the similarity matrix, as the transformed matrix has the same eigenvalues. If eigenvectors are needed as well, the similarity matrix may be needed to transform the eigenvectors of the Hessenberg matrix back into eigenvectors of the original matrix.
For tridiagonal eigenvalue problems all eigenvalues (without eigenvectors) can be computed numerically in O(n),{{dubious|Tridiagonal eigenvalue complexity|date=June 2018}} using bisection on the characteristic polynomial. Iterative algorithmsIterative algorithms solve the eigenvalue problem by producing sequences that converge to the eigenvalues. Some algorithms also produce sequences of vectors that converge to the eigenvectors. Most commonly, the eigenvalue sequences are expressed as sequences of similar matrices which converge to a triangular or diagonal form, allowing the eigenvalues to be read easily. The eigenvector sequences are expressed as the corresponding similarity matrices.
Direct calculationWhile there is no simple algorithm to directly calculate eigenvalues for general matrices, there are numerous special classes of matrices where eigenvalues can be directly calculated. These include: Triangular matricesSince the determinant of a triangular matrix is the product of its diagonal entries, if T is triangular, then . Thus the eigenvalues of T are its diagonal entries. Factorable polynomial equationsIf {{math|p}} is any polynomial and {{math|1=p(A) = 0,}} then the eigenvalues of {{math|A}} also satisfy the same equation. If {{math|p}} happens to have a known factorization, then the eigenvalues of {{math|A}} lie among its roots. For example, a projection is a square matrix {{math|P}} satisfying {{math|1=P2 = P}}. The roots of the corresponding scalar polynomial equation, {{math|1=λ2 = λ}}, are 0 and 1. Thus any projection has 0 and 1 for its eigenvalues. The multiplicity of 0 as an eigenvalue is the nullity of {{math|P}}, while the multiplicity of 1 is the rank of {{math|P}}. Another example is a matrix {{math|A}} that satisfies {{math|1=A2 = α2I}} for some scalar {{math|α}}. The eigenvalues must be {{math|±α}}. The projection operators satisfy and The column spaces of {{math|P+}} and {{math|P−}} are the eigenspaces of {{math|A}} corresponding to {{math|+α}} and {{math|-α}}, respectively. 2×2 matricesFor dimensions 2 through 4, formulas involving radicals exist that can be used to find the eigenvalues. While a common practice for 2×2 and 3×3 matrices, for 4×4 matrices the increasing complexity of the root formulas makes this approach less attractive. For the 2×2 matrix the characteristic polynomial is Thus the eigenvalues can be found by using the quadratic formula: Defining to be the distance between the two eigenvalues, it is straightforward to calculate with similar formulas for {{math|c}} and {{math|d}}. From this it follows that the calculation is well-conditioned if the eigenvalues are isolated. Eigenvectors can be found by exploiting the Cayley–Hamilton theorem. If {{math|λ1, λ2}} are the eigenvalues, then {{math|1=(A - λ1I )(A - λ2I ) = (A - λ2I )(A - λ1I ) = 0}}, so the columns of {{math|(A - λ2I )}} are annihilated by {{math|(A - λ1I )}} and vice versa. Assuming neither matrix is zero, the columns of each must include eigenvectors for the other eigenvalue. (If either matrix is zero, then {{math|A}} is a multiple of the identity and any non-zero vector is an eigenvector.) For example, suppose then {{math|1=tr(A) = 4 - 3 = 1}} and {{math|1=det(A) = 4(-3) - 3(-2) = -6}}, so the characteristic equation is and the eigenvalues are 3 and -2. Now, In both matrices, the columns are multiples of each other, so either column can be used. Thus, {{math|(1, -2)}} can be taken as an eigenvector associated with the eigenvalue -2, and {{math|(3, -1)}} as an eigenvector associated with the eigenvalue 3, as can be verified by multiplying them by {{math|A}}. 3×3 matricesIf {{math|A}} is a 3×3 matrix, then its characteristic equation can be expressed as: This equation may be solved using the methods of Cardano or Lagrange, but an affine change to {{math|A}} will simplify the expression considerably, and lead directly to a trigonometric solution. If {{math|1=A = pB + qI}}, then {{math|A}} and {{math|B}} have the same eigenvectors, and {{math|β}} is an eigenvalue of {{math|B}} if and only if {{math|1=α = pβ + q}} is an eigenvalue of {{math|A}}. Letting and , gives The substitution {{math|1=β = 2cos θ}} and some simplification using the identity {{math|1=cos 3θ = 4cos3 θ - 3cos θ}} reduces the equation to {{math|1=cos 3θ = det(B) / 2}}. Thus If {{math|det(B)}} is complex or is greater than 2 in absolute value, the arccosine should be taken along the same branch for all three values of {{math|k}}. This issue doesn't arise when {{math|A}} is real and symmetric, resulting in a simple algorithm:[12] Once again, the eigenvectors of {{math|A}} can be obtained by recourse to the Cayley–Hamilton theorem. If {{math|α1, α2, α3}} are distinct eigenvalues of {{math|A}}, then {{math|1=(A - α1I)(A - α2I)(A - α3I) = 0}}. Thus the columns of the product of any two of these matrices will contain an eigenvector for the third eigenvalue. However, if {{math|1=α3 = α1}}, then {{math|1=(A - α1I)2(A - α2I) = 0}} and {{math|1=(A - α2I)(A - α1I)2 = 0}}. Thus the generalized eigenspace of {{math|α1}} is spanned by the columns of {{math|A - α2I}} while the ordinary eigenspace is spanned by the columns of {{math|1=(A - α1I)(A - α2I)}}. The ordinary eigenspace of {{math|α2}} is spanned by the columns of {{math|(A - α1I)2}}. For example, let The characteristic equation is with eigenvalues 1 (of multiplicity 2) and -1. Calculating, and Thus {{math|(-4, -4, 4)}} is an eigenvector for -1, and {{math|(4, 2, -2)}} is an eigenvector for 1. {{math|(2, 3, -1)}} and {{math|(6, 5, -3)}} are both generalized eigenvectors associated with 1, either one of which could be combined with {{math|(-4, -4, 4)}} and {{math|(4, 2, -2)}} to form a basis of generalized eigenvectors of {{math|A}}. Once found, the eigenvectors can be normalized if needed. Eigenvectors of normal 3×3 matricesIf a 3×3 matrix is normal, then the cross-product can be used to find eigenvectors. If is an eigenvalue of , then the null space of is perpendicular to its column space, The cross product of two independent columns of will be in the null space. I.e., it will be an eigenvector associated with . Since the column space is two dimensional in this case, the eigenspace must be one dimensional, so any other eigenvector will be parallel to it. If does not contain two independent columns but is not {{math|0}}, the cross-product can still be used. In this case is an eigenvalue of multiplicity 2, so any vector perpendicular to the column space will be an eigenvector. Suppose is a non-zero column of . Choose an arbitrary vector not parallel to . Then and will be perpendicular to and thus will be eigenvectors of . This does not work when is not normal, as the null space and column space do not need to be perpendicular for such matrices. See also
Notes1. ^{{Citation | last = Axler | first = Sheldon | author-link = Sheldon Axler | title = Down with Determinants! | journal = American Mathematical Monthly | volume = 102 | issue = 2 | pages = 139–154 | url = http://www.axler.net/DwD.pdf | year = 1995 | doi=10.2307/2975348| jstor = 2975348 }} 2. ^The term "ordinary" is used here only to emphasize the distinction between "eigenvector" and "generalized eigenvector". 3. ^where the constant term is multiplied by the identity matrix {{math|I}}. 4. ^This ordering of the inner product (with the conjugate-linear position on the left), is preferred by physicists. Algebraists often place the conjugate-linear position on the right: {{math|1=w · v = v* w}}. 5. ^{{Citation | author = F. L. Bauer | author2 = C. T. Fike | title = Norms and exclusion theorems | journal = Numer. Math. | volume = 2 | pages = 137–141 | year = 1960 | doi=10.1007/bf01386217}} 6. ^{{Citation | author = S.C. Eisenstat | author2 = I.C.F. Ipsen | title = Relative Perturbation Results for Eigenvalues and Eigenvectors of Diagonalisable Matrices | journal = BIT | volume = 38 | issue = 3 | pages = 502–9 | year = 1998 | doi=10.1007/bf02510256}} 7. ^1 2 {{cite book| last1 = Press| first1 = William H.| last2 = Teukolsky| first2 = Saul A.| last3 = Vetterling| first3 = William T.| last4 = Flannery| first4 = Brian P.| title = Numerical Recipes in C| edition = 2nd| year = 1992| publisher = Cambridge University Press | isbn = 978-0-521-43108-8}} 8. ^{{Citation| last=Neymeyr| first=K.| title=A geometric theory for preconditioned inverse iteration IV: On the fastest convergence cases.| journal=Linear Algebra Appl.| volume=415| issue=1| pages=114–139| year=2006| doi=10.1016/j.laa.2005.06.022}} 9. ^{{Citation| last1=Li| first1=T. Y.| last2=Zeng| first2=Zhonggang| title=Laguerre's Iteration In Solving The Symmetric Tridiagonal Eigenproblem - Revisited| journal=SIAM Journal on Scientific Computing| year=1992}} 10. ^{{Citation| last=Chu| first=Moody T.| title=A Note on the Homotopy Method for Linear Algebraic Eigenvalue Problems| journal=Linear Algebra Appl.| volume=105| pages=225–236| year=1988| doi=10.1016/0024-3795(88)90015-8}} 11. ^{{Citation| last1=Dhillon| first1=Inderjit S.| last2=Parlett| first2=Beresford N.| last3=Vömel| first3=Christof| title=The Design and Implementation of the MRRR Algorithm| journal=ACM Transactions on Mathematical Software| volume=32| issue=4| pages=533–560| year=2006| doi=10.1145/1186785.1186788}} 12. ^{{Citation |last=Smith |first=Oliver K. |title=Eigenvalues of a symmetric 3 × 3 matrix. |journal=Communications of the ACM |volume=4 |issue=4 |date=April 1961 |page=168 |doi=10.1145/355578.366316}} References{{reflist}}Further reading
| last = Bojanczyk | first = Adam W. | authorlink = |author2=Adam Lutoborski | title = Computation of the Euler angles of a symmetric 3X3 matrix | journal = SIAM Journal on Matrix Analysis and Applications | volume = 12 | issue = 1 | pages = 41–48 | publisher = | location = | date = Jan 1991 | url = http://cacm.acm.org/magazines/1961/4/14532-eigenvalues-of-a-symmetric-3-%C3%83-3-matrix/abstract | jstor = | issn = | doi = 10.1137/0612005}}{{Numerical linear algebra}}{{DEFAULTSORT:Eigenvalue Algorithm}} 1 : Numerical linear algebra |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
随便看 |
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。