---
title: Repeated eigenvalues and defective matrices
heading: When there aren't enough eigenvectors
eyebrow: A7 · Lesson 38 · Repeated eigenvalues
xp: 40
---

::: hook
Diagonalizing needs a full set of independent eigenvectors, one per dimension. Most matrices have them, but some don't: $\begin{bmatrix}3 & 1\\0 & 3\end{bmatrix}$ has the eigenvalue 3 twice and only one eigenvector. Such matrices are rare in random data and common in engineering, because designers aim for them: a critically damped circuit, the fastest response with no overshoot, has exactly this kind of matrix. Its solutions contain a $te^{\lambda t}$ term that no sum of pure exponentials can produce.
:::

::: play
- The curve is the free response $x(t)$ of a system whose two eigenvalues are $-1 \pm \delta$, starting from $x = 1$ at rest.
- The dashed curve is $(1 + t)e^{-t}$, the critically damped response.
- Shrink $\delta$ toward 0. The two eigenvalues merge, and the response approaches the dashed curve, with its factor of $t$.
:::

```sim plot
view: graph
x: t = 0..8 s
y: x = 0..1.1
slider: d = 0.01..0.95 = 0.6
plot: exp(-t)*((exp(d*t) + exp(-d*t))/2 + (exp(d*t) - exp(-d*t))/(2*d)) | label: eigenvalues −1 ± δ
plot: (1 + t)*exp(-t) | dashed | color: ch2 | label: (1 + t)e^(−t)
readout: slow eigenvalue = -1 + d | digits: 3
readout: fast eigenvalue = -1 - d | digits: 3
```

::: predict
## The matrix $\begin{bmatrix}3 & 1\\0 & 3\end{bmatrix}$ has the eigenvalue 3 twice. How many independent eigenvectors does it have?

- [ ] Two, since the eigenvalue is repeated twice
- [x] One
- [ ] None
- [ ] Infinitely many independent ones

::: reveal
One. $A - 3I = \begin{bmatrix}0 & 1\\0 & 0\end{bmatrix}$ has rank 1, so its null space is a line, spanned by $(1, 0)$. A repeated eigenvalue can come with a full set of eigenvectors ($3I$ has every vector as one), but here the 1 above the diagonal takes one away.
:::
:::

::: nameit
## Two multiplicities

An eigenvalue's **algebraic multiplicity** is how many times it's a root of $\det(A - \lambda I)$. Its **geometric multiplicity** is the dimension of the null space of $A - \lambda I$, the number of independent eigenvectors. The geometric one is never larger. When it's smaller for some eigenvalue, the matrix is **defective** and can't be diagonalized.

## The Jordan block

The simplest defective matrix is a **Jordan block**:

$$J = \begin{bmatrix}\lambda & 1\\0 & \lambda\end{bmatrix} = \lambda I + N, \qquad N = \begin{bmatrix}0 & 1\\0 & 0\end{bmatrix}, \quad N^2 = 0$$

Because $\lambda I$ and $N$ commute, the binomial theorem stops after two terms:

$$J^n = \begin{bmatrix}\lambda^n & n\lambda^{n-1}\\0 & \lambda^n\end{bmatrix}, \qquad e^{Jt} = e^{\lambda t}\begin{bmatrix}1 & t\\0 & 1\end{bmatrix}$$

The factors $n$ and $t$ are the signature of a defective matrix. Every square matrix is similar to a block-diagonal matrix of Jordan blocks, its **Jordan form**, though computers avoid it because the slightest perturbation changes it.

## Generalized eigenvectors

When there's only one eigenvector $\mathbf{v}$ for a double eigenvalue, a second direction comes from solving $(A - \lambda I)\mathbf{w} = \mathbf{v}$. Then $\mathbf{u}(t) = e^{\lambda t}(\mathbf{w} + t\mathbf{v})$ solves $\mathbf{u}' = A\mathbf{u}$, alongside $e^{\lambda t}\mathbf{v}$.

## Critical damping

A series RLC circuit's matrix has eigenvalues $-\frac{R}{2L} \pm \sqrt{\frac{R^2}{4L^2} - \frac{1}{LC}}$. At $R = 2\sqrt{L/C}$ they merge into $-\frac{R}{2L}$, and the matrix is defective. The response is $(c_1 + c_2t)e^{-t/\tau}$ with $\tau = \frac{2L}{R}$.
:::

::: example
## Find $A^5$ for $A = \begin{bmatrix}3 & 1\\0 & 3\end{bmatrix}$.

::: solution
1. **Use the Jordan form.** $A$ is a Jordan block with $\lambda = 3$, so
   $$\begin{aligned} A^5 &= \begin{bmatrix}3^5 & 5 \cdot 3^4\\0 & 3^5\end{bmatrix} \\ &= \begin{bmatrix}243 & 405\\0 & 243\end{bmatrix} \end{aligned}$$
2. **Check the corner.** Multiplying it out confirms it: $A^2$ has 6 there, $A^3$ has 27, and each step multiplies by 3 and adds $3^{n-1}$.
3. **How the corner grows.** It grows like $n3^{n-1}$, faster than the diagonal.

**Answer:** $A^5 = \begin{bmatrix}243 & 405\\0 & 243\end{bmatrix}$.
:::
:::

::: example
## A series RLC circuit has $L$ = 1 mH and $C$ = 1 µF. What resistance makes it critically damped, and what is its time constant?

::: solution
1. **Critical resistance.**
   $$\begin{aligned} R &= 2\sqrt{L/C} \\ &= 2\sqrt{10^{-3}/10^{-6}} \\ &= 2\sqrt{1000} \\ &= 63.2\ \Omega \end{aligned}$$
2. **Double eigenvalue.**
   $$\begin{aligned} -\frac{R}{2L} &= -\frac{63.2}{0.002} \\ &= -31\,600 \end{aligned}$$
   per second.
3. **Time constant.** So $\tau = 31.6$ µs, the same as $\sqrt{LC}$.
4. **Free response.** It has the form
   $$(c_1 + c_2t)e^{-t/31.6\,\mu\text{s}}$$
   no ringing, and faster settling than any larger resistance gives.

**Answer:** $R$ = 63.2 Ω makes it critically damped, with a time constant of 31.6 µs.
:::
:::

::: example
## Solve $\mathbf{u}' = \begin{bmatrix}-2 & 1\\0 & -2\end{bmatrix}\mathbf{u}$ with $\mathbf{u}(0) = (0, 1)$. When is $u_1$ largest?

::: solution
1. **Solve the second equation.** $u_2' = -2u_2$, so $u_2 = e^{-2t}$.
2. **Solve the first.** It's
   $$u_1' = -2u_1 + e^{-2t}$$
   driven at its own natural rate, which gives $u_1 = te^{-2t}$.
3. **Check with $e^{Jt}$.** That matches
   $$e^{Jt} = e^{-2t}\begin{bmatrix}1 & t\\0 & 1\end{bmatrix}$$
   applied to $(0, 1)$.
4. **Find the peak.** $u_1$ rises from 0 and peaks where
   $$\begin{aligned} \frac{d}{dt}te^{-2t} &= (1 - 2t)e^{-2t} \\ &= 0 \end{aligned}$$
   at $t = 0.5$.
5. **Peak value.**
   $$\begin{aligned} u_1 &= 0.5e^{-1} \\ &= 0.184 \end{aligned}$$
   after which it decays.

**Answer:** $u_1 = te^{-2t}$ and $u_2 = e^{-2t}$; $u_1$ is largest at $t = 0.5$, where it's 0.184.
:::
:::

::: check
given: l = 2 | 3 | 0.5; n = 4 | 6
answer: n*l^(n - 1)
tolerance: 0.5%

## What is the top-right entry of $\begin{bmatrix}\given{l} & 1\\0 & \given{l}\end{bmatrix}^{\given{n}}$?

::: right
Right. $n\lambda^{n-1}$ = {answer}.
:::

::: misses
- [l^n] That's the diagonal entry.
- [n*l^n] The power on $\lambda$ is $n - 1$.
- [any] Not yet. $J^n = \begin{bmatrix}\lambda^n & n\lambda^{n-1}\\0 & \lambda^n\end{bmatrix}$.
:::
:::

::: check
given: L = 1 | 10; C = 0.1 | 1
answer: 2*sqrt(L*1e-3/(C*1e-6))
unit: Ω
tolerance: 0.5%

## A series RLC circuit has $L$ = {L} mH and $C$ = {C} µF. What resistance makes it critically damped?

::: right
Right. $R = 2\sqrt{L/C}$ = {answer}.
:::

::: misses
- [sqrt(L*1e-3/(C*1e-6))] Twice that: the characteristic impedance $\sqrt{L/C}$ is half the critical resistance.
- [any] Not yet. The eigenvalues merge when $\frac{R^2}{4L^2} = \frac{1}{LC}$.
:::
:::

::: check
given: a = 2 | 5 | 10
answer: 1/a
unit: s
tolerance: 0.5%

## When does $te^{-\given{a}t}$ reach its peak?

::: right
Right. $t = 1/a$ = {answer}.
:::

::: misses
- [exp(-1)/a] That's the peak value, not when it happens.
- [any] Not yet. Set the derivative $(1 - at)e^{-at}$ to zero.
:::
:::

::: check
given: k = 2 | 3 | 4
answer: k
tolerance: 0.5%

## $A = \begin{bmatrix}\given{k} & 1 & 0\\0 & \given{k} & 1\\0 & 0 & \given{k}\end{bmatrix}$ has one eigenvalue. What is it?

::: right
Right. {k}, three times over, with only one eigenvector, $(1, 0, 0)$.
:::

::: misses
- [3*k] The eigenvalues of a triangular matrix are its diagonal entries; their sum is $3k$.
- [any] Not yet. It's triangular.
:::
:::

::: check
kind: choice

## Which of these matrices can be diagonalized?

- [ ] $\begin{bmatrix}5 & 1\\0 & 5\end{bmatrix}$
- [x] $\begin{bmatrix}5 & 0\\0 & 5\end{bmatrix}$
- [ ] $\begin{bmatrix}0 & 1\\0 & 0\end{bmatrix}$
- [ ] $\begin{bmatrix}2 & -1\\1 & 0\end{bmatrix}$

::: right
Right. $5I$ already is diagonal: every vector is an eigenvector. The other three each have a double eigenvalue with only one eigenvector.
:::

::: misses
- [1] Only one eigenvector, $(1, 0)$: it's defective.
- [3] The eigenvalue 0 appears twice, with only one eigenvector.
- [4] Its characteristic polynomial is $(\lambda - 1)^2$, and $A - I$ has rank 1, so there's only one eigenvector.
:::
:::

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

## Use $e^{Jt} = e^{\lambda t}\begin{bmatrix}1 & t\\0 & 1\end{bmatrix}$ with $\lambda$ = {l}.

::: part
answer: exp(l*t)
tolerance: 0.5%

### What is its top-left entry at $t$ = {t}?

::: misses
- [any] $e^{\lambda t}$.
:::
:::

::: part
answer: t*exp(l*t)
tolerance: 0.5%

### What is its top-right entry?

::: misses
- [exp(l*t)] Don't forget the factor $t$.
- [any] $te^{\lambda t}$.
:::
:::
:::

::: check
kind: derivation
vars: l = -3..-0.5, t = 0..3

## Find a second solution of $\mathbf{u}' = J\mathbf{u}$ for $J = \begin{bmatrix}\lambda & 1\\0 & \lambda\end{bmatrix}$, given the eigenvector $\mathbf{v} = (1, 0)$.

::: step
answer: 1

### Solve $(J - \lambda I)\mathbf{w} = \mathbf{v}$ with $w_1 = 0$. What is $w_2$?
:::

::: step
answer: t*exp(l*t)

### The solution is $e^{\lambda t}(\mathbf{w} + t\mathbf{v})$. What is its first entry?
:::

::: step
answer: exp(l*t)

### What is its second entry?
:::

::: right
Right. $e^{\lambda t}(t, 1)$: the generalized eigenvector $\mathbf{w}$ brings the factor $t$.
:::
:::

::: explain
## Why does a critically damped circuit's response contain $te^{-t/\tau}$ when other circuits' responses are sums of plain exponentials?

::: model
A circuit's free response is built from its matrix's eigenvectors, each decaying at its own eigenvalue. An overdamped circuit has two real eigenvalues with two eigenvectors, so its response is $c_1e^{\lambda_1t} + c_2e^{\lambda_2t}$. At critical damping the eigenvalues merge and so do the eigenvectors: the matrix keeps only one, which can't match every starting state. The missing direction comes from a generalized eigenvector, and its solution carries a factor of $t$. You can also see it as a limit: $\frac{e^{\lambda_1t} - e^{\lambda_2t}}{\lambda_1 - \lambda_2}$ is a valid combination for distinct eigenvalues, and as they merge it becomes the derivative with respect to $\lambda$, which is $te^{\lambda t}$.
:::
:::

::: practice

::: check
given: l = 0.5..3; n = 2..10 int
answer: n*l^(n - 1)
tolerance: 0.5%

## Top-right entry of $\begin{bmatrix}\given{l} & 1\\0 & \given{l}\end{bmatrix}^{\given{n}}$?

::: misses
- [any] $n\lambda^{n-1}$.
:::
:::

::: check
given: L = 0.1..100; C = 0.01..100
answer: 2*sqrt(L*1e-3/(C*1e-6))
unit: Ω
tolerance: 0.5%

## Critical resistance, in ohms, for {L} mH and {C} µF?

::: misses
- [any] $2\sqrt{L/C}$.
:::
:::
:::
