LeoMath

Foundations of linear algebra

Eigenvalues

Directions along which a map is just a stretch.

about 8 min

Start from a problem

Problem

In most directions a linear map both stretches and turns. Are there directions in which it only stretches?

If so, perhaps those directions can serve as a new coordinate system in which the map becomes extremely simple. We need a definition capturing "direction unchanged", and a way to find such directions.

Observe

Tick "Show eigenvectors", then press "Stretch": two dashed lines appear, one horizontal, one vertical. Vectors along these directions keep their direction after the transformation; only their length is scaled. Press "Shear": only one dashed line remains, the horizontal one. Press "Rotate": the lines vanish.

Interactive experimentLinear transformation
A=(1001)A=\begin{pmatrix}\textcolor{#c2452d}{1}&\textcolor{#1f7a4d}{0}\\\textcolor{#c2452d}{0}&\textcolor{#1f7a4d}{1}\end{pmatrix}
Determinant (signed area) 1
Eigenvalues 1, 1
Conjecture

Every linear map may have some "special directions" along which it merely stretches. If enough such directions exist, taking them as a new basis makes the map act by scaling each coordinate separately: the simplest kind of matrix, a diagonal one. Rotation has no real such direction; shear has only one.

Definition

Definition 5.1Eigenvalues and eigenvectors

Let AA be an n×nn\times n matrix. If there are a nonzero vector vv and a number λ\lambda with Av=λv,Av=\lambda v, then λ\lambda is an eigenvalue of AA and vv an eigenvector for λ\lambda.

"Nonzero" is essential: A0=λ0A0=\lambda0 holds for every λ\lambda and carries no information.

Derivation: how to find them

Av=λv  ⟺  (A−λI)v=0Av=\lambda v\iff(A-\lambda I)v=0. For a nonzero solution vv to exist, A−λIA-\lambda I must be non-invertible, i.e. (see Matrices) det⁡(A−λI)=0.\det(A-\lambda I)=0.

Definition 5.2Characteristic polynomial

pA(λ)=det⁡(A−λI)p_A(\lambda)=\det(A-\lambda I) is the characteristic polynomial of AA. For a 2×22\times2 matrix, pA(λ)=λ2−(tr⁡A)λ+det⁡A,tr⁡A=a+d.p_A(\lambda)=\lambda^2-(\operatorname{tr}A)\lambda+\det A,\qquad\operatorname{tr}A=a+d.

Proof

det⁡(a−λbcd−λ)=(a−λ)(d−λ)−bc=λ2−(a+d)λ+(ad−bc)\det\begin{pmatrix}a-\lambda&b\\c&d-\lambda\end{pmatrix}=(a-\lambda)(d-\lambda)-bc=\lambda^2-(a+d)\lambda+(ad-bc).

Eigenvalues are the roots of the characteristic polynomial. Having found λ\lambda, solve (A−λI)v=0(A-\lambda I)v=0 for the eigenvectors.

Example 5.1Three typical cases
  • Stretch (1.6000.7)\begin{pmatrix}1.6&0\\0&0.7\end{pmatrix}: p=(λ−1.6)(λ−0.7)p=(\lambda-1.6)(\lambda-0.7), eigenvalues 1.6,0.71.6,0.7, eigenvectors e1,e2\mathbf e_1,\mathbf e_2. Two independent directions.
  • Shear (1101)\begin{pmatrix}1&1\\0&1\end{pmatrix}: p=(λ−1)2p=(\lambda-1)^2, only λ=1\lambda=1. (A−I)v=0(A-I)v=0 forces v2=0v_2=0, so the eigenvectors are the multiples of e1\mathbf e_1 only. A double root gave only one direction.
  • Rotation (0−110)\begin{pmatrix}0&-1\\1&0\end{pmatrix}: p=λ2+1p=\lambda^2+1, no real roots. No real eigen-direction; the eigenvalues are ±i\pm i.

The sign of the discriminant (tr⁡A)2−4det⁡A(\operatorname{tr}A)^2-4\det A decides which case you are in. The "complex" readout in the experiment means the discriminant is negative.

Theorems and proofs

Theorem 5.1Eigenvectors for distinct eigenvalues are independent

If v1,…,vkv_1,\dots,v_k are eigenvectors for pairwise distinct eigenvalues λ1,…,λk\lambda_1,\dots,\lambda_k, they are linearly independent.

Proof

Induction on kk; k=1k=1 is clear since v1≠0v_1\ne0. Assume the statement for k−1k-1. If c1v1+⋯+ckvk=0c_1v_1+\cdots+c_kv_k=0, applying AA gives c1λ1v1+⋯+ckλkvk=0c_1\lambda_1v_1+\cdots+c_k\lambda_kv_k=0; subtracting λk\lambda_k times the original relation, c1(λ1−λk)v1+⋯+ck−1(λk−1−λk)vk−1=0.c_1(\lambda_1-\lambda_k)v_1+\cdots+c_{k-1}(\lambda_{k-1}-\lambda_k)v_{k-1}=0. By induction all coefficients vanish, and since λi≠λk\lambda_i\ne\lambda_k, c1=⋯=ck−1=0c_1=\cdots=c_{k-1}=0; then ckvk=0c_kv_k=0 gives ck=0c_k=0.

Theorem 5.2Diagonalisation

If an n×nn\times n matrix AA has nn independent eigenvectors v1,…,vnv_1,\dots,v_n, let P=[v1⋯vn]P=[v_1\cdots v_n] and D=diag⁡(λ1,…,λn)D=\operatorname{diag}(\lambda_1,\dots,\lambda_n). Then A=PDP−1.A=PDP^{-1}.

Proof

The jj-th column of APAP is Avj=λjvjAv_j=\lambda_jv_j; the jj-th column of PDPD is the jj-th column of PP times λj\lambda_j, also λjvj\lambda_jv_j. So AP=PDAP=PD, and PP is invertible because its columns are independent.

Meaning: in coordinates built from eigenvectors, AA is the diagonal matrix DD. The intuition "it only stretches along special directions" has become an exact identity. Shear cannot be diagonalised because it lacks a second independent direction.

Common mistake

Eigenvectors must be nonzero, but an eigenvalue may be 00 (then AA has a nontrivial kernel and zero determinant). Also, a double eigenvalue does not guarantee two independent eigenvectors: the shear has only one direction. Algebraic and geometric multiplicity are different things.

Applications

ApplicationPowers of a matrix

Ak=PDkP−1A^k=PD^kP^{-1} with Dk=diag⁡(λ1k,…,λnk)D^k=\operatorname{diag}(\lambda_1^k,\dots,\lambda_n^k). The Fibonacci recursion Fn+1=Fn+Fn−1F_{n+1}=F_n+F_{n-1} is (Fn+1Fn)=(1110)(FnFn−1)\begin{pmatrix}F_{n+1}\\F_n\end{pmatrix}=\begin{pmatrix}1&1\\1&0\end{pmatrix}\begin{pmatrix}F_n\\F_{n-1}\end{pmatrix}, with eigenvalues 1±52\frac{1\pm\sqrt5}2; Binet's formula follows.

ApplicationSecond-order linear differential equations

y′′+py′+qy=0y''+py'+qy=0 becomes the first-order system (yy′)′=(01−q−p)(yy′)\begin{pmatrix}y\\y'\end{pmatrix}'=\begin{pmatrix}0&1\\-q&-p\end{pmatrix}\begin{pmatrix}y\\y'\end{pmatrix}, whose characteristic polynomial is λ2+pλ+q\lambda^2+p\lambda+q: exactly the textbook "characteristic equation". That is the subject of Second-order linear equations.

Remark

Eigenvalues answer the question "in which directions is this map simplest?" Symmetric matrices always have a full orthogonal set of eigen-directions (the spectral theorem), the shared mathematical basis of principal component analysis, vibration modes and observables in quantum mechanics.

Exercises

01
Find the largest eigenvalue of (2112)\begin{pmatrix}2&1\\1&2\end{pmatrix}.
02
The eigenvectors of the shear (1101)\begin{pmatrix}1&1\\0&1\end{pmatrix} are