Suppose that Pn(x) is the n-th interpolating polynomial that agrees with the function f at
the distinct numbers x0,x1,…,xn. Pn has the form:
Pn(x)=a0+a1(x−x0)+a2(x−x0)(x−x1)+⋯+an(x−x0)…(x−xn−1)
for appropriate constants a0,a1,…,an. The constants can be found by setting x to the known data points x0,x1,…,xn.
Divided-difference notation
Divided differences are defined with respect to a set of distinct numbers.
Zeroth divided difference
f[xi]=f(xi)
First divided difference
f[xi,xi+1]=xi+1−xif(xi+1)−f(xi)
Second divided difference
f[xi,xi+1,xi+2]=xi+2−xif[xi+1,xi+2]−f[xi,xi+1]
k-th divided difference
f[xi,xi+1,xi+2,…,xi+k]=xi+k−xif[xi+1,xi+2,…,xi+k]−f[xi,xi+1,xi+2,…,xi+k−1]
Now Pn(x) can be rewritten in a form called Newton’s Divided Difference:
Pn(x)=f[x0]+k=1∑nf[x0,x1,…,xk](x−x0)(x−x1)…(x−xk−1)