10.7  Polynomial Matrices and the Smith Normal Form

The rational canonical form of the previous section is a complete answer to the similarity problem, but the proof did not tell us how to find the invariant factors of a given matrix. This section supplies the missing algorithm, and it comes from an unexpected place: instead of working with A, we work with the single polynomial matrix xI−A, and we reduce it by row and column operations whose scalars are allowed to be polynomials. The reduced form is diagonal, its non-constant diagonal entries are the invariant factors, and two matrices are similar exactly when their reduced forms agree. On the way we finally pay off a promise from Chapter 4: every square matrix is similar to its transpose, over every field.

10.7.1. The space as a module over the polynomials

Everything in this chapter is built by applying polynomials in T to vectors: the T-annihilator of a vector, the cyclic subspace Z(v;T), the kernels kerp(T). Name that structure once. For V a vector space over F and T∈L(V), the product F[x]×V→V,p⋅v:=p(T)v satisfies, by Theorem 6.7.1, exactly the vector space axioms with F replaced by F[x]: it is additive in each factor, (pq)⋅v=p⋅(q⋅v), and 1⋅v=v. A set with an addition and a product by the elements of a commutative ring R obeying these rules is an R-module, so the pair (V,T) is the same thing as an F[x]-module that is finite-dimensional over the constants F. We develop no general theory of modules; the point is the dictionary:

F[x]-module language operator language
submodule of V T-invariant subspace (Definition 9.1.1)
submodule generated by v, that is F[x]⋅v cyclic subspace Z(v;T) (Definition 10.5.1)
the annihilator of v in F[x] the T-annihilator of v
V is generated by one element T has a cyclic vector

A subspace closed under multiplication by x is closed under multiplication by every polynomial, which is why the first two lines match.

Where does xI−A come from here? Fix B=(b1,…,bn) with A=[T]BB. As an F[x]-module, V is generated by b1,…,bn, subject to the n relations x⋅bj=∑iaijbi, whose coefficient vectors are the columns of xI−A. So xI−A is the matrix of relations, and changing generators or replacing one relation by a combination of relations should not change V. That is the intuition behind the operations we now allow; the proofs below are matrix proofs and do not rely on it.

10.7.2. Row and column operations with polynomial multipliers

A matrix in Mn(F[x]) will be called a polynomial matrix. Over a field we reduced a matrix by three kinds of row operation (Definition 3.2.1). Over F[x] we must be careful with one of them: multiplying a row by x cannot be undone, because x has no inverse in F[x]. So the scaling operation keeps its scalar in F, while the operation that adds a multiple of one row to another may use any polynomial multiplier.

Definition 10.7.1 (Elementary Operations over F[x])

Let M∈Mn(F[x]). An elementary row operation over F[x] on M is one of:

  • (E1) interchanging two rows;
  • (E2) multiplying one row by a non-zero scalar c∈F;
  • (E3) adding h times one row to a different row, where h∈F[x] is any polynomial.

Elementary column operations over F[x] are defined the same way with “column” in place of “row”.

In words: (E1) and (E3) are as over a field, except that (E3) now permits a polynomial multiplier; (E2) is restricted, because only the non-zero constants have inverses in F[x]. Each of the three is reversible by an operation of the same kind: swap back, scale by c−1, add −h times the row back.

Two polynomial matrices reachable from one another by such operations should count as the same. As over a field (Definition 4.3.1), the clean way to say this is with invertible matrices on both sides — but “invertible” must now mean invertible inside Mn(F[x]).

Proposition 10.7.1 (Invertible Polynomial Matrices)

Let U∈Mn(F[x]). Then U has an inverse in Mn(F[x]) if and only if detU is a non-zero constant.

Proof. (⇒) Suppose UW=I with W∈Mn(F[x]). Taking determinants and using multiplicativity over the commutative ring F[x] (Theorem 7.5.4 and the remark on commutative rings after it), detU⋅detW=1. By Theorem 0.8.3, deg⁡(detU)+deg⁡(detW)=deg⁡1=0, and degrees of non-zero polynomials are ≥0, so deg⁡(detU)=0; that is, detU∈F∖{0}.

(⇐) Suppose detU=c∈F∖{0}. The adjugate identity UadjU=adjUU=(detU)I holds over any commutative ring (Theorem 7.6.2 and the remark on commutative rings following it), and adjU∈Mn(F[x]), since its entries are minors of U. So W=c−1adjU∈Mn(F[x]) satisfies UW=WU=I.

Definition 10.7.2 (Equivalence over F[x])

Let M,M′∈Mn(F[x]). We say M and M′ are equivalent over F[x], written M≈M′, if there are U,V∈Mn(F[x]), each invertible in Mn(F[x]), with M′=UMV.

Proposition 10.7.2 (Operations and Equivalence)

Let M,M′∈Mn(F[x]).

  • (a) ≈ is an equivalence relation on Mn(F[x]).
  • (b) If M′ is obtained from M by a finite sequence of elementary row and column operations over F[x], then M≈M′.

Proof.

  • (a) Take U=V=I for reflexivity. If M′=UMV, then M=U−1M′V−1, and U−1,V−1 are invertible in Mn(F[x]); this gives symmetry. If M′=UMV and M″=U′M′V′, then M″=(U′U)M(VV′), and a product of invertible matrices is invertible, which gives transitivity.

  • (b) Each elementary row operation over F[x] is left multiplication by the matrix obtained by performing that operation on In, exactly as over a field (Theorem 3.4.1, whose proof uses only the ring operations). Those three matrices are Pij, Di(c) and I+hEij with i≠j, of determinants −1, c≠0 and 1 respectively (Theorem 7.4.6 and Theorem 7.5.1, valid over a commutative ring), hence invertible in Mn(F[x]) by Proposition 10.7.1. Column operations are right multiplication by the same matrices. Now use (a).

Warning. Multiplying a row by a non-constant polynomial is not an allowed operation. It changes the answer. The matrix M=(1001) becomes (x001) after “multiplying row 1 by x”, and the two are not equivalent: their determinants are 1 and x, and by Proposition 10.7.1 the first is invertible over F[x] while the second is not. The rule to remember is that only the units of F[x] — the non-zero constants — may be used as scaling factors.

10.7.3. The Smith normal form

Every polynomial matrix can be brought to a diagonal form whose diagonal entries divide one another in turn, and that form is unique.

The existence proof is Euclidean division, run on whichever non-zero entry has the smallest degree: if that entry fails to divide one of its neighbors in the same row or column, the remainder gives a non-zero entry of strictly smaller degree, and degrees cannot decrease forever.

Theorem 10.7.3 (Smith Normal Form)

Let F be a field, n≥1 and M∈Mn(F[x]). Then:

  • (a) (Existence) M is equivalent over F[x], by a finite sequence of elementary row and column operations, to a diagonal matrix D=diag(d1,d2,…,dn) in which every di is monic or zero and di∣di+1 for i=1,…,n−1.
  • (b) (Uniqueness) The list (d1,…,dn) is determined by M: if M≈diag(d1,…,dn)≈diag(e1,…,en) with both lists as in (a), then di=ei for every i.

The matrix D is called the Smith normal form of M, and d1,…,dn its invariant divisors.

Since 0∣f holds only for f=0, the divisibility chain forces the zero entries, if any, to be the last ones.

Idea. Step roadmap for existence. ① Among all matrices reachable from M by operations, pick one whose smallest non-zero entry degree is least, and move that entry to the corner. ② That corner entry f must divide every other entry of its row and column: otherwise divide with remainder and produce an entry of smaller degree, contradicting the choice in ①. ③ Clear the first row and column with f; the same remainder trick, after adding a row to the first one, shows f divides every entry of what is left. ④ Induct on the size. The divisibility d1∣d2 survives the induction because operations replace entries by F[x]-combinations of entries.

For uniqueness, find a quantity that can be read off both M and D. The greatest common divisor of all k×k minors is such a quantity: minors of a product are F[x]-combinations of minors of the factors (Cauchy–Binet), so the gcd cannot change under equivalence, and for a diagonal matrix with a divisibility chain it is simply d1d2⋯dk.

Proof.

  • (a) If M=0, it is already of the stated form. So assume M≠0.

    For a non-zero N∈Mn(F[x]) put δ(N):=min{deg⁡nij:nij≠0}∈N, the least degree of a non-zero entry. Let S be the set of all non-zero matrices obtainable from M by finite sequences of elementary row and column operations over F[x]; it contains M. The set {δ(N):N∈S} is a non-empty subset of N, so it has a least element; fix N∈S with δ(N) least.

    Step 1. Put a least-degree entry in the corner, monic. Choose (i,j) with nij≠0 and deg⁡nij=δ(N). Swapping row i with row 1 and column j with column 1 (operations (E1)), and then scaling the new first row by the inverse of the leading coefficient of the corner entry (operation (E2)), we obtain a matrix in S whose (1,1)-entry f is monic of degree δ(N). These operations permute the entries and rescale some of them, so the new matrix still has least non-zero entry degree δ(N). Rename it N.

    Step 2. f divides every entry of the first row and the first column. Suppose f∤n1j for some j≥2. By Theorem 6.1.1, n1j=qf+r with r≠0 and deg⁡r<deg⁡f. Adding −q times column 1 to column j (operation (E3)) produces a matrix N′∈S whose (1,j)-entry is r≠0 with deg⁡r<deg⁡f=δ(N). Then δ(N′)<δ(N), contradicting the minimality of δ(N). Hence f∣n1j for every j, and the same argument with rows in place of columns gives f∣ni1 for every i.

    Step 3. Clear the first row and column. For j≥2 add −(n1j/f) times column 1 to column j; the multipliers are polynomials by Step 2, and after these operations the first row is (f,0,…,0) while the first column is unchanged. Then for i≥2 add −(ni1/f) times row 1 to row i; since the first row is now (f,0,…,0), this clears the first column and changes nothing else. The result is (f00M′)∈S,M′∈Mn−1(F[x]), and its least non-zero entry degree is still δ(N): it is ≥δ(N) by minimality, and f is an entry of degree δ(N).

    Step 4. f divides every entry of M′. Suppose f∤(M′)kl for some k,l. Add row k+1 to row 1. The new first row is (f,(M′)k1,…,(M′)k,n−1), so the (1,l+1)-entry of the resulting matrix N″∈S is (M′)kl, which is not divisible by f, while the (1,1)-entry is still f, monic of degree δ(N). By minimality δ(N″)=δ(N), so Step 2 applies to N″ and says that f divides every entry of the first row of N″ — a contradiction.

    Step 5. Induct on n. We prove (a) by induction on n. For n=1, scale the single entry to be monic (or leave it 0). For n≥2, Steps 1–4 give a sequence of operations taking M to f⊕M′ with f monic and f dividing every entry of M′. By the induction hypothesis there are operations taking M′ to D′=diag(d2,…,dn) with every di monic or zero and d2∣⋯∣dn; performing the corresponding operations on rows and columns 2,…,n of f⊕M′ takes it to f⊕D′=diag(f,d2,…,dn).

    It remains to see that f∣d2. By Proposition 10.7.2, D′=U′M′V′ for some U′,V′∈Mn−1(F[x]), so every entry of D′ is a sum of products uik′(M′)klvlj′ (Definition 0.9.9) and is therefore divisible by f, since every (M′)kl is. In particular f∣d2. Setting d1=f finishes the induction.

  • (b) Call a set I⊆[n] with |I|=k a k-set. For M∈Mn(F[x]) and 1≤k≤n define the k-th determinantal divisor Δk(M):=the monic generator of the ideal ⟨detMI,J:I,J k-sets⟩⊆F[x], and Δk(M):=0 if all the k×k minors of M vanish. This is well defined by Proposition 6.2.1 and Theorem 6.2.2: the ideal generated by the finitely many k×k minors is ⟨Δk(M)⟩ for exactly one monic Δk(M) unless the ideal is {0}. Equivalently, Δk(M) is the monic greatest common divisor of the k×k minors: it divides each of them, and every common divisor of them divides it (Theorem 6.2.3, extended from two polynomials to finitely many by the same ideal argument).

Claim 1. M≈M′ implies Δk(M)=Δk(M′) for every k.

Proof. Let M′=UMV with U,V invertible over F[x], and let I,J be k-sets. The submatrix of a product on rows I and columns J is the product of the submatrix of the left factor on rows I and all columns with the submatrix of the right factor on all rows and columns J (Definition 0.9.9, read off entry by entry). Applying this twice and then Theorem 7.7.2 over the commutative ring F[x] — legitimate by the remark after that theorem — to the k×n times n×k products involved, detMI,J′=∑SdetUI,Sdet(MV)S,J=∑S∑RdetUI,SdetMS,RdetVR,J, with S and R running over the k-sets. So every k×k minor of M′ is an F[x]-combination of k×k minors of M, hence lies in ⟨detMS,R⟩. Therefore Δk(M) divides every k×k minor of M′, and so Δk(M)∣Δk(M′). Exchanging the roles of M and M′ using M=U−1M′V−1 gives Δk(M′)∣Δk(M). Two monic polynomials dividing each other are equal (Proposition 6.1.2), and if one is 0 so is the other.

Claim 2. If D=diag(d1,…,dn) with d1∣d2∣⋯∣dn, then Δk(D)=d1d2⋯dk.

Proof. Let I,J be k-sets. If I≠J, pick i∈I∖J; row i of D has its only possibly non-zero entry in column i∉J, so the submatrix DI,J has a zero row and detDI,J=0. If I=J={i1<⋯<ik}, then DI,I=diag(di1,…,dik) and detDI,I=di1⋯dik (Theorem 7.4.6, valid over the commutative ring F[x] by the remark after it). Since ij≥j, the chain gives dj∣dij for each j, hence d1d2⋯dk∣di1di2⋯dik. So d1⋯dk divides every k×k minor of D, and it is itself the minor for I=J={1,…,k}. Hence the ideal generated by the k×k minors is ⟨d1⋯dk⟩. If d1⋯dk≠0 it is monic, being a product of monic polynomials, and equals Δk(D). If d1⋯dk=0, say dm=0 with m≤k, then for every k-set I we have ik≥k≥m, so dm∣dik forces dik=0 and the minor vanishes; thus Δk(D)=0=d1⋯dk.

Now let M≈diag(d1,…,dn) with the di as in (a). By Claims 1 and 2, Δk(M)=d1d2⋯dk(k=1,…,n), a quantity depending only on M. Reading this backwards recovers the di: first d1=Δ1(M); and for k≥2, if Δk−1(M)≠0 then dk=Δk(M)/Δk−1(M), while if Δk−1(M)=0 then d1⋯dk−1=0, so some dm=0 with m≤k−1, and the chain forces dk=0. Hence any second list (e1,…,en) as in (a) satisfies the same recipe and equals (d1,…,dn). This proves the theorem.

The proof is an algorithm, and it is the one to use by hand: hunt for the entry of least degree, divide, and repeat.

Algorithm. Smith normal form of M∈Mn(F[x]).

  1. If M=0, stop. Otherwise find a non-zero entry of least degree and move it to position (1,1) by a row and a column swap; scale row 1 so that the entry is monic. Call it f.
  2. For each other entry g in row 1 or column 1 with f∤g, replace g by its remainder on division by f (subtract a multiple of column 1, resp. row 1), move the remainder to the corner, and go back to step 1.
  3. When f divides all of row 1 and column 1, clear them. If some entry g of the remaining block is not divisible by f, add its row to row 1 and go back to step 2.
  4. Repeat on the remaining (n−1)×(n−1) block.
  5. Check the answer: Δk must equal d1⋯dk. In particular d1⋯dn is detM rescaled by a non-zero constant to be monic, and d1 is the monic gcd of the entries.

Quick check. Two polynomial matrices in M2(F[x]) have determinants x2 and x2, and in both the greatest common divisor of the four entries is 1. Are they equivalent over F[x]?

Solution. Yes. Here Δ1=1 (the gcd of the 1×1 minors, that is, of the entries) and Δ2 is the determinant rescaled to be monic, so Δ2=x2 for both. By Theorem 10.7.3 both have Smith normal form diag(1,x2), and since ≈ is an equivalence relation (Proposition 10.7.2 (a)) they are equivalent to each other. For 2×2 matrices the pair (Δ1,Δ2) is therefore a complete invariant.

Example (A Smith Normal Form Computed by Hand)

Let A=(21−212−211−1)∈M3(Q). Find the Smith normal form of xI−A over Q[x], naming every operation, and check the answer with determinantal divisors.

Solution. We have xI−A=(x−2−12−1x−22−1−1x+1).

Find the corner. The entries of least degree are the three entries equal to −1. Swap columns 1 and 2, then multiply the first row by −1: (−1x−22x−2−12−1−1x+1)⟶(1−(x−2)−2x−2−12−1−1x+1). The corner is now 1, which divides everything, so no division step is needed.

Clear the first column. Add −(x−2) times row 1 to row 2, and add row 1 to row 3. In row 2 this gives entries −1+(x−2)2=(x−1)(x−3) and 2+2(x−2)=2(x−1); in row 3 it gives −1−(x−2)=−(x−1) and x+1−2=x−1: (1−(x−2)−20(x−1)(x−3)2(x−1)0−(x−1)x−1).

Clear the first row. Add (x−2) times column 1 to column 2, and 2 times column 1 to column 3. Since the first column below the corner is zero, nothing else changes: (1000(x−1)(x−3)2(x−1)0−(x−1)x−1)=diag(1)⊕((x−1)(x−3)2(x−1)−(x−1)x−1). Every entry of the 2×2 block is divisible by 1, so we move on to the block.

The block. Its entries of least degree are the three of degree 1. Swap rows 2 and 3 and scale the new row 2 by −1, putting the monic x−1 in the corner of the block: (1000x−1−(x−1)0(x−1)(x−3)2(x−1)). Now x−1 divides every entry of its row and column. Add column 2 to column 3, which clears the block’s first row and turns the (3,3)-entry into 2(x−1)+(x−1)(x−3)=(x−1)(x−1): (1000x−100(x−1)(x−3)(x−1)2). Add −(x−3) times row 2 to row 3 to clear the block’s first column: D=diag(1, x−1, (x−1)2), and 1∣x−1∣(x−1)2, so this is the Smith normal form.

The check. The matrix xI−A has an entry −1, so Δ1=1. Its determinant is pA=(x−1)3 — expanding along the first row, (x−2)[(x−2)(x+1)+2]+[−(x+1)+2]+2[1+(x−2)]=(x−2)(x2−x)+(1−x)+2(x−1), which is (x−2)x(x−1)+(x−1)=(x−1)(x2−2x+1)=(x−1)3 — so Δ3=(x−1)3. For Δ2, the minor on rows {2,3} and columns {1,2} is det(−1x−2−1−1)=1+(x−2)=x−1, so Δ2∣x−1; and every 2×2 minor is divisible by x−1, as Claim 2 predicts from D. Hence Δ2=x−1, and (d1,d2,d3)=(Δ1, Δ2Δ1, Δ3Δ2)=(1, x−1, (x−1)2), in agreement. As a sanity check on A itself: A−I has rank 1, so gA(1)=2 and the Jordan form of A is J2(1)⊕J1(1) (Corollary 10.3.2).

10.7.4. Similarity read off from a polynomial matrix

We can now state the theorem that makes all of this useful. It converts a question about A and B — is there an invertible P∈Mn(F) with B=P−1AP? — into a question about the two polynomial matrices xI−A and xI−B, which the Smith algorithm answers by computation.

One direction is immediate. The other needs a tool: polynomial matrices can be divided by xI−A, with a constant remainder.

Lemma 10.7.4 (Division of a Polynomial Matrix by xI−A)

Let A∈Mn(F) and M∈Mn(F[x]). Then there are Q∈Mn(F[x]) and R∈Mn(F) with M=(xI−A)Q+R.

Idea. Write M as a polynomial ∑kMkxk with constant matrix coefficients. The scalar identity xk−ak=(x−a)(xk−1+⋯+ak−1) has a matrix version xkI−Ak=(xI−A)Sk, in which the second factor is a polynomial in x and A and so commutes with xI−A. Replacing each xkI by (xkI−Ak)+Ak puts a factor xI−A in front of everything except a constant matrix.

Proof. Collecting the coefficients of each power of x in the entries of M, write M=∑k=0mxkMk with M0,…,Mm∈Mn(F); note that xk is a scalar polynomial, so xkMk=Mkxk. For k≥1 put Sk:=∑j=0k−1xk−1−jAj∈Mn(F[x]),S0:=0. Expanding the product and telescoping, (xI−A)Sk=∑j=0k−1xk−jAj−∑j=0k−1xk−1−jAj+1=xkI−Ak for every k≥0. Therefore M=∑k=0m(xkI)Mk=∑k=0m(xkI−Ak)Mk+∑k=0mAkMk=(xI−A)∑k=0mSkMk⏟=Q+∑k=0mAkMk⏟=R, with Q∈Mn(F[x]) and R∈Mn(F), as claimed.

Theorem 10.7.5 (Similarity as Equivalence of xI−A and xI−B)

Let F be a field, n≥1 and A,B∈Mn(F). Then A∼Bover F⟺xI−A≈xI−Bover F[x].

Idea. (⇒) is a one-line computation: a constant invertible P is also an invertible polynomial matrix.

(⇐) is the substance, and the whole difficulty is that the matrices U,V witnessing the equivalence have polynomial entries, while we must produce a constant P. The trick is to divide U by xI−B and keep only the constant remainder P. Comparing degrees in the resulting identity shows that P alone already conjugates: P(xI−A)=(xI−B)P, that is, PA=BP. Running the same argument on the inverted relation produces a second constant P′ with P′B=AP′, and multiplying the two expressions for V−1 and V shows PP′=I, so P is invertible.

Proof. (⇒) Suppose B=P−1AP with P∈Mn(F) invertible. Then, inside Mn(F[x]), xI−B=P−1(xI)P−P−1AP=P−1(xI−A)P, and P−1,P∈Mn(F)⊆Mn(F[x]) have non-zero constant determinants, hence are invertible over F[x] (Proposition 10.7.1). So xI−A≈xI−B.

(⇐) Suppose (∗)xI−B=U(xI−A)V with U,V∈Mn(F[x]) invertible over F[x].

Step 1. Divide U by xI−B. By Lemma 10.7.4 there are Q∈Mn(F[x]) and P∈Mn(F) with U=(xI−B)Q+P. Substituting into (∗), xI−B=(xI−B)Q(xI−A)V+P(xI−A)V, so P(xI−A)V=(xI−B)[I−Q(xI−A)V]. Multiplying on the right by V−1 and putting S:=V−1−Q(xI−A)∈Mn(F[x]), we get (1)P(xI−A)=(xI−B)S.

Step 2. S is a constant matrix, and PA=BP. Suppose S≠0 and write S=∑k=0dxkSk with Sk∈Mn(F) and Sd≠0. The coefficient of xd+1 in (xI−B)S is Sd≠0, while the left-hand side of (1) is xP−PA, whose coefficients vanish beyond x1. Hence d+1≤1, that is d=0. So in every case S∈Mn(F). Comparing the coefficients of x1 in (1) gives P=S, and comparing the constant terms gives −PA=−BP. Therefore (2)PA=BP,equivalentlyP(xI−A)=(xI−B)P, the second form because P(xI−A)=xP−PA=xP−BP=(xI−B)P. Moreover S=P turns the definition of S into (3)V−1=P+Q(xI−A).

Step 3. The same argument, inverted. From (∗), xI−A=U−1(xI−B)V−1, which is (∗) with A,B interchanged and U,V replaced by the invertible polynomial matrices U−1,V−1. So Steps 1 and 2 apply and give Q′∈Mn(F[x]) and P′∈Mn(F) with (4)P′(xI−B)=(xI−A)P′andV=P′+Q′(xI−B).

Step 4. P is invertible. Multiplying (3) by (4), I=V−1V=[P+Q(xI−A)][P′+Q′(xI−B)]=PP′+PQ′(xI−B)+Q(xI−A)P′+Q(xI−A)Q′(xI−B). By the first identity in (4), (xI−A)P′=P′(xI−B), so the third summand is QP′(xI−B) and I−PP′=Y(xI−B),Y:=PQ′+QP′+Q(xI−A)Q′∈Mn(F[x]). If Y≠0, write Y=∑k=0exkYk with Ye≠0; the coefficient of xe+1 on the right is Ye≠0, while the left-hand side is constant. Hence Y=0 and PP′=I. By Theorem 3.4.5, P is invertible with P−1=P′.

Step 5. Conclude. By (2), PA=BP, so B=PAP−1 and A∼B. This proves the theorem.

Two by-products are worth recording. Whenever xI−B=U(xI−A)V with U,V invertible over F[x], taking determinants gives pB=(detU)(detV)pA with detU,detV non-zero constants (Proposition 10.7.1); both pA and pB are monic of degree n, so pA=pBand(detU)(detV)=1, which recovers the invariance of the characteristic polynomial. And, by Theorem 10.7.3, the test is now decidable by a finite computation in F[x]: reduce xI−A and xI−B to Smith normal form and compare.

Corollary 10.7.6 (The Smith Form of xI−A Carries the Invariant Factors)

Let A∈Mn(F) with invariant factors d1∣d2∣⋯∣dr as in Theorem 10.6.5. Then the Smith normal form of xI−A is diag(1,…,1⏟n−r,d1,d2,…,dr). In particular the invariant factors of A are exactly the non-constant diagonal entries of the Smith normal form of xI−A, read from the top down, and two matrices in Mn(F) are similar if and only if xI−A and xI−B have the same Smith normal form.

Proof. By Theorem 10.6.5, A∼C(d1)⊕⋯⊕C(dr) with di monic, deg⁡di=ki≥1 and ∑ki=n. By the (⇒) direction of Theorem 10.7.5 it is enough to find the Smith normal form of xIn−(C(d1)⊕⋯⊕C(dr))=(xIk1−C(d1))⊕⋯⊕(xIkr−C(dr)), the equality by Theorem 8.1.4 (a).

One block. Let d be monic of degree k≥1. By Definition 10.5.3, the only non-zero entries of xIk−C(d) are x on the diagonal (with x+ak−1 in the corner), −1 in each position (i+1,i), and the entries of the last column. Delete row 1 and column k. In the remaining (k−1)×(k−1) matrix, the entry in position (p,q) is the (p+1,q)-entry of xIk−C(d): it is −1 when q=p, it is x when q=p+1, and it is 0 when q<p. So that matrix is upper triangular with every diagonal entry −1, and its determinant is (−1)k−1≠0 by Theorem 7.4.6, again over F[x]. Hence Δk−1(xIk−C(d))=1. By Claim 2 in the proof of Theorem 10.7.3, the determinantal divisors of any matrix are the partial products d1⋯dj of its Smith diagonal, so Δj∣Δk−1=1 and therefore Δj=1 for every j≤k−1. Also Δk=det(xIk−C(d))=pC(d)=d by Theorem 10.5.3. By the uniqueness part of Theorem 10.7.3, the Smith normal form of xIk−C(d) is diag(1,…,1,d). (For k=1 read this as diag(d).)

Assembling. If Mi≈Mi′ with witnesses Ui,Vi, then ⨁iMi≈⨁iMi′ with witnesses ⨁iUi and ⨁iVi, which are invertible with inverses ⨁iUi−1, ⨁iVi−1 (Theorem 8.1.4 (a), (c)). So xIn−A is equivalent to the direct sum of the matrices diag(1,…,1,di), a diagonal matrix whose diagonal entries are n−r ones and the polynomials d1,…,dr. Simultaneous row and column swaps — each a pair of elementary operations — reorder these entries at will, so xIn−A is equivalent to diag(1,…,1,d1,d2,…,dr), and this is already in the shape required by Theorem 10.7.3 (a), because 1∣d1∣d2∣⋯∣dr and all the entries are monic. By uniqueness it is the Smith normal form of xI−A. The final claim combines this with Theorem 10.7.5 and the uniqueness in Theorem 10.7.3.

So the determinantal divisors of xI−A compute the invariant factors of A without any factorization of polynomials: Δk is a gcd, obtained from the Euclidean algorithm alone. Moreover Δn(xI−A)=pA and Δn/Δn−1=dr=mA.

10.7.5. Every matrix is similar to its transpose

Chapter 4 asked whether A and A⊤ are always similar and postponed the answer; Exercise (C1: A matrix is similar to its transpose) settled it whenever pA splits. The Smith form removes that hypothesis, because transposing a matrix does not change its minors.

Corollary 10.7.7 (A Matrix Is Similar to Its Transpose)

Let F be any field and A∈Mn(F). Then A∼A⊤.

Proof. Let M=xI−A, so that M⊤=xI−A⊤. For k-sets I,J we have (M⊤)I,J=(MJ,I)⊤ by Definition 0.9.10, so det(M⊤)I,J=detMJ,I by Theorem 7.4.5, valid over the commutative ring F[x]. Hence the k×k minors of M⊤ are exactly the k×k minors of M, listed in a different order, and Δk(xI−A⊤)=Δk(xI−A)(k=1,…,n). By Theorem 10.7.3, each of xI−A and xI−A⊤ is equivalent over F[x] to the diagonal matrix built from its own determinantal divisors, and these two diagonal matrices coincide. Since ≈ is an equivalence relation (Proposition 10.7.2 (a)), xI−A≈xI−A⊤. By Theorem 10.7.5, A∼A⊤.

Two sentences of consequence. An operator and its dual have the same invariants: by Theorem 5.4.2 the matrix of T′ in the dual basis is ([T]BB)⊤, so T and T′ share their characteristic polynomial, their minimal polynomial and their invariant factors. And a matrix and its transpose always have the same Jordan form when one exists, which says that the rows of A−λI are exactly as informative as its columns.

Warning. Similar is not the same as “equivalent over F[x]” for the matrices themselves. The theorem compares xI−A with xI−B, not A with B. As polynomial matrices, any two invertible A,B∈Mn(F) are equivalent over F[x] — take U=A−1, V=B — whether or not they are similar. The whole content of Theorem 10.7.5 is that inserting the variable x on the diagonal remembers the conjugation.

10.7.6. Exercises

A. Check your understanding

Exercise (A1)
  • (a) List the three elementary operations over F[x], and say which one differs from its counterpart over a field and why.
  • (b) State a criterion for a matrix U∈Mn(F[x]) to be invertible in Mn(F[x]).
  • (c) State the Smith Normal Form theorem, including the uniqueness clause.
  • (d) Define the k-th determinantal divisor of a polynomial matrix, and say why it is unchanged by equivalence.
  • (e) True or false: if det(xI−A)=det(xI−B), then xI−A≈xI−B. Justify your answer.
  • (f) How do you read mA off the Smith normal form of xI−A?

Solution.

  • (a) Swap two rows; multiply a row by a non-zero scalar of F; add a polynomial multiple of one row to a different row (Definition 10.7.1). The scaling operation is restricted, because only the non-zero constants are invertible in F[x]; multiplying a row by x is not reversible.

  • (b) U is invertible over F[x] if and only if detU is a non-zero constant (Proposition 10.7.1).

  • (c) Every M∈Mn(F[x]) is equivalent over F[x], by elementary operations, to a diagonal diag(d1,…,dn) with each di monic or zero and di∣di+1; this diagonal is unique (Theorem 10.7.3).

  • (d) Δk(M) is the monic generator of the ideal generated by all k×k minors of M, equivalently their monic gcd. It is unchanged by equivalence because every k×k minor of UMV is an F[x]-combination of k×k minors of M, by the Cauchy–Binet formula (Theorem 7.7.2; Claim 1 in the proof of Theorem 10.7.3).

  • (e) False. Equality of determinants says only Δn(xI−A)=Δn(xI−B); the lower determinantal divisors can differ. For A=J2(0)⊕J2(0) and B=J3(0)⊕J1(0) in M4(F), both determinants are x4, but the Smith normal forms are diag(1,1,x2,x2) and diag(1,1,x,x3). (Equivalently, the matrices are not similar, by Corollary 10.3.3.)

  • (f) mA is the last diagonal entry of the Smith normal form of xI−A, that is Δn/Δn−1=pA/Δn−1 (Corollary 10.7.6, since the last diagonal entry is dr=mA in the notation there).

B. Practice

Exercise (B1: Smith normal forms)

Find the Smith normal form over Q[x] of each of the following, naming the operations you use.

  • (a) M1=(xx+1x−1x).
  • (b) M2=(x2−100x2−x).
  • (c) M3=(x01−1x00−1x).

Solution.

  • (a) detM1=x2−(x+1)(x−1)=1, so M1 is invertible over Q[x] (Proposition 10.7.1) and Δ1=Δ2=1. The Smith normal form is diag(1,1)=I2. (Concretely: subtract column 1 from column 2 to get (x1x−11), then subtract row 1 from row 2, swap columns, and clear.)

  • (b) Here Δ1=gcd(x2−1,x2−x)=gcd((x−1)(x+1),x(x−1))=x−1 and Δ2=detM2=x(x−1)2(x+1). So the Smith normal form is diag(x−1, x(x−1)2(x+1)x−1)=diag(x−1, x(x−1)(x+1)), and indeed x−1 divides x(x−1)(x+1). By operations: add column 2 to column 1, giving first column (x2−1,x2−x); subtract row 1 from row 2 to get (x2−1,1−x) in column 1; the entry 1−x has least degree, so swap it into the corner, scale by −1, and continue.

  • (c) The 2×2 minor on rows {2,3} and columns {1,2} is det(−1x0−1)=1, so Δ2=1, and then Δ1=1 as well (it divides Δ2). Expanding detM3 along the first row, x(x2−0)+1⋅(1−0)=x3+1, so Δ3=x3+1 and the Smith normal form is diag(1,1,x3+1). Note M3=xI−C with C=(00−1100010)=C(x3+1), and Corollary 10.7.6 predicts exactly this, since a companion matrix has the single invariant factor x3+1.

Exercise (B2: Invariant factors from determinantal divisors)

For each matrix A, compute Δ1,…,Δn of xI−A, write down the Smith normal form, and read off the invariant factors, mA and the Jordan form.

  • (a) A=J2(0)⊕J2(0)∈M4(Q).
  • (b) A=J3(0)⊕J1(0)∈M4(Q).
  • (c) A=(3103)∈M2(Q).

Solution. One remark makes the minors easy. If M=M1⊕M2 with square blocks, and I,J are k-sets, split I=I1∪I2 and J=J1∪J2 according to the blocks. If |I1|≠|J1|, then MI,J has a zero row or a zero column and detMI,J=0; if |I1|=|J1|, then MI,J=(M1)I1,J1⊕(M2)I2,J2 and the determinant is the product of the two, by Theorem 7.8.4, whose proof uses only sums and products of entries and so applies over F[x] (the remark after that theorem). So the minors of a block diagonal matrix are the products of matching-size minors of the blocks. Here xI−A is the direct sum of the blocks xIk−Jk(0), each upper triangular with x on the diagonal and −1 on the superdiagonal.

  • (a) xI−A=N⊕N with N=(x−10x), whose minors are the entries x,−1,0 for k=1 and x2 for k=2. By the remark, the minors of N⊕N are {x,−1,0} for k=1; the products of two 1×1 minors together with x2 for k=2; x2 times a 1×1 minor for k=3; and x4 for k=4. Hence Δ1=1,Δ2=1  (from (−1)(−1)=1),Δ3=x2,Δ4=x4, so the Smith normal form is diag(1,1,x2,x2), the invariant factors are x2∣x2, mA=x2 is the last of them, and the Jordan form is J2(0)⊕J2(0).

  • (b) Now xI−A=N3⊕(x) with N3=(x−100x−100x). The minors of N3 are {x,−1,0} for k=1; {x2,−x,1,0} for k=2, the value 1 coming from rows {1,2} and columns {2,3}; and x3 for k=3. By the remark, the k×k minors of xI−A are those of N3 together with x times its (k−1)×(k−1) minors, so Δ1=1,Δ2=gcd(x2,−x,1,x⋅x,−x)=1,Δ3=gcd(x3, x⋅x2, −x⋅x, x⋅1)=x,Δ4=x4. The Smith normal form is diag(1,1,x,x3): the invariant factors are x∣x3, mA=x3 is the last of them, and the Jordan form is J3(0)⊕J1(0). Compared with (a) the determinants agree but Δ3 does not, which is exactly why the two matrices are not similar.

  • (c) xI−A=(x−3−10x−3). Then Δ1=1 and Δ2=(x−3)2, so the Smith normal form is diag(1,(x−3)2), the only invariant factor is (x−3)2=mA=pA, and the Jordan form is J2(3). Consistently, A is a companion matrix up to similarity, since mA=pA (Theorem 10.5.6).

Exercise (B3: Deciding similarity)

Determine whether each pair is similar over the stated field. Justify your answer using Theorem 10.7.5.

  • (a) A=(0−110) and B=(01−10) over Q.
  • (b) A=(21−212−211−1) and B=J2(1)⊕J1(1) over Q.
  • (c) A=(0−210) and B=(0−120) over Q.

Solution.

  • (a) Similar. Here B=A⊤, so Corollary 10.7.7 applies. (Explicitly, Δ1=1 and Δ2=x2+1 for both, so both Smith normal forms are diag(1,x2+1).)

  • (b) Similar. By Example (A Smith Normal Form Computed by Hand) the Smith normal form of xI−A is diag(1,x−1,(x−1)2). For B, xI−B=(x−1−10x−1)⊕(x−1). Its entry −1 gives Δ1=1. By the block-minor rule in the solution to Exercise (B2: Invariant factors from determinantal divisors), the 2×2 minors are (x−1)2, from the 2×2 block, together with the products of a 1×1 minor of each block, that is (x−1)2,−(x−1) and 0; so Δ2=x−1. Finally Δ3=det(xI−B)=(x−1)3. The Smith normal forms agree, so xI−A≈xI−B and A∼B.

  • (c) Similar. Here xI−A=(x2−1x),xI−B=(x1−2x), and each has an entry that is a non-zero constant, so Δ1=1 in both cases; and Δ2=det(xI−A)=x2+2=det(xI−B). So both Smith normal forms are diag(1,x2+2), hence xI−A≈xI−B and A∼B by Theorem 10.7.5. Note that x2+2 is irreducible over Q, so no Jordan form exists over Q and Exercise (C1: A matrix is similar to its transpose) would not have decided this pair. (Here B≠A⊤, so Corollary 10.7.7 does not apply directly; the Smith forms settle it anyway.)

C. Going deeper

Exercise (C1: The same algorithm over the integers)

The proof of Theorem 10.7.3 used only one property of F[x]: division with remainder, where the “size” of a non-zero element is its degree. The integers Z have the same property, with |a| in place of deg.

  • (a) State the version of Theorem 10.7.3 for M∈Mn(Z) that the same proof gives, saying what replaces “monic”.
  • (b) Compute the Smith normal form over Z of M=(2464), naming the operations.
  • (c) Every finite abelian group G with n generators is Zn modulo the column span of some M∈Mn(Z), the matrix of relations, exactly as V was F[x]n modulo the columns of xI−A. Using (b), identify the group with relation matrix M as a product of cyclic groups.

Hint: for (c), a diagonal relation matrix diag(d1,…,dn) presents the product of the cyclic groups Z/diZ.

Solution.

  • (a) Every M∈Mn(Z) can be brought by integer elementary operations — swap two rows or columns, multiply a row or column by ±1 (the units of Z), add an integer multiple of one row or column to another — to a diagonal matrix diag(d1,…,dn) with every di≥0 and di∣di+1, and this diagonal is unique. “Monic” is replaced by “non-negative”, which is the normalization available because the units of Z are ±1. Uniqueness again follows from the determinantal divisors Δk, now non-negative integer gcds of the k×k minors, using the Cauchy–Binet formula (Theorem 7.7.2, valid over any commutative ring by the remark after it) over the commutative ring Z.

  • (b) The least absolute value among the entries is 2, already in the corner. It divides 4 and 6. Subtract 2 times column 1 from column 2, and 3 times row 1 from row 2: (2464)⟶(206−8)⟶(200−8)⟶(2008), the last step multiplying row 2 by −1. Since 2∣8, the Smith normal form is diag(2,8). Check: Δ1=gcd(2,4,6,4)=2 and Δ2=|detM|=|8−24|=16=2⋅8.

  • (c) By (b) and the hint, the group is Z/2Z×Z/8Z, of order 16=|detM|. This is the structure theorem for finite abelian groups in miniature: the invariant divisors d1∣⋯∣dn of the relation matrix are the orders of the cyclic factors.

Exercise (C2: Uniqueness by hand in the smallest case)

Let M∈M2(F[x]) be non-zero.

  • (a) Prove directly, without using determinantal divisors, that Δ1(M) — the monic gcd of the four entries of M — is unchanged by each of the six elementary operations of Definition 10.7.1.
  • (b) Prove that det(UMV)=cdetM for a non-zero constant c whenever U,V are invertible over F[x].
  • (c) Deduce that if diag(d1,d2)≈diag(e1,e2) with all four entries monic or zero, d1∣d2 and e1∣e2, then d1=e1 and d2=e2.

Solution.

  • (a) Write d=Δ1(M), the monic gcd of the entries, that is, the monic generator of the ideal ⟨m11,m12,m21,m22⟩ (Theorem 6.2.2). A swap permutes the entries, so the ideal is unchanged. Scaling a row by c∈F∖{0} replaces two generators g by cg, and ⟨cg⟩=⟨g⟩ since c is a unit, so the ideal is unchanged. Adding h times row 1 to row 2 replaces m2j by m2j+hm1j, which lies in the old ideal; so the new ideal is contained in the old one, and the operation is reversed by adding −h times row 1 to row 2, which gives the reverse containment. The same three arguments apply to columns. Hence d is unchanged.

  • (b) By multiplicativity of the determinant over the commutative ring F[x] (Theorem 7.5.4 and the remark on commutative rings), det(UMV)=detU⋅detM⋅detV, and detU,detV are non-zero constants by Proposition 10.7.1. Take c=detUdetV.

  • (c) By Proposition 10.7.2 and (a), Δ1 is an invariant of equivalence as far as elementary operations go; and for a general equivalence M′=UMV the argument of (a) applies verbatim with the generators of the ideal replaced using mij′=∑k,luikmklvlj∈⟨mkl⟩, and symmetrically. For the two diagonal matrices, Δ1(diag(d1,d2))=gcd(d1,d2)=d1 since d1∣d2 and d1 is monic (or d1=d2=0); likewise Δ1(diag(e1,e2))=e1. Hence d1=e1. By (b), d1d2=ce1e2 for some non-zero constant c; if d1=e1≠0 then d2=ce2, and two monic polynomials (or two zeros) differing by a constant factor are equal, so d2=e2. If d1=e1=0, then d2=e2=0 by the divisibility chain.

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.