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

Exercise 1.2.3-39

proved in Lean solution written

RatingM23
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 given in the exercise is the inverse of the combinatorial 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

Write the combinatorial matrix as xI+yJxI + yJ, where JJ has all entries 11. Note that J2=nJJ^2 = nJ.

Hint 2

Multiply the two matrices. A square matrix with a one-sided inverse has a two-sided inverse.

Solution

Show the solution

Let M=xI+yJM = xI + yJ and B=(x+ny)I−yJx(x+ny)B = \dfrac{(x + ny)I - yJ}{x(x + ny)}. The entry of BB in row ii and column jj is (−y+δij(x+ny))/(x(x+ny))(-y + \delta_{ij}(x + ny)) / (x(x + ny)), as the exercise states. Assume x≠0x \ne 0 and x+ny≠0x + ny \ne 0.

Since J2=nJJ^2 = nJ (every entry of J2J^2 is a sum of nn ones), (xI+yJ)((x+ny)I−yJ)=x(x+ny)I−xyJ+y(x+ny)J−y2nJ.(xI + yJ)\bigl((x + ny)I - yJ\bigr) = x(x + ny) I - xy J + y(x + ny) J - y^2 n J. The coefficient of JJ is −xy+xy+ny2−ny2=0-xy + xy + ny^2 - ny^2 = 0. So the product is x(x+ny)Ix(x + ny) I, and MB=IMB = I. A square matrix with a right inverse is invertible, and the right inverse is the inverse. By Exercise 1.2.3-36, det⁡M=xn−1(x+ny)≠0\det M = x^{n-1}(x + ny) \ne 0, which agrees. Hence M−1=BM^{-1} = B. □\square

The inverse is again a combinatorial matrix, namely B=x′I+y′JB = x' I + y' J with x′=1/xx' = 1/x and y′=−y/(x(x+ny))y' = -y/(x(x + ny)).

Check

For n=3n = 3, x=2x = 2, y=3y = 3 the matrix BB has diagonal entries (−3+11)/22=4/11(-3 + 11)/22 = 4/11 and the other entries −3/22-3/22. The first row of MM is (5,3,3)(5, 3, 3). Its product with the first column of BB is 5⋅4/11−3⋅3/22−3⋅3/22=40/22−9/22−9/22=22/22=15 \cdot 4/11 - 3 \cdot 3/22 - 3 \cdot 3/22 = 40/22 - 9/22 - 9/22 = 22/22 = 1. The product with the second column is 5⋅(−3/22)+3⋅4/11+3⋅(−3/22)=−15/22+24/22−9/22=05 \cdot (-3/22) + 3 \cdot 4/11 + 3 \cdot (-3/22) = -15/22 + 24/22 - 9/22 = 0.

Remarks

Exercise 1.2.3-42 sums all entries of BB. The method, find a polynomial relation J2=nJJ^2 = nJ and read the inverse off from it, works for any matrix of the form xI+yNxI + yN with N2N^2 a multiple of NN.

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.