Proof

Let f(X) R[X] be a polynomial of degree at most n - 1. Write f(X) = f0 + f1X + ··· + fn-1Xn-1 and substitute the given values. This transforms the problem into that of solving the system of linear equations:

f0 + f1 · x1 + ··· + fn-1 · x1n-1 = a1

f0 + f1 · x2 + ··· + fn-1 · x2n-1 = a2

·                      ·
·                      ·
·                      ·

f0 + f1 · xn + ··· + fn-1 · xnn-1 = an.

This system can be rewritten in matrix form as M f = a, where f is the `vector' (f0, ..., fn-1)T, a the vector (a1, ..., an)T, and M the matrix M = (xij - 1)i = 1,..., n, j = 1,..., n. The polynomial (equivalently, the vector) f are the n unknowns.

Now M is a so-called Vandermonde matrix. It has the special property that the determinant is given by the formula

det M = i<j (xj - xi).
Since the xi are chosen to be distinct, the determinant is nonzero. Since R is a field, the inverse of the determinant exists and M is invertible. This means that the system of linear equations has exactly one solution.