Documente Academic
Documente Profesional
Documente Cultură
Unequally spaced interpolation requires the use of the divided difference formula. It is defined as
f (x) − f (x0 )
f (x, x0 ) = (1)
x − x0
f (x, x0 ) − f (x0 , x1 )
f (x, x0 , x1 ) = (2)
x − x1
f (x, x0 , x1 ) − f (x0 , x1 , x2 )
f (x, x0 , x1 , x2 ) = (3)
x − x2
From equation (2), the formula can be rewritten as
The first term is considered the remainder term as it is not in the difference table, so f (x) can be
expressed approximately in terms of the divided differences as
The above formulas are the most convenient for numerical computation when the divided differences
are store in a matrix form. But actual explicit formulas can be written in terms of the sample function
values.
Given
f (x0 ) − f (x1 )
f (x) = f (x0 ) + (x − x0 ) .
x0 − x1
Use simplified notations f0 = f (x0 ), f1 = f (x1 ), to write
(x − x0 )
f (x) = f0 + (f1 − f0 )
(x1 − x0 )
(x1 − x0 ) − (x − x0 ) (x − x0 )
= f0 + f1
(x1 − x0 ) (x1 − x0 )
(x − x1 ) (x − x0 )
f (x) = f0 + f1
(x0 − x1 ) (x1 − x0 )
Lagrange Second Order Interpolation Formula
Given
Each term of δj (x) has the required properties such that (a) δj (xi ) = 0 when i = j and (b)
δj (xj ) = 1. The above property ensures f (xj ) = fj and none of the other sample values (fi ,
i = j) participate.