Академический Документы
Профессиональный Документы
Культура Документы
1. Interpolation
1.1 Introduction
Definition: Method of constructing new data points within the range of a discrete set of
known data points.
Interpolation methods are the basis for many other procedures that we will study: numerical
differentiation and integration and solution methods for ordinary and partial differential
equations,
Illustration.
Let be a function which takes the values, , , , , .
If the form of the function is known, the values of corresponding to any value of can be
calculated. In most practical problems, the exact form of the function is not known.
In such cases the function is replaced by a singular function which has the same values as
for . The function is called an interpolating function or smoothing function
or interpolating formula.
This process is called interpolation. If is outside the range of , its extrapolation and not
interpolation.
Considerations in selecting with a suitable interpolation:
a) Are the given points equidistant?
b) Has a difference scheme been constructed?
c) Is a table of interpolation coefficients available?
d) Is interpolation to be performed at the beginning or at the end of the table?
We will deal with polynomial interpolation. Polynomial interpolation is preferred because
polynomials are:
a) easy to determine,
b) easy to evaluate ,
c) easy to differentiate and Integrate,
d) free from singularirities.
Ways of fitting a polynomial
1. Exact fits – yields polynomials passing through all the points.
2. Approximate fits – yields polynomials passing through the set of data in the best possible
manner without the requirement of passing through any data point (least square methods).
1
SMA 2471 Numerical Analysis Notes
Examples
1) Fit a linear polynomial from the points given in the table below to .
Solution
Using the formula for linear interpolation, with , ,
2
SMA 2471 Numerical Analysis Notes
Quadratic Interpolation
If three data points are available, a quadratic polynomial or a parabola can be used to
interpolate. Such a polynomial takes the
where
Examples
5) Fit a second order polynomial to the three points given in the table below then use the
polynomial to evaluate .
Solution
Applying the following equations
, , , then
Substituting these values into the equation yields the quadratic formula
3
SMA 2471 Numerical Analysis Notes
2) Use a Lagrange interpolating polynomial of the first and second order to evaluate on the
basis of the data given below.
4
SMA 2471 Numerical Analysis Notes
Exercises
1) Apply Lagrange’s formula to obtain the root of the function given that
, , and .
2) From the table
20 25 30 35
0.342 0.423 0.5 0.65
Find the value of for .
3) Determine from the following data
1 3 4
4 12 19
4) Apply Lagrange’s Interpolation formula to find a polynomial which passes through the points
, , and .
5) Find the Lagrange’s interpolating polynomial corresponding to the data points:
a) , , and
b) , , and
Examples
5
SMA 2471 Numerical Analysis Notes
2) Using numerical method, express the rational function as a sum of partial fractions.
(using Lagrange’s interpolation)
Exercises
1) Use Lagrange’s formula to express the following functions as the sums of partial fractions.
4) Using Lagrange’s formula, express the following function as a sum of partial fractions.
Table 1+++++++
are called tabular points or base points, are called tabular values and , is
called the interval or step – length
6
SMA 2471 Numerical Analysis Notes
In general then,
Where the index does not denote power but indicates the second difference and in
general the differences are denoted as
7
SMA 2471 Numerical Analysis Notes
The entries along the backward diagonal are the backward differences of various orders at
the corresponding source point in the table.
5) Central Difference Operator,
Is defined as
6) Averaging Operator,
Defined as
8
SMA 2471 Numerical Analysis Notes
Exercises
1) A second degree polynomial passes through the points and .
Find the polynomial.
2) Find for using the following table.
3) Given that , , ,
. find the value of .
4) Using Newton’s forward interpolation formula find the value of from the following
data. Estimate the error.
9
SMA 2471 Numerical Analysis Notes
Exercises
1) From the following data obtain a backward difference interpolation polynomial and use it to
interpolate as .
3) qq
Central difference interpolation formulae
Appropriate/preferable for interpolating near the middle of a difference table.
Let be given for equispaced values of arguments , , ,
, and the corresponding values of be . If
denote the central ordinate corresponding to , the central difference table is given as
10
SMA 2471 Numerical Analysis Notes
4. From the following table, find the value of by Newton’s, and Stirling formula.
5. Apply (a) Stirling’s formula and (b) Newton’s foward difference formula to find the value of
from the following table which gives the values of
at intervals of from to : { }
11
SMA 2471 Numerical Analysis Notes
Note:
1) Divided differences are symmetrical in their arguments.
Thus ,
Which is called Newton’s General divided difference formula or (Newton’s Fundamental (divided
difference) Formula).
Exercises
12
SMA 2471 Numerical Analysis Notes
3. By means of Newton’s divided difference formula, find the value of and form the
following table.
Combined Exercises
1. Given the data
Calculate using:
i) Lagrange polynomial of order and ,
ii) Newton’s interpolating polynomial of order through .
2. Given the data
Calculate using:
i) Lagrange polynomial of order and ,
ii) Newton’s interpolating polynomial of order through .
3. Find the interpolating polynomial by Lagrange’s interpolation and Newton’s divided
difference formula for the following data and hence show that they represent the same
polynomial
a) , , and .
b) , , and .
13