---
title: Problem set 8
heading: "Problem set 8: eigenvalues and diagonalization"
eyebrow: A7 · Problem set 8
type: problems
---

::: hook
These problems use lessons 33 to 35: eigenvalues and eigenvectors, the trace and determinant checks, diagonalization, powers of matrices for systems that step in time, and Markov chains. Check every pair of eigenvalues against the trace and the determinant before going on.
:::

::: pool
pick: 12

::: check
kind: parts
given: a = 3 | 5; b = 1 | 2 | 4

## Find the eigenvalues of $\begin{bmatrix}\given{a} & \given{b}\\\given{b} & \given{a}\end{bmatrix}$.

::: part
answer: a + b
tolerance: 0.5%

### What is the larger one, with eigenvector $(1, 1)$?

::: misses
- [any] $A(1, 1) = (a + b)(1, 1)$.
:::
:::

::: part
answer: a - b
tolerance: 0.5%

### And the smaller, with eigenvector $(1, -1)$?

::: misses
- [any] $A(1, -1) = (a - b)(1, -1)$.
:::
:::
:::

::: check
kind: parts
given: a = 2 | 3 | 5

## Find the eigenvalues of $\begin{bmatrix}\given{a} + 1 & 2\\1 & \given{a}\end{bmatrix}$.

::: part
answer: a + 2
tolerance: 0.5%

### What is the larger one?

::: misses
- [any] With $\mu = \lambda - a$: $(1 - \mu)(-\mu) - 2 = \mu^2 - \mu - 2 = 0$.
:::
:::

::: part
answer: a - 1
tolerance: 0.5%

### And the smaller?

::: misses
- [any] The two must add to the trace, $2a + 1$.
:::
:::
:::

::: check
kind: parts
given: b = 4 | 9 | 0.25

## Take $A = \begin{bmatrix}2 & \given{b}\\1 & 2\end{bmatrix}$.

::: part
answer: 2 + sqrt(b)
tolerance: 0.5%

### What is its larger eigenvalue?

::: misses
- [2 + b] $(2 - \lambda)^2 = b$, so $\lambda = 2 \pm \sqrt b$.
- [any] Solve $\det(A - \lambda I) = 0$.
:::
:::

::: part
answer: 1/sqrt(b)
tolerance: 0.5%

### Its eigenvector is $(1, s)$. What is $s$?

::: misses
- [sqrt(b)] Row 2 of $(A - \lambda I)\mathbf{x} = \mathbf 0$ says $1 - \sqrt b\,s = 0$.
- [any] Use either row of $A - \lambda I$.
:::
:::
:::

::: check
kind: parts
given: n = 2..8 int

## $A = \begin{bmatrix}3 & 1\\1 & 3\end{bmatrix}$ has eigenvalues 4 and 2 with eigenvectors $(1, 1)$ and $(1, -1)$. Find $A^{\given{n}}(1, 0)$.

::: part
answer: (4^n + 2^n)/2
tolerance: 0.5%

### What is its first entry?

::: misses
- [4^n] Both modes contribute: $(1, 0) = \frac12(1, 1) + \frac12(1, -1)$.
- [any] $A^n(1, 0) = \frac12 4^n(1, 1) + \frac12 2^n(1, -1)$.
:::
:::

::: part
answer: (4^n - 2^n)/2
tolerance: 0.5%

### And its second?

::: misses
- [any] $\frac12(4^n - 2^n)$.
:::
:::
:::

::: check
kind: parts
given: p = 0.1 | 0.2; q = 0.3 | 0.05; n = 2 | 4

## A link goes bad with probability {p} each step and recovers with probability {q}. It starts good.

::: part
answer: q/(p + q)
tolerance: 0.5%

### What is the long-run probability that it's good?

::: misses
- [p/(p + q)] That's the probability that it's bad.
- [any] The eigenvector for $\lambda = 1$.
:::
:::

::: part
answer: q/(p + q) + p/(p + q)*(1 - p - q)^n
tolerance: 0.5%

### What is the probability that it's good after {n} steps?

::: misses
- [q/(p + q)] It hasn't fully settled: the other mode decays as $(1 - p - q)^n$.
- [any] Steady state plus the starting deviation, $\frac{p}{p + q}$, times $(1 - p - q)^n$.
:::
:::
:::

::: check
kind: parts
given: l1 = 2 | 5; l2 = -1 | 3

## A 2 × 2 matrix $A$ has eigenvalues {l1} and {l2}.

::: part
answer: l1^2 + l2^2
tolerance: 0.5%

### What is the trace of $A^2$?

::: misses
- [(l1 + l2)^2] $A^2$ has eigenvalues $\lambda_1^2$ and $\lambda_2^2$; add those.
- [any] The eigenvalues of $A^2$ are the squares.
:::
:::

::: part
answer: 1/(l1*l2)
tolerance: 0.5%

### What is $\det A^{-1}$?

::: misses
- [any] $A^{-1}$ has eigenvalues $1/\lambda_1$ and $1/\lambda_2$.
:::
:::
:::

::: check
kind: parts
given: k = 1 | 2 | -4

## A 3 × 3 matrix $A$ has eigenvalues 1, 2 and 3.

::: part
answer: (1 + k)*(2 + k)*(3 + k)
tolerance: 0.5%

### What is $\det(A + \given{k}I)$?

::: misses
- [6 + k] Shifting adds $k$ to every eigenvalue; the determinant is their product.
- [any] $A + kI$ has eigenvalues $1 + k$, $2 + k$, $3 + k$.
:::
:::

::: part
answer: 6 + 3*k
tolerance: 0.5%

### What is its trace?

::: misses
- [6 + k] Each of the three diagonal entries gains $k$.
- [any] The sum of the shifted eigenvalues.
:::
:::
:::

::: check
kind: parts
given: c = 1 | 2 | 6

## The recurrence $x_{n+1} = x_n + \given{c}x_{n-1}$ is $\mathbf{u}_{n+1} = A\mathbf{u}_n$ with $A = \begin{bmatrix}1 & \given{c}\\1 & 0\end{bmatrix}$.

::: part
answer: (1 + sqrt(1 + 4*c))/2
tolerance: 0.5%

### At what rate does $x_n$ grow in the long run?

::: misses
- [any] The larger root of $\lambda^2 - \lambda - c = 0$.
:::
:::

::: part
answer: (sqrt(1 + 4*c) - 1)/(sqrt(1 + 4*c) + 1)
tolerance: 0.5%

### By what factor does the other mode shrink relative to it each step?

::: misses
- [any] $|\lambda_2|/\lambda_1$.
:::
:::
:::

::: check
kind: parts
given: t = 30 | 60 | 120

## The rotation by {t}° has complex eigenvalues $e^{\pm j\theta}$.

::: part
answer: cos(t*pi/180)
tolerance: 0.5%

### What is their real part?

::: misses
- [any] $\frac{\text{trace}}{2} = \cos\theta$.
:::
:::

::: part
answer: sin(t*pi/180)
tolerance: 0.5%

### What is the positive imaginary part?

::: misses
- [any] $\sin\theta$.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 3; b = 1 | 4

## Find the eigenvalues $a \pm jb$ of $\begin{bmatrix}\given{a} & -\given{b}\\\given{b} & \given{a}\end{bmatrix}$ in polar form.

::: part
answer: sqrt(a^2 + b^2)
tolerance: 0.5%

### What is their magnitude?

::: misses
- [a^2 + b^2] That's the determinant, the magnitude squared.
- [any] $|a + jb|$.
:::
:::

::: part
answer: atan(b/a)*180/pi
unit: °
tolerance: 0.5%

### What is the angle of $a + jb$?

::: misses
- [any] $\tan^{-1}(b/a)$, in degrees.
:::
:::
:::

::: check
kind: parts
given: r1 = 0.3 | 0.5; r2 = 0.7 | 0.9

## A discrete system steps $\mathbf{u}_{k+1} = A\mathbf{u}_k$ with $A = \begin{bmatrix}\given{r1} & 1\\0 & \given{r2}\end{bmatrix}$.

::: part
answer: r2
tolerance: 0.5%

### What is the largest eigenvalue magnitude, which sets the decay?

::: misses
- [r1] The slower mode sets the decay.
- [any] The eigenvalues of a triangular matrix are on its diagonal.
:::
:::

::: part
answer: ceil(ln(0.001)/ln(r2))
tolerance: 0

### After how many steps has that mode fallen below 0.1% of its start?

::: misses
- [floor(ln(0.001)/ln(r2))] One more step.
- [any] The first $k$ with $r^k < 0.001$.
:::
:::
:::

::: check
kind: parts
given: a = 2 | 3; b = 4 | -1

## $A$ has eigenvalues {a} and {b}, and $B = M^{-1}AM$ for some invertible $M$.

::: part
answer: a + b
tolerance: 0.5%

### What is the trace of $B$?

::: misses
- [any] Similar matrices have the same eigenvalues.
:::
:::

::: part
answer: a*b
tolerance: 0.5%

### What is $\det B$?

::: misses
- [any] The product of the eigenvalues.
:::
:::
:::

::: check
kind: parts
given: a = 2 | 3; b = 1 | 4

## Take $A = \begin{bmatrix}\given{a} & 1\\0 & \given{b}\end{bmatrix}$.

::: part
answer: a + b
tolerance: 0.5%

### What is the top-right entry of $A^2$?

::: misses
- [1] Row 1 times column 2: $a \cdot 1 + 1 \cdot b$.
- [any] Multiply it out.
:::
:::

::: part
answer: a^2 + a*b + b^2
tolerance: 0.5%

### What is the top-right entry of $A^3$?

::: misses
- [3*a*b] Multiply $A^2$ by $A$: $a^2 \cdot 1 + (a + b)b$.
- [any] In general it's $\frac{a^n - b^n}{a - b}$.
:::
:::
:::

::: check
kind: parts
given: a = 4 | 5; b = 1 | 2; c = 1 | 2

## Find the eigenvalues of $\begin{bmatrix}\given{a} & \given{b}\\\given{b} & \given{c}\end{bmatrix}$.

::: part
answer: (a + c)/2 + sqrt(((a - c)/2)^2 + b^2)
tolerance: 0.5%

### What is the larger one?

::: misses
- [a] The off-diagonal entries push the eigenvalues apart.
- [any] $\frac{a + c}{2} \pm \sqrt{\left(\frac{a - c}{2}\right)^2 + b^2}$.
:::
:::

::: part
answer: (a + c)/2 - sqrt(((a - c)/2)^2 + b^2)
tolerance: 0.5%

### And the smaller?

::: misses
- [any] The two add to the trace.
:::
:::
:::

::: check
kind: parts
given: l = 2 | -3 | 0.5

## $A\mathbf{x} = \given{l}\mathbf{x}$.

::: part
answer: l + 1
tolerance: 0.5%

### What eigenvalue does $A + I$ have for $\mathbf{x}$?

::: misses
- [any] $(A + I)\mathbf{x} = (\lambda + 1)\mathbf{x}$.
:::
:::

::: part
answer: 1/l
tolerance: 0.5%

### What eigenvalue does $A^{-1}$ have for $\mathbf{x}$?

::: misses
- [-l] Inverting inverts the eigenvalue.
- [any] Multiply $A\mathbf{x} = \lambda\mathbf{x}$ by $A^{-1}/\lambda$.
:::
:::
:::

::: check
kind: parts
given: p = 0.01 | 0.02 | 0.05; q = 0.2 | 0.4; e1 = 0.0001 | 0.001; e2 = 0.05 | 0.2

## A burst-error channel goes from good to bad with probability {p} per bit and back with {q}. It errs with probability {e1} in the good state and {e2} in the bad one.

::: part
answer: p/(p + q)
tolerance: 0.5%

### What fraction of bits are sent in the bad state?

::: misses
- [q/(p + q)] That's the good state's share.
- [any] Not yet. Balance the flows: $\pi_g p = \pi_b q$, with $\pi_g + \pi_b = 1$.
:::
:::

::: part
answer: (q*e1 + p*e2)/(p + q)
tolerance: 0.5%

### What is the long-run bit error rate?

::: misses
- [(e1 + e2)/2] That weights the states equally. Weight each error rate by the time spent in its state.
- [any] Not yet. Weight each state's error rate by its steady-state probability.
:::
:::

::: part
answer: 1 - p - q
tolerance: 0.5%

### What is the second eigenvalue of the transition matrix, which sets how long the channel remembers its state?

::: misses
- [p + q] The eigenvalues add to the trace, $2 - p - q$, and one of them is 1.
- [any] Not yet. One eigenvalue is 1 and the two add to the trace.
:::
:::

::: right
Right. Most errors come from the short time spent in fades, and with $1 - p - q$ near 1 they arrive in bursts, which is why such links interleave their bits before coding.
:::
:::
:::
