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.
A Vandermonde matrix is built from a list of numbers — call them nodes — by giving each node a row of its powers:
Its determinant factors completely:
Every pair of nodes contributes exactly one difference, with the larger index first. For nodes that is factors:
- -: three factors;
- -: six factors;
- -: ten factors.
You never expand a Vandermonde determinant. You multiply pairs.
Why this matters beyond a curiosity: is the matrix of the system you solve to fit a polynomial through given points. So "is invertible?" is "is there a unique polynomial through these points?", and the factored form answers it instantly.
Do not take the factorisation on trust; here is the argument in one paragraph.
is a polynomial in the nodes, and it vanishes whenever two nodes are equal — because then two rows of are identical. So divides it, and, and: each pairwise difference must be a factor.
That already gives for some constant. To pin down, substitute the simplest nodes,,,:
which is triangular after a glance: expanding along row 1 gives. The factor product at those nodes is. So and the formula is exact.
The same argument works at every size, because every pairwise difference divides and the constant comes out. That is why a single check at one set of nodes settles the general formula — a rare luxury worth recognising.
Problem. Compute for the nodes.
Solution. Three nodes, so three factors, with the larger index first:
Check by expansion.. Row 2 has two zeros, so expand along it. Its signs are, and the only surviving entry is? No: row 2 is, so the first entry is, at position, whose sign is:
A larger case, to show the count. Nodes: factors, Expanding that entry by entry would take a page and give the same.
- 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
- 1. for the nodes?
- 2. How many factors does a Vandermonde determinant on five nodes have?
- 3. For which node values is singular?
- 4. Why does a zero node fail to make the determinant zero?
Answers
- 1..
- 2..
- 3. Two nodes coincide ), so the determinant is zero. The third node is irrelevant.
- 4. Because a zero node makes one factor equal to a difference like or, which is a nonzero number unless or is also zero. Only a difference of zero — two equal nodes — kills a factor.