06.09.2021 Views

First Semester in Numerical Analysis with Julia, 2020a

First Semester in Numerical Analysis with Julia, 2020a

First Semester in Numerical Analysis with Julia, 2020a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 3. INTERPOLATION 116<br />

Then the Hermite polynomial can be written as:<br />

H 2n+1 (x) =f[z 0 ]+f[z 0 ,z 1 ](x − z 0 )+f[z 0 ,z 1 ,z 2 ](x − z 0 )(x − z 1 )+<br />

...+ f[z 0 ,z 1 , ..., z 2n+1 ](x − z 0 ) ···(x − z 2n )<br />

=f[z 0 ]+<br />

2n+1<br />

∑<br />

i=1<br />

f[z 0 , ...., z i ](x − z 0 )(x − z 1 ) ···(x − z i−1 ).<br />

There is a little problem <strong>with</strong> some of the first divided differences above: they are undef<strong>in</strong>ed!<br />

Observe that<br />

f[z 0 ,z 1 ]=f[x 0 ,x 0 ]= f(x 0) − f(x 0 )<br />

x 0 − x 0<br />

or, <strong>in</strong> general,<br />

f[z 2i ,z 2i+1 ]=f[x i ,x i ]= f(x i) − f(x i )<br />

x i − x i<br />

for i =0, ..., n.<br />

From Theorem 58, weknowf[x 0 , ..., x n ]= f (n) (ξ)<br />

for some ξ between the m<strong>in</strong> and max<br />

n!<br />

of x 0 , ..., x n . From a classical result by Hermite & Gennochi (see Atk<strong>in</strong>son [3], page 144),<br />

divided differences are cont<strong>in</strong>uous functions of their variables x 0 , ..., x n . This implies we can<br />

take the limit of the above result as x i → x 0 for all i, which results <strong>in</strong><br />

f[x 0 , ..., x 0 ]= f (n) (x 0 )<br />

.<br />

n!<br />

Therefore <strong>in</strong> the Hermite polynomial coefficient calculations, we will put<br />

f[z 2i ,z 2i+1 ]=f[x i ,x i ]=f ′ (x i )=y ′ i<br />

for i =0, 1, ..., n.<br />

Example 63. Let’s compute the Hermite polynomial of Example 62. The data is:<br />

i x i y i y i<br />

′<br />

0 -1.5 0.071 1<br />

1 1.6 -0.029 -1<br />

2 4.7 -0.012 1<br />

Here n =2, and 2n +1=5, so the Hermite polynomial is<br />

H 5 (x) =f[z 0 ]+<br />

5∑<br />

f[z 0 , ..., z i ](x − z 0 ) ···(x − z i−1 ).<br />

i=1<br />

The divided differences are:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!