TExcelTAD
Home › Linear Algebra & Matrix Theory › Complex Eigenvalues and Eigenvectors

Complex Eigenvalues and Eigenvectors

A rotation of the plane turns every line through the origin, so it has no real eigenvectors. Its eigenvalues still exist, as complex numbers, and they carry the rotation angle and the scaling factor. Any real 2×22 \times 2 matrix with complex eigenvalues is a rotation combined with a scaling, seen in a tilted coordinate system, and that explains the spirals and oscillations such matrices produce.

Real matrices, complex roots

The characteristic polynomial of a real matrix has real coefficients, but its roots may be complex. For a 2×22 \times 2 matrix that happens when the discriminant tr⁡2−4⋅det⁡\operatorname{tr}^2 - 4 \cdot \det is negative. Example: A=[1−213]A = \begin{bmatrix} 1 & -2 \\ 1 & 3 \end{bmatrix}:

tr⁡=4,det⁡=3+2=5λ2−4λ+5=0λ=4±16−202=2±i\operatorname{tr} = 4, \quad \det = 3 + 2 = 5 \qquad \lambda^2 - 4\lambda + 5 = 0 \qquad \lambda = \frac{4 \pm \sqrt{16 - 20}}{2} = 2 \pm i

Complex eigenvalues of a real matrix come in conjugate pairs λ,λˉ\lambda, \bar{\lambda}, and so do their eigenvectors: if Av=λvA\mathbf{v} = \lambda\mathbf{v}, conjugating everything (AA is real) gives Avˉ=λˉvˉA\bar{\mathbf{v}} = \bar{\lambda}\bar{\mathbf{v}}. Finding the eigenvector works as before, with complex arithmetic. For λ=2+i\lambda = 2 + i, the second row of A−λI=[−1−i−211−i]A - \lambda I = \begin{bmatrix} -1 - i & -2 \\ 1 & 1 - i \end{bmatrix} gives x+(1−i)y=0x + (1 - i)y = 0, so v=(−1+i,1)\mathbf{v} = (-1 + i, 1). (The complex numbers themselves are reviewed in The Complex Numbers.)

The rotation matrix

The rotation by angle θ\theta is R(θ)=[cos⁡θ−sin⁡θsin⁡θcos⁡θ]R(\theta) = \begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}. Its trace is 2cos⁡θ2\cos\theta and its determinant cos⁡2θ+sin⁡2θ=1\cos^2\theta + \sin^2\theta = 1:

λ2−2cos⁡θ⋅λ+1=0→λ=cos⁡θ±isin⁡θ=e±iθeigenvectors:(1,−i) for eiθ,(1,i) for e−iθ\begin{aligned} &\lambda^2 - 2\cos\theta \cdot \lambda + 1 = 0 \quad \to \quad \lambda = \cos\theta \pm i\sin\theta = e^{\pm i\theta} \\ &\text{eigenvectors:} \quad (1, -i) \text{ for } e^{i\theta}, \qquad (1, i) \text{ for } e^{-i\theta} \end{aligned}

So the eigenvalues of a rotation lie on the unit circle (∣λ∣=1\lvert \lambda \rvert = 1, nothing is stretched), and their angle is the rotation angle. Multiplying a complex number by eiθe^{i\theta} rotates it by θ\theta in the complex plane (Geometric Interpretation of Complex Numbers), which is the same thing the matrix does to the plane.

python · try it yourself
import numpy as np

theta = np.radians(30)
R = np.array([[np.cos(theta), -np.sin(theta)], [np.sin(theta), np.cos(theta)]])
values, vectors = np.linalg.eig(R)
for lam in values:
    print(f"lambda = {lam.real:.4f} {lam.imag:+.4f}i   |lambda| = {abs(lam):.4f}"
          f"   angle = {np.degrees(np.angle(lam)):.1f} deg")
v = np.array([1, -1j])
print("R (1, -i) == e^(i theta) (1, -i):", np.allclose(R @ v, np.exp(1j * theta) * v))
lambda = 0.8660 +0.5000i   |lambda| = 1.0000   angle = 30.0 deg
lambda = 0.8660 -0.5000i   |lambda| = 1.0000   angle = -30.0 deg
R (1, -i) == e^(i theta) (1, -i): True

Every such matrix is a rotation-scaling in disguise

A rotation-scaling matrix has the form

C=[a−bba]=r⋅R(θ),r=a2+b2,θ=atan2⁡(b,a),eigenvalues a±biC = \begin{bmatrix} a & -b \\ b & a \end{bmatrix} = r \cdot R(\theta), \qquad r = \sqrt{a^2 + b^2}, \quad \theta = \operatorname{atan2}(b, a), \quad \text{eigenvalues } a \pm bi

It rotates by θ\theta and scales by r=∣λ∣r = \lvert \lambda \rvert. The general fact: if a real 2×22 \times 2 matrix AA has eigenvalue λ=a−bi\lambda = a - bi (b≠0b \ne 0) with eigenvector v\mathbf{v}, put the real and imaginary parts of v\mathbf{v} in the columns of PP:

P=[Re⁡vIm⁡v]thenA=PCP−1,C=[a−bba]P = \begin{bmatrix} \operatorname{Re}\mathbf{v} & \operatorname{Im}\mathbf{v} \end{bmatrix} \qquad \text{then} \qquad A = PCP^{-1}, \quad C = \begin{bmatrix} a & -b \\ b & a \end{bmatrix}

For A=[1−213]A = \begin{bmatrix} 1 & -2 \\ 1 & 3 \end{bmatrix}: λ=2−i\lambda = 2 - i has eigenvector v=(−1−i,1)\mathbf{v} = (-1 - i, 1), so Re⁡v=(−1,1)\operatorname{Re}\mathbf{v} = (-1, 1), Im⁡v=(−1,0)\operatorname{Im}\mathbf{v} = (-1, 0) and C=[2−112]C = \begin{bmatrix} 2 & -1 \\ 1 & 2 \end{bmatrix}: a rotation by atan2⁡(1,2)≈26.57∘\operatorname{atan2}(1, 2) \approx 26.57^\circ and a scaling by 5≈2.236\sqrt{5} \approx 2.236, in the skewed coordinates given by PP.

python · try it yourself
from sympy import Matrix, I, re, im, atan2, deg, sqrt

A = Matrix([[1, -2], [1, 3]])
lam, v = 2 - I, Matrix([-1 - I, 1])
print("A v == lambda v:", (A * v - lam * v).expand() == Matrix([0, 0]))
P = Matrix.hstack(v.applyfunc(re), v.applyfunc(im))
print("P =", P.tolist())
print("P^-1 A P =", (P.inv() * A * P).tolist())
print("r =", sqrt(5), " theta =", deg(atan2(1, 2)).evalf(5), "degrees")
A v == lambda v: True
P = [[-1, -1], [1, 0]]
P^-1 A P = [[2, -1], [1, 2]]
r = sqrt(5)  theta = 26.565 degrees

Spirals

Because A=PCP−1A = PCP^{-1}, the iterates xk=Akx0=P⋅Ck⋅P−1x0\mathbf{x}_k = A^k\mathbf{x}_0 = P \cdot C^k \cdot P^{-1}\mathbf{x}_0 turn by θ\theta every step and scale by ∣λ∣k\lvert \lambda \rvert^k. In the plane they trace a spiral (an ellipse-shaped one, since PP skews it):

Size r=∣λ∣r = \lvert \lambda \rvert Iterates xk=Akx0\mathbf{x}_k = A^k\mathbf{x}_0 Continuous system x′=Ax\mathbf{x}' = A\mathbf{x} with λ=α±βi\lambda = \alpha \pm \beta i
r<1r < 1 spiral into the origin α<0\alpha < 0: damped oscillation
r=1r = 1 stay on a closed ellipse α=0\alpha = 0: undamped oscillation
r>1r > 1 spiral outward α>0\alpha > 0: growing oscillation

For differential equations the real part α\alpha decides decay or growth and the imaginary part β\beta is the angular frequency: x(t)\mathbf{x}(t) contains eαtcos⁡(βt)e^{\alpha t}\cos(\beta t) and eαtsin⁡(βt)e^{\alpha t}\sin(\beta t) (Systems of Linear Differential Equations).

python · try it yourself
import numpy as np
import matplotlib.pyplot as plt

A = np.array([[1.0, -2.0], [1.0, 3.0]]) / 2.4      # |lambda| = sqrt(5)/2.4 ~ 0.93
x = np.array([1.0, 0.0])
points = [x]
for _ in range(40):
    x = A @ x
    points.append(x)
pts = np.array(points)

plt.figure(figsize=(5, 5))
plt.plot(pts[:, 0], pts[:, 1], "o-", ms=3)
plt.gca().set_aspect("equal"); plt.grid(alpha=0.3); plt.title("Iterates of A spiral inward")
print("|lambda| =", round(float(abs(np.linalg.eigvals(A)[0])), 4))
print("|x_40| =", round(float(np.linalg.norm(pts[-1])), 4))
|lambda| = 0.9317
|x_40| = 0.076

In software

  • 2D rotation as complex multiplication: games and graphics code sometimes store a 2D rotation as one unit complex number (cos⁡θ,sin⁡θ)(\cos\theta, \sin\theta) instead of a matrix; composing rotations is complex multiplication. Quaternions extend this idea to 3D (Rotations: Matrices vs Quaternions).
  • Oscillation and stability: a recurrent neural network, a digital filter or a physics step matrix with complex eigenvalues oscillates; ∣λ∣>1\lvert \lambda \rvert > 1 means the oscillation explodes.
  • Fourier transform: the eigenvectors of every circulant matrix (cyclic convolution) are complex exponentials, which is why the FFT diagonalizes convolution (FFT).

Exercises

Exercise 1: Purely imaginary eigenvalues

Find the eigenvalues of [0−410]\begin{bmatrix} 0 & -4 \\ 1 & 0 \end{bmatrix}.

Answer

λ=±2i\lambda = \pm 2i.

Solution
tr⁡=0,det⁡=0−(−4)(1)=4→λ2+4=0→λ=±2i\operatorname{tr} = 0, \quad \det = 0 - (-4)(1) = 4 \quad \to \quad \lambda^2 + 4 = 0 \quad \to \quad \lambda = \pm 2i

∣λ∣=2\lvert \lambda \rvert = 2 and the angle is 90∘90^\circ; it is not a pure rotation-scaling matrix, but it is similar to 2⋅R(90∘)2 \cdot R(90^\circ).

Exercise 2: Read off rr and θ\theta

For C=[3−443]C = \begin{bmatrix} 3 & -4 \\ 4 & 3 \end{bmatrix}, give the eigenvalues, the scaling factor and the rotation angle.

Answer

λ=3±4i\lambda = 3 \pm 4i, r=5r = 5, θ=atan2⁡(4,3)≈53.13∘\theta = \operatorname{atan2}(4, 3) \approx 53.13^\circ.

Solution

CC has the form [a−bba]\begin{bmatrix} a & -b \\ b & a \end{bmatrix} with a=3a = 3, b=4b = 4, so λ=a±bi=3±4i\lambda = a \pm bi = 3 \pm 4i. r=9+16=5r = \sqrt{9 + 16} = 5, and C=5⋅R(53.13∘)C = 5 \cdot R(53.13^\circ).

Exercise 3: An eigenvector of a rotation

Check by hand that (1,−i)(1, -i) is an eigenvector of R(90∘)=[0−110]R(90^\circ) = \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}, with eigenvalue ii.

Answer

R(1,−i)=(i,1)=i⋅(1,−i)R(1, -i) = (i, 1) = i \cdot (1, -i).

Solution
R (1,−i)=(0⋅1+(−1)(−i), 1⋅1+0⋅(−i))=(i,1)i⋅(1,−i)=(i,−i2)=(i,1)✓\begin{aligned} R\,(1, -i) &= (0 \cdot 1 + (-1)(-i),\ 1 \cdot 1 + 0 \cdot (-i)) = (i, 1) \\ i \cdot (1, -i) &= (i, -i^2) = (i, 1) \quad \checkmark \end{aligned}

Exercise 4: Factor and use it

A=[3−51−1]A = \begin{bmatrix} 3 & -5 \\ 1 & -1 \end{bmatrix}. Find its eigenvalues, write A=PCP−1A = PCP^{-1} with CC a rotation-scaling matrix, and use it to find A8A^8.

Answer

λ=1±i\lambda = 1 \pm i; P=[2−110]P = \begin{bmatrix} 2 & -1 \\ 1 & 0 \end{bmatrix}, C=[1−111]=2⋅R(45∘)C = \begin{bmatrix} 1 & -1 \\ 1 & 1 \end{bmatrix} = \sqrt{2} \cdot R(45^\circ); A8=16IA^8 = 16I.

Solution
tr⁡=2,det⁡=−3+5=2→λ2−2λ+2=0→λ=1±iλ=1−i: second row of A−λI is (1,−2+i)→x=(2−i)y→v=(2−i,1)P=[Re⁡vIm⁡v]=[2−110],C=[1−111]C=2⋅R(45∘)→C8=(2)8⋅R(360∘)=16I→A8=P⋅16I⋅P−1=16I\begin{aligned} &\operatorname{tr} = 2, \quad \det = -3 + 5 = 2 \quad \to \quad \lambda^2 - 2\lambda + 2 = 0 \quad \to \quad \lambda = 1 \pm i \\ &\lambda = 1 - i: \ \text{second row of } A - \lambda I \text{ is } (1, -2 + i) \quad \to \quad x = (2 - i)y \quad \to \quad \mathbf{v} = (2 - i, 1) \\ &P = \begin{bmatrix} \operatorname{Re}\mathbf{v} & \operatorname{Im}\mathbf{v} \end{bmatrix} = \begin{bmatrix} 2 & -1 \\ 1 & 0 \end{bmatrix}, \quad C = \begin{bmatrix} 1 & -1 \\ 1 & 1 \end{bmatrix} \\ &C = \sqrt{2} \cdot R(45^\circ) \quad \to \quad C^8 = (\sqrt{2})^8 \cdot R(360^\circ) = 16I \quad \to \quad A^8 = P \cdot 16I \cdot P^{-1} = 16I \end{aligned}
python · try it yourself
from sympy import Matrix

A = Matrix([[3, -5], [1, -1]])
P = Matrix([[2, -1], [1, 0]])
print("P^-1 A P =", (P.inv() * A * P).tolist())
print("A^8 =", (A**8).tolist())
P^-1 A P = [[1, -1], [1, 1]]
A^8 = [[16, 0], [0, 16]]

Test yourself

What are the eigenvalues of the rotation matrix R(θ)R(\theta)?

  1. cos⁡θ\cos\theta and sin⁡θ\sin\theta
  2. eiθe^{i\theta} and e−iθe^{-i\theta}
  3. 1 and −1-1
  4. θ\theta and −θ-\theta

A real 3×33 \times 3 matrix has eigenvalues 2 and 1+3i1 + 3i. What is the third?

  1. 1−3i1 - 3i
  2. −1−3i-1 - 3i
  3. 3i3i
  4. 2

Iterates xk=Akx0\mathbf{x}_k = A^k\mathbf{x}_0 of a real 2×22 \times 2 matrix with eigenvalues 0.6±0.6i0.6 \pm 0.6i do what?

  1. Spiral outward
  2. Move along a straight line
  3. Spiral into the origin
  4. Stay on a circle