Hermite interpolation

From Wikipedia, the free encyclopedia

Hermite interpolation is a method closely related to the Newton divided difference method of interpolation in numerical analysis, that allows us to consider given derivatives at data points, as well as the data points themselves. The interpolation will give a polynomial that has a degree less than or equal to the number of pieces of data (both data points and their derivatives) given minus 1.

Contents

[edit] Usage

The derivatives are treated as extra points, and in the divided difference table, the points are repeated. To avoid division by zero, the values where the division by zero would take place are replaced with the derivatives, multiplied by a constant, depending on the position in the table. For example, using the notation on the Newton polynomial article, if point xi is repeated n times, [xi,xi,...,xi] = f(n − 1)(xi) / (n − 1)!, e.g.

[xi,xi,xi,xi] = f(3)(xi) / 3!
[xi,xi,xi] = f(2)(xi) / 2!

etc.

The table is calculated in the exact same fashion as before.

[edit] Example

The example used here will be the polynomial x8 + 1. The values, first, and second derivatives at the points x = − 1, x = 0, and x = 1 will be used. This means that 9 pieces of data will be used, and so the polynomial discovered will be of degree 8.

-1      2
-1      2       -8
-1      2       -8      28
0       1       -1      7       -21
0       1       0       1       -6      15
0       1       0       0       -1      5       -10
1       2       1       1       1       1       -2      4
1       2       8       7       6       5       2       2       -1
1       2       8       28      21      15      10      4       1       1
P(x) = 2 − 8(x + 1) + 28(x + 1)2 − 21(x + 1)3 + 15x(x + 1)3 − 10x2(x + 1)3 + 4x3(x + 1)3 − 1x3(x + 1)3(x − 1) + x3(x + 1)3(x − 1)2
= 2 − 8 + 28 − 21 − 8x + 56x − 63x + 15x + 28x2 − 63x3 + 45x2 − 10x2 − 21x3 + 45x3 − 30x3 + 4x3 + x3 + x3 + 15x4 − 30x4 + 12x4 + 2x4 + x4 − 10x5 + 12x5 − 2x5 + 4x5 − 2x5 − 2x5x6 + x6x7 + x7 + x8
= x8 + 1.

[edit] Error

The error of the function when used to approximate the value at a point is always going to be for some point c between the furthest x-value used and the x-value approximated: \frac{f^{a}(c)}{a!}*\prod_{i=0}^n (x-x_i)^{N_i} where a is the number of pieces of data, n is the number of x-values minus 1, and Ni is the number of pieces of data used at xi. This is because the function cannot change more quickly from the estimated Hermite interpolation polynomial than its a-th derivative divided by a! multiplied by the distance of the point of evaluation from the known points.

[edit] See also

[edit] External links

In other languages