Content deleted Content added
Link suggestions feature: 3 links added. |
|||
(53 intermediate revisions by 43 users not shown) | |||
Line 1:
{{Short description|Matrix normal form}}
In [[mathematics]], the '''Smith normal form''' (sometimes abbreviated '''SNF'''<ref>{{cite journal|last=Stanley|first=Richard P.|authorlink=Richard P. Stanley|date=2016|title=Smith normal form in combinatorics|journal=[[Journal of Combinatorial Theory]] | series=Series A |volume=144|pages=476–495|doi=10.1016/j.jcta.2016.06.013|doi-access=free|arxiv=1602.00166|s2cid=14400632}}</ref>) is a [[Canonical form|normal form]] that can be defined for any [[matrix (mathematics)|matrix]] (not necessarily [[square matrix|square]]) with entries in a [[principal ideal ___domain]] (PID). The Smith normal form of a matrix is [[
==Definition==
Let
\begin{pmatrix}▼
0 &
▲0 & & & \cdots & & & 0
and the diagonal elements <math>\alpha_i</math> satisfy <math>\alpha_i \mid \alpha_{i+1}
: <math>\alpha_i = \frac{d_i(A)}{d_{i-1}(A)},</math>
where <math>d_i(A)</math> (called ''i''-th ''determinant divisor'') equals the [[greatest common divisor]] of the determinants of all <math>i\times i</math> [[
'''Example :''' For a <math>2\times2</math> matrix, <math>{\rm SNF}{a~~b\choose c~~d}
= {\rm diag}(d_1, d_2/d_1)</math> with <math>d_1 = \gcd(a,b,c,d)</math> and <math>d_2 = |ad-bc|</math>.
== Algorithm ==
For
To put a matrix into Smith normal form, one can repeatedly apply the following, where
===Step I: Choosing a pivot===
Choose
We wish to have <math>a_{t,j_t}\neq0</math>; if this is the case this step is complete, otherwise there is by assumption some
Our chosen pivot is now at position <math>(
===Step II: Improving the pivot===
Line 42 ⟶ 44:
</math>
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 <math>\alpha=a_{t,j_t}/\beta</math> and <math>\gamma=a_{k,j_t}/\beta</math> (which divisions are possible by the definition of β) one has
:<math>
Line 66 ⟶ 68:
.</math>
Now ''L'' can be obtained by fitting <math>L_0</math> 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'',''j''<sub>''t''</sub>) (and due to our choice of α and γ it also has an entry 0 at position (''k'',''j''<sub>''t''</sub>), which is useful though not essential for the algorithm). This new entry β divides the entry <math>a_{t,j_t}</math> that was there before, and so in particular <math>\delta(\beta) < \delta(a_{t,j_t})</math>; therefore repeating these steps must eventually terminate. One ends up with a matrix having an entry at position (''t'',''j''<sub>''t''</sub>) that divides all entries in column ''j''<sub>''t''</sub>.
===Step III: Eliminating entries===
Finally, adding appropriate multiples of row ''t'', it can be achieved that all entries in column ''j''<sub>''t''</sub> except for that at position (''t'',''j''<sub>''t''</sub>) 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'',''j''<sub>''t''</sub>) 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 <math>\delta(a_{t,j_t})</math>, and so the process must eventually stop after some number of iterations, leading to a matrix where the entry at position (''t'',''j''<sub>''t''</sub>) 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'',''j''<sub>''t''</sub>) 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===
Line 88 ⟶ 92:
== Applications ==
The Smith normal form is useful for computing the [[homology (mathematics)|homology]] of a [[chain complex]] when the chain modules of the chain complex are [[Finitely generated module|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
The Smith normal form is also used in [[control theory]] to compute [[transmission and blocking zeros]] of a [[transfer function matrix]].<ref>{{Cite book|title=Multivariable feedback design|last=Maciejowski|first=Jan M.|date=1989|publisher=Addison-Wesley|isbn=0201182432|___location=Wokingham, England|oclc=19456124}}</ref>
== Example ==
Line 97 ⟶ 103:
2 & 4 & 4 \\
-6 & 6 & 12 \\
10 &
\end{pmatrix}
</math>
Line 108 ⟶ 114:
2 & 0 & 0 \\
-6 & 18 & 24 \\
10 & -
\end{pmatrix}
\to
Line 114 ⟶ 120:
2 & 0 & 0 \\
0 & 18 & 24 \\
0 & -
\end{pmatrix}
</math>
Line 122 ⟶ 128:
\begin{pmatrix}
2 & 0 & 0 \\
0 &
0 & -
\end{pmatrix}
\to
\begin{pmatrix}
2 & 0 & 0 \\
0 &
0 &
\end{pmatrix}
</math>
Line 137 ⟶ 143:
\begin{pmatrix}
2 & 0 & 0 \\
0 &
0 & 0 &
\end{pmatrix}
</math>
Line 153:
\begin{pmatrix}
2 & 0 & 0 \\
0 &
0 & 0 &
\end{pmatrix}
</math>
and the invariant factors are 2,
== Run-time complexity ==
The Smith Normal Form of an ''N''-by-''N'' matrix ''A'' can be computed in time <math>O(\|A\| \log \|A\| N^4\log N)</math>.<ref>{{Cite web |title=Computation time of Smith normal form in Maple |url=https://mathoverflow.net/a/208106/34461 |access-date=2024-04-05 |website=MathOverflow |language=en}}</ref> If the matrix is [[Sparse matrix|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 (mathematics)|field]] <math>K</math> are [[similar (linear algebra)|similar]]. Specifically two matrices ''A'' and ''B'' are similar [[if and only if]] the [[characteristic matrix|characteristic matrices]] <math>xI-A</math> and <math>xI-B</math> have the same Smith normal form (working in the PID <math>K[x]</math>).
For example, with
:<math>\begin{align}
A & {} =\begin{bmatrix}
1 & 2 \\
Line 187 ⟶ 189:
0 & (x-1)(x-2)
\end{bmatrix}.
\end{align}</math>
''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.
Line 194 ⟶ 195:
== See also ==
* [[Canonical form]]
* [[Diophantine equation]]
* [[Elementary divisors]]
* [[
* [[Hermite normal form]]▼
* [[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 ==
* [http://huisman.perso.math.cnrs.fr/ens/m/s7/groupes_et_anneaux/smith.gif An animated example of computation of Smith normal form].
* [http://www.numbertheory.org/php/smith.html NumberTheory.org]
* {{WolframAlpha |id=SmithDecomposition|title=SmithDecomposition}}<ref>{{cite web|author=Wolfram Research|title=SmithDecomposition|year=2015|url=https://reference.wolfram.com/language/ref/SmithDecomposition.html|access-date={{date|06- March-2025}}|quote=<code>SmithDecomposition[''m'']</code> gives the Smith normal form decomposition of an integer matrix ''m''.}}</ref>
==References==
{{Reflist}}
* {{cite journal |last=Smith |first=Henry J. Stephen |authorlink=Henry John Stephen Smith |year=1861 |title=On systems of linear indeterminate equations and congruences |journal=[[Philosophical Transactions of the Royal Society of London|Phil. Trans. R. Soc. Lond.]] |volume=151 |issue=1 |pages=293–326 |
* K. R. Matthews, [http://www.numbertheory.org/courses/MP274/smith.pdf Smith normal form]. MP274: Linear Algebra, Lecture Notes, University of Queensland, 1991.▼
* {{PlanetMath |urlname=GausssAlgorithmForPrincipalIdealDomains |title=Smith normal form}}
* {{PlanetMath |urlname=ExampleOfSmithNormalForm |title=Example of Smith normal form}}
▲* K. R. Matthews, [http://www.numbertheory.org/courses/MP274/smith.pdf Smith normal form]. MP274: Linear Algebra, Lecture Notes, University of Queensland, 1991.
[[Category:Matrix theory]]
|