← Visualization Hub
Eigenvalues & Eigenvectors

The Directions a Matrix Does Not Turn

Almost every vector gets both stretched and rotated by a matrix. But a special few come out pointing the same way they went in — only longer or shorter. Those are the eigenvectors, and their stretch factors are the eigenvalues. Find them and a complicated matrix becomes a list of independent one-dimensional stretches.

1The defining equation

\(A\mathbf x=\lambda\mathbf x\) — the output is a scalar multiple of the input.

An eigenvector of \(A\) is a nonzero vector \(\mathbf x\) whose direction survives the transformation. Applying \(A\) only rescales it by the eigenvalue \(\lambda\):

\[A\mathbf x=\lambda\mathbf x,\qquad \mathbf x\neq\mathbf 0\]

Geometrically: draw the line through \(\mathbf x\) and the origin. \(A\) maps that whole line onto itself — it is an invariant line. Points on it slide along it, scaled by \(\lambda\):

\(\lambda>1\)

Pushed outward along the line — this direction is amplified.

\(0<\lambda<1\)

Pulled toward the origin — this direction decays.

\(\lambda<0\)

Flipped through the origin, then scaled by \(|\lambda|\).

\(\lambda=0\)

Crushed to the origin — that eigenvector spans the null space, so \(A\) is singular.

Note \(\mathbf x\) is only defined up to scale: if \(\mathbf x\) is an eigenvector so is \(5\mathbf x\). What matters is the direction, not the length.

2Finding them — the characteristic equation

Turn \(A\mathbf x=\lambda\mathbf x\) into a singularity condition, then use the determinant.

Move everything to one side: \(A\mathbf x-\lambda\mathbf x=\mathbf 0\), i.e. \((A-\lambda I)\mathbf x=\mathbf 0\). We need a nonzero \(\mathbf x\) in the null space of \(A-\lambda I\) — so that matrix must be singular:

\[\det(A-\lambda I)=0\]

That is the characteristic equation. For a \(2\times2\) matrix it expands into a quadratic with two memorable coefficients:

\[\lambda^{2}-(\operatorname{tr}A)\,\lambda+\det A=0 \qquad\Longrightarrow\qquad \lambda_{1,2}=\frac{\operatorname{tr}A\pm\sqrt{(\operatorname{tr}A)^{2}-4\det A}}{2}\]

So without solving anything you already know the two invariants:

\[\lambda_1+\lambda_2=\operatorname{tr}A=a_{11}+a_{22},\qquad \lambda_1\lambda_2=\det A\]

These hold in every dimension: the eigenvalues sum to the trace and multiply to the determinant. It is the fastest sanity check you have — and it explains why \(\det A=0\) exactly when some \(\lambda=0\).

With \(\lambda\) in hand, the eigenvector is whatever survives in the null space:

\[\mathbf x_i \in N(A-\lambda_i I)\]

— which is the same null-space computation from the four-subspaces work, just applied to a shifted matrix.

▶ Refresher: determinant properties (why \(\det=0\) means singular)

3Four things that can happen

The discriminant \((\operatorname{tr}A)^2-4\det A\) decides the whole story.

Two distinct real \(\lambda\) D > 0

Two independent invariant lines. The generic, friendliest case — the matrix is diagonalizable and behaves like two separate 1-D stretches.

Repeated \(\lambda\) D = 0

One eigenvalue twice. Sometimes still two independent eigenvectors (e.g. \(A=cI\)); often only one — then \(A\) is defective and cannot be diagonalized (a shear is the classic example).

Complex pair D < 0

\(\lambda=\alpha\pm i\beta\): no real invariant line at all — every real vector gets turned. The map is a rotation combined with a scaling; \(|\lambda|\) is the growth per step and \(\arg\lambda\) the angle turned.

Some \(\lambda=0\) det = 0

Singular. The eigenvectors for \(\lambda=0\) are exactly the null space \(N(A)\) — directions the matrix destroys.

One case deserves its own name. If \(A\) is symmetric (\(A=A^{\mathsf T}\)), the eigenvalues are always real and the eigenvectors can always be chosen orthonormal:

\[S=Q\Lambda Q^{\mathsf T},\qquad Q^{\mathsf T}Q=I\qquad\text{(spectral theorem)}\]

No complex surprises, no defective shears — a perpendicular set of axes along which \(S\) is a pure stretch. Inertia tensors, covariance matrices and stiffness matrices are all symmetric, which is why they always have clean principal axes.

4Diagonalization — the payoff

Put the eigenvectors in the columns of \(X\) and the matrix becomes diagonal.

Collect \(n\) independent eigenvectors as the columns of \(X\) and the eigenvalues down a diagonal \(\Lambda\). Then \(AX=X\Lambda\), and therefore

\[A=X\Lambda X^{-1},\qquad \Lambda=\operatorname{diag}(\lambda_1,\dots,\lambda_n)\]

Read it right to left as a change of language: \(X^{-1}\) rewrites a vector in eigen-coordinates, \(\Lambda\) scales each coordinate independently, \(X\) translates back. In eigen-coordinates the matrix has no cross-talk at all.

The reason this matters is powers. Multiplying \(A\) by itself normally mixes everything together, but the inner factors cancel:

\[A^{k}=X\Lambda^{k}X^{-1},\qquad \Lambda^{k}=\operatorname{diag}(\lambda_1^{k},\dots,\lambda_n^{k})\]

A hard matrix power collapses into raising numbers to a power. Whichever \(|\lambda_i|\) is largest eventually dominates — that eigenvector is the direction the system drifts toward.

Caution: not every matrix is diagonalizable. You need a full set of independent eigenvectors; a defective matrix (repeated \(\lambda\), too few eigenvectors) has no such \(X\). Every matrix does have an SVD, though — which is one reason the SVD is the more dependable tool.

5Why engineers care — modes and stability

Eigenvalues are the growth rates of a linear system; eigenvectors are its modes.

Take a linear system in continuous or discrete time. Expand the initial state in the eigenvector basis, \(\mathbf u_0=c_1\mathbf x_1+\dots+c_n\mathbf x_n\). Each piece then evolves independently:

\[\frac{d\mathbf u}{dt}=A\mathbf u\;\Rightarrow\; \mathbf u(t)=\sum_i c_i e^{\lambda_i t}\mathbf x_i \qquad\qquad \mathbf u_{k+1}=A\mathbf u_k\;\Rightarrow\; \mathbf u_k=\sum_i c_i \lambda_i^{\,k}\mathbf x_i\]

So a coupled system of differential equations becomes \(n\) separate scalar equations — one per mode. Stability then reads straight off the eigenvalues:

Continuous \(\dot{\mathbf u}=A\mathbf u\)Discrete \(\mathbf u_{k+1}=A\mathbf u_k\)Behaviour
Re \(\lambda<0\)\(|\lambda|<1\)Mode decays — stable
Re \(\lambda>0\)\(|\lambda|>1\)Mode blows up — unstable
Re \(\lambda=0\)\(|\lambda|=1\)Marginal — sustained oscillation
\(\lambda=\alpha\pm i\beta\)complex pairSpiral: decay/growth \(\alpha\) with oscillation at \(\beta\)
Robotics: close a control loop and you get \(\dot{\mathbf e}=(A-BK)\mathbf e\) for the error. Designing the gain \(K\) is choosing where the eigenvalues sit — that is literally called pole placement. Push them further left and the error dies faster; let a complex pair drift toward the imaginary axis and the arm oscillates. Elsewhere: eigenvectors of the inertia tensor are the principal axes a body spins cleanly about, eigenvalues of a covariance matrix give the uncertainty ellipse of a state estimate (and PCA), and eigenvalues of a stiffness matrix are the vibration modes of a link.

6Eigenvalues vs singular values

Two different questions — worth keeping straight.

Eigen \(A=X\Lambda X^{-1}\)SVD \(A=U\Sigma V^{\mathsf T}\)
askswhich directions are unchanged?which directions are stretched most?
exists forsquare, and only if diagonalizableevery matrix, any shape
basis\(X\) generally not orthogonal\(U,V\) always orthonormal
values\(\lambda\) can be negative or complex\(\sigma\ge 0\), always real
same when\(A\) symmetric positive definite: \(\sigma_i=\lambda_i\) and \(U=V=X\)

Rule of thumb: eigenvalues answer how does this system evolve over time?; singular values answer how much does this map distort? Both multiply to the determinant in magnitude: \(|\det A|=\prod|\lambda_i|=\prod\sigma_i\).

▶ Sim: SVD & the manipulability ellipse

7Where this sits in the course

Read here, then go move it.

Play with \(A\mathbf x=\lambda\mathbf x\) — drag until the output lines up
Interactive
\(\det(A-\lambda I)=0\) — why singular means \(\lambda=0\)
Determinants
Null space of \(A-\lambda I\) — where eigenvectors live
Subspaces
Orthonormal eigenvectors — the symmetric case, via Gram-Schmidt
A = QR
Singular values — the other factorization
SVD