Finding eigenvectors and eigenvalues

Finding eigenvectors and eigenvalues

Problem: Find the eigenvectors and their eigenvalues for the matrix .
Solution: First find the eigenvalues:

The roots are . (The rational roots theorem leads to the guess , and then you can divide the cubic polynomial by to obtain a quadratic one, which is easily factored.)

Now we seek eigenvectors by solving for each root. When :

To solve for , row reduce to obtain a matrix in RREF:

So we know and is free. Plugging these in we have , and we choose obtaining for an eigenvector.

Next for we have:

To solve for , row reduce to obtain a matrix in RREF:

So we know and . Plugging these in we have , and we choose obtaining .

Finally for we have:

To solve for , row reduce to obtain a matrix in RREF:

So we know and . Plugging these in we have , and we choose obtaining .

Changing to eigenbasis yields diagonal matrix

Changing to eigenbasis yields diagonal matrix

Notice that in the previous example has three eigenvectors, and that they are independent. Therefore they constitute a basis of ; let’s call this basis . Putting these basis vectors as the columns of a matrix, we create the change of basis transfer matrix from to the standard basis :

So .

Now consider that these are eigenvectors of with eigenvalues :

If we write in the basis using the transfer matrix , we have:

In other words, the matrix of is a diagonal matrix when written in the basis of its own eigenvectors.

Matrix with too few eigenvectors

Matrix with too few eigenvectors

The matrix has . Therefore it has a “double” eigenvalue . To find the eigenvectors:

The matrix is already in RREF. So the equation says that is free and . Therefore we have the eigenvector .

However, no more eigenvectors are available (other than scalar multiples of this one, which would not be independent of this one). Therefore it is impossible to find a basis of eigenvectors, and it is thus impossible to convert to diagonal form by a change of basis.

Matrix with complex eigenvalues and eigenvectors

Matrix with complex eigenvalues and eigenvectors

The matrix has so its eigenvalues are . To find the eigenvectors:

Row reduce the matrix :

This is now in RREF, so we see that and is free, so we get the eigenvector .

Following the same procedure for , we find the eigenvector .

Computing SVD by hand

Computing SVD by hand

Problem: Find an SVD for the matrix .

Solution: First calculate that and this matrix has and eigenvalues. Therefore we set and . By solving we obtain an eigenvector which we renormalize to the unit vector . By solving we obtain an eigenvector which we renormalize to the unit vector . We now have and :

Set

and we notice that . Now we need unit vectors orthogonal to each other and to . We first calculate a span of the kernel of the matrix , and then perform Gram-Schmidt to orthogonalize it. For the kernel:

and therefore so we can set free and solve for , thereby obtaining generators for the kernel:

Now we already have by our method of defining . So it just remains to do the last step of Gram-Schmidt. We calculate that

Then

We have finished, and the SVD is given by: