Euler Hall — free maths guides

Compute a Vandermonde determinant and factor it as a product of differences

Write the Vandermonde matrix for a given list of nodes. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

Powers in every row

A Vandermonde matrix is built from a list of numbers — call them nodes — by giving each node a row of its powers:

V(x1,x2,x3)=[1x1x121x2x221x3x32].V(x_1,x_2,x_3)=\begin{bmatrix}1&x_1&x_1^2\\ 1&x_2&x_2^2\\ 1&x_3&x_3^2\end{bmatrix}.

Its determinant factors completely:

det⁡V=(x2−x1)(x3−x1)(x3−x2).\det V=(x_2-x_1)(x_3-x_1)(x_3-x_2).

Every pair of nodes contributes exactly one difference, with the larger index first. Fornn nodes that is(n2)\binom{n}{2} factors:

  • -n=3n=3: three factors;
  • -n=4n=4: six factors;
  • -n=5n=5: ten factors.

You never expand a Vandermonde determinant. You multiply pairs.

Why this matters beyond a curiosity:VV is the matrix of the system you solve to fit a polynomial through given points. So "isVV invertible?" is "is there a unique polynomial through these points?", and the factored form answers it instantly.

Why the product appears

Do not take the factorisation on trust; here is the argument in one paragraph.

det⁡V\det V is a polynomial in the nodes, and it vanishes whenever two nodes are equal — because then two rows ofVV are identical. So(x2−x1)(x_2-x_1) divides it, and(x3−x1)(x_3-x_1), and(x3−x2)(x_3-x_2): each pairwise difference must be a factor.

That already givesdet⁡V=c⋅(x2−x1)(x3−x1)(x3−x2)\det V=c\cdot(x_2-x_1)(x_3-x_1)(x_3-x_2) for some constantcc. To pin downcc, substitute the simplest nodes,x1=0x_1=0,x2=1x_2=1,x3=2x_3=2:

V(0,1,2)=[100111124],V(0,1,2)=\begin{bmatrix}1&0&0\\ 1&1&1\\ 1&2&4\end{bmatrix},

which is triangular after a glance: expanding along row 1 gives1⋅(4−2)=21\cdot(4-2)=2. The factor product at those nodes is1⋅2⋅1=21\cdot2\cdot1=2. Soc=1c=1 and the formula is exact.

The same argument works at every size, because every pairwise difference divides and the constant comes out11. That is why a single check at one set of nodes settles the general formula — a rare luxury worth recognising.

Complete worked example, in the paper's shape

Problem. Computedet⁡V\det V for the nodes−1,0,2-1,0,2.

Solution. Three nodes, so three factors, with the larger index first:

det⁡V=(0−(−1))(2−(−1))(2−0)=1⋅3⋅2=6.\det V=(0-(-1))(2-(-1))(2-0)=1\cdot3\cdot2=6.

Check by expansion.V=[1−11100124]V=\begin{bmatrix}1&-1&1\\ 1&0&0\\ 1&2&4\end{bmatrix}. Row 2 has two zeros, so expand along it. Its signs are−,+,−-,+,-, and the only surviving entry isa22=0a_{22}=0? No: row 2 is(1,0,0)(1,0,0), so the first entry is11, at position(2,1)(2,1), whose sign is−-:

det⁡V=−1⋅det⁡[−1124]=−1(−4−2)=6.✓\det V=-1\cdot\det\begin{bmatrix}-1&1\\ 2&4\end{bmatrix}=-1(-4-2)=6. \checkmark

A larger case, to show the count. Nodes1,2,3,41,2,3,4:(42)=6\binom42=6 factors, det⁡V=(2−1)(3−1)(3−2)(4−1)(4−2)(4−3)=1⋅2⋅1⋅3⋅2⋅1=12.\det V=(2-1)(3-1)(3-2)(4-1)(4-2)(4-3)=1\cdot2\cdot1\cdot3\cdot2\cdot1=12. Expanding that4×44\times4 entry by entry would take a page and give the same1212.

By the end you can
  • Write the Vandermonde matrix for a given list of nodes
  • Evaluate its determinant as the product of all pairwise differences
  • Use the factorisation to decide when the determinant is zero
Check yourself
  1. 1.det⁡V\det V for the nodes−1,0,2-1,0,2?
  2. 2. How many factors does a Vandermonde determinant on five nodes have?
  3. 3. For which node values isV(1,1,3)V(1,1,3) singular?
  4. 4. Why does a zero node fail to make the determinant zero?
Answers
  1. 1.(0+1)(2+1)(2−0)=1⋅3⋅2=6(0+1)(2+1)(2-0)=1\cdot3\cdot2=6.
  2. 2.(52)=10\binom52=10.
  3. 3. Two nodes coincide x1=x2=1x_1=x_2=1), so the determinant is zero. The third node is irrelevant.
  4. 4. Because a zero node makes one factor equal to a difference like(0−x1)(0-x_1) or(x3−0)(x_3-0), which is a nonzero number unlessx1x_1 orx3x_3 is also zero. Only a difference of zero — two equal nodes — kills a factor.
Work out where to start — free, no accountAnswer six real questions — free, no account