The Vandermonde matrix evaluates it at k distinct points as a single operation.
Evaluating a polynomial as a matrix product
For simplicity, we assume k=4, then we have a polynomial of degree k−1=3.
Evaluation at single point
The evaluation of polynomial f(x) at the point x0 is:
f(x0)=a0+a1⋅x0+a2⋅x02+a3⋅x03
This can be written as matrix product: multiplying a 1×4 matrix containing the successive powers of x0 by the vector of polynomial coefficients, as follows:
[f(x0)]=[1x01x02x03]⋅a0a1a2a3
Evaluation at two points
To evaluate at two points, x0 and x1, we could express these as two separate matrix products. Instead, we stack these row vectors into a 2×4 matrix:
Where each row contains the successive powers of x0 and x1, respectively.
Therefore, evaluating the polynomial at two points is equivalent to multiplying a 2×k=2×4 matrix by the coefficient vector.
Evaluation at 4 points
If we extend our points to 4 points, then with k=4 (already assumed), the resulting system of equations is equivalent to multiplying a k×k=4×4 matrix by the vector of coefficients:
This matrix is called a 4×4Vandermonde matrix and is denoted by V.
The equation above is compactly written below as
p=V⋅a
where a is the vector of the polynomial’s coefficients and p is the vector of its point values.
Evaluating the polynomial at the 4th roots of unity as a matrix product
Now, consider evaluating the polynomial f(x) at the 4th roots of unity, {ω0,ω1,ω2,ω3}, instead of at arbitrary 4 points. We get the Vandermonde matrixV as:
Therefore, the matrix simplifies to the following pattern:
V=11111ω−1−ω1−11−11−ω−1ω
For a concrete example, ω=13 is a primitive 4th root of unity in the finite field F17 (where arithmetic is modulo 17), and the Vandermonde matrix is:
V=1111113164116116141613
Conclusion
Evaluating a polynomial of degree k−1 at k points is equivalent to multiplying a k×k Vandermonde V matrix by the coefficient vector a, formalized by the equation V⋅a=p.
Ready to Get Started? Join Thousands of Users Today
Start your free trial now and experience the difference. No credit card required.