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

Exercise 1.2.3-44

not stated yet in Lean solution written

RatingM26
MarkersM (mathematical), recommended
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.3 of Volume 1. Companion chapter: Sums and products

The task

Find the sum of all n2n^2 entries of the inverse of Cauchy's matrix.

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

The sum of all entries of A−1A^{-1} is 𝟏TA−1𝟏\mathbf{1}^T A^{-1} \mathbf{1}. Let u=A−1𝟏u = A^{-1}\mathbf{1}, so that Au=𝟏A u = \mathbf{1}. The wanted sum is ∑juj\sum_j u_j.

Hint 2

The equation Au=𝟏A u = \mathbf{1} says that ∑juj/(xi+yj)=1\sum_j u_j/(x_i + y_j) = 1 for each ii. Make a polynomial in ss from the left side with ss in place of xix_i, so that the polynomial has the roots x1,…,xnx_1, \ldots, x_n.

Hint 3

A polynomial of degree nn with the known roots x1,…,xnx_1, \ldots, x_n and a known leading coefficient is known. Compare the coefficients of sn−1s^{n-1}.

Solution

Show the solution

Plan. Find the vector uu with Au=𝟏Au = \mathbf{1} through a polynomial identity, and add its entries.

Let the xix_i be distinct, the yjy_j be distinct and all xi+yj≠0x_i + y_j \ne 0. By Exercise 1.2.3-38 the matrix A=(1/(xi+yj))A = (1/(x_i + y_j)) is invertible. Let u=A−1𝟏u = A^{-1}\mathbf{1}. The sum of all entries of A−1A^{-1} is 𝟏TA−1𝟏=∑juj\mathbf{1}^T A^{-1} \mathbf{1} = \sum_j u_j, since the ii-th row of A−1A^{-1} added over its columns gives the ii-th entry of uu.

Define N(s)=∑j=1nuj∏k≠j(s+yk)−∏k=1n(s+yk).N(s) = \sum_{j=1}^n u_j \prod_{k \ne j}(s + y_k) - \prod_{k=1}^n (s + y_k). This is ∏k(s+yk)\prod_k (s + y_k) times ∑juj/(s+yj)−1\sum_j u_j/(s + y_j) - 1. For s=xis = x_i the last factor is 00 by Au=𝟏Au = \mathbf{1}, so N(xi)=0N(x_i) = 0. The first sum in NN has degree n−1n - 1 in ss. The product has degree nn with leading coefficient 11. So NN has degree nn, leading coefficient −1-1, and the nn distinct roots x1,…,xnx_1, \ldots, x_n. Hence N(s)=−∏k=1n(s−xk).N(s) = -\prod_{k=1}^n (s - x_k). Compare the coefficients of sn−1s^{n-1} on both sides of the definition of NN. In the first sum, ∏k≠j(s+yk)\prod_{k \ne j}(s + y_k) has the leading coefficient 11 at sn−1s^{n-1}, so the coefficient is ∑juj\sum_j u_j. In ∏k(s+yk)\prod_k (s + y_k) it is ∑kyk\sum_k y_k. On the right side, −∏k(s−xk)=−sn+(∑kxk)sn−1−⋯-\prod_k (s - x_k) = -s^n + (\sum_k x_k) s^{n-1} - \cdots. So ∑juj−∑kyk=∑kxk.\sum_j u_j - \sum_k y_k = \sum_k x_k. Therefore ∑i,jbij=x1+⋯+xn+y1+⋯+yn.\sum_{i,j} b_{ij} = x_1 + \cdots + x_n + y_1 + \cdots + y_n.

Check

For x=(1,2,4)x = (1, 2, 4) and y=(1,3,5)y = (1, 3, 5) the entries of the inverse add up to 1616 (exact computation, python3), and 7+9=167 + 9 = 16. For n=1n = 1 the inverse of (1/(x1+y1))(1/(x_1 + y_1)) is (x1+y1)(x_1 + y_1), as the formula says.

Remarks

For the Hilbert matrix of Exercise 1.2.3-45 the formula gives n2n^2.

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.