Professional Documents
Culture Documents
1 Neville’s Method
Neville’s method can be applied in the situation that we want to interpolate f (x) at a given point x = p with
increasingly higher order Lagrange interpolation polynomials.
For concreteness, consider three distinct points x0 ,x1 , and x2 at which we can evaluate f (x) exactly f (x0 ),f (x1 ),f (x2 ).
From each of these three points we can construct an order zero (constant) “polynomial” to approximate f (p)
Of course this isn’t a very good approximation so we turn to first order Lagrange polynomials
x − x1 x − x0
f (p) ≈ P0,1 (p) = f (x0 ) + f (x1 ) (5)
x0 − x1 x1 − x0
x − x2 x − x1
f (p) ≈ P1,2 (p) = f (x1 ) + f (x2 ) (6)
x1 − x2 x2 − x1
There is also P0,2 , but we won’t concern ourselves with that one.
If we note that f (xi ) = Pi (x), we find
x − x1 x − x0
P0,1 (p) = P0 (p) + P1 (p) (7)
x0 − x1 x1 − x0
(x − x1 )P0 (p) − (x − x0 )P1 (p)
= (8)
x0 − x1
and similarly
which is just the 3rd order Lagrange polynomial interpolating the points x0 ,x1 ,x2 . This shouldn’t surprise you since
this is the unique third order polynomial interpolating these three points.
2 Example
We are given the function
1
f (x) = (12)
x
We want to approximate the value f (3).
MACM 316 Neville’s Method
i xi f (xi )
0 2 0.5
(13)
1 2.5 0.4
2 4 0.25
From these we proceed to construct P0,1 and P1,2 by using the Neville formula
i xi Pi Pi,i−1
0 2 0.5
(19)
1 2.5 0.4 0.3
2 4 0.25 0.35
i xi Pi Pi,i−1 Pi,i−1,i−2
0 2 0.5
(21)
1 2.5 0.4 0.3
2 4 0.25 0.35 0.325
If you find yourself in the unusual situation that you know P0,1,2 , and one of P0,1 , or P1,2 , but not the other, you
can always rearrange Eq. 20 to suit your purposes.