Smith normal form

Short description: Matrix normal form

In mathematics, the Smith normal form (sometimes abbreviated SNF[1]) is a normal form that can be defined for any matrix (not necessarily square) with entries in a principal ideal domain (PID). The Smith normal form of a matrix is diagonal, and can be obtained from the original matrix by multiplying on the left and right by invertible square matrices. In particular, the integers are a PID, so one can always calculate the Smith normal form of an integer matrix. The Smith normal form is very useful for working with finitely generated modules over a PID, and in particular for deducing the structure of a quotient of a free module. It is named after the Irish mathematician Henry John Stephen Smith.[2][3]

## Contents

* 1 Definition
* 2 Algorithm
* 2.1 Step I: Choosing a pivot
* 2.2 Step II: Improving the pivot
* 2.3 Step III: Eliminating entries
* 2.4 Final step
* 3 Applications
* 4 Example
* 5 Run-time complexity
* 6 Similarity
* 7 See also
* 8 External links
* 9 References

## Definition

Let A be a nonzero m×n matrix over a principal ideal domain R. There exist invertible m×m and n×n-matrices S,T (with entries in R, and det⁡(S),det⁡(T) units in R) such that the product SAT is

(α100⋯0⋯00α2000⋱⋮⋮⋮αr0⋯0⋯0⋮⋮⋮0⋯0⋯0).

and the diagonal elements αi satisfy αi∣αi+1 for all 1≤i<r. This is the Smith normal form of the matrix A. The elements αi are unique up to multiplication by a unit and are called the elementary divisors, invariants, or invariant factors. They can be computed (up to multiplication by a unit) as

αi=di(A)di−1(A),

where di(A) (called i-th determinant divisor) equals the greatest common divisor of the determinants of all i×i minors of the matrix A and d0(A):=1.

Example : For a 2×2 matrix, SNF(abcd)=diag(d1,d2/d1) with d1=gcd⁡(a,b,c,d) and d2=|ad−bc|.

## Algorithm

The first goal is to find invertible square matrices S and T such that the product SAT is diagonal. This is the hardest part of the algorithm. Once diagonality is achieved, it becomes relatively easy to put the matrix into Smith normal form. Phrased more abstractly, the goal is to show that, thinking of A as a map from Rn (the free R-module of rank n) to Rm (the free R-module of rank m), there are isomorphisms S:Rm->Rm and T:Rn->Rn such that S⋅A⋅T has the simple form of a diagonal matrix. The matrices S and T can be found by starting out with identity matrices of the appropriate size, and modifying S each time a row operation is performed on A in the algorithm by the corresponding column operation (for example, if row i is added to row j of A, then column j should be subtracted from column i of S to retain the product invariant), and similarly modifying T for each column operation performed. Since row operations are left-multiplications and column operations are right-multiplications, this preserves the invariant A′=S′⋅A⋅T′ where A′,S′,T′ denote current values and A denotes the original matrix; eventually the matrices in this invariant become diagonal. Only invertible row and column operations are performed, which ensures that S and T remain invertible matrices.

For a∈R∖{0}, write δ(a) for the number of prime factors of a (these exist and are unique since any PID is also a unique factorization domain). In particular, R is also a Bézout domain, so it is a gcd domain and the gcd of any two elements a,b∈R satisfies a Bézout's identity gcd⁡(a,b)=ac+bd for some c,d∈R.

To put a matrix into Smith normal form, one can repeatedly apply the following, where the index t runs from 1 to m.

### Step I: Choosing a pivot

Choose jt to be the smallest column index of A with a non-zero entry, starting the search at column index jt−1+1 if t>1.

We wish to have at,jt≠0; if this is the case this step is complete, otherwise there is by assumption some k with ak,jt≠0, and we can exchange rows t and k, thereby obtaining at,jt≠0.

Our chosen pivot is now at position (t,jt).

### Step II: Improving the pivot

If there is an entry at position (k,jt) such that at,jt∤ak,jt, then, letting β=gcd⁡(at,jt,ak,jt), we know by the Bézout property that there exist σ, τ in R such that

at,jt⋅σ+ak,jt⋅τ=β.

By left-multiplication with an appropriate invertible matrix L, it can be achieved that row t of the matrix product is the sum of σ times the original row t and τ times the original row k, that row k of the product is another linear combination of those original rows, and that all other rows are unchanged. Explicitly, if σ and τ satisfy the above equation, then for α=at,jt/β and γ=ak,jt/β (which divisions are possible by the definition of β) one has

σ⋅α+τ⋅γ=1,

so that the matrix

L0=(στ−γα)

is invertible, with inverse

(α−τγσ).

Now L can be obtained by fitting L0 into rows and columns t and k of the identity matrix. By construction the matrix obtained after left-multiplying by L has entry β at position (t,jt) (and due to our choice of α and γ it also has an entry 0 at position (k,jt), which is useful though not essential for the algorithm). This new entry β divides the entry at,jt that was there before, and so in particular δ(β)<δ(at,jt); therefore repeating these steps must eventually terminate. One ends up with a matrix having an entry at position (t,jt) that divides all entries in column jt.

### Step III: Eliminating entries

Finally, adding appropriate multiples of row t, it can be achieved that all entries in column jt except for that at position (t,jt) are zero. This can be achieved by left-multiplication with an appropriate matrix. However, to make the matrix fully diagonal we need to eliminate nonzero entries on the row of position (t,jt) as well. This can be achieved by repeating the steps in Step II for columns instead of rows, and using multiplication on the right by the transpose of the obtained matrix L. In general this will result in the zero entries from the prior application of Step III becoming nonzero again.

However, notice that each application of Step II for either rows or columns must continue to reduce the value of δ(at,jt), and so the process must eventually stop after some number of iterations, leading to a matrix where the entry at position (t,jt) is the only non-zero entry in both its row and column.

At this point, only the block of A to the lower right of (t,jt) needs to be diagonalized, and conceptually the algorithm can be applied recursively, treating this block as a separate matrix. In other words, we can increment t by one and go back to Step I.

### Final step

Applying the steps described above to the remaining non-zero columns of the resulting matrix (if any), we get an m×n-matrix with column indices j1<…<jr where r≤min⁡(m,n). The matrix entries (l,jl) are non-zero, and every other entry is zero.

Now we can move the null columns of this matrix to the right, so that the nonzero entries are on positions (i,i) for 1≤i≤r. For short, set αi for the element at position (i,i).

The condition of divisibility of diagonal entries might not be satisfied. For any index i<r for which αi∤αi+1, one can repair this shortcoming by operations on rows and columns i and i+1 only: first add column i+1 to column i to get an entry αi+1 in column i without disturbing the entry αi at position (i,i), and then apply a row operation to make the entry at position (i,i) equal to β=gcd⁡(αi,αi+1) as in Step II; finally proceed as in Step III to make the matrix diagonal again. Since the new entry at position (i+1,i+1) is a linear combination of the original αi,αi+1, it is divisible by β.

The value δ(α1)+⋯+δ(αr) does not change by the above operation (it is δ of the determinant of the upper r×r submatrix), whence that operation does diminish (by moving prime factors to the right) the value of

∑j=1r(r−j)δ(αj).

So after finitely many applications of this operation no further application is possible, which means that we have obtained α1∣α2∣⋯∣αr as desired.

Since all row and column manipulations involved in the process are invertible, this shows that there exist invertible m×m and n×n-matrices S, T so that the product S A T satisfies the definition of a Smith normal form. In particular, this shows that the Smith normal form exists, which was assumed without proof in the definition.

## Applications

The Smith normal form is useful for computing the homology of a chain complex when the chain modules of the chain complex are finitely generated. For instance, in topology, it can be used to compute the homology of a finite simplicial complex or CW complex over the integers, because the boundary maps in such a complex are just integer matrices. It can also be used to determine the invariant factors that occur in the structure theorem for finitely generated modules over a principal ideal domain, which includes the fundamental theorem of finitely generated abelian groups.

The Smith normal form is also used in control theory to compute transmission and blocking zeros of a transfer function matrix.[4]

## Example

As an example, we will find the Smith normal form of the following matrix over the integers.

(244−661210416)

The following matrices are the intermediate steps as the algorithm is applied to the above matrix.

->(200−6182410−16−4)->(200018240−16−4)

->(20002200−16−4)->(200022000156)

->(20002000156)

So the Smith normal form is

(20002000156)

and the invariant factors are 2, 2 and 156.

## Run-time complexity

The Smith Normal Form of an N-by-N matrix A can be computed in time O(‖A‖log⁡‖A‖N4log⁡N).[5] If the matrix is sparse, the computation is typically much faster.

## Similarity

The Smith normal form can be used to determine whether or not matrices with entries over a common field K are similar. Specifically two matrices A and B are similar if and only if the characteristic matrices xI−A and xI−B have the same Smith normal form (working in the PID K[x]).

For example, with

A=[1201],SNF(xI−A)=[100(x−1)2]B=[3−41−1],SNF(xI−B)=[100(x−1)2]C=[1012],SNF(xI−C)=[100(x−1)(x−2)].

A and B are similar because the Smith normal form of their characteristic matrices match, but are not similar to C because the Smith normal form of the characteristic matrices do not match.

## See also

* Canonical form
* Diophantine equation
* Elementary divisors
* Invariant factors
* Structure theorem for finitely generated modules over a principal ideal domain
* Frobenius normal form (also called rational canonical form)
* Hermite normal form
* Singular value decomposition

## External links

* An animated example of computation of Smith normal form.
* NumberTheory.org
* Template:WolframAlpha[6]

## References

1. ↑ Stanley, Richard P. (2016). "Smith normal form in combinatorics". Journal of Combinatorial Theory. Series A 144: 476–495. doi:10.1016/j.jcta.2016.06.013.
2. ↑ Lazebnik, F. (1996). On systems of linear diophantine equations. Mathematics Magazine, 69(4), 261-266.
3. ↑ Smith, H. J. S. (1861). Xv. on systems of linear indeterminate equations and congruences. Philosophical transactions of the royal society of london, (151), 293-326.
4. ↑ Maciejowski, Jan M. (1989). Multivariable feedback design. Wokingham, England: Addison-Wesley. ISBN 0201182432. OCLC 19456124.
5. ↑ "Computation time of Smith normal form in Maple" (in en). https://mathoverflow.net/a/208106/34461.
6. ↑ Wolfram Research (2015). "SmithDecomposition". https://reference.wolfram.com/language/ref/SmithDecomposition.html. "`SmithDecomposition[m]` gives the Smith normal form decomposition of an integer matrix m."

* Smith, Henry J. Stephen (1861). "On systems of linear indeterminate equations and congruences". Phil. Trans. R. Soc. Lond. 151 (1): 293–326. doi:10.1098/rstl.1861.0016. Reprinted (pp. 367–409) in The Collected Mathematical Papers of Henry John Stephen Smith, Vol. I, edited by J. W. L. Glaisher. Oxford: Clarendon Press (1894), xcv+603 pp.
* K. R. Matthews, Smith normal form. MP274: Linear Algebra, Lecture Notes, University of Queensland, 1991.

* Smith normal form at PlanetMath.org.
* Example of Smith normal form at PlanetMath.org.

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Smith normal form. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Smith_normal_form&oldid=4296542"