The Lagrange form has a drawback: add one more data point and every basis polynomial changes. Newton's form builds the same interpolating polynomial one point at a time: $$p(x) = c_0 + c_1(x - x_0) + c_2(x - x_0)(x - x_1) + \cdots + c_n(x - x_0)\cdots(x - x_{n-1}).$$ Each new term vanishes at all the earlier nodes, so it never spoils the fit already made.
The coefficients are divided differences, defined recursively: $f[x_i] = y_i$ and $$f[x_i, \ldots, x_j] = \frac{f[x_{i+1}, \ldots, x_j] - f[x_i, \ldots, x_{j-1}]}{x_j - x_i}.$$ Then $c_k = f[x_0, \ldots, x_k]$, the top edge of the divided-difference table.
Key idea
Why it works
Worked example: A table for three points
- First differences: $f[0, 1] = \frac{3 - 1}{1 - 0} = 2$ and $f[1, 3] = \frac{2 - 3}{3 - 1} = -\frac{1}{2}$.
- Second difference: $f[0, 1, 3] = \frac{-\frac{1}{2} - 2}{3 - 0} = -\frac{5}{6}$. The denominator is $3 - 0$, the ends of the span.
- $p(x) = 1 + 2x - \frac{5}{6}x(x - 1)$, which expands to $-\frac{5}{6}x^{2} + \frac{17}{6}x + 1$: the same polynomial the Lagrange form gave.
Answer: $p(x) = 1 + 2x - \frac{5}{6}x(x - 1)$
Worked example: Adding a point
- New entries along the bottom: $f[3, 4] = \frac{5 - 2}{4 - 3} = 3$, then $f[1, 3, 4] = \frac{3 - (-\frac{1}{2})}{4 - 1} = \frac{7}{6}$.
- Then $f[0, 1, 3, 4] = \frac{\frac{7}{6} - (-\frac{5}{6})}{4 - 0} = \frac{1}{2}$.
- New polynomial: the old one plus $\frac{1}{2}x(x - 1)(x - 3)$. At the old nodes the new term is $0$; at $x = 4$: old value $1$, plus $\frac{1}{2}(4)(3)(1) = 6$, total $5$. ✓
Answer: $p(x) + \frac{1}{2}x(x - 1)(x - 3)$
Newton's form is also cheap to evaluate. Nest it like Horner's method: $p(x) = c_0 + (x - x_0)\big(c_1 + (x - x_1)(c_2 + \cdots)\big)$, one multiplication and two additions per coefficient. Building the table takes about $n^{2}/2$ divisions, far less than solving the $(n + 1) \times (n + 1)$ system for the ordinary coefficients.
Common mistake