Newton Interpolation Polynomial
Source inspiration: (Mathew 2000-2019).
Animations
Each animation below shows the degree-\(n\) Newton interpolating polynomial built by adding one equally-spaced node per frame using divided differences. The first case shows well-behaved convergence; the second demonstrates the Runge phenomenon for a function with a steep peak.
Julia source scripts that generated these animations are linked under each case.
Case 1 — Convergent interpolation, \(f(x) = \cos(x)\), 7 nodes on \([0,2\pi]\)
Behavior: With 7 equally-spaced nodes the degree-6 Newton polynomial closely tracks \(\cos(x)\). Adding each node reduces the error substantially, and the improvement is monotone because \(\cos(x)\) is smooth and the nodes are well-placed relative to the function’s variation.

Case 2 — Runge phenomenon, \(f(x) = 1/(1+25x^2)\), 11 nodes on \([-1,1]\)
Behavior: With equally-spaced nodes the high-degree Newton polynomial oscillates wildly near the endpoints even though the function is smooth. This is the Runge phenomenon: high-degree polynomial interpolation at equally-spaced nodes can diverge, motivating the use of Chebyshev nodes or piecewise methods.

Derivation Notes (Planned)
Short derivations will be added to explain the core equations and assumptions.