NM 4
NM 4
Introduction:
Interpolation is the process of finding a function for any intermediate value of
between a set of discrete data points from to so that the function passes through
all the given data points.
Polynomials are commonly used for interpolation because they are easier to
evaluate, differentiate and integrate – called polynomial interpolation.
• Polynomial Forms:
1. Power form:
The power form of polynomial is
…..i
This form is very convenient to differentiating and integrating the polynomial
function and are widely used in mathematical analysis.
Sometimes inadequate.
…..iii
• When , it reduces to shifted power form.
• When , it reduces to simple power form.
Solution:
From the given table, we have
,
where,
-2 0 1 2 3 5 7
84 -10 ? ? -4 ? 60
Solution:
Let, and , then we have
…..i
where interpolation points , , , ……, , acts as centers.
The polynomial fits the data
Or,
Or,
Or,
…..iii
Equation (iii) is the Newton’s divided difference interpolation formula.
…..iv
i
(First DD) (Second DD) (Third DD) (Fourth DD)
0
0.3000
3.4000
7.1000 0.9000
6.1000 0
19.3000 0.9000 0
8.8000 0
36.9000 0.9000
11.5
59.9000
Therefore,
• On calculator:
i. ii.
and solve for
( Also determine )
Therefore,
…..ii
Equation (ii) is the Newton’s Forward Difference Interpolation Formula.
…..ii
Differentiating equation (ii) with respect to , we have
But , therefore
…..iii
Equation (iii) is the first derivative of Newton’s forward difference formula.
Therefore, …..iv
Since, , then
…..i
From Binomial expansion theorem, we have
Solution:
Since, lies just before the beginning of the given table, we use Newton’s forward
formula.
Again, lies just after the end of the given table, we use Newton’s backward formula.
o To find , ,
o To find ,
3.6
2.5
6.1 0.5
3 0
9.1 0.5 0
3.5 0 0
12.6 0.5 0
4 0
16.6 0.5
4.5
21.1
Therefore,
Therefore,
…..i
Consider the interval []. Using Lagrange interpolation in this interval, can be written
as
…..i
Denote, and , and integrating equation(i) with respect to , we have
…..ii
Again, integrating w. r. t. , we have
…..iii
where and are constants to be determined.
…..V
Using the condition, , we get
Or,
Or,
Substituting the expressions for and in the equation (v), we get the spline in the
interval [] as:
…..vi
Differentiating equation (vi) w. r. t. , we have
…..vii
…..viii
Differentiating equation (viii) w. r. t. , we get
Therefore,
…..x
Or,
Therefore,
…..xi
4 9 16
2 3 4
Therefore,
There are two intervals given ,
and
The cubic spline function is given by
Therefore,
1. Using the cubic spline technique, find the cubic polynomial between and from
the following data and also evaluate and .
2 3 4 5 6
5 6 4 3 2
Solution:
The given data are equispaced and also we know, and .
Also, ( for natural cubic spline )
But,
…..ii
For interval , we take , then
Therefore,
Now,
Again, , therefore
The technique of minimizing the sum of squares of errors is known as least square
regression. For least square regression method, the value of and can be found as:
…..i
…..ii
Equations (i) and (ii) are called normal equations.
o If , then
Solution:
From the given table, we know , also we are given . Comparing with , we have , and
.
For straight line , we know
Now,
…..ii
Comparing with straight line , we get
• Example: From the data given below, fit a power function of the form .
1 2 3 4 5
0.5 2 4.5 8 12.5
0 -0.6931
0.6931 0.6931
1.0986 1.5041
1.3863 2.0794
1.6094 2.5257
and
On solving using calculator, we get
then
Therefore, the required equation is
…..ii
Comparing with straight line , we get
We have, …..iii
…..iv
Now, we obtain the values of , as: , . Replacing these values in equation (i), we get
the required equation.
• Example: Use regression method to fit geometrical curve to the data given below
and obtain the value of at
0 1 2 3 4 5 6 7
10 21 35 59 92 200 400 610
0 2.3026
1 3.0445
2 3.5553
3 4.0775
4 4.5218
5 5.2983
6 5.9915
7 6.4135
On solving, we get
Now,
and
Therefore, the required curve is,
(
…..ii
Comparing with straight line , we get
We have,
Now, replacing the value of in equation (i), we get the required equation.
Assignment: Fit the following set of data to a curve of form from the following
observation by least square method.
1 2 3 4 5 6
5.5 6.5 9.4 15.2 30.6 49.8
khem Sir, WRC 50
5. Fitting the curve :
We have , …..i
Taking on both sides, we get
(
…..ii
Comparing with straight line , we get
We have, …..iii
…..iv
• Assignment: Using least square method, fit a curve to the following data.
20 40 60 80 100 120
5.5 9.1 14.9 22.8 33.3 46.0