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

Exercise 1.2.3-41

not stated yet in Lean solution written

RatingM26
MarkersM (mathematical)
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

Show that the matrix with the given entries bijb_{ij} is the inverse of Cauchy's matrix AA, where aij=1/(xi+yj)a_{ij} = 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

Compute the product ABAB. The entry in row ii and column ll is a sum over jj of fractions with the factor ∏k≠j(yj−yk)\prod_{k \ne j}(y_j - y_k) in the denominator. This is the form of formula (∗)(*) in Exercise 1.2.3-33, with nodes yjy_j.

Hint 2

Write the part of the term that depends on jj as the value at s=yjs = y_j of a function h(s)h(s). For i≠li \ne l the function is a polynomial of degree n−2n - 2.

Hint 3

For i=li = l split off a pole. Use a partial fraction identity for 1/(x+s)1/(x + s) at the nodes yjy_j.

Solution

Show the solution

Plan. Show AB=IAB = I. The case i≠li \ne l uses (∗)(*). The case i=li = l needs one more sum, which is found first.

Assume the xix_i are distinct, the yjy_j are distinct, and all xi+yj≠0x_i + y_j \ne 0. Then det⁡A≠0\det A \ne 0 by Exercise 1.2.3-38. In the formula for bjlb_{jl} the yy index is jj and the xx index is ll. The entry of ABAB in row ii, column ll is (AB)il=∑j=1n1xi+yj⋅∏k(xl+yk)(xk+yj)(xl+yj)∏k≠l(xl−xk)∏k≠j(yj−yk).(AB)_{il} = \sum_{j=1}^n \frac{1}{x_i + y_j} \cdot \frac{\prod_k (x_l + y_k)(x_k + y_j)}{(x_l + y_j) \prod_{k \ne l}(x_l - x_k) \prod_{k \ne j}(y_j - y_k)}. Put Cl=∏k(xl+yk)/∏k≠l(xl−xk)C_l = \prod_k (x_l + y_k) / \prod_{k \ne l}(x_l - x_k). It does not depend on jj. Put h(s)=∏k(xk+s)(xi+s)(xl+s).h(s) = \frac{\prod_k (x_k + s)}{(x_i + s)(x_l + s)}. Then (AB)il=Cl∑j=1nh(yj)∏k≠j(yj−yk).(AB)_{il} = C_l \sum_{j=1}^n \frac{h(y_j)}{\prod_{k \ne j}(y_j - y_k)}.

The case i≠li \ne l. The two factors in the denominator of hh cancel two of the factors in the numerator. So hh is a polynomial of degree n−2n - 2. By (∗)(*) of Exercise 1.2.3-33 with the nodes y1,…,yny_1, \ldots, y_n, the sum is the coefficient of sn−1s^{n-1} in hh, which is 00. So (AB)il=0(AB)_{il} = 0.

A lemma. For a number xx with all x+yk≠0x + y_k \ne 0, T(x)=∑j=1n1(x+yj)∏k≠j(yj−yk)=(−1)n+1∏k=1n(x+yk).T(x) = \sum_{j=1}^n \frac{1}{(x + y_j) \prod_{k \ne j}(y_j - y_k)} = \frac{(-1)^{n+1}}{\prod_{k=1}^n (x + y_k)}. To prove it, let pp be the polynomial of degree at most n−1n - 1 with p(yj)=1/(x+yj)p(y_j) = 1/(x + y_j) for all jj. The polynomial q(s)=1−(x+s)p(s)q(s) = 1 - (x + s)p(s) has degree at most nn and vanishes at each yjy_j. So q(s)=c∏k(s−yk)q(s) = c \prod_k (s - y_k). Put s=−xs = -x: 1=c (−1)n∏k(x+yk)1 = c\, (-1)^n \prod_k (x + y_k). Compare the coefficients of sns^n: on the left it is −[sn−1]p-[s^{n-1}]p, which is −T(x)-T(x) by (∗)(*). On the right it is cc. Hence T(x)=−c=(−1)n+1/∏k(x+yk)T(x) = -c = (-1)^{n+1} / \prod_k (x + y_k).

The case i=li = l. Now h(s)=R(s)/(xi+s)h(s) = R(s)/(x_i + s) with R(s)=∏k≠i(xk+s)R(s) = \prod_{k \ne i}(x_k + s). The polynomial RR has degree n−1n - 1. Divide: R(s)=R(−xi)+(s+xi)S(s)R(s) = R(-x_i) + (s + x_i) S(s), where SS is a polynomial of degree n−2n - 2. Then h(s)=R(−xi)/(xi+s)+S(s)h(s) = R(-x_i)/(x_i + s) + S(s). The sum of S(yj)/∏k≠j(yj−yk)S(y_j) / \prod_{k \ne j}(y_j - y_k) is 00 by (∗)(*), because SS has degree n−2n - 2. The remaining part gives (AB)ii=Ci R(−xi) T(xi).(AB)_{ii} = C_i\, R(-x_i)\, T(x_i). Now R(−xi)=∏k≠i(xk−xi)=(−1)n−1∏k≠i(xi−xk)R(-x_i) = \prod_{k \ne i}(x_k - x_i) = (-1)^{n-1} \prod_{k \ne i}(x_i - x_k) and T(xi)=(−1)n+1/∏k(xi+yk)T(x_i) = (-1)^{n+1} / \prod_k (x_i + y_k). Multiply: (AB)ii=∏k(xi+yk)∏k≠i(xi−xk)⋅(−1)n−1∏k≠i(xi−xk)⋅(−1)n+1∏k(xi+yk)=(−1)2n=1.(AB)_{ii} = \frac{\prod_k (x_i + y_k)}{\prod_{k \ne i}(x_i - x_k)} \cdot (-1)^{n-1} \prod_{k \ne i}(x_i - x_k) \cdot \frac{(-1)^{n+1}}{\prod_k (x_i + y_k)} = (-1)^{2n} = 1. So AB=IAB = I and B=A−1B = A^{-1}. □\square

Check

Take x=(1,2,4)x = (1, 2, 4) and y=(1,3,5)y = (1, 3, 5). For i=j=1i = j = 1 the numerator is ∏k(x1+yk)(xk+y1)=(2⋅4⋅6)(2⋅3⋅5)=1440\prod_k (x_1 + y_k)(x_k + y_1) = (2 \cdot 4 \cdot 6)(2 \cdot 3 \cdot 5) = 1440. The denominator is (x1+y1)⋅(1−2)(1−4)⋅(1−3)(1−5)=2⋅3⋅8=48(x_1 + y_1) \cdot (1 - 2)(1 - 4) \cdot (1 - 3)(1 - 5) = 2 \cdot 3 \cdot 8 = 48. So b11=30b_{11} = 30. The inverse of AA computed exactly has first row (30,−525/8,315/8)(30, -525/8, 315/8), and all nine entries agree with the formula (python3).

Remarks

The sum of all entries of this inverse is found in Exercise 1.2.3-44. Exercise 1.2.3-45 applies the formula to the Hilbert matrix. The lemma for T(x)T(x) is the partial fraction expansion of 1/∏k(s−yk)1 / \prod_k (s - y_k) evaluated at s=−xs = -x. The book's answer takes another route: it also reads the inverse off the cofactors, or compares two polynomials of degree n−1n - 1 in an extra variable at nn points.

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.