Repeated Eigenvalues
When an eigenvalue is repeated, the eigenvalue method may run out of eigenvectors. An system needs independent solutions; if a double eigenvalue has only one eigenvector, the missing solution involves , just as a repeated characteristic root did.
Two cases
Suppose has algebraic multiplicity 2.
- Complete eigenvalue (two independent eigenvectors , ): nothing changes, . For a matrix this only happens for , and every trajectory is a straight ray (a "star" node).
- Defective eigenvalue (one eigenvector ): find a generalized eigenvector with
Then a second solution is
Check: and . They agree.
Example
: . For , has rank 1: only one eigenvector, . Solve : , so works.
import sympy as sp
A = sp.Matrix([[3, 1], [-1, 1]])
print("eigenvects:", [(lam, m, [list(v) for v in vs]) for lam, m, vs in A.eigenvects()])
P, J = A.jordan_form()
print("Jordan form J =", J.tolist(), " P =", P.tolist())
t = sp.symbols("t")
v, w = sp.Matrix([1, -1]), sp.Matrix([1, 0])
x2 = sp.exp(2 * t) * (t * v + w)
print("x2 solves the system:", sp.simplify(x2.diff(t) - A * x2) == sp.zeros(2, 1))eigenvects: [(2, 2, [[-1, 1]])]
Jordan form J = [[2, 1], [0, 2]] P = [[1, 1], [-1, 0]]
x2 solves the system: True
The Jordan form is the "almost diagonal" matrix that replaces when is not diagonalizable. The columns of are an eigenvector and a generalized eigenvector.
The phase portrait: a degenerate node
With and one eigenvector, trajectories approach the origin tangent to the single eigenvector line, but they turn around it: the term eventually dominates . This improper (degenerate) node is the borderline between a node and a spiral, just as critical damping sits between overdamped and underdamped springs. In fact, the critically damped spring in system form has the matrix with double eigenvalue .
import numpy as np
from scipy.integrate import solve_ivp
A = np.array([[0.0, 1.0], [-1.0, -2.0]])
print("eigenvalues:", np.linalg.eigvals(A))
sol = solve_ivp(lambda t, x: A @ x, (0, 8), [1.0, 1.0], t_eval=[0, 1, 2, 4, 8], rtol=1e-11, atol=1e-14)
for t, x in zip(sol.t, sol.y.T):
print(f"t = {t}: direction {np.round(x / np.linalg.norm(x), 4)}")
print("eigenvector direction:", np.round(np.array([1, -1]) / np.sqrt(2), 4))eigenvalues: [-1. -1.]
t = 0: direction [0.7071 0.7071]
t = 1: direction [ 0.9487 -0.3162]
t = 2: direction [ 0.8575 -0.5145]
t = 4: direction [ 0.7894 -0.6139]
t = 8: direction [ 0.7498 -0.6616]
eigenvector direction: [ 0.7071 -0.7071]
Higher multiplicity
For larger defective eigenvalues, chains give solutions with , , and so on. In practice the matrix exponential handles every case at once.
In software
- Defective matrices are numerically delicate: a tiny perturbation splits a double eigenvalue into two close ones with nearly parallel eigenvectors, so
np.linalg.eigreturns an ill-conditioned . Robust codes avoid diagonalization and use Schur decompositions orscipy.linalg.expm(Eigenvalue Problems and Their Conditioning). - Critically damped controllers and filters are designed right at this boundary.
Exercises
Exercise 1: Complete or defective?
Is complete or defective for ? For ?
Answer
Complete for the first, defective for the second.
Solution
is the zero matrix in the first case (every vector is an eigenvector) and of rank 1 in the second (only multiples of ).
Exercise 2: Solve
Solve .
Answer
.
Solution
; means , so , and . Directly: gives , then gives .
Exercise 3: Generalized eigenvector (code)
Find an eigenvector and a generalized eigenvector of .
Answer
, , (or any with ).
Solution
. , so and .
import sympy as sp
A = sp.Matrix([[1, -1], [1, 3]])
P, J = A.jordan_form()
print(J.tolist(), P.tolist())[[2, 1], [0, 2]] [[-1, 1], [1, 0]]
SymPy's has an eigenvector as its first column and a generalized eigenvector as its second; they are scaled differently from ours, which is allowed.
Test yourself
A matrix with a double eigenvalue and only one eigenvector is called…
- symmetric
- defective
- orthogonal
- singular
The second solution for a defective eigenvalue has the form…
The system form of a critically damped spring has…
- two distinct negative eigenvalues
- a defective double eigenvalue
- complex eigenvalues
- a zero eigenvalue