Eigenvalues and Eigenvectors

An eigenvector of a matrix is a direction that the matrix merely stretches or shrinks without rotating; the eigenvalue is the stretch factor. These special directions govern the stability of disease models (via the Jacobian) and the axes of variation in PCA, making them one of the most useful tools in applied statistics.

Eigenvectors keep their direction under the matrix, scaled by the eigenvalues.

Definition

A nonzero vector vv is an eigenvector of a square matrix AA with eigenvalue λ\lambda if

Av=λv.A v = \lambda v.

Applying AA to vv points along the same line — orientation is unchanged (or flipped if λ<0\lambda < 0), and the length scales by λ\lambda.

Characteristic equation

Rearranging, (AλI)v=0(A - \lambda I)v = 0. A nonzero vv exists only when AλIA - \lambda I is singular, giving the characteristic equation:

det(AλI)=0.\det(A - \lambda I) = 0.

For a 2×22 \times 2 matrix this is a quadratic in λ\lambda, so there are (up to) two eigenvalues; they may be real or complex conjugates.

Worked example (by hand)

Let

A=[2112].A = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}.

Form AλIA - \lambda I and take its determinant:

det ⁣[2λ112λ]=(2λ)21=λ24λ+3=(λ1)(λ3)=0.\det\!\begin{bmatrix} 2 - \lambda & 1 \\ 1 & 2 - \lambda \end{bmatrix} = (2 - \lambda)^2 - 1 = \lambda^2 - 4\lambda + 3 = (\lambda - 1)(\lambda - 3) = 0.

So λ1=3\lambda_1 = 3 and λ2=1\lambda_2 = 1.

Eigenvector for λ1=3\lambda_1 = 3: solve (A3I)v=0(A - 3I)v = 0: [1111]v=0  v1=v2,v(1)=[11].\begin{bmatrix} -1 & 1 \\ 1 & -1 \end{bmatrix} v = 0 \ \Rightarrow\ v_1 = v_2, \quad v^{(1)} = \begin{bmatrix} 1 \\ 1 \end{bmatrix}.

Eigenvector for λ2=1\lambda_2 = 1: solve (AI)v=0(A - I)v = 0: [1111]v=0  v1=v2,v(2)=[11].\begin{bmatrix} 1 & 1 \\ 1 & 1 \end{bmatrix} v = 0 \ \Rightarrow\ v_1 = -v_2, \quad v^{(2)} = \begin{bmatrix} 1 \\ -1 \end{bmatrix}.

Check: A[11]=[33]=3[11]A \begin{bmatrix} 1 \\ 1 \end{bmatrix} = \begin{bmatrix} 3 \\ 3 \end{bmatrix} = 3\begin{bmatrix} 1 \\ 1 \end{bmatrix}. \checkmark

Stability of dynamical systems

For a system of ODEs, linearize near an equilibrium using the Jacobian matrix JJ evaluated at that point. The eigenvalues of JJ determine local stability:

In epidemiology, evaluating JJ at the disease-free equilibrium and checking the eigenvalues is equivalent to the threshold condition on the basic reproduction number: the disease-free state is stable when R0<1R_0 < 1 and unstable (an outbreak grows) when R0>1R_0 > 1. The dominant eigenvalue crossing zero corresponds to R0R_0 crossing 11.

PCA connection

In principal component analysis, the eigenvectors of the sample covariance matrix are the principal component directions, and each eigenvalue is the variance captured along that direction. The largest eigenvalue points along the axis of greatest spread in the data — the covariance matrix is symmetric, so its eigenvalues are real and its eigenvectors orthogonal.

Computing it

R

A <- matrix(c(2, 1, 1, 2), nrow = 2, byrow = TRUE)

e <- eigen(A)
e$values      # 3 1
$e$vectors     # columns are eigenvectors (normalized to unit length)
$```

### Python

```python
import numpy as np

A = np.array([[2.0, 1.0], [1.0, 2.0]])

vals, vecs = np.linalg.eig(A)
vals    # array([3., 1.])
vecs    # columns are unit eigenvectors
# For symmetric matrices, np.linalg.eigh is more accurate.

Julia

using LinearAlgebra

A = [2.0 1.0; 1.0 2.0]

eigvals(A)        # [1.0, 3.0]  (ascending order)
F = eigen(A)
F.values          # [1.0, 3.0]
F.vectors         # columns are unit eigenvectors

Why it matters for statistics

Eigen-decomposition underpins PCA, factor analysis, and the diagnosis of multicollinearity (a near-zero eigenvalue of XXX^\top X flags an ill-conditioned design). In dynamical epidemiological models, eigenvalues of the Jacobian give a precise, computable stability criterion that mirrors the R0R_0 threshold — turning intuition about outbreaks into linear algebra.