ArticleslgStudy

mathematics

Hadamard matrix

Hadamard matrix 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 Hadamard matrix rather than just read about it. In short: In mathematics, a Hadamard matrix, named after the French mathematician Jacques Hadamard, is a square matrix whose entries are either +1 or −1 and whose rows are mutually orthogonal. In geometric terms, this means that each pair of rows in a Hadamard matrix represents two perpendicular vectors, while in combinatorial terms, it means that each pair of rows has matching entries in exactly half of their columns and mis…

Hadamard matrix — main illustration
Hadamard matrix — illustration

Key takeaways

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

Reference excerpt

In mathematics, a Hadamard matrix, named after the French mathematician Jacques Hadamard, is a square matrix whose entries are either +1 or −1 and whose rows are mutually orthogonal. In geometric terms, this means that each pair of rows in a Hadamard matrix represents two perpendicular vectors, while in combinatorial terms, it means that each pair of rows has matching entries in exactly half of their columns and mismatched entries in the remaining columns. It is a consequence of this definition that the corresponding properties hold for columns as well as rows. The n-dimensional parallelotope spanned by the rows of an n × n Hadamard matrix has the maximum possible n-dimensional volume among parallelotopes spanned by vectors whose entries are bounded in absolute value by 1. Equivalently, a Hadamard matrix has maximal determinant among matrices with entries of absolute value less than or equal to 1 and so is an extremal solution of Hadamard's maximal determinant problem. Certain Hadamard matrices can almost directly be used as an error-correcting code using a Hadamard code (generalized in Reed–Muller codes), and are also used in balanced repeated replication (BRR), used by statisticians to estimate the variance of a parameter estimator.

Properties Let H be a Hadamard matrix of order n. The transpose of H is closely related to its inverse. In fact:

HH𝖳=nIn where In is the n × n identity matrix and HT is the transpose of H. To see that this is true, notice that the rows of H are all orthogonal vectors over the field of real numbers and each have length n. Dividing H through by this length gives an orthogonal matrix whose transpose is thus its inverse:

1nH𝖳=nH−1 Multiplying by the length again gives the equality above. As a result,

det⁡(H)=±nn/2, where det(H) is the determinant of H. Suppose that M is a complex matrix of order n, whose entries are bounded by |Mij| ≤ 1, for each i, j between 1 and n. Then Hadamard's determinant bound states that

|det⁡(M)|≤nn/2. Equality in this bound is attained for a real matrix M if and only if M is a Hadamard matrix. The order of a Hadamard matrix must be 1, 2, or a multiple of 4.

Proof The proof of the nonexistence of Hadamard matrices with dimensions other than 1, 2, or a multiple of 4 follows: If n>1, then there is at least one scalar product of 2 rows which has to be 0. The scalar product is a sum of n values each of which is either 1 or −1, therefore the sum is odd for odd n, so n must be even. If n=4m+2 with m≥1, and there exists an n×n Hadamard matrix H=(hi,j)i,j∈{0,1,...,n−1}, then it has the property that for any k≠l:

∑i=0n−1hk,ihl,i=0 Now we define the matrix A=(ai,j)i,j∈{0,1,...,n−1} by setting ai,j=h0,jhi,j. Note that A has all 1s in row 0. We check that A is also a Hadamard matrix:

∑i=0n−1ak,ial,i=∑i=0n−1h0,ihk,ih0,ihl,i=∑i=0n−1h0,i2hk,ihl,i=∑i=0n−1hk,ihl,i=0. Row 1 and row 2, like all other rows except row 0, must have n/2 entries of 1 and n/2 entries of −1 each. (*) Let α denote the number of 1s of row 2 beneath 1s in row 1. Let β denote the number of −1s of row 2 beneath 1s in row 1. Let γ denote the number of 1s of row 2 beneath −1s in row 1. Let δ denote the number of −1s of row 2 beneath −1s in row 1. Row 2 has to be orthogonal to row 1, so the number of products of entries of the rows resulting in 1, α+δ, has to match those resulting in −1, β+γ. Due to (*), we also have n/2=α+γ=β+δ, from which we can express γ=n/2−α and δ=n/2−β and substitute:

α+δ=β+γ α+n2−β=β+n2−α α−β=β−α α=β But we have as the number of 1s in row 1 the odd number n/2=α+β, contradiction.

Sylvester's construction Examples of Hadamard matrices were actually first constructed by James Joseph Sylvester in 1867. Let H be a Hadamard matrix of order n. Then the partitioned matrix

[HHH−H] is a Hadamard matrix of order 2n. This observation can be applied repeatedly and leads to the following sequence of matrices, also called Walsh matrices.

H1=[1],H2=[111−1],H4=[11111−11−111−1−11−1−11], and

H2k=[H2k−1H2k−1H2k−1−H2k−1]=H2⊗H2k−1, for 2≤k∈N, where ⊗ denotes the Kronecker product. In this manner, Sylvester constructed Hadamard matrices of order 2k for every non-negative integer k. Sylvester's matrices have a number of special properties. They are symmetric and, when k ≥ 1 (2k > 1), have trace zero. The elements in the first column and the first row are all positive. The elements in all the other rows and columns are evenly divided between positive and negative. Sylvester matrices are closely connected with Walsh functions.

Alternative construction If we map the elements of the Hadamard matrix using the group homomorphism ({1,−1},×)→({0,1},+), where ({0,1},+) is the additive group of the field GF(2) with two elements, we can describe an alternative construction of Sylvester's Hadamard matrix. First consider the matrix Fn, the n×2n matrix whose columns consist of all n-bit numbers arranged in ascending counting order. We may define Fn recursively by

F1=[01]Fn=[Fn−1Fn−101×2n−111×2n−1]. It can be shown by mathematical induction that the image of the Hadamard matrix under the above homomorphism is given by

H2n↦Fn𝖳Fn, where the matrix arithmetic is done over GF(2). This construction demonstrates that the rows of the Hadamard matrix H2n can be viewed as a length 2n linear error-correcting code of rank n, and minimum distance 2n−1 with generating matrix Fn. This code is also referred to as a Walsh code. The Hadamard code, by contrast, is constructed from the Hadamard matrix H2n by a slightly different procedure.

Hadamard conjecture

… excerpt ends here. Continue reading the full article.

Illustrations

Hadamard matrix: Gilbert Strang explains the Hadamard conjecture at MIT in 2005, using Sylvester's construction.
Gilbert Strang explains the Hadamard conjecture at MIT in 2005, using Sylvester's construction.
Hadamard matrix: Binary Hadamard matrix as a matrix product.
The binary matrix (white 0, red 1) is the result with operations in F2. The gray numbers show the result with operations in ℕ.
Binary Hadamard matrix as a matrix product. The binary matrix (white 0, red 1) is the result with operations in F2. The gray numbers show the result with operations in ℕ.

Worked examples

Example 1 — a first encounter with Hadamard matrix

Start with the simplest possible case. Write down what Hadamard matrix 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 Hadamard matrix 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 Hadamard matrix 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 Hadamard matrix

In research
Hadamard matrix 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 Hadamard matrix 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
Hadamard matrix is common in secondary-school and first-year university syllabi. It links to neighbouring topics Combinatorial design, Matrices (mathematics), Unsolved problems in mathematics, so understanding it makes those chapters shorter.
In everyday life
Look for Hadamard matrix 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 “Hadamard matrix” →

How to study Hadamard matrix in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Hadamard matrix 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 Hadamard matrix out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Hadamard matrix in simple terms?

In mathematics, a Hadamard matrix, named after the French mathematician Jacques Hadamard, is a square matrix whose entries are either +1 or −1 and whose rows are mutually orthogonal. In geometric terms, this means that each pair of rows in a Hadamard matrix represents two perpendicular vectors, whi…

Why does Hadamard matrix 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 Hadamard matrix?

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 Hadamard matrix.

Tags

  • Combinatorial design
  • Matrices (mathematics)
  • Unsolved problems in mathematics

Keep exploring