Given a set of data points called nodes, we want to find a polynomial that passes through all of them exactly. The most direct approach is to treat this as a system of linear equations. The Vandermonde matrix is the coefficient matrix of that system: it encodes the relationship between the unknown polynomial coefficients and the given function values at the nodes.
The Setup
Suppose we have n+1 nodes: (x0,f(x0)),(x1,f(x1)),…,(xn,f(xn)).
We want to find a polynomial:
Pn(x)=a0+a1x+a2x2+⋯+anxn
that satisfies Pn(xi)=f(xi) for every node. This gives n+1 equations, one per node which form the linear system:
Problem: Velocity was measured at three time points. Find P2(t) and estimate the acceleration at t=7.
Time t
Velocity v
3
44
5
24
7
26
Step 1: Set up the 3×3 system:
11135792549a0a1a2=442426
Step 2: Solve the system:
Solving (by row reduction or computer) yields:
a0=115.25,a1=−32,a2=2.75
P2(t)=115.25−32t+2.75t2
Step 3: Estimate acceleration at t=7:
Acceleration is the derivative of velocity:
P2′(t)=−32+5.5t
P2′(7)=−32+5.5×7=−32+38.5=6.5 ms−2
Limitation: Computational Cost
The Vandermonde approach works, but it requires computing a matrix inverse. For an (n+1)×(n+1) system, this has time complexity O(n3) — it becomes prohibitively expensive for large n.