Symbolic Math Toolbox    

Eigenvalues

The symbolic eigenvalues of a square matrix A or the symbolic eigenvalues and eigenvectors of A are computed, respectively, using the commands

The variable-precision counterparts are

The eigenvalues of A are the zeros of the characteristic polynomial of A, det(A-x*I), which is computed by

The matrix H from the last section provides our first example:

The matrix is singular, so one of its eigenvalues must be zero. The statement

produces the matrices T and E. The columns of T are the eigenvectors of H:

Similarly, the diagonal elements of E are the eigenvalues of H:

It may be easier to understand the structure of the matrices of eigenvectors, T, and eigenvalues, E, if we convert T and E to decimal notation. We proceed as follows. The commands

return

The first eigenvalue is zero. The corresponding eigenvector (the first column of Td) is the same as the basis for the null space found in the last section. The other two eigenvalues are the result of applying the quadratic formula to

which is the quadratic factor in factor(poly(H)).

Closed form symbolic expressions for the eigenvalues are possible only when the characteristic polynomial can be expressed as a product of rational polynomials of degree four or less. The Rosser matrix is a classic numerical analysis test matrix that happens to illustrate this requirement. The statement

generates

The commands

produce

The characteristic polynomial (of degree 8) factors nicely into the product of two linear terms and three quadratic terms. We can see immediately that four of the eigenvalues are 0, 1020, and a double root at 1000. The other four roots are obtained from the remaining quadratics. Use

to find all these values

The Rosser matrix is not a typical example; it is rare for a full 8-by-8 matrix to have a characteristic polynomial that factors into such simple form. If we change the two "corner" elements of R from 29 to 30 with the commands

and then try

we find

We also find that factor(p) is p itself. That is, the characteristic polynomial cannot be factored over the rationals.

For this modified Rosser matrix

returns

Notice that these values are close to the eigenvalues of the original Rosser matrix. Further, the numerical values of F are a result of Maple's floating-point arithmetic. Consequently, different settings of digits do not alter the number of digits to the right of the decimal place.

It is also possible to try to compute eigenvalues of symbolic matrices, but closed form solutions are rare. The Givens transformation is generated as the matrix exponential of the elementary matrix

The Symbolic Math Toolbox commands

return

Next, the command

produces

We can use simple to simplify this form of g. Indeed, a repeated application of simple

produces the best result:

Notice the first application of simple uses simplify to produce a sum of sines and cosines. Next, simple invokes radsimp to produce cos(t) + i*sin(t) for the first eigenvector. The third application of simple uses convert(exp) to change the sines and cosines to complex exponentials. The last application of simple uses simplify to obtain the final form.


  Linear Algebraic Operations Jordan Canonical Form