Unimodular Matrix — Definition, Formula & Example
A unimodular matrix is a square matrix whose entries are all integers and whose determinant is exactly 1 or −1. Because of this, you can undo it with another integer matrix, with no fractions anywhere.
An matrix is unimodular if and . Equivalently, is invertible and . The two conditions match because , and the only integers whose product is 1 are and . The unimodular matrices form the group . Some texts reserve the word for only, which is the subgroup .
Key Formula
Where:
- = a square matrix with integer entries
- = the determinant of A, which must equal 1 or −1
- = the adjugate of A, the transpose of its cofactor matrix. Its entries are integers whenever A has integer entries.
Worked Example
Problem: Show that is unimodular. Then use its inverse to solve .
Step 1: All entries are integers. Compute the determinant.
Step 2: Since , the inverse equals the adjugate. For a 2×2 matrix, swap the diagonal entries and negate the off-diagonal ones. Every entry is an integer.
Step 3: Multiply by the integer right-hand side. The solution comes out in integers automatically.
Answer: is unimodular because , and . The solution is , . Check: and .
Why It Matters
In number theory and cryptography, two bases describe the same lattice exactly when a unimodular matrix converts one into the other. Lattice-reduction algorithms such as LLL depend on this fact. Unimodular row and column operations also produce the Hermite and Smith normal forms, which are the standard tools for solving systems of linear Diophantine equations.
Common Mistakes
Mistake: Calling any matrix with determinant ±1 unimodular, such as .
Correction: The entries must be integers as well. This matrix has determinant 1, but its inverse contains a fraction, so it is not unimodular. Also, do not confuse this term with a totally unimodular matrix. That stronger condition requires every square submatrix to have determinant 0, 1, or −1.
