A polynomial with coefficients in a field and of degree is determined by its evaluations at any distinct points. A common way to see this is via Lagrange interpolation. But what happens in the more general case where the coefficients come from a commutative ring with ? It’s easy to see that the statement fails. Consider e.g. , and let . Then vanishes everywhere on R (easy to check), despite having degree two. In particular, there are multiple polynomials of degree (viz. and the zero polynomial) that vanish at three distinct points e.g. .
The correct generalization of the statement can be derived by considering the Vandermonde matrix. Recall that, given points , the Vandermonde matrix is the x matrix consisting of powers of the . The matrix-vector product of and the vector of the coefficients of a polynomial then gives the vector of evaluations of at the points . Interpolation goes the other way, i.e. from evaluations to coefficients. So we’d like to be able to invert the Vandermonde matrix.
As it happens, a square matrix over a commutative ring with is invertible if and only if its determinant is invertible in (the construction of the inverse matrix in terms of the adjugate demonstrates this). The determinant of the Vandermonde can be shown (using only column operations and properties of the determinant) to be the product of the for . Thus we see that a polynomial of degree is determined by its evaluations at distinct points if the differences of these evaluation points are invertible in .
In fact, we can do much better: the differences don’t need to have inverses in , they just need to be invertible in a larger ring: it in fact suffices that the differences are not zero divisors in . For suppose that this is the case. Let be the multiplicative closure of the set of pairwise differences. Then contains no zero divisors, and so can be considered as a subring of its localization at the subset . Importantly, the pairwise differences have inverses in . Hence, by the above argument, any polynomial of degree with coefficients in is determined by its evaluations at our points, and this of course continues to hold when the coefficients (and evaluations) lie in the subring .
To return to the problematic example above: for any three distinct points in , either at least two of them are odd, or at least two of them are even, and in either case there will be a pair of distinct points whose difference is even and hence either zero or a zero divisor.