Unit 10, lesson 51

Matrix Powers and Polynomial Functions

How to compute powers and polynomials of a matrix by reduction modulo the minimal polynomial and the binomial formula for a Jordan block, and how Jordan chains add polynomial factors to the powers.

  • Video 51
  • Matrix Powers and Exponentials

The shear JJ with rows (1,1)(1, 1) and (0,1)(0, 1) has the single eigenvalue 11, and every power of 11 is 11. Yet Je2=(1,1)J e_2 = (1, 1), J2e2=(2,1)J^2 e_2 = (2, 1) and J3e2=(3,1)J^3 e_2 = (3, 1), so the orbit of e2e_2 drifts off without bound. Which part of a matrix produces that drift, and how can every power be computed exactly? This lesson reduces any polynomial in a matrix to a short remainder, computes powers of Jordan blocks with a finite binomial formula, and decides which matrices have bounded or decaying powers. Throughout, F\mathbb{F} is R\mathbb{R} or C\mathbb{C} and a tuple such as (1,2)(1, 2) stands for a column vector.

Key terms

Polynomial function of a matrix

Definition Let A∈Fn×nA \in \mathbb{F}^{n \times n} and let p(t)=a0+a1t+⋯+adtdp(t) = a_0 + a_1 t + \cdots + a_d t^d be a polynomial with coefficients in F\mathbb{F}. The matrix p(A)p(A) is

p(A)=a0I+a1A+a2A2+⋯+adAd,\begin{aligned} p(A) &= a_0 I + a_1 A + a_2 A^2 \\[0.4em] &\quad + \cdots + a_d A^d, \end{aligned}

with A0=IA^0 = I. The same recipe defines p(T)p(T) for a linear operator T ⁣:V→VT \colon V \to V on a finite-dimensional space, where a power means repeated composition. Evaluation respects the algebra of polynomials, so (p+q)(A)=p(A)+q(A)(p + q)(A) = p(A) + q(A), (cp)(A)=c p(A)(cp)(A) = c\,p(A) and (pq)(A)=p(A) q(A)(pq)(A) = p(A)\,q(A). In particular any two polynomials in the same matrix commute. Evaluation also respects similarity. If B=P−1APB = P^{-1}AP with P∈Fn×nP \in \mathbb{F}^{n \times n} invertible, the adjacent factors PP−1PP^{-1} cancel, and induction on kk gives

Bk=(P−1AP)(P−1AP)⋯(P−1AP)=P−1AkP\begin{aligned} B^k &= (P^{-1}AP)(P^{-1}AP) \\[0.4em] &\quad \cdots (P^{-1}AP) \\[0.4em] &= P^{-1}A^kP \end{aligned}

for every k≥0k \ge 0. A linear combination of these identities gives p(B)=P−1p(A)Pp(B) = P^{-1}p(A)P. So a polynomial of an operator can be computed in any convenient basis and converted back. Watch for this. The matrix p(A)p(A) is not obtained by applying pp to each entry of AA.

In plain words Substitute the matrix for the variable and multiply the constant term by the identity matrix. The result commutes with AA, and it describes the same operator whichever basis you evaluate it in.

Example For the shear,

J2=[1201],J^2 = \begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix},

while squaring each entry would leave JJ unchanged. With p(t)=t2−3t+2=(t−1)(t−2)p(t) = t^2 - 3t + 2 = (t - 1)(t - 2),

p(J)=J2−3J+2I=[0−100],p(J) = J^2 - 3J + 2I = \begin{bmatrix} 0 & -1 \\ 0 & 0 \end{bmatrix},

and the factored form (J−I)(J−2I)(J - I)(J - 2I) gives the same matrix. For a similarity example, let AA have rows (2,1)(2, 1) and (1,2)(1, 2), and let PP have columns (1,1)(1, 1) and (1,−1)(1, -1). Then P−1AP=diag⁡(3,1)P^{-1}AP = \operatorname{diag}(3, 1), so

A3=P[27001]P−1=[14131314],A^3 = P \begin{bmatrix} 27 & 0 \\ 0 & 1 \end{bmatrix} P^{-1} = \begin{bmatrix} 14 & 13 \\ 13 & 14 \end{bmatrix},

which agrees with multiplying AA by itself three times.

Reduction modulo the minimal polynomial

Definition Let A∈Fn×nA \in \mathbb{F}^{n \times n} have minimal polynomial μA\mu_A, the monic polynomial of least degree mm with μA(A)=0\mu_A(A) = 0. Every polynomial that annihilates AA is a multiple of μA\mu_A. For a polynomial pp over F\mathbb{F}, division with remainder gives unique polynomials qq and rr with

p=q μA+r,r=0 or deg⁡r<m,\begin{aligned} p &= q\,\mu_A + r, \\[0.4em] r &= 0 \ \text{or} \ \deg r < m, \end{aligned}

and then p(A)=q(A) μA(A)+r(A)=r(A)p(A) = q(A)\,\mu_A(A) + r(A) = r(A). Three consequences follow.

  1. Two polynomials give the same matrix, p(A)=s(A)p(A) = s(A), exactly when μA\mu_A divides p−sp - s. If μA\mu_A has no repeated root in C\mathbb{C}, it suffices that pp and ss agree at every root of μA\mu_A in C\mathbb{C}, that is at every eigenvalue of AA viewed as a complex matrix. For a real matrix the nonreal roots count too. The quarter turn RR with rows (0,−1)(0, -1) and (1,0)(1, 0) has μR(t)=t2+1\mu_R(t) = t^2 + 1 and no real eigenvalue, yet the polynomials tt and 00 give different matrices. When μA\mu_A has a repeated root, even agreement at every root in C\mathbb{C} no longer guarantees p(A)=s(A)p(A) = s(A).

  2. The matrices I,A,…,Am−1I, A, \dots, A^{m-1} are linearly independent, because a nontrivial relation among them would be a nonzero polynomial of degree less than mm that annihilates AA. So each power AkA^k is a combination of these mm matrices with uniquely determined coefficients, the coefficients of the remainder of tkt^k.

  3. Every orbit satisfies a recurrence. If μA(t)=tm+cm−1tm−1+⋯+c0\mu_A(t) = t^m + c_{m-1}t^{m-1} + \cdots + c_0 and xk=Akxx_k = A^k x, multiplying μA(A)=0\mu_A(A) = 0 by AkA^k and applying it to xx gives, for all k≥0k \ge 0,

    xk+m=−cm−1 xk+m−1−⋯−c0 xk.\begin{aligned} x_{k+m} &= -c_{m-1}\,x_{k+m-1} \\[0.4em] &\quad - \cdots - c_0\,x_k. \end{aligned}

    Applying a linear functional to both sides gives the same scalar recurrence for the measured numbers. A particular starting vector may satisfy a shorter recurrence. An eigenvector with eigenvalue λ\lambda already satisfies xk+1=λxkx_{k+1} = \lambda x_k.

In plain words The minimal polynomial is a rewriting rule that turns high powers into low ones. Long division by it leaves a remainder of small degree, and the remainder gives exactly the same matrix as the original polynomial.

Example The matrix

C=[0−213]C = \begin{bmatrix} 0 & -2 \\ 1 & 3 \end{bmatrix}

satisfies C2−3C+2I=0C^2 - 3C + 2I = 0. It is not a multiple of II, so no polynomial of degree one annihilates it, and μC(t)=t2−3t+2=(t−1)(t−2)\mu_C(t) = t^2 - 3t + 2 = (t - 1)(t - 2). To find C5C^5, write t5=q(t) μC(t)+at+bt^5 = q(t)\,\mu_C(t) + at + b. This is an identity of polynomials, so it holds at the roots t=1t = 1 and t=2t = 2, where μC\mu_C vanishes. That gives a+b=1a + b = 1 and 2a+b=322a + b = 32, so a=31a = 31, b=−30b = -30 and

C5=31C−30I=[−30−623163].C^5 = 31C - 30I = \begin{bmatrix} -30 & -62 \\ 31 & 63 \end{bmatrix}.

The orbit of e1e_1 obeys yk+2=3yk+1−2yky_{k+2} = 3y_{k+1} - 2y_k. It runs through e1e_1, e2e_2, (−2,3)(-2, 3), (−6,7)(-6, 7), (−14,15)(-14, 15) and (−30,31)(-30, 31), and the last vector is the first column of C5C^5, as it should be.

Binomial expansion with a nilpotent part

Definition A matrix N∈Fn×nN \in \mathbb{F}^{n \times n} is nilpotent if Ns=0N^s = 0 for some integer s≥1s \ge 1. Let A=S+NA = S + N with S,N∈Fn×nS, N \in \mathbb{F}^{n \times n}, where SS and NN commute, SN=NSSN = NS, and Ns=0N^s = 0. Then for every integer k≥0k \ge 0

Ak=∑j=0min⁡(k, s−1)(kj)Sk−jNj.A^k = \sum_{j=0}^{\min(k,\, s-1)} \binom{k}{j} S^{k-j} N^j.

The proof is induction on kk, and the case k=0k = 0 reads I=II = I. Without the cutoff at s−1s - 1, the formula for kk is the full binomial sum over 0≤j≤k0 \le j \le k. Multiply it by S+NS + N on the right. Because NjS=SNjN^j S = S N^j, one part keeps each power of NN and raises the power of SS by one, and the other part raises the power of NN by one. The coefficient of Sk+1−jNjS^{k+1-j}N^j becomes (kj)+(kj−1)=(k+1j)\binom{k}{j} + \binom{k}{j-1} = \binom{k+1}{j} by Pascal’s identity, which is the full sum for k+1k + 1. Finally every term with j≥sj \ge s contains Ns=0N^s = 0 and drops out. The upper limit j≤kj \le k also keeps every exponent of SS nonnegative, which matters when SS is not invertible. The usual case is S=λIS = \lambda I, which commutes with every NN.

In plain words When the nilpotent part commutes with the rest, the ordinary binomial theorem applies, and nilpotence cuts the sum off after at most ss terms however large kk is.

Example Let NN have rows (0,1)(0, 1) and (0,0)(0, 0), so N2=0N^2 = 0, and let A=2I+NA = 2I + N. Then

A4=16I+32N=[1632016].A^4 = 16I + 32N = \begin{bmatrix} 16 & 32 \\ 0 & 16 \end{bmatrix}.

Since N=A−2IN = A - 2I, this says A4=32A−48IA^4 = 32A - 48I, which is the reduction of t4t^4 modulo μA(t)=(t−2)2\mu_A(t) = (t - 2)^2. The same expansion applied to the polynomial,

t4=((t−2)+2)4=16+32(t−2)+(t−2)2 h(t)\begin{aligned} t^4 &= \bigl((t - 2) + 2\bigr)^4 \\[0.4em] &= 16 + 32(t - 2) + (t - 2)^2\,h(t) \end{aligned}

for a polynomial hh, gives the remainder 32t−4832t - 48 directly. Values at the roots alone could not, because μA\mu_A has the double root 22, which gives only one equation for the two unknown coefficients. Commutation is needed. For S=diag⁡(1,2)S = \operatorname{diag}(1, 2) and the same NN, the products are SN=NSN = N and NS=2NNS = 2N, and

(S+N)2=[1304],S2+2SN+N2=[1204].\begin{gathered} (S + N)^2 = \begin{bmatrix} 1 & 3 \\ 0 & 4 \end{bmatrix}, \\[0.4em] S^2 + 2SN + N^2 = \begin{bmatrix} 1 & 2 \\ 0 & 4 \end{bmatrix}. \end{gathered}

Powers of a Jordan block

Definition The Jordan block of size ss with eigenvalue λ∈F\lambda \in \mathbb{F} is Js(λ)=λI+NJ_s(\lambda) = \lambda I + N, where N∈Fs×sN \in \mathbb{F}^{s \times s} has ones directly above the diagonal and zeros elsewhere. The matrix NN sends e1e_1 to 00 and eje_j to ej−1e_{j-1} for j≥2j \ge 2, so NjN^j has ones on the jjth diagonal above the main one, Ns−1≠0N^{s-1} \ne 0 and Ns=0N^s = 0. Since λI\lambda I commutes with NN, the binomial expansion gives, for every k≥0k \ge 0,

Js(λ)k=∑j=0min⁡(k, s−1)(kj)λk−jNj.J_s(\lambda)^k = \sum_{j=0}^{\min(k,\, s-1)} \binom{k}{j} \lambda^{k-j} N^j.

So Js(λ)kJ_s(\lambda)^k is upper triangular and constant along each diagonal. Its entry in position (i,i+j)(i, i + j) is (kj)λk−j\binom{k}{j}\lambda^{k-j} for j≤kj \le k and 00 for j>kj > k. For λ=0\lambda = 0 read λ0=1\lambda^0 = 1, and the formula gives Js(0)k=NkJ_s(0)^k = N^k, which is 00 for k≥sk \ge s. No negative power of λ\lambda ever appears. If A=PJP−1A = PJP^{-1} where JJ is a Jordan form, block diagonal with Jordan blocks, then Ak=PJkP−1A^k = PJ^kP^{-1} and JkJ^k is computed one block at a time. Every matrix in Cn×n\mathbb{C}^{n \times n} has a Jordan form, and a real matrix has a real one when all its eigenvalues are real.

In plain words The diagonal of the kkth power carries the scalar power λk\lambda^k. Each diagonal further up carries the next binomial coefficient, a polynomial in kk of one higher degree, times a lower power of λ\lambda, and a block of size ss has only ss diagonals to fill.

Example For s=3s = 3 and λ=1\lambda = 1,

J3(1)4=I+4N+6N2=[146014001],\begin{aligned} J_3(1)^4 &= I + 4N + 6N^2 \\[0.4em] &= \begin{bmatrix} 1 & 4 & 6 \\ 0 & 1 & 4 \\ 0 & 0 & 1 \end{bmatrix}, \end{aligned}

since (42)=6\binom{4}{2} = 6. Because Ne3=e2Ne_3 = e_2 and N2e3=e1N^2e_3 = e_1, the image of e3e_3 is (6,4,1)(6, 4, 1). In general J3(1)ke3=((k2),k,1)J_3(1)^k e_3 = \bigl(\binom{k}{2}, k, 1\bigr), with (k2)=k(k−1)/2\binom{k}{2} = k(k - 1)/2. The chain of length three adds a term quadratic in kk that the length-two block of the opening example does not have.

Growth along a Jordan chain

Definition A Jordan chain of length ss for an eigenvalue λ\lambda of A∈Fn×nA \in \mathbb{F}^{n \times n} is a list of nonzero vectors v1,…,vsv_1, \dots, v_s with (A−λI)v1=0(A - \lambda I)v_1 = 0 and (A−λI)vj=vj−1(A - \lambda I)v_j = v_{j-1} for 2≤j≤s2 \le j \le s. Write A=λI+(A−λI)A = \lambda I + (A - \lambda I), two commuting parts. Since (A−λI)jvs=vs−j(A - \lambda I)^j v_s = v_{s-j} for j<sj < s and (A−λI)svs=0(A - \lambda I)^s v_s = 0, the binomial expansion gives

Akvs=∑j=0min⁡(k, s−1)(kj)λk−jvs−j.A^k v_s = \sum_{j=0}^{\min(k,\, s-1)} \binom{k}{j} \lambda^{k-j} v_{s-j}.

For k≥s−1k \ge s - 1 the coefficient of the eigenvector v1v_1 is (ks−1)λk−s+1\binom{k}{s-1}\lambda^{k-s+1}. When λ≠0\lambda \ne 0 this is λk\lambda^k times a polynomial in kk of degree s−1s - 1. This controls the long-run behavior of powers. Let A∈Cn×nA \in \mathbb{C}^{n \times n}, where a real matrix is included with its complex eigenvalues.

  1. The powers AkA^k tend to 00 as k→∞k \to \infty exactly when every eigenvalue satisfies ∣λ∣<1\lvert \lambda \rvert < 1.
  2. The powers AkA^k for k≥0k \ge 0 are bounded exactly when every eigenvalue satisfies ∣λ∣≤1\lvert \lambda \rvert \le 1 and every eigenvalue with ∣λ∣=1\lvert \lambda \rvert = 1 has only Jordan blocks of size 11.

For the proof, write A=PJP−1A = PJP^{-1} with JJ a Jordan form. The identities Ak=PJkP−1A^k = PJ^kP^{-1} and Jk=P−1AkPJ^k = P^{-1}A^kP with PP fixed show that AkA^k is bounded, or tends to 00, exactly when JkJ^k does. For 0<∣λ∣<10 < \lvert \lambda \rvert < 1 each entry of a block power has absolute value at most kjρk−jk^j \rho^{k-j} with ρ=∣λ∣\rho = \lvert \lambda \rvert. The ratio of consecutive terms of kjρkk^j\rho^k tends to ρ\rho, so from some kk on it stays below a fixed q<1q < 1, and the sequence is dominated by a decaying geometric sequence. Blocks with λ=0\lambda = 0 vanish after ss steps. A block of size at least 22 with ∣λ∣=1\lvert \lambda \rvert = 1 has entry kλk−1k\lambda^{k-1} in position (1,2)(1, 2), of absolute value kk, and an eigenvalue with ∣λ∣>1\lvert \lambda \rvert > 1 puts λk\lambda^k on the diagonal. Watch for this. Decay is an eventual statement. A long chain, a large entry above the diagonal or an ill-conditioned basis PP can make early powers large.

In plain words A nonzero eigenvalue λ\lambda contributes the exponential factor λk\lambda^k, and a chain of length ss multiplies that factor by polynomials in kk of degree up to s−1s - 1. Strictly inside the unit circle the exponential wins in the end. On the unit circle nothing offsets the polynomial, so a chain of length two or more grows without bound.

Example Compare JJ with D=diag⁡(1,−1)D = \operatorname{diag}(1, -1). Both have eigenvalues of absolute value 11. The powers Dk=diag⁡(1,(−1)k)D^k = \operatorname{diag}\bigl(1, (-1)^k\bigr) have spectral norm 11 for every kk. For the shear, Jk=I+kNJ^k = I + kN and

∥Jke2∥2=∥(k,1)∥2=k2+1,\lVert J^k e_2 \rVert_2 = \lVert (k, 1) \rVert_2 = \sqrt{k^2 + 1},

which grows without bound. The cause is the chain e1,e2e_1, e_2 of JJ, with (J−I)e2=e1(J - I)e_2 = e_1, not the size of the eigenvalues. For eventual decay with early growth, let MM have rows (1/2,10)(1/2, 10) and (0,1/2)(0, 1/2). Then

Mke2=(20k2k, 12k).M^k e_2 = \left( \frac{20k}{2^k}, \ \frac{1}{2^k} \right).

The first entry is 1010 at k=1k = 1 and k=2k = 2, then 7.57.5, 55 and 3.1253.125, and the length of Mke2M^k e_2 first drops below its starting value 11 at k=8k = 8, where the vector is (5/8,1/256)(5/8, 1/256).

Check yourself

  1. Let NN have rows (0,1)(0, 1) and (0,0)(0, 0) and let A=3I+NA = 3I + N. Compute A5A^5, write it as a combination of AA and II, and find A5e2A^5 e_2.
Show the answer

Since N2=0N^2 = 0, only two terms of the binomial expansion survive,

A5=35I+(51)34N=243I+405N.A^5 = 3^5 I + \binom{5}{1} 3^4 N = 243I + 405N.

Substituting N=A−3IN = A - 3I gives A5=405A−972IA^5 = 405A - 972I, the remainder of t5t^5 modulo μA(t)=(t−3)2\mu_A(t) = (t - 3)^2. The matrix has rows (243,405)(243, 405) and (0,243)(0, 243), so A5e2=(405,243)A^5 e_2 = (405, 243).

  1. Let AA have rows (2,1,0)(2, 1, 0), (0,2,0)(0, 2, 0) and (0,0,3)(0, 0, 3). The polynomial p(t)=(t−2)(t−3)p(t) = (t - 2)(t - 3) vanishes at both eigenvalues. Is p(A)=0p(A) = 0? Find μA\mu_A.
Show the answer

No. The product is

(A−2I)(A−3I)=[0−10000000]≠0.(A - 2I)(A - 3I) = \begin{bmatrix} 0 & -1 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix} \ne 0.

The minimal polynomial divides χA(t)=(t−2)2(t−3)\chi_A(t) = (t - 2)^2(t - 3) and has every eigenvalue as a root, so it is (t−2)(t−3)(t - 2)(t - 3) or (t−2)2(t−3)(t - 2)^2(t - 3). The first fails, so μA(t)=(t−2)2(t−3)\mu_A(t) = (t - 2)^2(t - 3), and indeed (A−2I)2(A - 2I)^2 has a single nonzero entry 11 in position (3,3)(3, 3), which the zero third row of A−3IA - 3I kills. The polynomials pp and 00 agree at every eigenvalue but give different matrices, because μA\mu_A does not divide pp. The block for the eigenvalue 22 has a chain of length two.

  1. For a real number aa, let AA have rows (a,1)(a, 1) and (0,a)(0, a). For which aa do the powers AkA^k tend to 00, and for which are they bounded? Compare with the scalar matrix aIaI.
Show the answer

The binomial formula with N2=0N^2 = 0 gives, for k≥1k \ge 1,

Ak=[akkak−10ak].A^k = \begin{bmatrix} a^k & k a^{k-1} \\ 0 & a^k \end{bmatrix}.

If ∣a∣<1\lvert a \rvert < 1, then ak→0a^k \to 0 and kak−1→0k a^{k-1} \to 0, so Ak→0A^k \to 0. For a=0a = 0 this is immediate, since Ak=0A^k = 0 for k≥2k \ge 2. If ∣a∣=1\lvert a \rvert = 1, the corner entry has absolute value kk, and if ∣a∣>1\lvert a \rvert > 1, the diagonal entries grow. So the powers are bounded exactly when ∣a∣<1\lvert a \rvert < 1, the same condition as for tending to 00. The powers akIa^k I of the scalar matrix are bounded exactly when ∣a∣≤1\lvert a \rvert \le 1. The chain of length two removes the boundary case ∣a∣=1\lvert a \rvert = 1, which is the bounded powers criterion at work.

How this lesson connects