Definitions, animated
The chapter's definitions and key theorems. Animations are paced for following step by step; use the speed buttons under a video to change the pace. Jump to a card here.Eigenvalues and eigenvectors
Directions a matrix only stretchesA nonzero x with Ax = λx is an eigenvector and λ its eigenvalue. Rewriting as (A − λI)x = 0 shows that λ is an eigenvalue exactly when A − λI is singular, i.e. det(A − λI) = 0. That characteristic polynomial has degree n; its roots (possibly complex, possibly repeated) are the eigenvalues, with sum tr A and product det A. The eigenvectors for λ, together with 0, form the eigenspace N(A − λI).
Eigenvector hunter
Examples 6.1.2, 6.1.3 · Exercises 6.1.1, 6.1.13, 6.1.14Drag x around the unit circle. The ellipse is the image of the circle. When Ax lies on the line of x, you have found an eigenvector.
Systems of linear differential equations
Y′ = AYIf Ax = λx, then Y(t) = eλtx solves Y′ = AY. With n independent eigenvectors every solution is Y = c1eλ1tx1 + ⋯ + cneλntxn, and the initial value fixes c = X−1Y0. The signs of the eigenvalues decide the long-run behaviour; complex eigenvalues λ = a ± bi make solutions rotate.
Phase portrait of Y′ = AY
Examples 6.2.1–6.2.3 · Exercises 6.2.1, 6.2.2, 6.2.5Drag the starting point Y(0). The orange curve is its trajectory for −2 ≤ t ≤ 2; dashed lines are real eigenvector directions.
Diagonalization
A = XDX⁻¹, powers, Markov chains, PageRankEigenvectors belonging to distinct eigenvalues are independent (Theorem 6.3.1). If A has n independent eigenvectors, put them in the columns of X: then X−1AX = D is diagonal and Ak = XDkX−1. A matrix with fewer independent eigenvectors is defective.
A Markov chain with transition matrix A (nonnegative columns summing to 1) evolves by xk+1 = Axk. Since λ = 1 is an eigenvalue and the others usually have |λ| < 1, the chain settles at the eigenvector for 1, the steady-state vector. Google's PageRank is this vector for the web's link matrix.
Diagonalize and take powers
Examples 6.3.1–6.3.4 · Exercises 6.3.1, 6.3.2Markov chains and PageRank
Example 6.1.1 · Example 6.3.5 · Application 6.3.2Hermitian matrices
Real eigenvalues, orthonormal eigenvectorsFor complex vectors the inner product is ⟨z, w⟩ = wHz, where H means conjugate transpose. A matrix with MH = M is Hermitian (for real matrices: symmetric). Its eigenvalues are real and eigenvectors for distinct eigenvalues are orthogonal (Theorem 6.4.1). The Spectral Theorem goes further: a real symmetric A can be written A = QDQT with Q orthogonal. Every square matrix is at least unitarily similar to an upper triangular one (Schur).
The singular value decomposition
A = UΣVᵀ, low-rank approximationEvery m × n matrix factors as A = UΣVT with U, V orthogonal and Σ diagonal with singular values σ1 ≥ σ2 ≥ ⋯ ≥ 0. The σi2 are the eigenvalues of ATA, the columns of V its eigenvectors, and Avi = σiui. The rank is the number of nonzero σ's. Keeping the k largest terms of A = ΣσiuiviT gives the closest matrix of rank k (Theorem 6.5.3), the basis of image compression.
SVD: circle to ellipse
Theorem 6.5.1 · Example 6.5.1Drag the columns a₁, a₂ of A. Dashed: the right singular vectors v₁, v₂ on the unit circle. Solid: σ₁u₁ and σ₂u₂, the semi-axes of the image ellipse.
Image compression with the SVD
Application 6.5.2 · Theorem 6.5.3Quadratic forms
Principal axes, definitenessA quadratic form is f(x) = xTAx with A symmetric; the cross term 2bxy puts b in both off-diagonal places. Rotating to the orthonormal eigenvectors of A removes the cross terms: f = λ1y12 + ⋯ + λnyn2 (Principal Axes Theorem). So the signs of the eigenvalues decide everything: all positive means positive definite (level curves are ellipses, a minimum), mixed signs mean indefinite (hyperbolas, a saddle).
Level curves of xTAx
Examples 6.6.2, 6.6.4 · Exercises 6.6.3, 6.6.6 · Theorems 6.6.2, 6.7.1Positive definite matrices
Five equivalent tests; CholeskyFor a symmetric A the following are equivalent (Theorem 6.7.1): A is positive definite; all leading principal submatrices have positive determinants; Gaussian elimination without row interchanges gives positive pivots; A = LDLT with L unit lower triangular and positive diagonal D; and A = LLT with L lower triangular with positive diagonal (the Cholesky factorization). The quadratic-form lab above shows the tests side by side.
Nonnegative matrices
Perron–Frobenius, economic modelsA matrix with all entries positive has a positive real eigenvalue r that is strictly larger in absolute value than every other eigenvalue, with an eigenvector of positive entries (Perron's Theorem). For irreducible nonnegative matrices the same holds with weak inequalities (Frobenius). This is why Markov chains with positive transition matrices converge, and why Leontief's open model x = Ax + d has a nonnegative solution x = (I − A)−1d when the column sums of A are less than 1.