Neville's algorithm

In mathematics, Neville's algorithm is an algorithm used for polynomial interpolation that was derived by the mathematician Eric Harold Neville. Given n + 1 points, there is a unique polynomial of degree ≤ n which goes through the given points. Neville's algorithm evaluates this polynomial.

Neville's algorithm is based on the Newton form of the interpolating polynomial and the recursion relation for the divided differences. It is similar to Aitken's algorithm (named after Alexander Aitken), which is nowadays not used.

The algorithm

Given a set of n+1 data points (xi, yi) where no two xi are the same, the interpolating polynomial is the polynomial p of degree at most n with the property

p(xi) = yi for all i = 0,,n

This polynomial exists and it is unique. Neville's algorithm evaluates the polynomial at some point x.

Let pi,j denote the polynomial of degree j i which goes through the points (xk, yk) for k = i, i + 1, , j. The pi,j satisfy the recurrence relation

 p_{i,i}(x) = y_i, \,  0 \le i \le n, \,
 p_{i,j}(x) = \frac{(x_j-x)p_{i,j-1}(x) + (x-x_i)p_{i+1,j}(x)}{x_j-x_i}, \,  0\le i < j \le n. \,

This recurrence can calculate p0,n(x), which is the value being sought. This is Neville's algorithm.

For instance, for n = 4, one can use the recurrence to fill the triangular tableau below from the left to the right.

 p_{0,0}(x) = y_0 \,
 p_{0,1}(x) \,
 p_{1,1}(x) = y_1 \,  p_{0,2}(x) \,
 p_{1,2}(x) \,  p_{0,3}(x) \,
 p_{2,2}(x) = y_2 \,  p_{1,3}(x) \,  p_{0,4}(x) \,
 p_{2,3}(x) \,  p_{1,4}(x) \,
 p_{3,3}(x) = y_3 \,  p_{2,4}(x) \,
 p_{3,4}(x) \,
 p_{4,4}(x) = y_4 \,

This process yields p0,4(x), the value of the polynomial going through the n + 1 data points (xi, yi) at the point x.

This algorithm needs O(n2) floating point operations.

The derivative of the polynomial can be obtained in the same manner, i.e:

 p'_{i,i}(x) = 0, \,  0 \le i \le n, \,
 p'_{i,j}(x) = \frac{(x_j-x)p'_{i,j-1}(x) - p_{i,j-1}(x) + (x-x_i)p'_{i+1,j}(x) + p_{i+1,j}(x)}{x_j-x_i}, \,  0\le i < j \le n. \,

Application to numerical differentiation

Lyness and Moler showed in 1966 that using undetermined coefficients for the polynomials in Neville's algorithm, one can compute the Maclaurin expansion of the final interpolating polynomial, which yields numerical approximations for the derivatives of the function at the origin. While "this process requires more arithmetic operations than is required in finite difference methods", "the choice of points for function evaluation is not restricted in any way". They also show that their method can be applied directly to the solution of linear systems of the Vandermonde type.

References

External links

This article is issued from Wikipedia - version of the Saturday, January 02, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.