Newton's divided-difference form builds an interpolating
polynomial from a divided-difference table.
For three points the polynomial is:
P(x) = c0 + c1*(x-x0) + c2*(x-x0)*(x-x1)
where c0=f0, c1=f[0,1], c2=f[0,1,2].
Example: (1,1),(2,4),(4,16) with x=3 gives P(3)=9.
The Newton coefficients c0,c1,c2 equal f0, f[0,1], f[0,1,2].
Example
Build a divided-difference table and evaluate the Newton form.
highlighted = computed this step
Step 1 — Set up
Evaluate the Newton polynomial at x equals 3.
Step 2 — First differences
Fill the first divided differences.
x124f1416first36
Step 3 — Second difference
Fill the second divided difference.
x124f1416first36second1
Step 4 — Newton coefficients
Use diagonal coefficients c 0 equals 1, c 1 equals 3, and c 2 equals 1.
c0=1c1=3c2=1
Step 5 — Evaluate Newton form
At x 3, the term values are 1, 6, and 2, so P of 3 is 9.
P(3)=1+3⋅(3−1)+1⋅(3−1)(3−2)=1+6+2=9
Step 6 — Result
The Newton value at 3 is 9.
P(3)=9
newton-divided-differences
The divided-difference table is built recursively: f[i,i+1] = (f[i+1] - f[i]) / (x[i+1] - x[i]) f[i,i+1,i+2] = (f[i+1,i+2] - f[i,i+1]) / (x[i+2] - x[i])