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-38

Exercise 1.2.3-38

proved in Lean solution written

RatingM25
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

Find the determinant of Cauchy's matrix, whose entry in row ii and column jj is 1/(xi+yj)1/(x_i + y_j).

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

Subtract the last row from each other row. Each difference of two fractions factors.

Hint 2

Do the same with the last column. The last row and column then reduce to a single 11.

Hint 3

Compare with the same matrix of size n−1n - 1 and use induction.

Solution

Show the solution

Let DnD_n be the determinant. Assume that all xi+yj≠0x_i + y_j \ne 0. For n=1n = 1 it is 1/(x1+y1)1/(x_1 + y_1), which agrees with the formula (empty product in the numerator).

Let n≥2n \ge 2. For each i<ni < n subtract row nn from row ii. The entry in column jj becomes 1xi+yj−1xn+yj=xn−xi(xi+yj)(xn+yj).\frac{1}{x_i + y_j} - \frac{1}{x_n + y_j} = \frac{x_n - x_i}{(x_i + y_j)(x_n + y_j)}. Factor xn−xix_n - x_i out of row i<ni < n. Factor 1/(xn+yj)1/(x_n + y_j) out of column jj, for 1≤j≤n1 \le j \le n. Now row i<ni < n has the entries 1/(xi+yj)1/(x_i + y_j) again, and row nn has all entries equal to 11.

For each j<nj < n subtract column nn from column jj. In row i<ni < n the entry becomes 1xi+yj−1xi+yn=yn−yj(xi+yj)(xi+yn).\frac{1}{x_i + y_j} - \frac{1}{x_i + y_n} = \frac{y_n - y_j}{(x_i + y_j)(x_i + y_n)}. In row nn it becomes 1−1=01 - 1 = 0. Factor yn−yjy_n - y_j out of column j<nj < n and 1/(xi+yn)1/(x_i + y_n) out of row i<ni < n. The matrix now has row nn equal to (0,…,0,1)(0, \ldots, 0, 1), and the upper left block is Cauchy's matrix of size n−1n - 1 for x1,…,xn−1x_1, \ldots, x_{n-1} and y1,…,yn−1y_1, \ldots, y_{n-1}. The last column has entries 11 in rows i<ni < n, which does not matter after expansion along the last row. So Dn=∏i<n(xn−xi)(yn−yi)∏j=1n(xn+yj)∏i<n(xi+yn) Dn−1.D_n = \frac{\prod_{i<n} (x_n - x_i)(y_n - y_i)}{\prod_{j=1}^n (x_n + y_j) \prod_{i<n} (x_i + y_n)}\, D_{n-1}. The denominator is the product of xi+yjx_i + y_j over all pairs (i,j)(i, j) with i=ni = n or j=nj = n. These are the pairs that are new in size nn. The numerator contains the pairs i<j=ni < j = n. By induction, Dn=∏1≤i<j≤n(xj−xi)(yj−yi)∏1≤i,j≤n(xi+yj).□D_n = \frac{\prod_{1 \le i < j \le n} (x_j - x_i)(y_j - y_i)}{\prod_{1 \le i, j \le n} (x_i + y_j)}. \qquad \square

Check

Take x=(1,2,4)x = (1, 2, 4) and y=(1,3,5)y = (1, 3, 5). The products of the differences are ∏(xj−xi)=1⋅3⋅2=6\prod (x_j - x_i) = 1 \cdot 3 \cdot 2 = 6 and ∏(yj−yi)=2⋅4⋅2=16\prod (y_j - y_i) = 2 \cdot 4 \cdot 2 = 16, so the numerator is 9696. The nine sums xi+yjx_i + y_j are 2,4,6,3,5,7,5,7,92,4,6,3,5,7,5,7,9 with product 2⋅4⋅6⋅3⋅5⋅7⋅5⋅7⋅9=15876002 \cdot 4 \cdot 6 \cdot 3 \cdot 5 \cdot 7 \cdot 5 \cdot 7 \cdot 9 = 1587600. The quotient is 96/1587600=2/3307596 / 1587600 = 2/33075. An exact computation of the determinant (python3) gives the same value.

Remarks

When no xi+yjx_i + y_j is 00, the determinant is non-zero exactly when the xix_i are distinct and the yjy_j are distinct. Exercises 1.2.3-41, 1.2.3-44 and 1.2.3-45 use this matrix.

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

In Lean

proved The statement and its proof are in Lean. The kernel accepts the proof, and it uses the standard axioms only.

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

Something is wrong? Report it.