Harman Patil (Editor)

Hermite interpolation

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In numerical analysis, Hermite interpolation, named after Charles Hermite, is a method of interpolating data points as a polynomial function. The generated Hermite interpolating polynomial is closely related to the Newton polynomial, in that both are derived from the calculation of divided differences. However, the Hermite interpolating polynomial may also be computed without using divided differences, see Chinese remainder theorem § Hermite interpolation.

Contents

Unlike Newton interpolation, Hermite interpolation matches an unknown function both in observed value, and the observed value of its first m derivatives. This means that n(m + 1) values

( x 0 , y 0 ) , ( x 1 , y 1 ) , , ( x n 1 , y n 1 ) , ( x 0 , y 0 ) , ( x 1 , y 1 ) , , ( x n 1 , y n 1 ) , ( x 0 , y 0 ( m ) ) , ( x 1 , y 1 ( m ) ) , , ( x n 1 , y n 1 ( m ) )

must be known, rather than just the first n values required for Newton interpolation. The resulting polynomial may have degree at most n(m + 1) − 1, whereas the Newton polynomial has maximum degree n − 1. (In the general case, there is no need for m to be a fixed value; that is, some points may have more known derivatives than others. In this case the resulting polynomial may have degree N − 1, with N the number of data points.)

Simple case

When using divided differences to calculate the Hermite polynomial of a function f, the first step is to copy each point m times. (Here we will consider the simplest case m = 1 for all points.) Therefore, given n + 1 data points x 0 , x 1 , x 2 , , x n , and values f ( x 0 ) , f ( x 1 ) , , f ( x n ) and f ( x 0 ) , f ( x 1 ) , , f ( x n ) for a function f that we want to interpolate, we create a new dataset

z 0 , z 1 , , z 2 n + 1

such that

z 2 i = z 2 i + 1 = x i .

Now, we create a divided differences table for the points z 0 , z 1 , , z 2 n + 1 . However, for some divided differences,

z i = z i + 1 f [ z i , z i + 1 ] = f ( z i + 1 ) f ( z i ) z i + 1 z i = 0 0

which is undefined. In this case, the divided difference is replaced by f ( z i ) . All others are calculated normally.

General case

In the general case, suppose a given point x i has k derivatives. Then the dataset z 0 , z 1 , , z N contains k identical copies of x i . When creating the table, divided differences of j = 2 , 3 , , k identical values will be calculated as

f ( j ) ( x i ) j ! .

For example,

f [ x i , x i , x i ] = f ( x i ) 2 f [ x i , x i , x i , x i ] = f ( 3 ) ( x i ) 6

etc.

Example

Consider the function f ( x ) = x 8 + 1 . Evaluating the function and its first two derivatives at x { 1 , 0 , 1 } , we obtain the following data:

Since we have two derivatives to work with, we construct the set { z i } = { 1 , 1 , 1 , 0 , 0 , 0 , 1 , 1 , 1 } . Our divided difference table is then:

z 0 = 1 f [ z 0 ] = 2 f ( z 0 ) 1 = 8 z 1 = 1 f [ z 1 ] = 2 f ( z 1 ) 2 = 28 f ( z 1 ) 1 = 8 f [ z 3 , z 2 , z 1 , z 0 ] = 21 z 2 = 1 f [ z 2 ] = 2 f [ z 3 , z 2 , z 1 ] = 7 15 f [ z 3 , z 2 ] = 1 f [ z 4 , z 3 , z 2 , z 1 ] = 6 10 z 3 = 0 f [ z 3 ] = 1 f [ z 4 , z 3 , z 2 ] = 1 5 4 f ( z 3 ) 1 = 0 f [ z 5 , z 4 , z 3 , z 2 ] = 1 2 1 z 4 = 0 f [ z 4 ] = 1 f ( z 4 ) 2 = 0 1 2 1 f ( z 4 ) 1 = 0 f [ z 6 , z 5 , z 4 , z 3 ] = 1 2 1 z 5 = 0 f [ z 5 ] = 1 f [ z 6 , z 5 , z 4 ] = 1 5 4 f [ z 6 , z 5 ] = 1 f [ z 7 , z 6 , z 5 , z 4 ] = 6 10 z 6 = 1 f [ z 6 ] = 2 f [ z 7 , z 6 , z 5 ] = 7 15 f ( z 6 ) 1 = 8 f [ z 8 , z 7 , z 6 , z 5 ] = 21 z 7 = 1 f [ z 7 ] = 2 f ( z 7 ) 2 = 28 f ( z 7 ) 1 = 8 z 8 = 1 f [ z 8 ] = 2

and the generated polynomial is

P ( x ) = 2 8 ( x + 1 ) + 28 ( x + 1 ) 2 21 ( x + 1 ) 3 + 15 x ( x + 1 ) 3 10 x 2 ( x + 1 ) 3 + 4 x 3 ( x + 1 ) 3 1 x 3 ( x + 1 ) 3 ( x 1 ) + x 3 ( x + 1 ) 3 ( x 1 ) 2 = 2 8 + 28 21 8 x + 56 x 63 x + 15 x + 28 x 2 63 x 2 + 45 x 2 10 x 2 21 x 3 + 45 x 3 30 x 3 + 4 x 3 + x 3 + x 3 + 15 x 4 30 x 4 + 12 x 4 + 2 x 4 + x 4 10 x 5 + 12 x 5 2 x 5 + 4 x 5 2 x 5 2 x 5 x 6 + x 6 x 7 + x 7 + x 8 = x 8 + 1.

by taking the coefficients from the diagonal of the divided difference table, and multiplying the kth coefficient by i = 0 k 1 ( x z i ) , as we would when generating a Newton polynomial.

Error

Call the calculated polynomial H and original function f. Evaluating a point x [ x 0 , x n ] , the error function is

f ( x ) H ( x ) = f ( K ) ( c ) K ! i ( x x i ) k i

where c is an unknown within the range [ x 0 , x N ] , K is the total number of data-points, and k i is the number of derivatives known at each x i plus one.

References

Hermite interpolation Wikipedia


Similar Topics