Mathematica 9 is now available
 Documentation /  Mathematica Teacher's Edition /  The Teacher's Book /  More Mathematics /  Linear Algebra /

18.2 Eigenvalues and Eigenvectors

Eigenvalues and eigenvectors.

The eigenvalues of a matrix are the values for which one can find nonzero vectors such that . The eigenvectors are the vectors .
Finding the eigenvalues of an matrix in principle involves solving an degree polynomial equation. Since for explicit algebraic solutions cannot in general be found, it is impossible to give explicit algebraic results for the eigenvalues and eigenvectors of all but the simplest or sparsest matrices.

Even for a matrix as simple as this, the explicit form of the eigenvalues is quite complicated.

In[1]:= Eigenvalues[ {{a, b}, {-b, 2a}} ]

Out[1]=

If you give a matrix of approximate real numbers, Mathematica TE will find the approximate numerical eigenvalues and eigenvectors.

Here is a numerical matrix.

In[2]:= m = {{2.3, 4.5}, {6.7, -1.2}}

Out[2]=

The matrix has two eigenvalues, in this case both real.

In[3]:= Eigenvalues[ m ]

Out[3]=

Here are the two eigenvectors of m.

In[4]:= Eigenvectors[ m ]

Out[4]=

Eigensystem computes the eigenvalues and eigenvectors at the same time. The assignment sets vals to the list of eigenvalues, and vecs to the list of eigenvectors.

In[5]:= {vals, vecs} = Eigensystem[m]

Out[5]=

This verifies that the first eigenvalue and eigenvector satisfy the appropriate condition.

In[6]:= m . vecs[[1]] == vals[[1]] vecs[[1]]

Out[6]=

This matrix represents a rotation.

In[7]:= a = Pi/3; r = {{Cos[a], Sin[a]}, {-Sin[a], Cos[a]}}

Out[7]=

This finds its eigenvalues. For nonsymmetric matrices, the eigenvalues can have imaginary parts.

In[8]:= Eigenvalues[r]

Out[8]=

The function Eigenvalues always gives you a list of eigenvalues for an matrix. The eigenvalues correspond to the roots of the characteristic polynomial for the matrix, and may not necessarily be distinct. Eigenvectors, on the other hand, gives a list of eigenvectors that are guaranteed to be independent. If the number of such eigenvectors is less than , then Eigenvectors appends zero vectors to the list it returns, so that the total length of the list is always .

Here is a matrix.

In[9]:= mz = {{0, 1, 0}, {0, 0, 1}, {0, 0, 0}}

Out[9]=

The matrix has three eigenvalues, all equal to zero.

In[10]:= Eigenvalues[mz]

Out[10]=

There is, however, only one independent eigenvector for the matrix. Eigenvectors appends two zero vectors to give a total of three vectors in this case.

In[12]:= Eigenvectors[mz]

Out[12]=

Other Mathematica functions related to linear algebra. (See Section 3.2.)

Mathematica options for some linear algebra functions. (See Section 3.2.)



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.