In this linear algebra tutorial, we will learn how to calculate eigenvalues and eigenvectors of matrices by hand. It is true that today almost all calculations are done by using computers. However, knowing how to calculate a linear algebra object or a quantity by hand is very important since only in that way we can truly obtain a long-lasting and solid understanding of numerical linear algebra. Moreover, by learning how to compute quantities by hand, we will obtain enough insights into how linear algebra algorithms work behind the scenes. This knowledge will enable us to develop new algorithms. The YouTube video accompanying this tutorial is given below.
Definition of Eigenvalues, Eigenvectors, and Characteristic Polynomial
Let us consider an
Definition of eigenvalues and eigenvectors: A (complex) number
(1)
The vector
Consider this equation
(2)
where
The eigenvalues can be real or complex. Here, it should also be kept in mind that the entries of eigenvectors can be complex numbers! Also, it should be observed that the eigenvector
Let us now explain how to compute the eigenvectors and eigenvalues. The equation (1) can be written in the equivalent form
(3)
here
(4)
The equation (4) is a polynomial in
(5)
Numerical Example of Computing Eigenvectors and Eigenvalue of 3 by 3 Matrix
Now that we understand the definition of the eigenvectors and eigenvalues, let us do a numerical example in order to illustrate this definition and calculation steps. We consider the following matrix
(6)
and our goal is to compute the eigenvectors and eigenvalues of this matrix. First, we need to compute the eigenvalues. The eigenvalues are given as the roots of the characteristic polynomial:
(7)
We can compute the determinant by using the coefficients from the third column. We do that since the computations will simplify due to the zero in the position
(8)
That is, the characteristic polynomial is
(9)
Obviously, the eigenvalues are
(10)
Now, let us compute the corresponding eigenvectors.
First, we compute the eigenvector
(11)
Let the components of the vector
(12)
Then the system of equations (11) can be written like this
(13)
We can expand this system of equations like this
(14)
We want to solve this system by using the Gaussian elimination. First, we multiply the first equation by
(15)
From the second equation, we obtain
(16)
By substituting this equation into the first equation of (15), we obtain
(17)
Obviously, the original system of equations has an infinite number of solutions. However, from (16) and (17), we can observe that the solutions are actually parametrized by the following vector
(18)
where we have complete freedom to select the scalar
(19)
By selecting any other value of
Next, we compute the eigenvector
(20)
By using the parametrization, we obtain
(21)
The system (20) can be written as
(22)
or in the expanded version
(23)
By multiplying the third equation by (-1) and placing it as the first equation, we obtain
(24)
By multiplying the first equation with (-5) and adding the result to the second equation, and by multiplying the first equation with (-6) and by adding the result to the third equation, we obtain
(25)
By multiplying the second equation by
(26)
From the second equation, we obtain
(27)
By substituting this equation in the first equation of (26), we obtain
(28)
By using (27) and (28), we obtain the parametrized eigenvector
(29)
By selecting
(30)
Finally, we compute the eigenvector
(31)
By using the eigenvector
(32)
The resulting system of equations is
(33)
By multiplying the third equation by
(34)
By multiplying the first equation by
(35)
By multiplying the second equation by
(36)
From the second equation, we obtain
(37)
By substituting this result in the first equation of (36), we obtain
(38)
Consequently, the parametrized vector is
(39)
By selecting
(40)