Skip to content
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
876a2ab
issue-49 commit 1 eigenvalue problem 1 part 1
oscarearhart2005 May 5, 2025
17efd33
Merge branch `main` into issue-49
oscarearhart2005 May 5, 2025
2d220ac
issue49 commit to fix commit 1
oscarearhart2005 May 5, 2025
7b9d9ed
Merge branch 'main' into issue-49
mphoward May 7, 2025
f3ec364
issue 49 times edit n lambda edit check
oscarearhart2005 May 8, 2025
722cfb1
issue 49 small delete to see if resolve conflict in pull
oscarearhart2005 May 8, 2025
755a37a
issue 49 commit for 1st part see if will show up
oscarearhart2005 May 8, 2025
dd251f2
Merge branch 'main' into issue-49
oscarearhart2005 May 8, 2025
a42d1ee
issue49 commit for equations part 1
oscarearhart2005 May 8, 2025
da12a13
issue 49 trying to fix merge conflict again for >>head
oscarearhart2005 May 8, 2025
c435bea
issue49 solving if text is shown correct now
oscarearhart2005 May 8, 2025
4169bde
issue 49 part 2 first draft
oscarearhart2005 May 8, 2025
01889d9
issue 49 part 2 fix is 0 the problem
oscarearhart2005 May 8, 2025
0fd1afe
issue49 missing end align quick fix
oscarearhart2005 May 8, 2025
f5fd368
issue 49 part 3 draft
oscarearhart2005 May 8, 2025
0ca4082
issue 49 part 4 draft end O page 1
oscarearhart2005 May 8, 2025
9ef69f5
issue 49 part 4 quick fix
oscarearhart2005 May 8, 2025
a6a7fc9
issue 49 part 4 fix 2
oscarearhart2005 May 8, 2025
2ca4384
issue 49 part 4 fix 3
oscarearhart2005 May 8, 2025
0ebe968
issue 49 part 5 first draft
oscarearhart2005 May 8, 2025
efee3b1
issue 49 part 5 fix 1 see if it aligns better
oscarearhart2005 May 8, 2025
c79ced0
issue 49 part 5 draft
oscarearhart2005 May 8, 2025
73fa920
issue 49 part5 fix 1
oscarearhart2005 May 8, 2025
b75d514
issue 49 part 5 fix 3
oscarearhart2005 May 8, 2025
07f8172
issue 49 matrix fix part 5
oscarearhart2005 May 8, 2025
45b9e7e
issue 49 part 5 matrix fix 2
oscarearhart2005 May 8, 2025
538e2ab
issue 49 last part draft
oscarearhart2005 May 8, 2025
b0d6d2e
issue 49 last part fix 1
oscarearhart2005 May 8, 2025
28422d2
issue 49 last part spacing fix
oscarearhart2005 May 8, 2025
23fdbe7
issue 49 last quickfix 1
oscarearhart2005 May 8, 2025
28f28f7
issue49 quickfix 2 spacing experiment
oscarearhart2005 May 8, 2025
04b6ef4
issue 49 quick fix 3
oscarearhart2005 May 8, 2025
dc0db95
issue49 quickfix 5
oscarearhart2005 May 8, 2025
c23074d
issue49 qickfix 6 x subscript
oscarearhart2005 May 8, 2025
55bc2e1
issue49 quickfix 7 small typo
oscarearhart2005 May 8, 2025
fd69abf
issue49 first post review fix test
oscarearhart2005 May 9, 2025
4a91e44
issue49 replace all underlined x with \vv for bold instead
oscarearhart2005 May 9, 2025
cffdd05
issue49 final draft all underlined vectors replaces with \vv and all …
oscarearhart2005 May 9, 2025
35c0405
issue49 final fix on missed vector in text
oscarearhart2005 May 9, 2025
d1b1dfa
Merge branch 'main' into issue-49
mphoward May 9, 2025
3fd85f0
Revise and reformat
mphoward May 9, 2025
be810c7
Merge branch 'main' into issue-49
mphoward May 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 140 additions & 0 deletions linear-algebra/eigenvalue-problem.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,145 @@
# Eigenvalue problem

For an *n* x *n* square matrix **A**, we seek a scalar $\lambda$ and vector
**x** such that:

\begin{align}
\vv{A} \vv{x} = \lambda \vv{x}
\end{align}

We want a *nontrivial* solution ($\vv{x} \ne \vv{0}$). This pair represents a
vector **x** that, when multiplied into **A**, does not change its direction.
However, it may adopt a new magnitude $\lambda$. Borrowing from a German word
for "own", we call **x** an *eigenvector* and $\lambda$ an *eigenvalue* of
**A**.

To find the eigenvalues of **A**, rearrange:

\begin{align}
\vv{A} \vv{x} - \lambda \vv{x} &= \vv{0} \\
(\vv{A} - \lambda \vv{I}) \vv{x} &= \vv{0}
\end{align}

If $\vv{A} - \lambda \vv{I}$ is invertible, we have only $\vv{x} = \vv{0}$ as a
solution. Hence, we require this matrix to be singular! This occurs when its
[determinant](./determinants.md) is zero:

\begin{align}
|\vv{A}- \lambda \vv{I}| = 0
\end{align}

This equation creates a characeristic polynomial of degree *n* for $\lambda$
that can be solved. Then, the eigenvector **x** that corresponds to each root
$\lambda$ can be determined. For example, to find the eigenvalues of:

\begin{equation}
\vv{A} = \begin{bmatrix} -5 & 2\\ 2 & -2 \end{bmatrix}
\end{equation}

First compute the determinant:

\begin{align}
|\vv{A} -\lambda \vv{I}|
&= \begin{vmatrix} -5-\lambda & 2 \\ 2 & -2-\lambda \end{vmatrix} \\
&= (-5 -\lambda)(-2-\lambda) - 2 \cdot 2 \\
&= \lambda^2 +7\lambda + 6 \\
&= (\lambda +1)(\lambda +6) = 0
\end{align}

Hence, the eigenvalues of **A** are $\lambda_1 = -1$ and $\lambda_2 = -6$. Note
that the particular ordering of the eigenvalues is not important, and we are
only labeling them to make it convenient to refer to a particular eigenvalue
later.

Next, we seek the eigenvector $\vv{x}_1$ that corresponds to $\lambda_1$. This
vector must solve the system:

\begin{align}
(\vv{A} - \lambda_1 \vv{I}) \vv{x}_1 &= \vv{0} \\
\begin{bmatrix} -4 & 2 \\ 2 & -1 \end{bmatrix} \vv{x}_1 &= \vv{0}
\end{align}

We can solve for $\vv{x}_1$ using row reduction. Since the last column of the
augmented matrix would be only zeros, it is not necessary to include it, and we
row reduce only the matrix itself:

\begin{equation}
\begin{bmatrix}
-4 & 2 \\
2 & -1
\end{bmatrix}
\begin{matrix}\vphantom{R_1} \\ +R_2/2 \end{matrix}
\to \begin{bmatrix}
-4 & 2 \\
0 & 0
\end{bmatrix}
\begin{matrix} \div -2 \\ \vphantom{R_2} \end{matrix}
\to
\begin{bmatrix}
1 & -1/2 \\
0 & 0
\end{bmatrix}
\end{equation}

Note that this reduced matrix is equivalent to $x_1 = x_2/2$ (using *x* to
represent elements of $\vv{x}_1$ for convenience) with $x_2$ being free. This
means that the eigenvector is not unique, which makes sense both from the
original equation we are trying to solve and us forcing the matrix to be
singular! Equivalently, eigenvectors can be scaled up or down by an arbitrary
nonzero constant. We may then choose $x_2$ so that the eigenvector has either
nice values (like like integers) or a nice norm (1 is conventional). For
example, choosing $x_2 = 2$ gives:

\begin{equation}
\vv{x}_1 = \begin{bmatrix} 1 \\ 2 \end{bmatrix}
\end{equation}

```{tip}
For a 2x2 matrix, if the eigenvalue $\lambda$ has been found correctly, one row
of $\vv{A}-\lambda\vv{I}$ will always be a multiple of the other. This means
the eigenvector can be determined using only one row. Moreover, the solution
for **x** can be obtained by swapping the entries in a row and changing the sign
of one of them! For example, we had

\begin{equation}
\begin{bmatrix}
-4 & 2 \\
2 & -1
\end{bmatrix}
\end{equation}

so using the second row, we find:

\begin{equation}
\vv{x}_1 = \begin{bmatrix}-(-1) \\ 2\end{bmatrix} = \begin{bmatrix}1 \\ 2\end{bmatrix}
\end{equation}

However, we could also have negated the other entry:

\begin{equation}
\vv{x}_1 = \begin{bmatrix}-1\\ -2\end{bmatrix}
\end{equation}

or used the first row:

\begin{equation}
\vv{x}_1 = \begin{bmatrix}2 \\ 4\end{bmatrix}
\end{equation}

Both of these are also valid eigenvectors because they are multiples of the one
we found already.
```

Let's use the same strategy to get the eigenvector for $\lambda_2 = -6$. We'll
jump straight to the matrix we need:

\begin{align}
(\vv{A} - \lambda_2 \vv{I}) = \begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix}
\to \vv{x}_2 = \begin{bmatrix}2 \\ -1 \end{bmatrix}
\end{align}

using the swapping trick on the first row.

## Multiple eigenvalues

An *n* x *n* matrix has *n* eigenvalues, but they may not be distinct! For
Expand Down