Theorem (Newton interpolating polynomial)

For a polynomial interpolation problem, the interpolating polynomial is given by $$ \begin{align*} p_n(x) = \sum_{k=0}^{n} f[x_0, \ldots, x_k] \prod_{i=0}^{k-1} (x-x_i) \end{align*} $$ where $f[x_0, \ldots, x_k]$ is the divided difference.

Proof