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 does for large . Multiplying by itself a thousand times would answer it slowly. Diagonalizing answers it at once, through its eigenvalues.
- A two-state link: each step, a good link goes bad with probability , and a bad link recovers with probability . The staircase is the probability of being good after steps, starting good.
- It settles at . The gap shrinks by the factor each step: that's the second eigenvalue of the transition matrix.
- Make close to 1. Make it small. Make it bigger than 1. How does the approach change?
Predict
has eigenvalues 2 and 0.5. After many steps, what does look like?
It grows like and lines up with the eigenvector for 2. Write as a combination of eigenvectors; each step multiplies each piece by its own eigenvalue. The piece with eigenvalue 0.5 dies away, and the piece with eigenvalue 2 doubles every step, so it soon dominates.
Name it
Diagonalization
If an matrix has independent eigenvectors, put them in the columns of and the eigenvalues on the diagonal of . Then , so
and is easy: raise each eigenvalue to the th power. Distinct eigenvalues guarantee independent eigenvectors. A matrix like , with a repeated eigenvalue and only one eigenvector direction, can't be diagonalized.
Difference equations
For , write in eigenvectors. Then
- All : . A digital filter whose state matrix has this property is stable.
- Some : 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 lists the probabilities of moving from state 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,
Worked example
Diagonalize and find .
Show the solution
- Eigenvalues. The trace is 7 and the determinant 10, so giving and .
- Eigenvectors. for 5 and for 2.
- Split the start.
- Apply . Each piece is multiplied by its eigenvalue cubed:
- Check by multiplying directly.
Answer has eigenvalues 5 and 2 with eigenvectors and , and .
Worked example
Estimate the 20th Fibonacci number from eigenvalues.
Show the solution
- Write the recurrence as a matrix. is
- Eigenvalues.
- Keep the large one. The second dies away, leaving
- Evaluate at . and .
Answer the estimate gives 6765.00, and .
Worked example
Each second a channel stays good with probability 0.9 and recovers from bad with probability 0.2: . What fraction of the time is it good, in the long run?
Show the solution
- Steady state. The columns sum to 1, so 1 is an eigenvalue. Its eigenvector solves so it's proportional to ; scaled to sum to 1, it's .
- Read it. The channel is good two thirds of the time.
- 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.
- After 10 seconds. The difference is down to 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 ?
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 ( = 0.1, = 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 to find the Fibonacci number (with ).
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 ?
Check
is already diagonal.
Step 1
What is the first entry of ?
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°.
Step 2
And the second?
Explain why
Why does the largest eigenvalue (in size) decide the long-run behavior of ?
Write the starting vector as a combination of eigenvectors. Each step multiplies each eigenvector's piece by its own eigenvalue, so after steps the pieces are scaled by . Powers of numbers of different sizes separate quickly: the piece with the largest outgrows all the others, so the state ends up pointing along that eigenvector and growing or shrinking by that factor each step. The second largest sets how fast the other pieces fade relative to it.
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.