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

Exercise 1.2.3-37

proved in Lean solution written

RatingM24
MarkersM (mathematical), recommended
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 Vandermonde's matrix, whose entry in row ii and column jj is xjix_j^i.

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

Factor xjx_j out of column jj. The rows then hold the powers 1,xj,…,xjn−11, x_j, \ldots, x_j^{n-1}.

Hint 2

Subtract x1x_1 times each row from the row below it, from the bottom up.

Hint 3

The first column becomes (1,0,…,0)(1, 0, \ldots, 0). Factor xj−x1x_j - x_1 out of each other column and use induction.

Solution

Show the solution

Factor xjx_j out of column jj for each jj. The determinant is ∏jxj\prod_j x_j times Vn(x1,…,xn)=det⁡(xji−1)V_n(x_1, \ldots, x_n) = \det\bigl(x_j^{i-1}\bigr), where ii is the row. The claim is Vn=∏1≤i<j≤n(xj−xi)V_n = \prod_{1 \le i < j \le n} (x_j - x_i). Use induction on nn.

For n=1n = 1 the matrix is (1)(1) and the empty product is 11.

Let n≥2n \ge 2. For i=n,n−1,…,2i = n, n - 1, \ldots, 2 in this order, subtract x1x_1 times row i−1i - 1 from row ii. The order matters, so that each row i−1i - 1 is still the original when it is used. These operations do not change the determinant. The new entry in row i≥2i \ge 2 and column jj is xji−1−x1xji−2=xji−2(xj−x1).x_j^{i-1} - x_1 x_j^{i-2} = x_j^{i-2}(x_j - x_1). In column 11 it is 00. Row 11 is unchanged: (1,1,…,1)(1, 1, \ldots, 1). Expand along the first column, which now is (1,0,…,0)T(1, 0, \ldots, 0)^T. The determinant is the determinant of the (n−1)×(n−1)(n-1) \times (n-1) matrix with entries xji−2(xj−x1)x_j^{i-2}(x_j - x_1) for 2≤i,j≤n2 \le i, j \le n. Factor xj−x1x_j - x_1 out of column jj. What remains is Vn−1(x2,…,xn)V_{n-1}(x_2, \ldots, x_n). So Vn(x1,…,xn)=∏j=2n(xj−x1) Vn−1(x2,…,xn)=∏j=2n(xj−x1)∏2≤i<j≤n(xj−xi).V_n(x_1, \ldots, x_n) = \prod_{j=2}^n (x_j - x_1)\, V_{n-1}(x_2, \ldots, x_n) = \prod_{j=2}^n (x_j - x_1) \prod_{2 \le i < j \le n} (x_j - x_i). This is ∏1≤i<j≤n(xj−xi)\prod_{1 \le i < j \le n}(x_j - x_i). Multiply by ∏jxj\prod_j x_j to get the claim. □\square

Check

For x=(2,3,5)x = (2, 3, 5) the matrix has rows (2,3,5)(2,3,5), (4,9,25)(4,9,25), (8,27,125)(8,27,125). Its determinant is 180180. The formula gives 2⋅3⋅5⋅(3−2)(5−2)(5−3)=30⋅6=1802 \cdot 3 \cdot 5 \cdot (3-2)(5-2)(5-3) = 30 \cdot 6 = 180.

Remarks

The determinant is 00 exactly when two xjx_j are equal or one is 00. This is why the inverse in Exercise 1.2.3-40 needs distinct non-zero numbers.

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.