Lite / Independent Engineering Research / Week 4
Stability of x[k+1] = A·x[k]
A digital controller updates its state 1000 times a second. One number decides whether that state settles or explodes. Which one?
Why should I care?
Sampled controllers, population models, Markov chains and every explicit numerical integrator are iterations x[k+1] = A·x[k]. Eigenvalues tell you, before running anything, whether the iteration settles, oscillates or blows up.
- Show that x[k] = c₁λ₁ᵏv₁ + c₂λ₂ᵏv₂ for a diagonalisable 2×2 A.
- Decide stability of x[k+1] = A·x[k] from the spectral radius max|λᵢ|.
- Interpret eigenvalues as modes of vibration and of decay.
Predict
A has eigenvalues 0.9 and −1.05. Starting from a generic x[0], what does x[k] do?
- Decays to zero
- Grows, flipping sign each step
- Stays the same size
Guess first, then reveal
The −1.05 mode is multiplied by −1.05 every step: it grows by 5% per step and alternates sign. One unstable mode is enough; the stable 0.9 mode cannot save it.
Discover
Choose the 'stable' and 'unstable' matrices. Step through and watch the unnormalised size ‖Aᵏx₀‖ in the table. Compare with the eigenvalues reported in the readout.
What the interactive shows (text version)
The power-iteration diagram plots the normalised iterate on the unit circle and lists, in a table, the eigenvalue estimate and the unnormalised size of A to the power k times x0. The readout states whether the size shrinks (stable) or grows (unstable) and gives the true eigenvalues.
Watch (optional)
Watch for: Watch for the trace and determinant checks, and for the matrices whose eigenvalues are complex.
A university lecture on det(A − λI) = 0, trace and determinant checks, and matrices whose eigenvalues are complex.
“21. Eigenvalues and Eigenvectors” by MIT OpenCourseWare (opens YouTube; streaming video uses a lot of data)
The video is optional. Everything you need is in this lesson's text.
Understand
Modes
Each eigenpair (λ, v) is a mode: start along v and you stay along v, scaled by λ each step. A general start is a mix of modes, and over time the mode with the largest |λ| dominates. That dominance is what power iteration (week 5) exploits.
Continuous versus discrete
For x′ = Ax (continuous time) the test is Re(λ) < 0. For x[k+1] = Ax[k] (discrete) it is |λ| < 1. They are linked: sampling x′ = Ax every h seconds gives a discrete matrix with eigenvalues e^{λh}, and |e^{λh}| < 1 exactly when Re(λ) < 0. Explicit Euler instead gives 1 + hλ, which is why it can go unstable (week 7).
Vibration meaning
Complex eigenvalues of an iteration or ODE mean oscillation. Their imaginary part sets frequency, and their real part (or modulus) sets decay. Lightly damped modes, with eigenvalues close to the stability boundary, ring for a long time and are the ones engineers watch.
Explain it another way
Intuitive
Each mode is a ball rolling in its own groove. If any groove tilts outwards (|λ| > 1), that ball rolls away, and the whole system with it.
Technical
x[k+1] = Ax[k] is asymptotically stable iff ρ(A) < 1. For defective A, terms like kλᵏ appear, but they still decay when |λ| < 1.
Mathematical
For a 2×2 real A, the Jury conditions give stability iff |det A| < 1 and |tr A| < 1 + det A.
Applied
A discrete PID loop can be stable at one sample rate and unstable at another, because the closed-loop matrix's eigenvalues move with the sample time.
Derivation: Why the spectral radius decides
Suppose A has independent eigenvectors v₁, v₂. Write x[0] = c₁v₁ + c₂v₂.
Then x[1] = A x[0] = c₁λ₁v₁ + c₂λ₂v₂, and by induction x[k] = c₁λ₁ᵏv₁ + c₂λ₂ᵏv₂.
If every |λᵢ| < 1, every term goes to zero: the iteration is asymptotically stable.
If some |λᵢ| > 1 and its cᵢ ≠ 0, that term grows without bound: unstable.
So stability depends on the spectral radius ρ(A) = max |λᵢ| < 1. Complex λ = re^{iφ} give rotation by φ per step with size rᵏ.
Worked example 1
Is x[k+1] = [[0.5, 0.4], [0.1, 0.6]]·x[k] stable?
tr = 1.1, det = 0.30 − 0.04 = 0.26. λ = (1.1 ± √(1.21 − 1.04))/2 = (1.1 ± 0.412)/2 ≈ 0.756 and 0.344. Both have |λ| < 1: stable. Jury check: |0.26| < 1 and 1.1 < 1.26 ✓.
Common mix-ups
For any linear system, |λ| < 1 means stable.
✓ That is the discrete-time test. For x′ = Ax, use Re(λ) < 0.If most eigenvalues are stable, the system is stable.
✓ One unstable mode makes the whole system unstable (unless it is never excited, which noise will eventually do).
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
Apply it
Take x′ = [[0, 1], [−4, −0.4]]x (a lightly damped oscillator) and Euler-discretise it: A_h = I + hA. Find the largest h for which ρ(A_h) < 1, and check it in the Code Lab.
Reflect
Which matters more for a robot that must settle quickly: the largest |λ|, or all of them?
Write your answer on paper or in your own notes. Lite never stores what you write.