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

Exercise 1.2.3-36

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

Find the determinant of the n×nn \times n matrix with yy in every place and x+yx + y on the diagonal.

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

Add all columns to the first column.

Hint 2

Then subtract the first row from the other rows. The matrix becomes triangular.

Solution

Show the solution

Call the matrix MM. Add columns 2,…,n2, \ldots, n to column 11. This does not change the determinant. Every entry of the new first column is (x+y)+(n−1)y=x+ny(x + y) + (n - 1)y = x + ny, since each row has one entry x+yx + y and n−1n - 1 entries yy. Factor x+nyx + ny out of the first column. The determinant is (x+ny)(x + ny) times the determinant of a matrix M′M' whose first column is all ones. Its first row is (1,y,y,…,y)(1, y, y, \ldots, y). For i≥2i \ge 2 the row ii of M′M' has 11 in column 11, x+yx + y in column ii and yy in the other columns.

Subtract row 11 from each row i≥2i \ge 2. This does not change the determinant. In column 11 the new entry is 1−1=01 - 1 = 0. In column j≥2j \ge 2 the new entry is (y+δijx)−y=δijx(y + \delta_{ij} x) - y = \delta_{ij} x. So the new matrix has 11 in the upper left corner, 00 below it, and xx on the rest of the diagonal. The entries below the diagonal are 00, so the determinant is the product of the diagonal: 1⋅xn−11 \cdot x^{n-1}.

Hence det⁡M=(x+ny) xn−1\det M = (x + ny)\, x^{n-1}. □\square

Check

For n=3n = 3, x=2x = 2, y=3y = 3 the matrix has rows (5,3,3)(5,3,3), (3,5,3)(3,5,3), (3,3,5)(3,3,5). Its determinant is 125+27+27−45−45−45=44125 + 27 + 27 - 45 - 45 - 45 = 44, and the formula gives 22(2+9)=442^2 (2 + 9) = 44.

Remarks

The matrix is xI+yJxI + yJ, where JJ has all entries 11. Its eigenvalues are x+nyx + ny once and xx with multiplicity n−1n - 1, which is the same result. Exercise 1.2.3-39 gives the inverse.

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.