Definition :
Suppose that the function f (x) is known at (N+1)
points
(x0, f0), (x1, f1),
. . . , (xN, fN) where the pivotal points
xi
spread out over the interval [a,b] satisfy a
= x0 < x1 < .
. . < xN = b
and fi = f(xi) then finding the value
of the function at any non tabular point
xs
(x0 < xs < xN) is called
interpolation.
Interpolation is done by approximating the required function using simpler
functions such as, polynomials. Polynomial approximations assume the data
as exact at the (N+1) tabular points and generate an Nth
degree polynomial passing through these (N+1) points. However, if
the given data has some errors then these errors also will reflect in the
corresponding approximated function. More accurate approximations can be
done using Splines and Chebicheve, Legender and Hermite polynomials
but polynomials of degree N or less passing through (N+1)
points are easy to develop and useful in understanding numerical differenciation
and numerical integral. Hence the present chapter is devoted to developing
and using polynomial interpolation formulae to the required functions.
Linear Interpolation
:
Consider the data ( x0, f0), (x1,
f1). Problem is to find a function f(x)
which passes through these two data points. Since there are only two data
points available, the maximum degree of the
unique polynomial which passes through these points is one. Let us assume
that
f(x) = ax + b is the straight line passing through the
two points then