Skip to main content

Section 2.7 Eigenvalues and Eigenvectors

Suppose that \(A\) is a square (\(n \times n\)) matrix. We say that a nonzero vector \(\vb\) is an eigenvector and a number \(\lambda\) is its eigenvalue if
\begin{equation} A \vb = \lambda \vb\text{.}\tag{2.7.1} \end{equation}
Geometrically this means that \(A\vb\) is in the same direction as \(\vb\text{,}\) since multiplying a vector by a number changes its length, but not its direction.
MATLAB has a built-in routine for finding eigenvalues and eigenvectors:
>> A = pascal(4)
>> [v e] = eig(A)
The results are a matrix v that contains eigenvectors as columns and a diagonal matrix e that contains eigenvalues on the diagonal. We can check this by
>> v1 = v(:,1)
>> A*v1
>> e(1,1)*v1

Subsection 2.7.1 Finding Eigenvalues for \(2\times 2\) and \(3\times3\)

If \(A\) is \(2\times 2\) or \(3\times3\) then we can find its eigenvalues and eigenvectors by hand. Notice that Equation (2.7.1) can be rewritten as
\begin{equation*} A \vb - \lambda \vb = \mathbf{0}\text{.} \end{equation*}
It would be nice to factor out the \(\vb\) from the right-hand side of this equation, but we can’t because \(A\) is a matrix and \(\lambda\) is a number. However, since \(I \vb = \vb\text{,}\) we can do the following:
\begin{equation*} \begin{split}A\vb - \lambda \vb&= A \vb - \lambda I \vb \\&= (A - \lambda I) \vb \\&= \mathbf{0}\end{split} \end{equation*}
If \(\vb\) is nonzero, then by Theorem 2.3.3 the matrix \((A - \lambda I)\) must be singular. By the same theorem, we must have
\begin{equation*} \det(A - \lambda I) = 0\text{.} \end{equation*}
This is called the characteristic equation.
For a \(2 \times 2\) matrix, \(A - \lambda I\) is calculated as in the following example:
\begin{equation*} \begin{split}A - \lambda I&= \left(\begin{array}{cc}1 & 4 \\ 3 & 5\end{array} \right) - \lambda \left(\begin{array}{cc}1 & 0 \\ 0 & 1\end{array} \right) \\&= \left(\begin{array}{cc}1 & 4 \\ 3 & 5\end{array} \right) - \left(\begin{array}{cc}\lambda & 0 \\ 0 & \lambda\end{array} \right) \\&= \left(\begin{array}{cc}1 -\lambda & 4 \\ 3 & 5 - \lambda\end{array} \right)\end{split}\text{.} \end{equation*}
The determinant of \(A - \lambda I\) is then
\begin{equation*} \begin{split}\det(A - \lambda I)&= (1 - \lambda)(5 - \lambda) - 4 \cdot 3 \\&= -7 - 6 \lambda + \lambda^{2} \end{split}\text{.} \end{equation*}
The characteristic equation \(\det(A - \lambda I) = 0\) is simply a quadratic equation:
\begin{equation*} \lambda^{2} - 6 \lambda - 7 = 0\text{.} \end{equation*}
The roots of this equation are \(\lambda_{1} = 7\) and \(\lambda_{2} = -1\text{.}\) These are the eigenvalues of the matrix \(A\text{.}\) Now to find the corresponding eigenvectors we return to the equation \((A - \lambda I) \vb = \mathbf{0}\text{.}\) For \(\lambda_{1} = 7\text{,}\) the equation for the eigenvector \((A - \lambda I) \vb = \mathbf{0}\) is equivalent to the augmented matrix
\begin{equation*} \left(\begin{array}{cc|c}-6 & 4 & 0\\ 3 & -2 & 0\end{array} \right)\text{.} \end{equation*}
Notice that the first and second rows of this matrix are multiples of one another. Thus Gaussian elimination would produce all zeros on the bottom row. Thus this equation has infinitely many solutions, i.e. infinitely many eigenvectors. Since only the direction of the eigenvector matters, this is okay, we only need to find one of the eigenvectors. Since the second row of the augmented matrix represents the equation
\begin{equation*} 3 x - 2 y = 0\text{,} \end{equation*}
we can let
\begin{equation*} \vb_{1} = \left(\begin{array}{c}2 \\ 3\end{array} \right)\text{.} \end{equation*}
This comes from noticing that \((x,y) = (2,3)\) is a solution of \(3x -2y =0\text{.}\)
For \(\lambda_{2} = -1\text{,}\) \((A - \lambda I) \vb = \mathbf{0}\) is equivalent to the augmented matrix
\begin{equation*} \left(\begin{array}{cc|c}2 & 4 & 0\\ 3 & 6 & 0\end{array} \right)\text{.} \end{equation*}
Once again the first and second rows of this matrix are multiples of one another. For simplicity we can let
\begin{equation*} \vb_{2} = \left(\begin{array}{c}-2 \\ 1\end{array} \right)\text{.} \end{equation*}
One can always check an eigenvector and eigenvalue by multiplying:
\begin{align*} A \vb_{1} \amp =\left(\begin{array}{cc}1 & 4 \\ 3 & 5\end{array} \right) \left(\begin{array}{c}2 \\ 3\end{array} \right) = \left(\begin{array}{c}14 \\ 21\end{array} \right) = 7 \left(\begin{array}{c}2 \\ 3\end{array} \right) =7 \vb_{1} \quad\text{and}\\ A \vb_{2} \amp = \left(\begin{array}{cc}1 & 4 \\ 3 & 5\end{array} \right) \left(\begin{array}{c}-2 \\ 1\end{array} \right) = \left(\begin{array}{c}2 \\ -1\end{array} \right) = -1 \left(\begin{array}{c}-2 \\ 1\end{array} \right) = -1 \vb_{2}\text{.} \end{align*}
For a \(3 \times 3\) matrix we could complete the same process. The \(\det(A -\lambda I)=0\) would be a cubic polynomial and we would expect to usually get 3 roots, which are the eigenvalues.

Subsection 2.7.2 Larger Matrices

For a \(n \times n\) matrix with \(n \ge 4\) this process is too long and cumbersome to complete by hand. Further, this process is not well suited even to implementation on a computer program since it involves determinants and solving a \(n\)-degree polynomial. For \(n \ge 4\) we need more ingenious methods. These methods rely on the geometric meaning of eigenvectors and eigenvalues rather than solving algebraic equations. We will overview these methods in Section 2.9.

Subsection 2.7.3 Complex Eigenvalues

It turns out that the eigenvalues of some matrices are complex numbers, even when the matrix only contains real numbers. When this happens the complex eigenvalues must occur in conjugate pairs, i.e.
\begin{equation*} \lambda_{1,2}= \alpha \pm i \beta\text{.} \end{equation*}
The corresponding eigenvectors must also come in conjugate pairs:
\begin{equation*} \wb = \ub \pm i \vb\text{.} \end{equation*}
In applications, the imaginary part of the eigenvalue, \(\beta\text{,}\) often is related to the frequency of an oscillation. This is because of Euler’s formula
\begin{equation*} e^{\alpha + i \beta}= e^{\alpha}(\cos \beta + i \sin \beta)\text{.} \end{equation*}
Certain kinds of matrices that arise in applications can only have real eigenvalues and eigenvectors. The most common such type of matrix is the symmetric matrix. A matrix is symmetric if it is equal to its own transpose, i.e. it is symmetric across the diagonal. For example,
\begin{equation*} \left(\begin{array}{cc}1 & 3 \\ 3 & -5\end{array} \right) \end{equation*}
is symmetric and so we know beforehand that its eigenvalues will be real, not complex.

Exercises 2.7.4 Exercises

1.

Find the eigenvalues and eigenvectors of the following matrix by hand:
\begin{equation*} A = \left(\begin{array}{cc}2 & 1 \\ 1 & 2\end{array} \right). \end{equation*}

2.

Find the eigenvalues and eigenvectors of the following matrix by hand:
\begin{equation*} B = \left(\begin{array}{cc}1 & -3 \\ 3 & 1\end{array} \right)\text{.} \end{equation*}
Can you guess the eigenvalues of the matrix
\begin{equation*} C = \left(\begin{array}{cc}a & -b \\ b & a\end{array} \right)\text{?} \end{equation*}