« previous | Thursday, January 30, 2014 | next »
Last Time
Find
of degree
such that
given samples
of
.
- There is a unique



Iterative Process for Lagrange Interpolating Polynomial
Given
,
interpolates
at
:
for 
interpolates
at
:
for 
Can we find
? Paul Neville did.
Conditions:
and
Hence
- At iteration
, our interpolations of each point are the constants 
- At iteration
, our interpolations of each consecutive pair of points are linear
- At iteration
, our interpolations of each consecutive triple of points are quadratic
- etc.
- until we combine all points into

However, this method is unstable (especially when points are close together, and
in the product has much roundoff error)
Newton's Formula for 
Given
, we can find
.

Observe that
as
Where
is the coefficient of
in
.
We know from above that
![{\displaystyle f[x_{0}]=f(x_{0})}](https://wikimedia.org/api/rest_v1/media/math/render/svg/13f97a9a72eaf5d0b603d3753d452b3ac74fa25d)
![{\displaystyle f[x_{0},x_{1}]={\begin{cases}{\frac {f(x_{1})-f(x_{0})}{x_{1}-x_{0}}}&x_{1}\neq x_{0}\\{\frac {f'(x_{0})}{1!}}&x_{1}=x_{0}\end{cases}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c9b9c05890335b5fae451efe951f798aea1a9935)
We can extract
In general, when the points coincide, we take the Taylor series.
Applying this to Neville's iterative method, we find
![{\displaystyle L_{1}(x)=f[x_{1},x_{2},\ldots ,x_{n}]\,x^{n-1}+\Theta (x^{n-2})}](https://wikimedia.org/api/rest_v1/media/math/render/svg/5e4bb335bd23b2e249ddf13e6b59b11ffd5cdc07)
![{\displaystyle L_{0}(x)=f[x_{0},x_{1},\ldots ,x_{n-1}]\,x^{n-1}+\Theta (x^{n-2})}](https://wikimedia.org/api/rest_v1/media/math/render/svg/cbe83b1975fe30181aa87a0d34b745308cc1a9a6)
![{\displaystyle p_{n}(x)=x^{n}\,{\frac {f[x_{1},\ldots ,x_{n}]-f[x_{0},\ldots ,x_{n-1}}{x_{n}-x_{0}}}+\Theta (x^{n-1})}](https://wikimedia.org/api/rest_v1/media/math/render/svg/a93890ffed495e3beed0426bc7bc45b35d12f037)
In General,
And
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p_n(x) = f(x_0) + f[x_0, x_1] \, (x - x_0) + f[x_0, x_1, x_2] \, (x - x_0) \, (x-x_1) + \dots + f[x_0, x_1, \ldots, x_n] \, (x-x_0) \, \dots \, (x-x_{n-1}) }
Example
x f(x) f[.,.] f[.,.,.] f[.,.,.,.] f[.,.,.,.,.] f[.,.,.,.,.,.]
0 4
-3
1 1 9/2
6 -17/6
2 7 -4 11/12
-2 5/6 -3/20
3 5 -3/2 1/6
-5 3/2
4 0 3
1
5 1
Therefore
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p_2(x) = 4 - 3x + \frac{9}{2} x(x-1)}
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p_5(x) = 4 - 3x + \frac{9}{2} x(x-1) - \frac{17}{6} x(x-1)(x-2) + \frac{11}{12} x(x-1)(x-2)(x-3) - \frac{3}{20} x(x-1)(x-2)(x-3)(x-4)}
We could have interpolated the polynomial in reverse:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p_5(x) = 1 + 1(x-5) + 3(x-5)(x-4) + \frac{3}{2} (x-5)(x-4)(x-3) + \frac{1}{6} (x-5)(x-4)(x-3)(x-2) - \frac{3}{20} (x-5)(x-4)(x-3)(x-2)(x-1)}
Since Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p_5(x)}
is unique, forwards and backwards methods (and Lagrange's) must give the same result.
Example 2
This cannot be interpolated by Lagrange's method
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x}
|
0 |
1 |
2
|
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x)}
|
2 |
1 |
2
|
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f'(x)}
|
-1 |
1 |
|
Goal: Find Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p_4}
such that Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p_4(x_i) = f(x_i)}
and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p_4'(x_i) = f'(x_i)}
.
x f(x) f[.,.] f[.,.,.] f[.,.,.,.] f[.,.,.,.,.]
0 2
-1
0 2 0
-1 2
1 1 2 -3/2
1 -1
1 1 0
1
2 2
Note: If we are given the Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n}
-th derivative of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f}
at a point, we repeat that point Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n+1}
times in the table. Conversely, if we want to repeat a point Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle k}
times in the table, we need the values of the Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle k+1}
-th derivative at that point
Therefore Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p_4(x) = 2 - x + 0x^2 + 2x^2(x-1) - \frac{3}{2} x^2(x-1)^2}
.
Homework
3.3: 10, 11, 12, 13, 14, 15