TExcelTAD
Home › Differential Equations › Complex Eigenvalues

Complex Eigenvalues

A real matrix can have complex eigenvalues, and then the eigenvalue method produces complex solutions. As with complex characteristic roots, the real and imaginary parts of one complex solution give two real solutions, and the trajectories rotate: spirals and centers.

From one complex solution to two real ones

If AA is real and λ=a+ib\lambda = a + ib (b≠0b \ne 0) has eigenvector v=v1+iv2\mathbf{v} = \mathbf{v}_1 + i\mathbf{v}_2, then

eλtv=eat(cos⁡bt+isin⁡bt)(v1+iv2)e^{\lambda t}\mathbf{v} = e^{at}(\cos bt + i\sin bt)(\mathbf{v}_1 + i\mathbf{v}_2)

has real part and imaginary part

x1=eat(v1cos⁡bt−v2sin⁡bt),x2=eat(v1sin⁡bt+v2cos⁡bt),\mathbf{x}_1 = e^{at}\left(\mathbf{v}_1\cos bt - \mathbf{v}_2\sin bt\right), \qquad \mathbf{x}_2 = e^{at}\left(\mathbf{v}_1\sin bt + \mathbf{v}_2\cos bt\right),

and both are real solutions. The conjugate eigenvalue a−iba - ib gives nothing new. The general solution of a 2×22 \times 2 system is c1x1+c2x2c_1\mathbf{x}_1 + c_2\mathbf{x}_2.

Example

A=[−12−2−1]A = \begin{bmatrix} -1 & 2 \\ -2 & -1 \end{bmatrix} has det⁡(A−λI)=(λ+1)2+4\det(A - \lambda I) = (\lambda + 1)^2 + 4, so λ=−1±2i\lambda = -1 \pm 2i. For λ=−1+2i\lambda = -1 + 2i: [−2i2−2−2i]v=0\begin{bmatrix} -2i & 2 \\ -2 & -2i \end{bmatrix}\mathbf{v} = \mathbf{0} gives v=(1,i)=(1,0)+i(0,1)\mathbf{v} = (1, i) = (1, 0) + i(0, 1). Therefore

x=c1e−t[cos⁡2t−sin⁡2t]+c2e−t[sin⁡2tcos⁡2t].\mathbf{x} = c_1e^{-t}\begin{bmatrix} \cos 2t \\ -\sin 2t \end{bmatrix} + c_2e^{-t}\begin{bmatrix} \sin 2t \\ \cos 2t \end{bmatrix}.

The real part −1-1 shrinks the trajectories, the imaginary part 22 rotates them: a spiral sink, turning clockwise.

python · try it yourself
import numpy as np

A = np.array([[-1.0, 2.0], [-2.0, -1.0]])
lam, V = np.linalg.eig(A)
print("eigenvalues:", lam)
v = V[:, 0] / V[0, 0]                         # scale so the first entry is 1
print("eigenvector for", lam[0], ":", v)
t = 0.7
x1 = np.real(np.exp(lam[0] * t) * v)
print("Re part at t = 0.7:", np.round(x1, 6), " formula:", np.round(np.exp(-t) * np.array([np.cos(2*t), -np.sin(2*t)]), 6))
eigenvalues: [-1.+2.j -1.-2.j]
eigenvector for (-1+2.0000000000000004j) : [ 1.-0.j -0.+1.j]
Re part at t = 0.7: [ 0.084403 -0.48936 ]  formula: [ 0.084403 -0.48936 ]

Direction of rotation

To see which way a spiral or center turns, evaluate the vector field at a convenient point, such as (1,0)(1, 0): here A(1,0)T=(−1,−2)A(1, 0)^T = (-1, -2), pointing down, so the motion is clockwise. No eigenvector computation is needed.

Example: a center

x′=[01−40]x\mathbf{x}' = \begin{bmatrix} 0 & 1 \\ -4 & 0 \end{bmatrix}\mathbf{x} (the spring x′′+4x=0x'' + 4x = 0) has λ=±2i\lambda = \pm 2i. Trajectories are ellipses 4x2+y2=const4x^2 + y^2 = \text{const}, the energy levels of the spring. Every solution is periodic with period π\pi.

python · try it yourself
import numpy as np
from scipy.integrate import solve_ivp

A = np.array([[0.0, 1.0], [-4.0, 0.0]])
sol = solve_ivp(lambda t, x: A @ x, (0, np.pi), [1.0, 0.0], t_eval=np.linspace(0, np.pi, 5), rtol=1e-11, atol=1e-12)
for t, (x, y) in zip(sol.t, sol.y.T):
    print(f"t = {t:.4f}: ({x: .5f}, {y: .5f})  4x^2 + y^2 = {4*x*x + y*y:.6f}")
t = 0.0000: ( 1.00000,  0.00000)  4x^2 + y^2 = 4.000000
t = 0.7854: (-0.00000, -2.00000)  4x^2 + y^2 = 4.000000
t = 1.5708: (-1.00000,  0.00000)  4x^2 + y^2 = 4.000000
t = 2.3562: ( 0.00000,  2.00000)  4x^2 + y^2 = 4.000000
t = 3.1416: ( 1.00000, -0.00000)  4x^2 + y^2 = 4.000000

After one period π\pi the solution returns to (1,0)(1, 0).

In software

  • Rotation with damping, λ=a±ib\lambda = a \pm ib, is the continuous-time picture behind many oscillating systems in simulation: orbiting cameras with easing, damped wobble effects, and the oscillating modes of a bridge model.
  • In numerical linear algebra, real Schur forms keep complex eigenvalue pairs as real 2×22 \times 2 blocks for exactly this reason: two real solutions instead of one complex one.

Exercises

Exercise 1: Classify

Find the eigenvalues of [1−51−1]\begin{bmatrix} 1 & -5 \\ 1 & -1 \end{bmatrix} and classify the origin.

Answer

λ=±2i\lambda = \pm 2i: a center.

Solution

T=0T = 0, D=−1+5=4D = -1 + 5 = 4, so λ2+4=0\lambda^2 + 4 = 0.

Exercise 2: Real solutions

For A=[2−332]A = \begin{bmatrix} 2 & -3 \\ 3 & 2 \end{bmatrix}, write the general real solution.

Answer

x=c1e2t(cos⁡3t,sin⁡3t)+c2e2t(−sin⁡3t,cos⁡3t)\mathbf{x} = c_1e^{2t}(\cos 3t, \sin 3t) + c_2e^{2t}(-\sin 3t, \cos 3t).

Solution

λ=2±3i\lambda = 2 \pm 3i. For 2+3i2 + 3i: [−3i−33−3i]v=0\begin{bmatrix} -3i & -3 \\ 3 & -3i \end{bmatrix}\mathbf{v} = \mathbf{0} gives v=(1,−i)=(1,0)+i(0,−1)\mathbf{v} = (1, -i) = (1, 0) + i(0, -1). Real part: e2t((1,0)cos⁡3t−(0,−1)sin⁡3t)=e2t(cos⁡3t,sin⁡3t)e^{2t}\big((1, 0)\cos 3t - (0, -1)\sin 3t\big) = e^{2t}(\cos 3t, \sin 3t); imaginary part: e2t(sin⁡3t,−cos⁡3t)e^{2t}(\sin 3t, -\cos 3t), which is minus the second vector above. A spiral source turning counterclockwise.

Exercise 3: Decay per turn (code)

For the spiral sink of the lesson (λ=−1±2i\lambda = -1 \pm 2i), by what factor does the distance to the origin shrink in one full turn?

Answer

e−π≈0.0432e^{-\pi} \approx 0.0432.

Solution

One turn takes 2π/b=π2\pi/b = \pi, and the length is multiplied by eat=e−πe^{at} = e^{-\pi} (here AA is a scaled rotation, so the norm is exactly e−te^{-t} times the initial norm).

python · try it yourself
import numpy as np
from scipy.integrate import solve_ivp
A = np.array([[-1.0, 2.0], [-2.0, -1.0]])
sol = solve_ivp(lambda t, x: A @ x, (0, np.pi), [1.0, 0.0], rtol=1e-12, atol=1e-14)
print(round(np.linalg.norm(sol.y[:, -1]), 6), round(np.exp(-np.pi), 6))
0.043214 0.043214

Test yourself

Eigenvalues −0.5±4i-0.5 \pm 4i make the origin a…

  1. center
  2. spiral sink
  3. spiral source
  4. saddle

How do you get two real solutions from the complex solution eλtve^{\lambda t}\mathbf{v}?

  1. Take its modulus and argument
  2. Take its real part and its imaginary part
  3. Multiply by ii
  4. Use the conjugate eigenvalue

For x′=Ax\mathbf{x}' = A\mathbf{x} with A(1,0)T=(0,3)A(1, 0)^T = (0, 3), the rotation is…

  1. clockwise
  2. counterclockwise
  3. impossible to tell
  4. absent