Linear Algebra II: Spectra, Cayley–Hamilton & Finite Fields

Study Sheet

Linear Algebra II: Spectra, Cayley–Hamilton & Finite Fields

Eigenvalues do the arithmetic; counting matrices over F_p

Spectral Reasoning

Tip
Eigenvalues carry every polynomial fact

If AA has eigenvalues λi\lambda_i then p(A)p(A) has eigenvalues p(λi)p(\lambda_i): det(A2+I)=(λi2+1)\det(A^2 + I) = \prod(\lambda_i^2 + 1), tr(Ak)=λik\mathrm{tr}(A^k) = \sum\lambda_i^k, deteA=etrA\det e^A = e^{\mathrm{tr}A}.

A 3×33\times3 matrix with eigenvalues 1,2,31, 2, 3 has det(A2+I)=2510=100\det(A^2 + I) = 2\cdot5\cdot10 = 100 — no entries needed. Trace and determinant are the first two symmetric functions of the spectrum; Newton's identities convert power sums tr(Ak)\mathrm{tr}(A^k) into the characteristic polynomial and back. If tr(Ak)=0\mathrm{tr}(A^k) = 0 for k=1..nk = 1..n, then all eigenvalues vanish and AA is nilpotent — a classic Putnam lemma.

Tip
Cayley–Hamilton and minimal polynomials

Every matrix satisfies its own characteristic polynomial: pA(A)=0p_A(A) = 0. For 2×22\times2: A2(trA)A+(detA)I=0A^2 - (\mathrm{tr}A)A + (\det A)I = 0.

Consequences: AnA^n is a combination of I,A,,An1I, A, \ldots, A^{n-1}, so powers reduce; A1A^{-1} is a polynomial in AA when detA0\det A \ne 0; and a matrix with A2=AA^2 = A (idempotent) or A2=IA^2 = I (involution) or Ak=0A^k = 0 (nilpotent) has eigenvalues confined to the roots of the corresponding polynomial — {0,1}\{0,1\}, {±1}\{\pm1\}, {0}\{0\}. Rank of an idempotent equals its trace. These one-liners decide many "show that" problems.

Tip
Matrices over finite fields: count

GLn(Fq)=(qn1)(qnq)(qnqn1)|GL_n(\mathbb F_q)| = (q^n - 1)(q^n - q)\cdots(q^n - q^{n-1}) — pick columns one at a time, each outside the span of the previous.

GL2(F2)=32=6|GL_2(\mathbb F_2)| = 3\cdot2 = 6 (S3\cong S_3); GL2(F3)=86=48|GL_2(\mathbb F_3)| = 8\cdot6 = 48; SLn=GLn/(q1)|SL_n| = |GL_n|/(q - 1). The number of kk-dimensional subspaces of Fqn\mathbb F_q^n is the Gaussian binomial (nk)q\binom nk_q. Over F2\mathbb F_2, "how many symmetric / nilpotent / invertible matrices" problems all reduce to this counting-by-columns template.

Side note
Real symmetric matrices are the nice case

Real eigenvalues, orthogonal eigenvectors, diagonalizable — so xTAx\mathbf x^{\mathsf T}A\mathbf x on the unit sphere ranges over [λmin,λmax][\lambda_{\min}, \lambda_{\max}] (the Rayleigh quotient). Positive definiteness is "all eigenvalues positive," tested by leading principal minors. Half of Putnam linear algebra is recognizing that the matrix in front of you is symmetric and applying the spectral theorem.

Try it
Try it: Cayley–Hamilton reduces a power

For A=(1110)A = \begin{pmatrix}1&1\\1&0\end{pmatrix}, express A5A^5 as aA+bIaA + bI.

tr=1\mathrm{tr} = 1, det=1\det = -1: A2=A+IA^2 = A + I. Then A3=A2+A=2A+IA^3 = A^2 + A = 2A + I, A4=2A2+A=3A+2IA^4 = 2A^2 + A = 3A + 2I, A5=3A2+2A=5A+3IA^5 = 3A^2 + 2A = 5A + 3I. The coefficients are Fibonacci numbers — because AA is the Fibonacci matrix.

Proofs & Why It Matters

Tip
Proof: trAk=0\operatorname{tr}A^k = 0 for k=1,,nk = 1, \ldots, n forces AA nilpotent

If an n×nn\times n complex matrix has trAk=0\operatorname{tr}A^k = 0 for all 1kn1 \le k \le n, then every eigenvalue is 00.

Let the distinct nonzero eigenvalues be λ1,,λm\lambda_1, \ldots, \lambda_m with multiplicities c1,,cm1c_1, \ldots, c_m \ge 1. The hypotheses say iciλik=0\sum_i c_i\lambda_i^k = 0 for k=1,,mk = 1, \ldots, m (we only need mnm \le n of them): a homogeneous linear system in the unknowns cic_i whose coefficient matrix [λik][\lambda_i^k] is a Vandermonde matrix in distinct nonzero nodes times diag(λi)\operatorname{diag}(\lambda_i) — invertible. So all ci=0c_i = 0, contradicting ci1c_i \ge 1 unless m=0m = 0. \blacksquare Significance: traces of powers determine the spectrum (Newton's identities in matrix clothing); the converse — a nilpotent matrix has all power-traces zero — is immediate from triangularization.

Tip
Proof: Cayley–Hamilton via the adjugate

Every square matrix satisfies its own characteristic polynomial: pA(A)=0p_A(A) = 0.

Let pA(t)=det(tIA)=tn+cn1tn1++c0p_A(t) = \det(tI - A) = t^n + c_{n-1}t^{n-1} + \cdots + c_0 and let B(t)=adj(tIA)B(t) = \operatorname{adj}(tI - A), a matrix whose entries are polynomials in tt of degree n1\le n - 1; write B(t)=k=0n1BktkB(t) = \sum_{k=0}^{n-1}B_kt^k with constant matrices BkB_k. The adjugate identity (tIA)B(t)=pA(t)I(tI - A)B(t) = p_A(t)I holds for every scalar tt, so comparing coefficients of tkt^k on both sides gives Bk1ABk=ckIB_{k-1} - AB_k = c_kI (with B1=Bn=0B_{-1} = B_n = 0). Multiply the kkth equation by AkA^k on the left and add over kk: the left side telescopes to 00, the right side is ckAk=pA(A)\sum c_kA^k = p_A(A). \blacksquare (The one-line "substitute t=At = A into det(tIA)\det(tI - A)" is NOT a proof — tt is a scalar there.) Significance: AnA^n is a combination of I,A,,An1I, A, \ldots, A^{n-1}, so powers, inverses, and eAe^{A} all live in an nn-dimensional space; that is what makes "compute A100A^{100}" tractable.

Tip
Proof: the spectral theorem for real symmetric matrices

A real symmetric matrix has real eigenvalues and an orthonormal basis of eigenvectors.

Real eigenvalues: if Ax=λxA\mathbf x = \lambda\mathbf x with x0\mathbf x \ne 0 complex, then xˉTAx=λx2\bar{\mathbf x}^{\mathsf T}A\mathbf x = \lambda|\mathbf x|^2, and taking the conjugate transpose of the same scalar (using AT=AA^{\mathsf T} = A real) gives λˉx2\bar\lambda|\mathbf x|^2; hence λ=λˉ\lambda = \bar\lambda. Orthogonality: for eigenvectors with λμ\lambda \ne \mu, λyTx=yTAx=(Ay)Tx=μyTx\lambda\,\mathbf y^{\mathsf T}\mathbf x = \mathbf y^{\mathsf T}A\mathbf x = (A\mathbf y)^{\mathsf T}\mathbf x = \mu\,\mathbf y^{\mathsf T}\mathbf x, so yTx=0\mathbf y^{\mathsf T}\mathbf x = 0. Full basis: take a unit eigenvector q1\mathbf q_1 (it exists since the characteristic polynomial has a real root); AA maps the orthogonal complement q1\mathbf q_1^\perp to itself (if xq1\mathbf x \perp \mathbf q_1 then q1TAx=(Aq1)Tx=λ1q1Tx=0\mathbf q_1^{\mathsf T}A\mathbf x = (A\mathbf q_1)^{\mathsf T}\mathbf x = \lambda_1\mathbf q_1^{\mathsf T}\mathbf x = 0), and restricted there it is again symmetric; induct on the dimension. \blacksquare Significance: xTAx=λici2\mathbf x^{\mathsf T}A\mathbf x = \sum\lambda_ic_i^2 in the eigenbasis, which is the Rayleigh-quotient principle and the reason every quadratic-form extremum on the Putnam is "largest or smallest eigenvalue".

Tip
Proof: Cayley–Hamilton for diagonalizable matrices, and why it extends

pA(A)=0p_A(A) = 0 where pA(λ)=det(λIA)p_A(\lambda) = \det(\lambda I - A).

If A=PDP1A = PDP^{-1} with DD diagonal, then pA(A)=PpA(D)P1p_A(A) = P\,p_A(D)P^{-1}, and pA(D)p_A(D) is diagonal with entries pA(λi)=0p_A(\lambda_i) = 0. So pA(A)=0p_A(A) = 0. Diagonalizable matrices are dense in all matrices (perturb the eigenvalues to be distinct), and ApA(A)A \mapsto p_A(A) is continuous (a polynomial in the entries), so the identity persists for every matrix. \blacksquare Significance: the density argument is itself a Putnam technique — prove an algebraic identity on a dense set, then pass to the limit.

Tip
Proof: trace-zero powers force nilpotence

If tr(Ak)=0\mathrm{tr}(A^k) = 0 for k=1,,nk = 1, \ldots, n (over C\mathbb C), then AA is nilpotent.

Let the distinct nonzero eigenvalues be μ1,,μm\mu_1, \ldots, \mu_m with multiplicities cj1c_j \ge 1. The hypotheses say jcjμjk=0\sum_jc_j\mu_j^k = 0 for k=1..nk = 1..n, in particular for k=1..mk = 1..m. The matrix of this linear system in the unknowns cjc_j is [μjk][\mu_j^k], a Vandermonde times diag(μj)\mathrm{diag}(\mu_j), invertible for distinct nonzero μj\mu_j. So all cj=0c_j = 0 — contradiction unless m=0m = 0: every eigenvalue is 00, and AA is nilpotent. \blacksquare Vandermonde reappears as the engine of a spectral argument — the two linear algebra topics are one subject.

Going Deeper: Worked Problems

Example
Worked: an eigenvalue argument for a "show that"

Let AA be a real n×nn\times n matrix with A3=AA^3 = A. Show rank(A)=tr(A2)\mathrm{rank}(A) = \mathrm{tr}(A^2).

Step 1 — AA satisfies x3x=x(x1)(x+1)x^3 - x = x(x-1)(x+1), which has distinct roots, so AA is diagonalizable with eigenvalues in {1,0,1}\{-1, 0, 1\}.

Step 2 — in the eigenbasis, A2A^2 is diagonal with entries λi2{0,1}\lambda_i^2 \in \{0, 1\}: it is 11 exactly for the nonzero eigenvalues.

Step 3 — so tr(A2)\mathrm{tr}(A^2) counts nonzero eigenvalues, which (diagonalizable!) equals the rank. \blacksquare The whole proof is: a polynomial with distinct roots forces diagonalizability, and then everything is a count.

Example
Worked: counting matrices over F2\mathbb F_2

How many 3×33\times3 matrices over F2\mathbb F_2 are invertible, and what fraction is that?

Step 1 — columns one at a time: the first is any nonzero vector (231=72^3 - 1 = 7), the second avoids the 22 vectors in the span of the first (82=68 - 2 = 6), the third avoids the 44 in the span of the first two (84=48 - 4 = 4).

Step 2 — 764=1687\cdot6\cdot4 = 168 (this group is GL3(F2)GL_3(\mathbb F_2), the second-smallest nonabelian simple group).

Step 3 — fraction: 1685120.33\tfrac{168}{512} \approx 0.33; as nn \to \infty the fraction of invertible matrices over F2\mathbb F_2 tends to k1(12k)0.289\prod_{k\ge1}(1 - 2^{-k}) \approx 0.289. A random binary matrix is singular with probability about 0.710.71.