taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Exercise · Volume 1 · 1.2.3-46

Exercise 1.2.3-46

not stated yet in Lean solution written

RatingM30
MarkersM (mathematical), recommended
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.3 of Volume 1. Companion chapter: Sums and products

The task

Prove the Binet and Cauchy identity: the determinant of the m×mm \times m product ABAB equals the sum, over all increasing choices of mm indices, of the products of the matching m×mm \times m minors of AA (columns) and BB (rows).

The exact wording is in your copy of the book.

Hints

Open one hint at a time. Try the exercise again after each.

Hint 1

Write det⁡(AB)\det(AB) as a sum over permutations, and write each entry of ABAB as a sum over an inner index.

Hint 2

Expand the product of mm sums as in Exercise 1.2.3-32. The sum is now over all mm-tuples of inner indices, and the factor that holds BB is a determinant.

Hint 3

A determinant with two equal rows is 00. A tuple of distinct indices is an increasing tuple with its entries permuted. Collect the m!m! tuples of each increasing tuple.

Solution

Show the solution

Plan. Expand det⁡(AB)\det(AB) into a sum over mm-tuples (j1,…,jm)(j_1, \ldots, j_m) of inner indices, recognise a determinant of BB in each term, drop the tuples with a repeated index, and group the others by their sorted form.

Let aija_{ij} and bjlb_{jl} be the entries, so (AB)il=∑j=1naijbjl(AB)_{il} = \sum_{j=1}^n a_{ij} b_{jl}. For a permutation σ\sigma of {1,…,m}\{1, \ldots, m\} let sgn⁡σ\operatorname{sgn}\sigma be its sign. Then det⁡(AB)=∑σsgn⁡σ∏i=1m∑j=1naijbj,σ(i).\det(AB) = \sum_\sigma \operatorname{sgn}\sigma \prod_{i=1}^m \sum_{j=1}^n a_{ij} b_{j,\sigma(i)}. By Exercise 1.2.3-32 the product of the mm sums is a sum over all tuples 𝐣=(j1,…,jm)\mathbf{j} = (j_1, \ldots, j_m) with 1≤ji≤n1 \le j_i \le n: ∏i=1m∑j=1naijbj,σ(i)=∑𝐣∏i=1maiji bji,σ(i).\prod_{i=1}^m \sum_{j=1}^n a_{ij} b_{j,\sigma(i)} = \sum_{\mathbf{j}} \prod_{i=1}^m a_{i j_i}\, b_{j_i,\sigma(i)}. Exchange the sums over σ\sigma and 𝐣\mathbf{j} (rule (c)) and take ∏iaiji\prod_i a_{i j_i} out of the sum over σ\sigma (rule (a)): det⁡(AB)=∑𝐣(∏i=1maiji)∑σsgn⁡σ∏i=1mbji,σ(i).\det(AB) = \sum_{\mathbf{j}} \Bigl(\prod_{i=1}^m a_{i j_i}\Bigr) \sum_\sigma \operatorname{sgn}\sigma \prod_{i=1}^m b_{j_i,\sigma(i)}. The inner sum is the determinant of the m×mm \times m matrix B𝐣B_{\mathbf{j}} whose row ii is row jij_i of BB. So det⁡(AB)=∑𝐣(∏i=1maiji)det⁡B𝐣.\det(AB) = \sum_{\mathbf{j}} \Bigl(\prod_{i=1}^m a_{i j_i}\Bigr) \det B_{\mathbf{j}}.

Repeated indices. If jp=jqj_p = j_q for some p≠qp \ne q, then B𝐣B_{\mathbf{j}} has two equal rows, and det⁡B𝐣=0\det B_{\mathbf{j}} = 0. These tuples add nothing. If m>nm > n every tuple has a repeat, so det⁡(AB)=0\det(AB) = 0. In this case there is no increasing tuple either, and the right side of the identity is the empty sum 00.

Distinct indices. Let the jij_i be distinct. There is exactly one increasing tuple 𝐤=(k1<⋯<km)\mathbf{k} = (k_1 < \cdots < k_m) with the same set of entries, and exactly one permutation π\pi with ji=kπ(i)j_i = k_{\pi(i)} for all ii. Row ii of B𝐣B_{\mathbf{j}} is row kπ(i)k_{\pi(i)} of BB, which is row π(i)\pi(i) of B𝐤B_{\mathbf{k}}. So B𝐣B_{\mathbf{j}} is B𝐤B_{\mathbf{k}} with its rows permuted by π\pi, and det⁡B𝐣=sgn⁡π⋅det⁡B𝐤.\det B_{\mathbf{j}} = \operatorname{sgn}\pi \cdot \det B_{\mathbf{k}}. Each pair (𝐤,π)(\mathbf{k}, \pi) gives one tuple 𝐣\mathbf{j}, and each tuple with distinct entries arises from one pair. Hence det⁡(AB)=∑𝐤det⁡B𝐤∑πsgn⁡π∏i=1mai,kπ(i).\det(AB) = \sum_{\mathbf{k}} \det B_{\mathbf{k}} \sum_\pi \operatorname{sgn}\pi \prod_{i=1}^m a_{i, k_{\pi(i)}}. The matrix A𝐤A_{\mathbf{k}} has the entry aikpa_{i k_p} in row ii and column pp. The inner sum over π\pi is its determinant by the definition of the determinant. Therefore det⁡(AB)=∑1≤k1<⋯<km≤ndet⁡A𝐤det⁡B𝐤.□\det(AB) = \sum_{1 \le k_1 < \cdots < k_m \le n} \det A_{\mathbf{k}} \det B_{\mathbf{k}}. \qquad \square

The special cases of the exercise. For m=nm = n there is one increasing tuple, (1,…,n)(1, \ldots, n), and the identity is det⁡(AB)=det⁡Adet⁡B\det(AB) = \det A \det B. For m=1m = 1 it is ∑ka1kbk1\sum_k a_{1k} b_{k1}, the product of a row and a column. For B=ATB = A^T the right side is the sum of the squares of all m×mm \times m minors of AA. For m>nm > n both sides are 00, as shown above. For m=2m = 2 it is Binet's identity, Exercise 1.2.3-30.

Check

Take m=2m = 2, n=4n = 4 and a matrix AA with rows (1,2,3,4)(1,2,3,4) and (0,1,0,2)(0,1,0,2), and B=ATB = A^T. Then ABAB has the rows (30,10)(30, 10) and (10,5)(10, 5), so det⁡(AB)=150−100=50\det(AB) = 150 - 100 = 50. The six 2×22 \times 2 minors of AA for the column pairs (1,2)(1,2), (1,3)(1,3), (1,4)(1,4), (2,3)(2,3), (2,4)(2,4), (3,4)(3,4) are 11, 00, 22, −3-3, 00, 66. Their squares add up to 1+0+4+9+0+36=501 + 0 + 4 + 9 + 0 + 36 = 50. For random integer matrices with (m,n)=(2,4)(m, n) = (2, 4), (3,5)(3, 5) and (3,2)(3, 2) python3 confirms the identity.

Remarks

For a real matrix AA the case B=ATB = A^T shows that det⁡(AAT)≥0\det(AA^T) \ge 0, and that det⁡(AAT)=0\det(AA^T) = 0 when m>nm > n. This is the Gram determinant. Binet and Cauchy found the identity independently in 1812.

This solution is checked, and a person has not reviewed it yet. The source.

In Lean

not stated yet The exercise is not stated in Lean yet.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.