# Vandermonde matrix

In linear algebra, a Vandermonde matrix, named after Alexandre-Théophile Vandermonde, is a matrix with the terms of a geometric progression in each row: an $(m+1)\times (n+1)$ matrix
    $V=V(x_{0},x_{1},\cdots ,x_{m})={\begin{bmatrix}1&x_{0}&x_{0}^{2}&\dots &x_{0}^{n}\\1&x_{1}&x_{1}^{2}&\dots &x_{1}^{n}\\1&x_{2}&x_{2}^{2}&\dots &x_{2}^{n}\\\vdots &\vdots &\vdots &\ddots &\vdots \\1&x_{m}&x_{m}^{2}&\dots &x_{m}^{n}\end{bmatrix}}$
with entries $V_{i,j}=x_{i}^{j}$, the jth power of the number $x_{i}$, for all zero-based indices $i$ and $j$. Some authors define the Vandermonde matrix as the transpose of the above matrix.
The determinant of a square Vandermonde matrix (when $n=m$) is called a Vandermonde determinant or Vandermonde polynomial. Its value is:
    $\det(V)=\prod _{0\leq i<j\leq m}(x_{j}-x_{i}).$
This is non-zero if and only if all $x_{i}$ are distinct (no two are equal), making the Vandermonde matrix invertible.

## Applications

The polynomial interpolation problem is to find a polynomial $p(x)=a_{0}+a_{1}x+a_{2}x^{2}+\dots +a_{n}x^{n}$ which satisfies $p(x_{0})=y_{0},\ldots ,p(x_{m})=y_{m}$ for given data points $(x_{0},y_{0}),\ldots ,(x_{m},y_{m})$. This problem can be reformulated in terms of linear algebra by means of the Vandermonde matrix, as follows. $V$ computes the values of $p(x)$ at the points $x=x_{0},\ x_{1},\dots ,\ x_{m}$ via a matrix multiplication $Va=y$, where $a=(a_{0},\ldots ,a_{n})$ is the vector of coefficients and $y=(y_{0},\ldots ,y_{m})=(p(x_{0}),\ldots ,p(x_{m}))$ is the vector of values (both written as column vectors):
${\begin{bmatrix}1&x_{0}&x_{0}^{2}&\dots &x_{0}^{n}\\1&x_{1}&x_{1}^{2}&\dots &x_{1}^{n}\\1&x_{2}&x_{2}^{2}&\dots &x_{2}^{n}\\\vdots &\vdots &\vdots &\ddots &\vdots \\1&x_{m}&x_{m}^{2}&\dots &x_{m}^{n}\end{bmatrix}}\cdot {\begin{bmatrix}a_{0}\\a_{1}\\\vdots \\a_{n}\end{bmatrix}}={\begin{bmatrix}p(x_{0})\\p(x_{1})\\\vdots \\p(x_{m})\end{bmatrix}}.$If $n=m$ and $x_{0},\dots ,\ x_{n}$ are distinct, then V is a square matrix with non-zero determinant, i.e. an invertible matrix. Thus, given V and y, one can find the required $p(x)$ by solving for its coefficients $a$ in the equation $Va=y$:
   $a=V^{-1}y$.
That is, the map from coefficients to values of polynomials is a bijective linear mapping with matrix V, and the interpolation problem has a unique solution. This result is called the unisolvence theorem, and is a special case of the Chinese remainder theorem for polynomials.
In statistics, the equation $Va=y$ means that the Vandermonde matrix is the design matrix of polynomial regression.
In numerical analysis, solving the equation $Va=y$ naïvely by Gaussian elimination results in an algorithm with time complexity O(n$^3$). Exploiting the structure of the Vandermonde matrix, one can use Newton's divided differences method (or the Lagrange interpolation formula) to solve the equation in O(n$^2$) time, which also gives the UL factorization of $V^{-1}$. The resulting algorithm produces extremely accurate solutions, even if $V$ is ill-conditioned. (See polynomial interpolation.)
The Vandermonde determinant is used in the representation theory of the symmetric group.
When the values $x_{i}$ belong to a finite field, the Vandermonde determinant is also called the Moore determinant, and has properties which are important in the theory of BCH codes and Reed–Solomon error correction codes.
The discrete Fourier transform is defined by a specific Vandermonde matrix, the DFT matrix, where the $x_{i}$ are chosen to be nth roots of unity. The Fast Fourier transform computes the product of this matrix with a vector in $O(n\log ^{2}n)$ time. See the article on Multipoint Polynomial evaluation for details.
In the physical theory of the quantum Hall effect, the Vandermonde determinant shows that the Laughlin wavefunction with filling factor 1 is equal to a Slater determinant. This is no longer true for filling factors different from 1 in the fractional quantum Hall effect.
In the geometry of polyhedra, the Vandermonde matrix gives the normalized volume of arbitrary $k$-faces of cyclic polytopes. Specifically, if $F=C_{d}(t_{i_{1}},\dots ,t_{i_{k+1}})$ is a $k$-face of the cyclic polytope $C_{d}(T)\subset \mathbb {R} ^{d}$ corresponding to $T=\{t_{1}<\cdots <t_{N}\}\subset \mathbb {R}$, then$\mathrm {nvol} (F)={\frac {1}{k!}}\prod _{1\leq m<n\leq k+1}{(t_{i_{n}}-t_{i_{m}})}.$

## Determinant

The determinant of a square Vandermonde matrix is called a Vandermonde polynomial or Vandermonde determinant. Its value is the polynomial
    $\det(V)=\prod _{0\leq i<j\leq n}(x_{j}-x_{i})$
which is non-zero if and only if all $x_{i}$ are distinct.
The Vandermonde determinant was formerly sometimes called the discriminant, but in current terminology the discriminant of a polynomial $p(x)=(x-x_{0})\cdots (x-x_{n})$ is the square of the Vandermonde determinant of the roots $x_{i}$. The Vandermonde determinant is an alternating form in the $x_{i}$, meaning that exchanging two $x_{i}$ changes the sign, and $\det(V)$ thus depends on order for the $x_{i}$. By contrast, the discriminant $\det(V)^{2}$ does not depend on any order, so that Galois theory implies that the discriminant is a polynomial function of the coefficients of $p(x)$.
The determinant formula is proved below in three ways. The first uses polynomial properties, especially the unique factorization property of multivariate polynomials. Although conceptually simple, it involves non-elementary concepts of abstract algebra. The second proof is based on the linear algebra concepts of change of basis in a vector space and the determinant of a linear map. In the process, it computes the LU decomposition of the Vandermonde matrix. The third proof is more elementary but more complicated, using only elementary row and column operations.

### First proof: Polynomial properties

The first proof relies on properties of polynomials.
By the Leibniz formula, $\det(V)$ is a polynomial in the $x_{i}$, with integer coefficients. All entries of the $(i-1)$-th column have total degree $i$. Thus, again by the Leibniz formula, all terms of the determinant have total degree
    $0+1+2+\cdots +n={\frac {n(n+1)}{2}};$
(that is, the determinant is a homogeneous polynomial of this degree).
If, for $i\neq j$, one substitutes $x_{i}$ for $x_{j}$, one gets a matrix with two equal rows, which has thus a zero determinant. Thus, considering the determinant as univariate in $x_{i},$ the factor theorem implies that $x_{j}-x_{i}$ is a divisor of $\det(V).$ It thus follows that for all $i$ and $j$, $x_{j}-x_{i}$ is a divisor of $\det(V).$
This will now be strengthened to show that the product of all those divisors of $\det(V)$ is a divisor of $\det(V).$ Indeed, let $p$ be a polynomial with $x_{i}-x_{j}$ as a factor, then $p=(x_{i}-x_{j})\,q,$ for some polynomial $q.$ If $x_{k}-x_{l}$ is another factor of $p,$ then $p$ becomes zero after the substitution of $x_{k}$ for $x_{l}.$ If $\{x_{i},x_{j}\}\neq \{x_{k},x_{l}\},$ the factor $q$ becomes zero after this substitution, since the factor $x_{i}-x_{j}$ remains nonzero. So, by the factor theorem, $x_{k}-x_{l}$ divides $q,$ and $(x_{i}-x_{j})\,(x_{k}-x_{l})$ divides $p.$
Iterating this process by starting from $\det(V),$ one gets that $\det(V)$ is divisible by the product of all $x_{i}-x_{j}$ with $i<j;$ that is
    $\det(V)=Q\prod _{0\leq i<j\leq n}(x_{j}-x_{i}),$
where $Q$ is a polynomial. As the product of all $x_{j}-x_{i}$ and $\det(V)$ have the same degree $n(n+1)/2$, the polynomial $Q$ is, in fact, a constant. This constant is one, because the product of the diagonal entries of $V$ is $x_{1}x_{2}^{2}\cdots x_{n}^{n}$, which is also the monomial that is obtained by taking the first term of all factors in $\textstyle \prod _{0\leq i<j\leq n}(x_{j}-x_{i}).$ This proves that $Q=1,$ and finishes the proof.
    $\det(V)=\prod _{0\leq i<j\leq n}(x_{j}-x_{i}).$

### Second proof: linear maps

Let F be a field containing all $x_{i},$ and $P_{n}$ the F vector space of the polynomials of degree less than or equal to n with coefficients in F. Let
    $\varphi :P_{n}\to F^{n+1}$
be the linear map defined by
    $p(x)\mapsto (p(x_{0}),p(x_{1}),\ldots ,p(x_{n}))$.
The Vandermonde matrix is the matrix of $\varphi$ with respect to the canonical bases of $P_{n}$ and $F^{n+1}.$
Changing the basis of $P_{n}$ amounts to multiplying the Vandermonde matrix by a change-of-basis matrix M (from the right). This does not change the determinant, if the determinant of M is 1.
The polynomials $1$, $x-x_{0}$, $(x-x_{0})(x-x_{1})$, …, $(x-x_{0})(x-x_{1})\cdots (x-x_{n-1})$ are monic of respective degrees 0, 1, …, n. Their matrix on the monomial basis is an upper-triangular matrix U (if the monomials are ordered in increasing degrees), with all diagonal entries equal to one. This matrix is thus a change-of-basis matrix of determinant one. The matrix of $\varphi$ on this new basis is
    ${\begin{bmatrix}1&0&0&\ldots &0\\1&x_{1}-x_{0}&0&\ldots &0\\1&x_{2}-x_{0}&(x_{2}-x_{0})(x_{2}-x_{1})&\ldots &0\\\vdots &\vdots &\vdots &\ddots &\vdots \\1&x_{n}-x_{0}&(x_{n}-x_{0})(x_{n}-x_{1})&\ldots &(x_{n}-x_{0})(x_{n}-x_{1})\cdots (x_{n}-x_{n-1})\end{bmatrix}}$.
Thus Vandermonde determinant equals the determinant of this matrix, which is the product of its diagonal entries.
This proves the desired equality. Moreover, one gets the LU decomposition of V as $V=LU^{-1}$.

### Third proof: row and column operations

The third proof is based on the fact that if one adds to a column of a matrix the product by a scalar of another column then the determinant remains unchanged.
So, by subtracting to each column – except the first one – the preceding column multiplied by $x_{0}$, the determinant is not changed. (These subtractions must be done by starting from last columns, for subtracting a column that has not yet been changed). This gives the matrix
    $V={\begin{bmatrix}1&0&0&0&\cdots &0\\1&x_{1}-x_{0}&x_{1}(x_{1}-x_{0})&x_{1}^{2}(x_{1}-x_{0})&\cdots &x_{1}^{n-1}(x_{1}-x_{0})\\1&x_{2}-x_{0}&x_{2}(x_{2}-x_{0})&x_{2}^{2}(x_{2}-x_{0})&\cdots &x_{2}^{n-1}(x_{2}-x_{0})\\\vdots &\vdots &\vdots &\vdots &\ddots &\vdots \\1&x_{n}-x_{0}&x_{n}(x_{n}-x_{0})&x_{n}^{2}(x_{n}-x_{0})&\cdots &x_{n}^{n-1}(x_{n}-x_{0})\\\end{bmatrix}}$
Applying the Laplace expansion formula along the first row, we obtain $\det(V)=\det(B)$, with
    $B={\begin{bmatrix}x_{1}-x_{0}&x_{1}(x_{1}-x_{0})&x_{1}^{2}(x_{1}-x_{0})&\cdots &x_{1}^{n-1}(x_{1}-x_{0})\\x_{2}-x_{0}&x_{2}(x_{2}-x_{0})&x_{2}^{2}(x_{2}-x_{0})&\cdots &x_{2}^{n-1}(x_{2}-x_{0})\\\vdots &\vdots &\vdots &\ddots &\vdots \\x_{n}-x_{0}&x_{n}(x_{n}-x_{0})&x_{n}^{2}(x_{n}-x_{0})&\cdots &x_{n}^{n-1}(x_{n}-x_{0})\\\end{bmatrix}}$
As all the entries in the $i$-th row of $B$ have a factor of $x_{i+1}-x_{0}$, one can take these factors out and obtain
    $\det(V)=(x_{1}-x_{0})(x_{2}-x_{0})\cdots (x_{n}-x_{0}){\begin{vmatrix}1&x_{1}&x_{1}^{2}&\cdots &x_{1}^{n-1}\\1&x_{2}&x_{2}^{2}&\cdots &x_{2}^{n-1}\\\vdots &\vdots &\vdots &\ddots &\vdots \\1&x_{n}&x_{n}^{2}&\cdots &x_{n}^{n-1}\\\end{vmatrix}}=\prod _{1<i\leq n}(x_{i}-x_{0})\det(V')$,
where $V'$ is a Vandermonde matrix in $x_{1},\ldots ,x_{n}$. Iterating this process on this smaller Vandermonde matrix, one eventually gets the desired expression of $\det(V)$ as the product of all $x_{j}-x_{i}$ such that $i<j$.

### Rank of the Vandermonde matrix

* An m × n rectangular Vandermonde matrix such that m ≤ n has rank m if and only if all x$_i$ are distinct.
* An m × n rectangular Vandermonde matrix such that m ≥ n has rank n if and only if there are n of the x$_i$ that are distinct.
* A square Vandermonde matrix is invertible if and only if the x$_i$ are distinct. An explicit formula for the inverse is known (see below).

## Generalizations

If the columns of the Vandermonde matrix, instead of 1, x, x$^2$, ...{\textstyle 1, x, x^{2}, ...}, are general polynomials p$_0$, p$_1$, ..., p$_n${\textstyle p_{0}, p_{1}, ..., p_{n}}, such that each one has degree 0, 1, ..., n{\textstyle 0, 1, ..., n}, that is, if $V=[p_{i}(x_{j})]_{i,j\in 0:n}$, $\det V(x_{0:n})=\prod _{k}c_{k}\Delta (x)$where c$_0$, ..., c$_n${\textstyle c_{0}, ..., c_{n}} are the head coefficients of p$_0$, p$_1$, ..., p$_n${\textstyle p_{0}, p_{1}, ..., p_{n}}, and $\Delta (x)=\prod _{j>k}(x_{j}-x_{k})$ is the Vandermonde determinant.
detV(x$_{0:n}$){\textstyle \det V(x_{0:n})} is zero whenever x$_j$=x$_k${\textstyle x_{j}=x_{k}}, and has degree 1/2 n(n+1){\textstyle {\frac {1}{2}}n(n+1)}, so it is a multiple of ∏$_{j>k}$(x$_j$−x$_k$){\textstyle \prod _{j>k}(x_{j}-x_{k})}. To find the constant in front, simply calculate the coefficient of the term x$_0$$^0$…x$_n$$^n${\textstyle x_{0}^{0}\dots x_{n}^{n}}, which is c$_0$…c$_n${\textstyle c_{0}\dots c_{n}}.
By multiplying with the Hermitian conjugate, we find that $\det \left[\sum _{l}p_{j}(z_{l})p_{k}(z_{l}^{*})\right]=\prod _{k}|c_{k}|^{2}|\Delta (z)|^{2}$
Theorem (Tao 2012, page 251) — Fix x{\textstyle x}, and at the y→0{\textstyle y\to 0} limit, $\det[e^{x_{i}y_{j}}]={\frac {1}{1!\dots n!(n+1)!}}\Delta (x)\Delta (y)+o(\Delta (y))$ uniformly for y{\textstyle y}
If any x$_j$=x$_k${\textstyle x_{j}=x_{k}} or y$_j$=y$_k${\textstyle y_{j}=y_{k}}, then the determinant is zero, so it has the form $\det[e^{x_{i}y_{j}}]=C(x,y)\Delta (x)\Delta (y)$ where C(x, y){\textstyle C(x, y)} is some power series in x, y{\textstyle x, y}.
The left side is a sum of the form $\sum _{\sigma }(-1)^{|\sigma |}e^{\sum _{i}x_{i}y_{\sigma (i)}}$ Expand them by Taylor expansion. For fixed x{\textstyle x}, the series is uniformly convergent in y{\textstyle y} in a neighborhood of zero.
To find the constant term of C(x, y){\textstyle C(x, y)}, simply calculate the coefficient of the term x$_0$$^0$y$_0$$^0$…x$_n$$^n$y$_n$$^n${\textstyle x_{0}^{0}y_{0}^{0}\dots x_{n}^{n}y_{n}^{n}}, which is 1/(1!⋯(n+1)!) {\textstyle {\frac {1}{1!\cdots (n+1)!}}}.
By the symmetry of the determinant, the next lowest-powered term of C(x, y){\textstyle C(x, y)} is of form a(x$_0$y$_0$+⋯+x$_n$y$_n$){\textstyle a(x_{0}y_{0}+\dots +x_{n}y_{n})}, which is o(1){\textstyle o(1)} as y→0{\textstyle y\to 0}.

## Inverse Vandermonde matrix

As explained above in Applications, the polynomial interpolation problem for $p(x)=a_{0}+a_{1}x+a_{2}x^{2}+\dots +a_{n}x^{n}$satisfying $p(x_{0})=y_{0},\ldots ,p(x_{n})=y_{n}$ is equivalent to the matrix equation $Va=y$, which has the unique solution $a=V^{-1}y$. There are other known formulas which solve the interpolation problem, which must be equivalent to the unique $a=V^{-1}y$, so they must give explicit formulas for the inverse matrix $V^{-1}$. In particular, Lagrange interpolation shows that the columns of the inverse matrix
$V^{-1}={\begin{bmatrix}1&x_{0}&\dots &x_{0}^{n}\\\vdots &\vdots &&\vdots \\[.5em]1&x_{n}&\dots &x_{n}^{n}\end{bmatrix}}^{-1}=L={\begin{bmatrix}L_{00}&\!\!\!\!\cdots \!\!\!\!&L_{0n}\\\vdots &&\vdots \\L_{n0}&\!\!\!\!\cdots \!\!\!\!&L_{nn}\end{bmatrix}}$
are the coefficients of the Lagrange polynomials
   $L_{j}(x)=L_{0j}+L_{1j}x+\cdots +L_{nj}x^{n}=\prod _{0\leq i\leq n \atop i\neq j}{\frac {x-x_{i}}{x_{j}-x_{i}}}={\frac {f(x)}{(x-x_{j})\,f'(x_{j})}}\,,$
where $f(x)=(x-x_{0})\cdots (x-x_{n})$. This is easily demonstrated: the polynomials clearly satisfy $L_{j}(x_{i})=0$ for $i\neq j$ while $L_{j}(x_{j})=1$, so we may compute the product $VL=[L_{j}(x_{i})]_{i,j=0}^{n}=I$, the identity matrix.

## Confluent Vandermonde matrices

As described before, a Vandermonde matrix describes the linear algebra interpolation problem of finding the coefficients of a polynomial $p(x)$ of degree $n-1$ based on the values $p(x_{1}),\,...,\,p(x_{n})$, where $x_{1},\,...,\,x_{n}$ are distinct points. If $x_{i}$ are not distinct, then this problem does not have a unique solution (and the corresponding Vandermonde matrix is singular). However, if we specify the values of the derivatives at the repeated points, then the problem can have a unique solution. For example, the problem
    ${\begin{cases}p(0)=y_{1}\\p'(0)=y_{2}\\p(1)=y_{3}\end{cases}}$
where $p(x)=ax^{2}+bx+c$, has a unique solution for all $y_{1},y_{2},y_{3}$ with $y_{1}\neq y_{3}$. In general, suppose that $x_{1},x_{2},...,x_{n}$ are (not necessarily distinct) numbers, and suppose for simplicity that equal values are adjacent:
    $x_{1}=\cdots =x_{m_{1}},\ x_{m_{1}+1}=\cdots =x_{m_{2}},\ \ldots ,\ x_{m_{k-1}+1}=\cdots =x_{m_{k}}$
where $m_{1}<m_{2}<\cdots <m_{k}=n,$ and $x_{m_{1}},\ldots ,x_{m_{k}}$ are distinct. Then the corresponding interpolation problem is
    ${\begin{cases}p(x_{m_{1}})=y_{1},&p'(x_{m_{1}})=y_{2},&\ldots ,&p^{(m_{1}-1)}(x_{m_{1}})=y_{m_{1}},\\p(x_{m_{2}})=y_{m_{1}+1},&p'(x_{m_{2}})=y_{m_{1}+2},&\ldots ,&p^{(m_{2}-m_{1}-1)}(x_{m_{2}})=y_{m_{2}},\\\qquad \vdots &&&\qquad \vdots \\p(x_{m_{k}})=y_{m_{k-1}+1},&p'(x_{m_{k}})=y_{m_{k-1}+2},&\ldots ,&p^{(m_{k}-m_{k-1}-1)}(x_{m_{k}})=y_{m_{k}}.\end{cases}}$
The corresponding matrix for this problem is called a confluent Vandermonde matrix, given as follows. If $1\leq i,j\leq n$, then $m_{\ell }<i\leq m_{\ell +1}$ for a unique $0\leq \ell \leq k-1$ (denoting $m_{0}=0$). We let
    $V_{i,j}={\begin{cases}0&{\text{if }}j<i-m_{\ell },\\[6pt]{\dfrac {(j-1)!}{(j-(i-m_{\ell }))!}}x_{i}^{j-(i-m_{\ell })}&{\text{if }}j\geq i-m_{\ell }.\end{cases}}$
This generalization of the Vandermonde matrix makes it non-singular, so that there exists a unique solution to the system of equations, and it possesses most of the other properties of the Vandermonde matrix. Its rows are derivatives (of some order) of the original Vandermonde rows. There exists an algorithm for the inverse of the confluent Vandermonde matrix that works in quadratic time for every input allowed by the definition.
Another way to derive the above formula is by taking a limit of the Vandermonde matrix as the $x_{i}$'s approach each other. For example, to get the case of $x_{1}=x_{2}$, take subtract the first row from second in the original Vandermonde matrix, and let $x_{2}\to x_{1}$: this yields the corresponding row in the confluent Vandermonde matrix. This derives the generalized interpolation problem with given values and derivatives as a limit of the original case with distinct points: giving $p(x_{i}),p'(x_{i})$ is similar to giving $p(x_{i}),p(x_{i}+\varepsilon )$ for small $\varepsilon$. Geometers have studied the problem of tracking confluent points along their tangent lines, known as compacitification of configuration space.