linalg(deprecated)
eigenvectors
find the eigenvectors of a matrix
Calling Sequence
Parameters
Description
Examples
eigenvectors(A)
eigenvectors(A, 'radical')
eigenvectors(A, 'implicit')
A
-
square matrix
Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Eigenvectors], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The procedure eigenvectors computes the eigenvalues and eigenvectors of A. That is, for each eigenvalue lambda of A it solves the linear system I⁢lambda−A⁢X=0 for X.
The result returned is a sequence of lists of the form [ei,mi,{v[1,i],tripledotplaceholderv[ni,i]}], where the ei are the eigenvalues, mi their algebraic multiplicities, {v[1,i],...,v[ni,i]} is a set of basis vectors for the eigenspace corresponding to ei, and 1<=ni<=mi is the dimension of the eigenspace. The first example below shows how to extract the eigenvalues and their eigenvectors from the result.
Numeric Case: If the matrix A contains any floating-point (decimal) numbers, the eigenvectors are computed numerically. A standard numerical algorithm is used. All floating point arithmetic is done at Digits digits of precision. Note that the matrix entries on input must all be all of type numeric or complex(numeric).
Symbolic Case: Otherwise the eigenvalues and eigenvectors are computed symbolically (exactly). First the characteristic polynomial is computed and solved for its roots (the eigenvalues) lambda[i] symbolically. Then for each eigenvalue, a basis for its eigenspace is computed by computing the null space of the characteristic matrix A−lambdai⁢I.
Although eigenvalues and eigenvectors can in principle be computed for a matrix over any field F, one must be able to compute effectively with the roots of a univariate polynomial over F. For this reason, this routine is limited at present to the field of algebraic numbers or algebraic functions. Therefore, the input A must be a matrix of rationals, or polynomials, or a matrix of algebraic numbers or algebraic functions represented using Maple's RootOf or radical notation.
If the optional second argument is 'radical' is specified, Maple will try to express the eigenvalues and eigenvectors in terms of exact radicals. Note this may fail if any factor of the characteristic polynomial has degree 5 or higher. If the optional second argument is 'implicit' then Maple will express the eigenvalues in terms of an algebraic extension of any nonlinear factors of the characteristic polynomial using Maple's RootOf notation. This is always possible. If no optional second argument is specified, then Maple will use radicals as the default. The examples below will make these differences clear.
The command with(linalg,eigenvectors) allows the use of the abbreviated form of this command.
with⁡linalg:
A≔matrix⁡3,3,1,−3,3,3,−5,3,6,−6,4
A≔1−333−536−64
e≔eigenvalues⁡A
e≔4,−2,−2
v≔eigenvectors⁡A
v≔4,1,112,−2,2,110,−101
v11
4
v12
1
v13
112
v21
−2
v22
2
Here is a numerical example (A is a symmetric Toeplitz matrix)
A≔toeplitz⁡1.0,2.0,3.0
A≔1.02.03.02.01.02.03.02.01.0
eigenvalues⁡A
−2.00000000000000,−0.701562118716425,5.70156211871643
eigenvectors⁡A
−0.7015621183,1,−0.36451293300.8568900996−0.3645129334,−2.000000002,1,0.70710678111.47×10−10−0.7071067809,5.701562115,1,0.60591280040.51549913480.6059128001
Here is the same example done with exact arithmetic
A≔toeplitz⁡1,2,3
A≔123212321
−2,52−412,52+412
52+412,1,1−34+4141,52−412,1,1−34−4141,−2,1,−101
By default the eigenvalues and eigenvectors are computed using radicals. To compute implicitly in terms of RootOf's, use the 'implicit' option
eigenvectors⁡A,implicit
RootOf⁡_Z2−5⁢_Z−4,1,1RootOf⁡_Z2−5⁢_Z−42−21,−2,1,−101
Here is an example of a symbolic matrix
T≔toeplitz⁡a,b,c
T≔abcbabcba
eigenvalues⁡T
a−c,a+c2+8⁢b2+c22,a+c2−8⁢b2+c22
eigenvectors⁡T,implicit
a−c,1,−101,RootOf⁡_Z2+−2⁢a−c⁢_Z+a2+c⁢a−2⁢b2,1,1−−RootOf⁡_Z2+−2⁢a−c⁢_Z+a2+c⁢a−2⁢b2+a+cb1
The sqrt(2) in the following example makes the computation more difficult.
T≔toeplitz⁡sqrt⁡2,a,3
T≔2a3a2a3a2
eigenvectors⁡T
32+2+8⁢a2+92,1,r,32+2−8⁢a2+92,1,r,2−3,1,r
This final example shows a case where the algebraic multiplicity of the eigenvalue u is 4 but the dimension of the eigenspace is only 3.
B≔matrix⁡4,4,0,1,0,0,−u2,2⁢u,0,0,−u⁢s,s,u,0,−u⁢t,t,0,u
B≔0100−u22⁢u00−u⁢ssu0−u⁢tt0u
eigenvectors⁡B
u,4,1u100,0010,0001
See Also
linalg(deprecated)[charmat]
linalg(deprecated)[eigenvalues]
linalg(deprecated)[nullspace]
linalg(deprecated)[vector]
LinearAlgebra
RootOf
Download Help Document