The Newton polynomial built in layers with divided differences: linear, quadratic and general form, the difference table, the error and a worked example with real data.
The idea: a polynomial in layers
Newton writes the polynomial so that each new node adds one term without forcing a rebuild of the previous work. Instead of the power basis, it uses a basis of accumulated products:
In practice you fill a triangular table: the first column is the f(xi), the second the first-order differences, and so on. The polynomial coefficients are the upper diagonal.
Error of the Newton polynomial
Worked example
ExamplePopulation census (degree 4)
With Spain's population data (millions) in 1971, 1981, 1991, 2001 and 2011 (33.956, 37.743, 39.434, 40.847 and 46.816), estimate the 2005 population with the highest-degree Newton polynomial.
With 5 data points the degree is 4. Compute the divided differences (the upper diagonal of the table):
From the first equation b0=f(x0). Substituting into the second and solving for b1:
b1=x1−x0f(x1)−f(x0)=f[x1,x0]
b1 is called the first-order divided difference. Repeating the same argument with three points gives the second-order difference, and so we reach the general recursion.