A734 of 56
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A7 · Lesson 34 · Diagonalization

What happens after many steps

A wireless link flips between a good state and a bad state, with fixed chances of switching each millisecond. In the long run, what fraction of the time is it bad, and how quickly does it forget where it started? A digital filter updates its internal state by the same matrix at every sample: will that state die away or blow up? Both questions ask what Ak does for large k. Multiplying A by itself a thousand times would answer it slowly. Diagonalizing A answers it at once, through its eigenvalues.

  • A two-state link: each step, a good link goes bad with probability a, and a bad link recovers with probability b. The staircase is the probability of being good after k steps, starting good.
  • It settles at ba+b. The gap shrinks by the factor 1−a−b each step: that's the second eigenvalue of the transition matrix.
  • Make a+b close to 1. Make it small. Make it bigger than 1. How does the approach change?

Predict

A has eigenvalues 2 and 0.5. After many steps, what does Ak𝐮0 look like?

Name it

Diagonalization

If an n×n matrix A has n independent eigenvectors, put them in the columns of X and the eigenvalues on the diagonal of Λ. Then AX=XΛ, so

A=XΛX−1Ak=XΛkX−1

and Λk is easy: raise each eigenvalue to the kth power. Distinct eigenvalues guarantee independent eigenvectors. A matrix like [1101], with a repeated eigenvalue and only one eigenvector direction, can't be diagonalized.

Difference equations

For 𝐮k+1=A𝐮k, write 𝐮0=c1𝐱1+⋯+cn𝐱n in eigenvectors. Then

𝐮k=c1λ1k𝐱1+⋯+cnλnk𝐱n
  • All |λi|<1: 𝐮k→𝟎. A digital filter whose state matrix has this property is stable.
  • Some |λ|>1: the state grows without limit.
  • The largest |λ| sets the long-run growth; the second largest sets how fast the others fade.

Markov matrices

A Markov matrix has nonnegative entries and columns adding to 1: column j lists the probabilities of moving from state j to each state. It always has the eigenvalue 1, whose eigenvector (scaled to add to 1) is the steady state. For the two-state link,

A=[1−aba1−b]λ=1,1−a−bsteady state (ba+b,aa+b)

Worked example

Diagonalize A=[4123] and find A3(1,0).

Show the solution
  1. Eigenvalues. The trace is 7 and the determinant 10, so λ2−7λ+10=0 giving λ=5 and 2.
  2. Eigenvectors. (1,1) for 5 and (1,−2) for 2.
  3. Split the start. (1,0)=23(1,1)+13(1,−2)
  4. Apply A3. Each piece is multiplied by its eigenvalue cubed: A3(1,0)=23⋅125(1,1)+13⋅8(1,−2)=(86,78)
  5. Check by multiplying directly. (1,0)→(4,2)→(18,14)→(86,78)

Answer A has eigenvalues 5 and 2 with eigenvectors (1,1) and (1,−2), and A3(1,0)=(86,78).

Worked example

Estimate the 20th Fibonacci number from eigenvalues.

Show the solution
  1. Write the recurrence as a matrix. Fk+2=Fk+1+Fk is 𝐮k+1=[1110]𝐮k
  2. Eigenvalues. φ=1+52=1.618λ2=1−52=−0.618
  3. Keep the large one. The second dies away, leaving Fk≈φk5
  4. Evaluate at k=20. 1.618034205=6765.00 and F20=6765.

Answer the estimate gives 6765.00, and F20=6765.

Worked example

Each second a channel stays good with probability 0.9 and recovers from bad with probability 0.2: M=[0.90.20.10.8]. What fraction of the time is it good, in the long run?

Show the solution
  1. Steady state. The columns sum to 1, so 1 is an eigenvalue. Its eigenvector solves 0.1x=0.2y so it's proportional to (2,1); scaled to sum to 1, it's (0.667,0.333).
  2. Read it. The channel is good two thirds of the time.
  3. The other eigenvalue. It's the trace minus 1, 0.7. Any starting split approaches the steady state with the difference shrinking by 0.7 each second.
  4. After 10 seconds. The difference is down to 0.710=2.8% of where it started.

Answer in the long run the channel is good two thirds of the time.

Check

What is the larger eigenvalue of [4123]?

Check

A link goes bad with probability 0.05 per step and recovers with probability 0.3. In the long run, what fraction of the time is it good?

Check

For that link (a = 0.1, b = 0.3), how many steps until the gap to the long-run share is below 1% of where it started?

Check

A system's largest eigenvalue is 1.1. About how many steps until its state has grown 1000-fold?

Check

Use Fn≈φn5 to find the Fibonacci number F20 (with F1=F2=1).

Check

Which matrix cannot be diagonalized?

Check

A two-state channel goes from good to bad with probability 0.2 each second and from bad to good with probability 0.05.

(a)

What fraction of the time is it good, in the long run?

(b)

What is the other eigenvalue of M?

Check

A=[2000.5] is already diagonal.

Step 1

What is the first entry of An(1,1)?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why does the largest eigenvalue (in size) decide the long-run behavior of 𝐮k+1=A𝐮k?

Practice

Keep practicing

9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.