Chapter 9: Eigenvalues and Eigenvectors

Topics: eigenvalues and eigenvectors, characteristic polynomial, markov chains + adjacency matrices, multiplicities + diagonalization

Problems below are collected from past exams; each links back to its full exam. Solutions are in the dropdowns.

Problems


FA25 Final · Problem 9 18 pts 🎥 Walkthrough

From FA25 Final

Consider the matrix \(A = \begin{bmatrix} 2 & 1 \\ c & 6 \end{bmatrix}\), where \(c \in \mathbb{R}\) is some constant.

Each part asks you to find the values of \(c\), \(\lambda_1\) (\(A\)’s larger eigenvalue) and \(\lambda_2\) (\(A\)’s smaller eigenvalue) given the information provided. Your answers should be numbers with no variables.

If \(A\) only has one unique eigenvalue, put the same number for both \(\lambda_1\) and \(\lambda_2\).

Hint: Remember the relationship between the eigenvalues of a matrix and its determinant and trace.

a)

6 pts \(A\) is not invertible.

\(c = \_\_\_\_\_\_, \qquad \lambda_1 = \_\_\_\_\_\_, \qquad \lambda_2 = \_\_\_\_\_\_\)

Solution

If \(A\) is not invertible, then \(\det(A)=0\). Here,

$$ \det(A) = (2)(6) - (1)(c) = 12 - c $$

so

$$ 12 - c = 0 \implies \boxed{c = 12} $$

The trace is

$$ \text{tr}(A)=2+6=8 $$

so the eigenvalues must add to 8. Since the determinant is 0, the eigenvalues must multiply to 0, so one eigenvalue is 0 and the other is 8. Therefore,

$$ \boxed{\lambda_1 = 8, \qquad \lambda_2 = 0} $$
b)

6 pts \(A\)’s characteristic polynomial is \(p(\lambda) = \lambda^2 - 8\lambda + 7\).

\(c = \_\_\_\_\_\_, \qquad \lambda_1 = \_\_\_\_\_\_, \qquad \lambda_2 = \_\_\_\_\_\_\)

Solution

For a \(2 \times 2\) matrix,

$$ p(\lambda) = \lambda^2 - (\text{trace})\lambda + \det(A) $$

Here, the trace is 8, as both \(A\) and the characteristic polynomial tell us. This must mean

$$ \det(A) = 7 $$

Since \(\det(A)=12-c\), we get

$$ 12 - c = 7 \implies \boxed{c = 5} $$

Now, let’s factor the characteristic polynomial:

$$ \lambda^2 - 8\lambda + 7 = (\lambda-7)(\lambda-1) $$

so the eigenvalues are 7 and 1. Thus,

$$ \boxed{\lambda_1 = 7, \qquad \lambda_2 = 1} $$
c)

6 pts \(A\) is not diagonalizable.

\(c = \_\_\_\_\_\_, \qquad \lambda_1 = \_\_\_\_\_\_, \qquad \lambda_2 = \_\_\_\_\_\_\)

Solution

A \(2 \times 2\) matrix is not diagonalizable only if it has an eigenvalue \(\lambda\) with algebraic multiplicity 2 but geometric multiplicity 1, i.e. a repeated eigenvalue but only one linearly independent eigenvector. Since the two eigenvalues must add to 8, they must both be

$$ \lambda = \frac{8}{2} = 4 $$
$$ \boxed{\lambda_1 = 4, \qquad \lambda_2 = 4} $$

That means the determinant must be

$$ 4 \cdot 4 = 16 $$

So,

$$ 12 - c = 16 \implies \boxed{c = -4} $$

Make sure to place the larger eigenvalue in \(\lambda_1\) and the smaller eigenvalue in \(\lambda_2\)!

FA25 Final · Problem 10 12 pts 🎥 Walkthrough

From FA25 Final

Consider the adjacency matrix \(A = \begin{bmatrix} 0.4 & 0 & 0.5 \\ 0.4 & 0 & 0.5 \\ a & b & c \end{bmatrix}\) for a Markov chain with three states, where \(a, b, c \in \mathbb{R}\) are some constants.

a)

6 pts Find \(a\), \(b\), and \(c\) such that \(A\) is a valid adjacency matrix. Give your answers as numbers with no variables.

\(a = \_\_\_\_\_\_, \qquad b = \_\_\_\_\_\_, \qquad c = \_\_\_\_\_\_\)

Solution

For a valid adjacency matrix, each column must sum to 1, since the columns describe the transition probabilities out of a given state. So,

$$ \begin{align*} 0.4 + 0.4 + a &= 1 \implies a = 0.2 \\\\ 0 + 0 + b &= 1 \implies b = 1 \\\\ 0.5 + 0.5 + c &= 1 \implies c = 0 \end{align*} $$

Therefore,

$$ \boxed{a = 0.2, \qquad b = 1, \qquad c = 0} $$
b)

6 pts Suppose \(\vec x^{\ast} \in \mathbb{R}^3\) is a vector containing the long-run fraction of time spent in each state. Which of the following vectors is \(\vec x^{\ast}\) and why?

  1. \(\vec x^{\ast}\) is

    \(\displaystyle \begin{bmatrix} 1/3 \\ 1/3 \\ 1/3 \end{bmatrix}\) \(\displaystyle \begin{bmatrix} 4/9 \\ 0 \\ 5/9 \end{bmatrix}\) \(\displaystyle \begin{bmatrix} 5/16 \\ 5/16 \\ 6/16 \end{bmatrix}\) \(\displaystyle \begin{bmatrix} 5/16 \\ 6/16 \\ 5/16 \end{bmatrix}\) \(\displaystyle \begin{bmatrix} 3/16 \\ 3/16 \\ 10/16 \end{bmatrix}\)
  2. because \(\vec x^{\ast}\) is the eigenvector of \(A\) corresponding to the eigenvalue

    \(-1\) \(0\) \(0.4\) \(1\) \(1.8\)
    Solution
    \(-1\) \(0\) \(0.4\) \(1\) \(1.8\)

    The long-run fraction of time spent in each state is the stationary distribution, so it must satisfy

    $$ A\vec x^* = \vec x^* $$

    That means \(\vec x^{\ast}\) is an eigenvector corresponding to eigenvalue 1.

    Using the matrix from part a),

    $$ A = \begin{bmatrix} 0.4 & 0 & 0.5 \\\\ 0.4 & 0 & 0.5 \\\\ 0.2 & 1 & 0 \end{bmatrix} $$

    we can check that

    $$ A\begin{bmatrix} 5/16 \\\\ 5/16 \\\\ 6/16 \end{bmatrix} = \begin{bmatrix} 5/16 \\\\ 5/16 \\\\ 6/16 \end{bmatrix} $$

    So the correct choices are

    $$ \boxed{\begin{bmatrix} 5/16 \\\\ 5/16 \\\\ 6/16 \end{bmatrix}} \qquad \text{and} \qquad \boxed{1} $$

FA25 Final · Problem 11 12 pts 🎥 Walkthrough

From FA25 Final

Let \(A\) be a \(4 \times 4\) symmetric matrix with eigenvalue decomposition \(A = V \Lambda V^{-1}\). Suppose the columns of \(V\) are \(\vec v_1\), \(\vec v_2\), \(\vec v_3\), and \(\vec v_4\), in that order, and that the columns of \(V\) are unit vectors.

a)

2 pts Suppose \(\Lambda = \begin{bmatrix} 4 & 0 & 0 & 0 \\ 0 & 3 & 0 & 0 \\ 0 & 0 & 2 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix}\).

True or False: \(V\) is guaranteed to be an orthogonal matrix.

True False
Solution
True False

This is true. Since \(A\) is symmetric, the spectral theorem states that eigenvectors corresponding to different eigenvalues are automatically orthogonal. Additionally, \(A\) has four unique eigenvalues. This means that the columns of \(V\) are guaranteed to be orthogonal. Since we’re told that the columns of \(V\) are unit vectors, they are orthonormal, so \(V\) is orthogonal.

b)

2 pts Suppose \(\Lambda = \begin{bmatrix} 4 & 0 & 0 & 0 \\ 0 & 2 & 0 & 0 \\ 0 & 0 & 2 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix}\).

True or False: \(V\) is guaranteed to be an orthogonal matrix.

True False
Solution
True False

This is false. A symmetric matrix always has an orthonormal eigenbasis, but when an eigenvalue is repeated, the problem does not guarantee that the particular unit eigenvectors in \(V\) were chosen to be orthogonal within that eigenspace. The two eigenvectors corresponding to \(\lambda = 2\) are guaranteed to be orthogonal to the eigenvectors for \(\lambda = 1\) and \(\lambda = 4\), but not necessarily orthogonal to each other.

The rest of this problem does not use any of the information from parts a) and b). Suppose \(k\) is some positive integer greater than 1, and that

$$ \vec x = 5 \vec v_1 - 3 \vec v_2 - 5 \vec v_3 + \vec v_4 $$

and

$$ A^k \vec x = 40 \vec v_1 - 81 \vec v_2 + 64 \vec v_4 $$
c)

6 pts What is the value of \(k\)? Select one of the answers below, then justify your answer in the box provided. Hint: If \(A = V \Lambda V^{-1}\), what is \(A^k\)?

  1. Answer:

    \(2\) \(3\) \(4\) \(5\)
  2. Justify your answer in the box below.

    Solution
    \(2\) \(3\) \(4\) \(5\)

    If \(A = V\Lambda V^{-1}\), then

    $$ A^k \vec x = 5\lambda_1^k \vec v_1 - 3\lambda_2^k \vec v_2 - 5\lambda_3^k \vec v_3 + \lambda_4^k \vec v_4. $$

    Matching this with

    $$ A^k \vec x = 40 \vec v_1 - 81 \vec v_2 + 64 \vec v_4 $$

    gives

    $$ \lambda_1^k = 8 \qquad \lambda_2^k = 27 \qquad \lambda_4^k = 64 $$

    Among the answer choices, the only value of \(k\) for which all three numbers are perfect \(k\)th powers is \(k=3\):

    $$ 8 = 2^3 \qquad 27 = 3^3 \qquad 64 = 4^3 $$

    Therefore, \(\boxed{k = 3}\).

d)

2 pts Fill in the blank: as \(k \to \infty\), the direction of \(A^k \vec x\) approaches the direction of...

\(\vec v_1\) \(\vec v_2\) \(\vec v_3\) \(\vec v_4\)
Solution
\(\vec v_1\) \(\vec v_2\) \(\vec v_3\) \(\vec v_4\)

From part c), the relevant eigenvalues have magnitudes 2, 3, 0, and 4. As \(k \to \infty\), the component corresponding to the largest eigenvalue magnitude dominates, so the direction of \(A^k \vec x\) approaches the direction of \(\boxed{\vec v_4}\).


WN26 MT2 · Problem 1 12 pts

From WN26 MT2

Suppose \(k\) is a real number. Let

$$ A = \begin{bmatrix} 3 & 2 \\\\ k & 4 \end{bmatrix} $$

In each part, you are provided with information about \(A\). Your job is to find the value of \(k\) that satisfies the given condition. Show your work in the space provided, and write your final answer in the bottom-right corner of the box. Your answers should be numbers with no variables.

a)

4 pts \(\text{rank}(A) = 1\)

$$ k = \_\_\_\_\_\_ $$
Solution

If \(\text{rank}(A) = 1\), then \(A\) is not invertible, which means \(\text{det}(A) = 0\). So,

$$ \begin{align*} \det(A) &= (3)(4) - (2)(k) = 12 - 2k = 0 \\\\ 2k &= 12 \\\\ k &= 6 \end{align*} $$
b)

4 pts \(\text{det}(A) = 2\)

$$ k = \_\_\_\_\_\_ $$
Solution

The determinant of a \(2 \times 2\) matrix \(\begin{bmatrix} a & b \\ c & d \end{bmatrix}\) is \(ad - bc\). So,

$$ \begin{align*} \det(A) &= (3)(4) - (2)(k) = 12 - 2k \end{align*} $$

We’re told that \(\det(A) = 2\), so

$$ \begin{align*} 12 - 2k &= 2 \\\\ 2k &= 10 \\\\ k &= 5 \end{align*} $$
c)

4 pts \(A^{-1} = \begin{bmatrix} 1 & -1/2 \\ -1 & 3/4 \end{bmatrix}\)

$$ k = \_\_\_\_\_\_ $$
Solution

The inverse of a \(2 \times 2\) matrix \(\begin{bmatrix} a & b \\ c & d \end{bmatrix}\) is \(\frac{1}{ad - bc} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix}\). So,

$$ \begin{align*} A^{-1} &= \frac{1}{12 - 2k} \begin{bmatrix} 4 & -2 \\\\ -k & 3 \end{bmatrix} \end{align*} $$

Since we’re told that

$$ A^{-1} = \begin{bmatrix} 1 & -1/2 \\\\ -1 & 3/4 \end{bmatrix}, $$

we can match entries. For example, using the bottom-right entry,

$$ \begin{align*} \frac{3}{12 - 2k} &= \frac{3}{4} \\\\ 12 - 2k &= 4 \\\\ 2k &= 8 \\\\ k &= 4 \end{align*} $$

WN26 Final · Problem 9 12 pts

From WN26 Final

Consider the matrix \(A = \begin{bmatrix} 2 & 3 \\ -4 & k \end{bmatrix}\) where \(k \in \mathbb{R}\) is some unknown constant.

a)

3 pts Suppose \(\lambda_1 = 0\) is an eigenvalue of \(A\). Find the value of \(k\). Give your answer as a number with no variables.

\(k = \_\_\_\_\_\_\)

Solution

If \(0\) is an eigenvalue, then \(\det(A)=0\). So

$$ \det(A)=2k-3(-4)=2k+12=0 $$

This gives

$$ k=\boxed{-6} $$
b)

4 pts Suppose \(\begin{bmatrix} 1 \\ 1 \end{bmatrix}\) is an eigenvector of \(A\). Find the value of \(k\). Give your answer as a number with no variables.

$$ k = \_\_\_\_\_\_ $$
Solution

If \(\begin{bmatrix}1\\1\end{bmatrix}\) is an eigenvector, then

$$ A\begin{bmatrix}1\\\\1\end{bmatrix} = \begin{bmatrix}5\\\\k-4\end{bmatrix} $$

must be a scalar multiple of \(\begin{bmatrix}1\\1\end{bmatrix}\). Therefore,

$$ k-4=5 $$

so

$$ k=\boxed{9} $$
c)

5 pts Suppose \(\lambda_1 = 3\) is an eigenvalue of \(A\). Find \(\lambda_2\), the other eigenvalue of \(A\). Show your work, and write your final answer in the box provided. Give your answer as a number with no variables.

$$ \lambda_2 = \_\_\_\_\_\_ $$
Solution

If \(3\) is an eigenvalue, then

$$ \det(A-3I)=0 $$

So

$$ \det\left( \begin{bmatrix} -1 & 3\\\\ -4 & k-3 \end{bmatrix} \right) = -(k-3)+12 = 15-k =0 $$

This gives \(k=15\). The trace of \(A\) is then \(2+15=17\), so the two eigenvalues sum to \(17\). Thus,

$$ \lambda_2 = 17-3 = \boxed{14} $$

WN26 Final · Problem 10 14 pts

From WN26 Final

The state diagram below describes a Markov chain with four states.

image

a)

4 pts Find the adjacency matrix \(A\) for this Markov chain.

\(A =\) ______

Solution

Column \(j\) contains the probabilities of transitioning from state \(j\) to all other states; columns must sum to \(1\). Reading from the diagram, the first two columns come from the left “connected component” (made up of states \(1\) and \(2\)), and the last two columns come from the right connected component. So

$$ \boxed{ A = \begin{bmatrix} 1/4 & 1/2 & 0 & 0\\\\ 3/4 & 1/2 & 0 & 0\\\\ 0 & 0 & 2/3 & 1/5\\\\ 0 & 0 & 1/3 & 4/5 \end{bmatrix}} $$
b)

6 pts Suppose the chain starts in state \(\mathbf{1}\). Fill each box with the long-run fraction of time spent in each state. Your answers should be numbers with no variables, and should sum to \(1\).

State 1: ______ State 2: ______ State 3: ______ State 4: ______

Solution

As we know from Chapter 9.3, the long-run fraction of time spent in each state is described by the eigenvector of the adjacency matrix corresponding to eigenvalue \(1\) (and whose components sum to \(1\)).

What is tricky about this particular adjacency matrix is that it has two linearly independent eigenvectors, both for the eigenvalue \(1\). Why? Note that the Markov chain has two isolated islands, and its impossible to transition between them. So if we ever start in states \(1\) or \(2\), in the long run, we will only spend time in states \(1\) and \(2\). Similarly, if we start in states \(3\) or \(4\), in the long run, we will only spend time in states \(3\) and \(4\).

This means that we can simplify the problem by just looking at the \(2 \times 2\) matrix in the top right of \(A\) corresponding to the left island (states \(1\) and \(2\)). This matrix is

$$ A_{\text{left}} = \begin{bmatrix} 1/4 & 1/2 \\\\ 3/4 & 1/2 \end{bmatrix} $$

All we need to do now is find the eigenvector of \(A_{\text{left}}\) corresponding to eigenvalue \(1\). If such an eigenvector is of the form \(\begin{bmatrix} a \\ b \end{bmatrix}\), then

$$ \begin{bmatrix} 1/4 & 1/2 \\\\ 3/4 & 1/2 \end{bmatrix} \begin{bmatrix} a \\\\ b \end{bmatrix} = 1 \begin{bmatrix} a \\\\ b \end{bmatrix} $$

The first row gives us

$$ \frac{1}{4}a + \frac{1}{2} b = a \implies \frac{1}{2} b = \frac{3}{4}a \implies b = \frac{3}{2}a $$

So, if \(a = 2\), then \(b = 3\). But, the steady-state distribution must have components that sum to \(1\), so as probabilities, we’re looking at \(2/5\) and \(3/5\).

Not only is \(\begin{bmatrix} 2/5 \\ 3/5 \end{bmatrix}\) an eigenvector of \(A_{\text{left}}\) corresponding to eigenvalue \(1\), but

$$ \begin{bmatrix} 2/5 \\\\ 3/5 \\\\ 0 \\\\ 0 \end{bmatrix} $$

is an eigenvector of the full matrix \(A\) corresponding to eigenvalue \(1\)! The 0’s in the latter two components effectively “ignore” states \(3\) and \(4\), representing the assumption that we start in state \(1\).

So, if we start in state \(1\),

$$ \boxed{\text{State 1: } \frac{2}{5},\quad \text{State 2: } \frac{3}{5},\quad \text{State 3: } 0,\quad \text{State 4: } 0} $$

In case you’re curious, the other linearly independent eigenvector of \(A\) corresponding to eigenvalue \(1\) is

$$ \begin{bmatrix} 0 \\\\ 0 \\\\ 3/8 \\\\ 5/8 \end{bmatrix} $$

There’s a section in Chapter 9.4 about block diagonal matrices that is relevant here.

Now, consider a modified version of the Markov chain. Changes have been emphasized in bold.

image

c)

4 pts Consider the statement: “‘If we start in ____, the long-run fraction of time spent in each state is the same as in the original chain.’’

Which of the following could be placed in the blank to make the statement true? Select all that apply.

state 1 state 2 state 3 state 4 none of these are valid
Solution
state 1 state 2 state 3 state 4 none of these are valid

In the modified chain, starting in state \(1\) or state \(2\) eventually leads to the right connected component, because there is now a positive-probability path from state \(2\) to state \(3\). This changes the long-run fractions compared to the original chain. The long-run fraction of time spent in states \(1\) and \(2\) now will be \(0\).

Starting in state \(3\) or state \(4\), the chain stays in the right connected component, and that component has not changed. There is no way to go from state \(3\) to \(2\) or \(1\). So, the long-run fractions are the same as in the original chain; \(3/8\) for state \(3\) and \(5/8\) for state \(4\), and \(0\) for states \(1\) and \(2\).

The correct choices are

$$ \boxed{\text{state 3 and state 4}} $$

WN26 Final · Problem 11 10 pts

From WN26 Final

Let \(S\) be a \(3 \times 3\) symmetric matrix with eigenvectors \(\vec v_1\), \(\vec v_2\), and \(\vec v_3\) corresponding to eigenvalues \(5\), \(2\), and \(-1\), respectively. Assume that each \(\vec v_i\) is a unit vector.

Suppose \(\vec x \in \mathbb{R}^3\) and that

$$ \vec x = 3\vec v_1 - 4\vec v_2 + \vec v_3 $$
a)

6 pts Write \(S^2 \vec x\) as a linear combination of \(\vec v_1\), \(\vec v_2\), and \(\vec v_3\). Fill in each box with a number with no variables.

\(S^2 \vec x = \_\_\_\_\_\_ \vec v_1 + \_\_\_\_\_\_ \vec v_2 + \_\_\_\_\_\_ \vec v_3\)

Solution

Applying \(S^2\) multiplies each eigenvector by the square of its eigenvalue, so

$$ S^2\vec x = 3(5^2)\vec v_1 - 4(2^2)\vec v_2 + ((-1)^2)\vec v_3 = \boxed{75\vec v_1 - 16\vec v_2 + \vec v_3} $$

This result doesn’t rely on the fact that \(\vec v_1\), \(\vec v_2\), and \(\vec v_3\) are unit vectors or orthogonal; we’ll use these assumptions in the next part.

b)

4 pts What is the value of \(\lVert S\vec x \rVert^2\)?

\(24\) \(26\) \(218\) \(290\) \(5882\) Not enough information
Solution
\(24\) \(26\) \(218\) \(290\) \(5882\) Not enough information

Applying \(S\) once gives

$$ S\vec x = 15\vec v_1 - 8\vec v_2 - \vec v_3 $$

Since \(S\) is symmetric, eigenvectors corresponding to distinct eigenvalues are orthogonal. The vectors \(\vec v_1\), \(\vec v_2\), and \(\vec v_3\) are also unit vectors, so

$$ \begin{align*} \lVert S\vec x \rVert^2 &= \lVert 15\vec v_1 - 8\vec v_2 - \vec v_3 \rVert^2 \\\\ &= (15 \vec v_1 - 8\vec v_2 - \vec v_3) \cdot (15\vec v_1 - 8\vec v_2 - \vec v_3) \\\\ &= 15^2 \underbrace{(\vec v_1 \cdot \vec v_1)}_{1} - 8 \cdot 15 \underbrace{(\vec v_1 \cdot \vec v_2)}_{0} - 15 (\vec v_1 \cdot \vec v_3) \\\\ & \quad - 8 \cdot 15 (\vec v_2 \cdot \vec v_1) + 8^2 (\vec v_2 \cdot \vec v_2) + 8 (\vec v_2 \cdot \vec v_3) \\\\ & \quad - (\vec v_3 \cdot \vec v_1) - 8 (\vec v_3 \cdot \vec v_2) + (-1)^2(\vec v_3 \cdot \vec v_3) \\\\ &= 15^2 + 8^2 + 1^2 \\\\ &= 290 \end{align*} $$

Yet another way to look at this is to see that \(S = Q \Lambda Q^T\), where the columns of \(Q\) are the vectors \(\vec v_i\) and the diagonal entries of \(\Lambda\) are \(5\), \(2\), and \(-1\). So,

$$ \begin{align*} \lVert S\vec x \rVert^2 &= \vec x^T S^T S \vec x \\\\ &= \vec x^T S^2 \vec x \\\\ &= \vec x^T (Q \Lambda Q^T)^2 \vec x \\\\ &= \vec x^T Q \Lambda^2 Q^T \vec x \\\\ &= \vec x^T Q \begin{bmatrix} 25 & 0 & 0 \\\\ 0 & 4 & 0 \\\\ 0 & 0 & 1 \end{bmatrix} Q^T \vec x \\\\ &= \begin{bmatrix} 3 & -4 & 1 \end{bmatrix} \begin{bmatrix} 25 & 0 & 0 \\\\ 0 & 4 & 0 \\\\ 0 & 0 & 1 \end{bmatrix} \begin{bmatrix} 3 \\\\ -4 \\\\ 1 \end{bmatrix} \\\\ &= \boxed{290} \end{align*} $$

In this solution, we used the fact that \(\vec x = 3 \vec v_1 - 4 \vec v_2 + \vec v_3 = Q \begin{bmatrix} 3 \\ -4 \\ 1 \end{bmatrix}\), and since \(Q^T Q = I\) (if \(Q\)’s columns are the orthonormal \(\vec v_i\)’s), then \(Q^T \vec x = Q^TQ \begin{bmatrix} 3 \\ -4 \\ 1 \end{bmatrix} = \begin{bmatrix} 3 \\ -4 \\ 1 \end{bmatrix}\).


SP26 Final · Problem 10 12 pts

From SP26 Final

Let \(A=\begin{bmatrix}2&4\\4&2\end{bmatrix}\).

a)

8 pts Find all eigenvalues and eigenvectors of \(A\). Show your work, and organize your answers as follows:

  • Put the larger eigenvalue in \(\lambda_1\), and a corresponding eigenvector in \(\vec v_1\).

  • Put the smaller eigenvalue in \(\lambda_2\), and a corresponding eigenvector in \(\vec v_2\).

Solution

The characteristic polynomial is

$$ \begin{align*} \det(A-\lambda I) &= \det\left( \begin{bmatrix} 2-\lambda & 4\\\\ 4 & 2-\lambda \end{bmatrix} \right) \\\\ &= (2-\lambda)^2-16 \\\\ &= \lambda^2-4\lambda-12 \\\\ &= (\lambda-6)(\lambda+2) \end{align*} $$

So the eigenvalues are \(6\) and \(-2\). Alternatively, using the trace and determinant facts from Chapter 9.1, you can arrive at this quickly by seeing that the eigenvalues must add to \(\text{trace}(A) = 2 + 2 = 4\) and multiply to \(\det(A) = 2 \cdot 2 - 4 \cdot 4 = -12\).

For \(\lambda=6\), write an eigenvector as

$$ \vec{v}=\begin{bmatrix}a\\\\b\end{bmatrix} $$

Then

$$ A\vec{v} = \begin{bmatrix} 2a+4b\\\\ 4a+2b \end{bmatrix} = 6\begin{bmatrix}a\\\\b\end{bmatrix} = \begin{bmatrix} 6a\\\\ 6b \end{bmatrix} $$

so

$$ 2a+4b=6a \qquad\text{and}\qquad 4a+2b=6b $$

Both equations say \(a=b\), so one corresponding eigenvector is \(\begin{bmatrix}1\\1\end{bmatrix}\).

For \(\lambda=-2\), we similarly solve

$$ \begin{bmatrix} 2a+4b\\\\ 4a+2b \end{bmatrix} = -2\begin{bmatrix}a\\\\b\end{bmatrix} = \begin{bmatrix} -2a\\\\ -2b \end{bmatrix} $$

so

$$ 2a+4b=-2a \qquad\text{and}\qquad 4a+2b=-2b $$

Both equations say \(a=-b\), so one corresponding eigenvector is \(\begin{bmatrix}1\\-1\end{bmatrix}\). Therefore,

$$ \lambda_1=6,\quad \vec{v}_1=\begin{bmatrix}1\\\\1\end{bmatrix}, \qquad \lambda_2=-2,\quad \vec{v}_2=\begin{bmatrix}1\\\\-1\end{bmatrix} $$
b)

4 pts True or false: for all integer values of \(k\), the matrix \(B=\begin{bmatrix}2&4&0\\4&2&0\\0&0&k\end{bmatrix}\) is diagonalizable.

True False
Solution
True False

This is true. Since \(B\) is block diagonal (see Chapter 9.4), we can read off eigenvalues and eigenvectors from its individual blocks.

$$ B= \left[ \begin{array}{c|c} \begin{array}{cc} 2 & 4 \\\\ 4 & 2 \end{array} & \begin{array}{c} 0 \\\\ 0 \end{array} \\\\ \hline \begin{array}{cc} 0 & 0 \end{array} & \boxed{k} \end{array} \right] $$

The top-left block has two linearly independent eigenvectors, \(\begin{bmatrix}1\\1\\0\end{bmatrix}\) and \(\begin{bmatrix}1\\-1\\0\end{bmatrix}\), with eigenvalues \(6\) and \(-2\), and \(\begin{bmatrix}0\\0\\1\end{bmatrix}\) is an eigenvector with eigenvalue \(k\). These three eigenvectors are linearly independent no matter what \(k\) is. Therefore \(B\) is diagonalizable for all integer values of \(k\).

Another way to think about this is that for any \(k\), the matrix \(B\) is symmetric, and hence diagonalizable, as told to us by the spectral theorem.


SP26 Final · Problem 11 10 pts

From SP26 Final

The state diagram below describes a Markov chain with three states. \(a\) and \(b\) are both constants between 0 and 1.

image

Suppose that in the long run, \(\displaystyle\frac{25}{60}\) of the time is spent in state 1, \(\displaystyle\frac{21}{60}\) of the time is spent in state 2, and \(\displaystyle\frac{14}{60}\) of the time is spent in state 3.

Find the values of \(a\) and \(b\). Show your work, and write your final answers in the boxes provided. Your answers should be numbers with no variables.

Solution

As discussed in Chapter 9.3, a steady-state distribution is an eigenvector of the adjacency matrix with eigenvalue \(1\), with the additional constraint that its entries sum to \(1\). We are given that the steady-state distribution is

$$ \vec x = \begin{bmatrix} 25/60\\\\ 21/60\\\\ 14/60 \end{bmatrix} $$

which already sums to \(1\). The adjacency matrix for this Markov chain is

$$ A= \begin{bmatrix} 1-a & 1-b & 0\\\\ a & 0 & 1\\\\ 0 & b & 0 \end{bmatrix} $$

So we need to choose \(a\) and \(b\) so that \(A\vec x=1\vec x=\vec x\). This gives

$$ \begin{bmatrix} 1-a & 1-b & 0\\\\ a & 0 & 1\\\\ 0 & b & 0 \end{bmatrix} \begin{bmatrix} 25/60\\\\ 21/60\\\\ 14/60 \end{bmatrix} = \begin{bmatrix} 25/60\\\\ 21/60\\\\ 14/60 \end{bmatrix} $$

or equivalently,

$$ \begin{cases} (1-a)\frac{25}{60}+(1-b)\frac{21}{60}=\frac{25}{60}\\\\ a\frac{25}{60}+\frac{14}{60}=\frac{21}{60}\\\\ b\frac{21}{60}=\frac{14}{60} \end{cases} $$

The second equation gives

$$ a\frac{25}{60}=\frac{7}{60} \qquad\Rightarrow\qquad a=\frac{7}{25} $$

The third equation gives

$$ b=\frac{14}{21}=\frac{2}{3} $$

These values also satisfy the first equation, since

$$ (1-\frac{7}{25})\frac{25}{60}+(1-\frac{2}{3})\frac{21}{60} = \frac{18}{60}+\frac{7}{60} = \frac{25}{60} $$

SP26 Final · Problem 12 11 pts

From SP26 Final

Suppose \(A\) is a \(3 \times 3\) symmetric matrix with rank \(2\). The eigenspace corresponding to \(\lambda=9\) is the plane

$$ 2x-y+2z=0 $$

Suppose \(A=Q\Lambda Q^T\), where \(Q\) is an orthogonal matrix and \(\Lambda\) is a diagonal matrix with eigenvalues of \(A\) on the diagonal, sorted from largest to smallest.

a)

3 pts Find \(\Lambda\). Your answer should be a matrix with no variables.

$$ \Lambda = \_\_\_\_\_\_ $$
Solution

Since \(A\) is symmetric, the spectral theorem from Chapter 9.5 tells us that \(A\) is diagonalizable with orthogonal eigenspaces. The eigenspace for \(\lambda=9\) is a plane, so it is 2-dimensional. Since \(A\) has rank \(2\), it is not invertible, so it has at least one eigenvalue of \(0\). In fact, it has exactly one eigenvalue of \(0\), since the other two eigenvalues are both \(9\).

Since the eigenvalues are sorted from largest to smallest,

$$ \Lambda= \begin{bmatrix} 9&0&0\\\\ 0&9&0\\\\ 0&0&0 \end{bmatrix} $$
b)

8 pts Consider the vector

$$ \vec v = \begin{bmatrix}2 \\\\ 9 \\\\ -2\end{bmatrix} = 4\begin{bmatrix}1\\\\2\\\\0\end{bmatrix} -\begin{bmatrix}2\\\\-1\\\\2\end{bmatrix} $$

Find \(A\vec v\). Show your work, and write your final answer in the box provided. Your answer should be a vector with no variables. Hint: What does the spectral theorem tell us?

$$ A\vec v = \_\_\_\_\_\_ $$
Solution

The vector \(\begin{bmatrix}1\\2\\0\end{bmatrix}\) is in the eigenspace for \(\lambda=9\), since it satisfies the equation of the eigenspace, \(2x-y+2z=0\):

$$ 2(1)-2+2(0)=0 $$

This means \(\begin{bmatrix}1\\2\\0\end{bmatrix}\) is an eigenvector of \(A\) with eigenvalue \(9\).

The vector \(\begin{bmatrix}2\\-1\\2\end{bmatrix}\) is orthogonal to the plane \(2x-y+2z=0\) (conveniently, \(\begin{bmatrix} 2 \\ -1 \\ 2 \end{bmatrix}\) contains the coefficients of the plane equation, and the coefficients of the plane equation define a vector orthogonal to the plane). The spectral theorem tells us that this vector is in the eigenspace corresponding to \(\lambda=0\), because eigenvectors for different eigenvalues are orthogonal for symmetric matrices. Therefore,

$$ \begin{align*} A\vec{v} &= A\left(4\begin{bmatrix}1\\\\2\\\\0\end{bmatrix} -\begin{bmatrix}2\\\\-1\\\\2\end{bmatrix}\right) \\\\ &= 4\underbrace{A\begin{bmatrix}1\\\\2\\\\0\end{bmatrix}}_{\substack{\text{eigenvector} \\\\ \lambda = 9}} - \underbrace{A\begin{bmatrix}2\\\\-1\\\\2\end{bmatrix}}_{\substack{\text{eigenvector} \\\\ \lambda = 0}} \\\\ &= 4\cdot 9\begin{bmatrix}1\\\\2\\\\0\end{bmatrix} - 0\begin{bmatrix}2\\\\-1\\\\2\end{bmatrix} \\\\ &= \begin{bmatrix}36\\\\72\\\\0\end{bmatrix} \end{align*} $$