ArticleslgStudy

mathematics

Hermite normal form

Hermite normal form is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Hermite normal form rather than just read about it. In short: In linear algebra, the Hermite normal form is an analogue of reduced echelon form for matrices over the integers ℤ. Just as reduced echelon form can be used to solve problems about the solution to the linear system Ax=b where x∈ℝn, the Hermite normal form can solve problems about the solution to the linear system Ax=b where this time x is restricted to have integer coordinates only.

Key takeaways

  • Hermite normal form belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Hermite normal form to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Hermite normal form from memory before moving on to harder problems.

Reference excerpt

In linear algebra, the Hermite normal form is an analogue of reduced echelon form for matrices over the integers ℤ. Just as reduced echelon form can be used to solve problems about the solution to the linear system Ax=b where x∈ℝn, the Hermite normal form can solve problems about the solution to the linear system Ax=b where this time x is restricted to have integer coordinates only. Other applications of the Hermite normal form include integer programming, cryptography, and abstract algebra.

Definition Various authors may prefer to talk about Hermite normal form in either row-style or column-style. They are essentially the same up to transposition.

Row-style Hermite normal form A matrix A∈ℤm×n has a (row) Hermite normal form H if there is a square unimodular matrix U such that H=UA and:

H is upper triangular (that is, hij=0 for i>j), and any rows of zeros are located below any other row. The leading coefficient (the first nonzero entry from the left, also called the pivot) of a nonzero row is always strictly to the right of the leading coefficient of the row above it; moreover, it is positive. The elements below pivots are zero and elements above pivots are nonnegative and strictly smaller than the pivot. The third condition is not standard among authors, for example some sources force non-pivots to be nonpositive or place no sign restriction on them. However, these definitions are equivalent by using a different unimodular matrix U. A unimodular matrix is a square integer matrix whose determinant is 1 or −1 (and hence invertible). In fact, a unimodular matrix is invertible over the integers, as can be seen, for example, from Cramer's Rule.

Column-style Hermite normal form A matrix A∈ℤm×n has a (column) Hermite normal form H if there is a square unimodular matrix U where H=AU and H has the following restrictions:

H is lower triangular (hij=0 for i<j) and any columns of zeros are located on the right. The leading coefficient (the first nonzero entry from the top, also called the pivot) of a nonzero column is always strictly below of the leading coefficient of the column before it; moreover, it is positive. The elements to the right of pivots are zero and elements to the left of pivots are nonnegative and strictly smaller than the pivot. Note that the row-style definition has a unimodular matrix U multiplying A on the left (meaning U is acting on the rows of A), while the column-style definition has the unimodular matrix action on the columns of A. The two definitions of Hermite normal forms are simply transposes of each other.

Existence and uniqueness of the Hermite normal form Every full row rank m-by-n matrix A with integer entries has a unique m-by-n matrix H in Hermite normal form, such that H=UA for some square unimodular matrix U.

Examples In the examples below, H is the Hermite normal form of the matrix A, and U is a unimodular matrix such that UA = H. A=(331401000019160003)H=(30110100001910003)U=(1−30−10100001−50001) A=(236256168311)H=(1050−110328−20061−13)U=(9−515−2011−61) If A has only one row then either H = A or H = −A, depending on whether the single row of A has a positive or negative leading coefficient.

Algorithms There are many algorithms for computing the Hermite normal form, dating back to 1851. One such algorithm is described in. But only in 1979 an algorithm for computing the Hermite normal form that ran in strongly polynomial time was first developed; that is, the number of steps to compute the Hermite normal form is bounded above by a polynomial in the dimensions of the input matrix, and the space used by the algorithm (intermediate numbers) is bounded by a polynomial in the binary encoding size of the numbers in the input matrix. One class of algorithms is based on Gaussian elimination in that special elementary matrices are repeatedly used. The LLL algorithm can also be used to efficiently compute the Hermite normal form.

Applications

Lattice calculations A typical lattice in Rn has the form L={∑i=1nαi𝐚i|αi∈𝐙} where the ai are in Rn. If the columns of a matrix A are the ai, the lattice can be associated with the columns of a matrix, and A is said to be a basis of L. Because the Hermite normal form is unique, it can be used to answer many questions about two lattice descriptions. For what follows, LA denotes the lattice generated by the columns of A. Because the basis is in the columns of the matrix A, the column-style Hermite normal form must be used. Given two bases for a lattice, A and A', the equivalence problem is to decide if LA=LA′. This can be done by checking if the column-style Hermite normal form of A and A' are the same up to the addition of zero columns. This strategy is also useful for deciding if a lattice is a subset (LA⊆LA′ if and only if L[A∣A′]=LA′), deciding if a vector v is in a lattice (v∈LA if and only if L[v∣A]=LA), and for other calculations.

Integer solutions to linear systems The linear system Ax = b has an integer solution x if and only if the system Hy = b has an integer solution y where y = U−1x and H is the column-style Hermite normal form of A. Checking that Hy = b has an integer solution is easier than Ax = b because the matrix H is triangular.

Implementations Many mathematical software packages can compute the Hermite normal form:

Maple with HermiteForm MATLAB with hermiteForm NTL with HNF PARI/GP with mathnf SageMath with hermite_form "HermiteDecomposition". Wolfram Alpha Site.

Over an arbitrary Dedekind domain Hermite normal form can be defined when we replace Z by an arbitrary Dedekind domain. (for instance, any principal-ideal domain). For instance, in control theory it can be useful to consider Hermite normal form for the polynomials F[x] over a given field F.

See also Hermite ring Smith normal form Howell normal form Diophantine equation

References

Worked examples

Example 1 — a first encounter with Hermite normal form

Start with the simplest possible case. Write down what Hermite normal form claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Hermite normal form before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Hermite normal form ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Hermite normal form

In research
Hermite normal form appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Hermite normal form in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Hermite normal form is common in secondary-school and first-year university syllabi. It links to neighbouring topics Linear algebra, Matrix normal forms, so understanding it makes those chapters shorter.
In everyday life
Look for Hermite normal form outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Hermite normal form” →

How to study Hermite normal form in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Hermite normal form means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Hermite normal form out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Hermite normal form in simple terms?

In linear algebra, the Hermite normal form is an analogue of reduced echelon form for matrices over the integers ℤ. Just as reduced echelon form can be used to solve problems about the solution to the linear system Ax=b where x∈ℝn, the Hermite normal form can solve problems about the solution to th…

Why does Hermite normal form matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Hermite normal form?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Hermite normal form.

Tags

  • Linear algebra
  • Matrix normal forms

Keep exploring