The Eigenlecture - drnickmines/MinesLinearAlgebra GitHub Wiki
We've seen that matrices act on vectors with some combination of reflection, shear, and rotation. We think of
Let's look at a few specific matrices:
- A reflection matrix:
This matrix reflects vectors. For example, we have
But notice that it has no effect on vectors in a certain direction:
It seems anything along the
- Now consider a shear matrix:
This will shear space parallel to the
But if we apply this matrix to vectors along the
Here we see the action of
- Let's think about a less obvious matrix:
Uh...what does this matrix do to vectors? We know it sends
It seems anything in the
Note
This little game - what vectors just get scaled by
We're going to give a name to the special direction that only gets scaled by a matrix:
Definition: If
$\large A$ is an$\large n\times n$ matrix, a scalar$\large \lambda$ is an eigenvalue of$\large A$ if there is a nonzero vector$\large \vec{v}$ such that
The vector
$\large \vec{v}$ in this case is called an eigenvector of$\large A$ .
Important
We see that eigenvectors are precisely the directions that are only scaled (not rotated, sheared, reflected, etc.) by
Note
The definition depends on
Warning
Remember, the definition specifically mentions that the eigenvector must be nonzero (the eigenvalue, on the other hand, can be 0).
We can easily check if a given vector is an eigenvector. The video will show that
Turns out, this special direction is useful in many places.
- In differential equations, eigenstuff is necessary to solve systems of equations. The signs of eigenvalues also indicate stability of solutions.
- In data science, eigenstuff is used to identify important dimensions of datasets, which allows us to reduce data problems to manageable size (we will see some of this when we discuss the SVD later in this class).
- Eigenvectors are at the heart of PageRank, an algorithm used to rank results of an internet search to give the most relevant results first.
- In structural engineering, eigenstuff is used to find the critical levels under which materials will buckle.
- Many Mines students will take a Finite Element Analysis class (required for MechE's). This technique relies heavily on eigenstuff.
Given that these are important quantities, how do we find the eigenvectors and eigenvalues for
This last equation is a system of linear equations. It certainly has the trivial solution
Definition: The left hand side of the equation above is a polynomial in
$\large \lambda$ , and we call it the characteristic polynomial. The roots of the characteristic polynomial are the eigenvalues of$\large A$ .
Once we have the eigenvalues from the equation above, we can go back to the definition to get the eigenvectors:
This is a system of equations that we solve with Gaussian elimination.
Note
Since
Let's see how this is done on an actual example. Find the eigenvalues and eigenvectors for
The solution is in the video:
We see the steps for an eigenproblem:
- Find the characteristic polynomial
$\large \text{det}\left(A-\lambda I\right)$ - Find the roots of the polynomial (either factor it, or use the quadratic equation if it's a quadratic).
- For each
$\large \lambda$ , solve$\large \left(A-\lambda I\right)\vec{v}=\vec{0}$ for$\large \vec{v}$ .
Let's see another example. Solve the eigenproblem for
Here's the solution:
Note
We will not ask you to deal with
We started this section looking for vectors that are only scaled by
Does that mean rotation matrices have no eigenvectors? Well, let's try. For a simple rotation,
We have
Note
Some matrices have complex eigenvalues and eigenvectors. These are associated with rotations and oscillations in many applications.
Let's see how this works in a full example. Solve the eigenproblem for
The solution is in the video:
Note
In
We've been looking at small matrices, but it's often large matrices we deal with in applications. In a lab, we will see how we can have Python do this for us. In the meantime, here are some facts to know:
- If
$\large A$ is$\large n\times n$ , then the characteristic polynomial is an$\large n^{th}$ degree polynomial, so there are$\large n$ eigenvalues (including repeated eigenvalues). If an eigenvalue is repeated$\large k$ times, we say it has multiplicity$\large k$ . - All complex eigenvalues and eigenvectors come in complex conjugate pairs. That is, if
$\large \lambda = 3+2i$ is an eigenvalue, then so is$\large \lambda = 3-2i$ . - If
$\large A$ is diagonal or triangular, the eigenvalues are just the elements along the diagonal of$\large A$ . - If
$\large \lambda=0$ is an eigenvalue, then$\large \text{det}(A)=0$ , so$\large A$ is singular. - If an
$\large n\times n$ matrix$\large A$ has$\large n$ distinct eigenvectors, then they are linearly independent (and therefore form a basis for$\large \mathbb{R}^n$ ). - For a repeated eigenvalue of multiplicity
$\large k$ , there may be anywhere from 1 through$\large k$ linearly independent eigenvectors. The number of linearly independent eigenvectors is the dimension of the nullspace of$\large \left(A-\lambda I\right)$ (the nullity, which is also number of free variables in the solution).
Let's throw in a new term as well:
Note
The word spectral refers to anything related to eigenstuff. A spectral method in differential equations is a method that relies on finding eigenstuff. The spectrum of
The last bullet point above is worth expanding a bit. The eigenvectors of
But the solution space can be larger (there can be more than one free variable in the solution). We call the solution space the eigenspace:
Defnition: The eigenspace for
$\lambda$ is the null space of$\large \left(A-\lambda I\right)$ .
Let's say a
- If
$\large \left(A-3I\right)$ has rank 6, then it has nullity 1, and there is one free variable in the solution of the eigenvector equation. There is only one linearly independent eigenvector for$\large \lambda=4$ . - If
$\large \left(A-3I\right)$ has rank 5, then it has nullity 2, and there are two free variables. There are two linearly independent eigenvectors for$\large \lambda=4$ . - If
$\large \left(A-3I\right)$ has rank 4, then it has nullity 3, and there are three free variables. There are three linearly independent eigenvectors for$\large \lambda=4$ .
I can:
- Determine if a given vector is an eigenvector of a given matrix.
- Find the eigenvalues and eigenvectors of
$\large A$ (by hand for$\large 2\times 2$ matrices, including real and complex eigenvalues). - Find the eigenspace for a given
$\large A$ and$\large \lambda$ .