Smith normal form
In mathematics, the Smith normal form (sometimes abbreviated SNF ) is a normal form that can be defined for any matrix (not necessarily square) with entries in a principal ideal domain (PID).[src] 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.[src] In particular, the integers are a PID, so one can always calculate the Smith normal form of an integer matrix.[src] 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.[src] It is named after the Irish mathematician Henry John Stephen Smith.[src]
In mathematics, the Smith normal form (sometimes abbreviated SNF ) is a normal form that can be defined for any matrix (not necessarily square) with entries in a principal ideal domain (PID).[src] 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.[src] In particular, the integers are a PID, so one can always calculate the Smith normal form of an integer matrix.[src] 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.[src] It is named after the Irish mathematician Henry John Stephen Smith.[src] ==Definition== Let A be a nonzero m \times n matrix over a principal ideal domain R .[src] There exist invertible m \times m and n \times n -matrices S,T (with entries in R , and \det(S), \det(T) units in R ) such that the product SAT is \begin{pmatrix} \alpha_1 & 0 & 0 & \cdots & 0 & \cdots & 0 \\ 0 & \alpha_2 & 0 & & & & \\ 0 & 0 & \ddots & & \vdots & & \vdots\\ \vdots & & & \alpha_r & & & \\ 0 & & \cdots & & 0 & \cdots & 0 \\ \vdots & & & & \vdots & & \vdots \\ 0 & & \cdots & & 0 & \cdots & 0 \end{pmatrix}.[src] and the diagonal elements \alpha_i satisfy \alpha_i \mid \alpha_{i+1} for all 1 \le i .[src] This is the Smith normal form of the matrix A .[src] The elements \alpha_i are unique up to multiplication by a unit and are called the elementary divisors, invariants, or invariant factors.[src] They can be computed (up to multiplication by a unit) as \alpha_i = \frac{d_i(A)}{d_{i-1}(A)}, where d_i(A) (called i-th determinant divisor) equals the greatest common divisor of the determinants of all i\times i minors of the matrix A and d_0(A):=1 .[src] Example : For a 2\times2 matrix, {\rm SNF}{a~~b\choose c~~d} = {\rm diag}(d_1, d_2/d_1) with d_1 = \gcd(a,b,c,d) and d_2 = |ad-bc| .[src] The first goal is to find invertible square matrices S and T such that the product S A T is diagonal.[src] This is the hardest part of the algorithm.[src] Once diagonality is achieved, it becomes relatively easy to put the matrix into Smith normal form.[src] Phrased more abstractly, the goal is to show that, thinking of A as a map from R^n (the free R -module of rank n ) to R^m (the free R -module of rank m ), there are isomorphisms S:R^m \to R^m and T:R^n \to R^n such that S \cdot A \cdot T has the simple form of a diagonal matrix.[src] 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.[src] Since row operations are left-multiplications and column operations are right-multiplications, this preserves the invariant A'=S'\cdot A\cdot T' where A',S',T' denote current values and A denotes the original matrix; eventually the matrices in this invariant become diagonal.[src] Only invertible row and column operations are performed, which ensures that S and T remain invertible matrices.[src] For a \in R\setminus \{0\} , write \delta(a) for the number of prime factors of a (these exist and are unique since any PID is also a unique factorization domain).[src] In particular, R is also a Bézout domain, so it is a gcd domain and the gcd of any two elements a,b\in R satisfies a Bézout's identity \gcd(a,b) = ac + bd for some c,d \in R .[src] To put a matrix into Smith normal form, one can repeatedly apply the following, where the index t runs from 1 to m .[src] ===Step I: Choosing a pivot=== Choose j_t to be the smallest column index of A with a non-zero entry, starting the search at column index j_{t-1}+1 if t> 1 .[src] We wish to have a_{t,j_t}\neq0 ; if this is the case this step is complete, otherwise there is by assumption some k with a_{k,j_t} \neq 0 , and we can exchange rows t and k , thereby obtaining a_{t,j_t}\neq0 .[src] Our chosen pivot is now at position (t, j_t) .[src] ===Step II: Improving the pivot=== If there is an entry at position (k,j t ) such that a_{t,j_t} \nmid a_{k,j_t} , then, letting \beta =\gcd\left(a_{t,j_t}, a_{k,j_t}\right) , we know by the Bézout property that there exist σ, τ in R such that a_{t,j_t} \cdot \sigma + a_{k,j_t} \cdot \tau=\beta.[src] 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.[src] Explicitly, if σ and τ satisfy the above equation, then for \alpha=a_{t,j_t}/\beta and \gamma=a_{k,j_t}/\beta (which divisions are possible by the definition of β) one has \sigma\cdot \alpha + \tau \cdot \gamma=1, so that the matrix L_0= \begin{pmatrix} \sigma & \tau \\ -\gamma & \alpha \\ \end{pmatrix} is invertible, with inverse \begin{pmatrix} \alpha & -\tau \\ \gamma & \sigma \\ \end{pmatrix} .[src] Now L can be obtained by fitting L_0 into rows and columns t and k of the identity matrix.[src] By construction the matrix obtained after left-multiplying by L has entry β at position (t,j t ) (and due to our choice of α and γ it also has an entry 0 at position (k,j t ), which is useful though not essential for the algorithm).[src] This new entry β divides the entry a_{t,j_t} that was there before, and so in particular \delta(\beta) ; therefore repeating these steps must eventually terminate.[src] One ends up with a matrix having an entry at position (t,j t ) that divides all entries in column j t .[src] ===Step III: Eliminating entries=== Finally, adding appropriate multiples of row t, it can be achieved that all entries in column j t except for that at position (t,j t ) are zero.[src] This can be achieved by left-multiplication with an appropriate matrix.[src] However, to make the matrix fully diagonal we need to eliminate nonzero entries on the row of position (t,j t ) as well.[src] 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.[src] In general this will result in the zero entries from the prior application of Step III becoming nonzero again.[src] However, notice that each application of Step II for either rows or columns must continue to reduce the value of \delta(a_{t,j_t}) , and so the process must eventually stop after some number of iterations, leading to a matrix where the entry at position (t,j t ) is the only non-zero entry in both its row and column.[src] At this point, only the block of A to the lower right of (t,j t ) needs to be diagonalized, and conceptually the algorithm can be applied recursively, treating this block as a separate matrix.[src] In other words, we can increment t by one and go back to Step I.[src] ===Final step=== Applying the steps described above to the remaining non-zero columns of the resulting matrix (if any), we get an m \times n -matrix with column indices j_1 where r \le \min(m,n) .[src] The matrix entries (l,j_l) are non-zero, and every other entry is zero.[src] 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 \le i\le r .[src] For short, set \alpha_i for the element at position (i,i) .[src] The condition of divisibility of diagonal entries might not be satisfied.[src] For any index i for which \alpha_i\nmid\alpha_{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 \alpha_{i+1} in column i without disturbing the entry \alpha_i at position (i,i) , and then apply a row operation to make the entry at position (i,i) equal to \beta=\gcd(\alpha_i,\alpha_{i+1}) as in Step II; finally proceed as in Step III to make the matrix diagonal again.[src] Since the new entry at position (i+1,i+1) is a linear combination of the original \alpha_i,\alpha_{i+1} , it is divisible by β.[src] The value \delta(\alpha_1)+\cdots+\delta(\alpha_r) does not change by the above operation (it is δ of the determinant of the upper r\times r submatrix), whence that operation does diminish (by moving prime factors to the right) the value of \sum_{j=1}^r(r-j)\delta(\alpha_j).[src] So after finitely many applications of this operation no further application is possible, which means that we have obtained \alpha_1\mid\alpha_2\mid\cdots\mid\alpha_r as desired.[src] Since all row and column manipulations involved in the process are invertible, this shows that there exist invertible m \times m and n \times n -matrices S, T so that the product S A T satisfies the definition of a Smith normal form.[src] In particular, this shows that the Smith normal form exists, which was assumed without proof in the definition.[src] A & {} =\begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix}, & & \mbox{SNF}(xI-A) =\begin{bmatrix} 1 & 0 \\ 0 & (x-1)^2 \end{bmatrix} \\ B & {} =\begin{bmatrix} 3 & -4 \\ 1 & -1 \end{bmatrix}, & & \mbox{SNF}(xI-B) =\begin{bmatrix} 1 & 0 \\ 0 & (x-1)^2 \end{bmatrix} \\ C & {} =\begin{bmatrix} 1 & 0 \\ 1 & 2 \end{bmatrix}, & & \mbox{SNF}(xI-C) =\begin{bmatrix} 1 & 0 \\ 0 & (x-1)(x-2) \end{bmatrix}.[src] \end{align} 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.[src] ==References== Reprinted (pp.[src] 367–409) in The Collected Mathematical Papers of Henry John Stephen Smith, Vol.[src] I, edited by J.[src] W.[src] L.[src] Glaisher.[src] Oxford: Clarendon Press (1894), xcv+603 pp.[src] K.[src] R.[src] Matthews, Smith normal form.[src] MP274: Linear Algebra, Lecture Notes, University of Queensland, 1991.[src]
69 sentences · 69 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Smith normal form." encyclopegia.org, 2026, https://encyclopegia.org/wiki/smith-normal-form. Accessed 27 November 2026.
Chicago
"Smith normal form." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/smith-normal-form.
APA
encyclopegia.org. (2026). Smith normal form. Retrieved November 27, 2026, from https://encyclopegia.org/wiki/smith-normal-form
Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON