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

Exercise 1.2.3-43

not stated yet in Lean solution written

RatingM24
MarkersM (mathematical)
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 Vandermonde'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 over jj of the entries of row ii of the inverse is the value of a Lagrange polynomial from Exercise 1.2.3-40 at t=1t = 1, divided by xix_i.

Hint 2

Add the number 00 to the nodes. The n+1n + 1 nodes 0,x1,…,xn0, x_1, \ldots, x_n give Lagrange polynomials of degree nn, and these add up to the constant 11.

Hint 3

The term of the node 00 is a product that is easy to write down. The terms of the other nodes are the row sums.

Solution

Show the solution

Plan. Write the sum as ∑iPi(1)/xi\sum_i P_i(1)/x_i, then recognise this as the interpolation of the constant 11 at the nodes 0,x1,…,xn0, x_1, \ldots, x_n without the term of 00.

Let the xix_i be distinct and non-zero. With the notation of Exercise 1.2.3-40, bij=cij/xib_{ij} = c_{ij}/x_i and Pi(t)=∑jcijtj−1P_i(t) = \sum_j c_{ij} t^{j-1}. So ∑j=1nbij=1xiPi(1)=1xi∏k≠i1−xkxi−xk,\sum_{j=1}^n b_{ij} = \frac{1}{x_i} P_i(1) = \frac{1}{x_i} \prod_{k \ne i} \frac{1 - x_k}{x_i - x_k}, because the signs (−1)n−1(-1)^{n-1} of the numerator and the denominator cancel. The sum of all entries is S=∑i=1n1xi∏k≠i1−xkxi−xk.S = \sum_{i=1}^n \frac{1}{x_i} \prod_{k \ne i} \frac{1 - x_k}{x_i - x_k}.

Put x0=0x_0 = 0. The nodes x0,x1,…,xnx_0, x_1, \ldots, x_n are distinct. Let Λm(t)=∏0≤k≤n, k≠m(t−xk)/(xm−xk)\Lambda_m(t) = \prod_{0 \le k \le n,\ k \ne m} (t - x_k)/(x_m - x_k). The sum ∑m=0nΛm(t)\sum_{m=0}^n \Lambda_m(t) is a polynomial of degree at most nn that is 11 at the n+1n + 1 nodes. So it is the constant 11 (a polynomial of degree at most nn with n+1n + 1 roots of the difference is 00). At t=1t = 1: ∑m=0nΛm(1)=1.\sum_{m=0}^n \Lambda_m(1) = 1. For m=i≥1m = i \ge 1 the factor of k=0k = 0 in Λi(1)\Lambda_i(1) is (1−0)/(xi−0)=1/xi(1 - 0)/(x_i - 0) = 1/x_i. So Λi(1)=1xi∏1≤k≤n, k≠i1−xkxi−xk\Lambda_i(1) = \dfrac{1}{x_i}\prod_{1 \le k \le n,\ k \ne i} \dfrac{1 - x_k}{x_i - x_k}, which is the ii-th term of SS. For m=0m = 0: Λ0(1)=∏k=1n1−xk0−xk=∏k=1n(1−1xk).\Lambda_0(1) = \prod_{k=1}^n \frac{1 - x_k}{0 - x_k} = \prod_{k=1}^n \Bigl(1 - \frac{1}{x_k}\Bigr). Hence S+∏k=1n(1−1/xk)=1S + \prod_{k=1}^n (1 - 1/x_k) = 1, and S=1−∏k=1n(1−1xk).S = 1 - \prod_{k=1}^n \Bigl(1 - \frac{1}{x_k}\Bigr).

Check

For x=(2,3,5)x = (2, 3, 5) the product is 12⋅23⋅45=415\tfrac12 \cdot \tfrac23 \cdot \tfrac45 = \tfrac{4}{15}, so S=11/15S = 11/15. The inverse of the matrix with rows (2,3,5)(2,3,5), (4,9,25)(4,9,25), (8,27,125)(8,27,125), computed exactly, has entries that add up to 11/1511/15 (python3). For n=1n = 1 the matrix is (x1)(x_1), its inverse is (1/x1)(1/x_1), and the formula gives 1−(1−1/x1)=1/x11 - (1 - 1/x_1) = 1/x_1.

Remarks

If some xk=1x_k = 1 the sum is 11. The proof uses the interpolation formula that is behind Exercise 1.2.3-33.

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.