Numerical Methods
Numerical Methods
NUMERICAL METHODS
INTERPOLATION AND SOLUTION OF ALGEBRAIC AND
TRANSCENDENTAL EQUATIONS.
INTRODUCTION
Interpolation denotes the process
of computing the value of a
function for any value of the
independent variable within the
interval for which some values are
given.
Interpolation is a fundamental operation in
mathematics it has been described as a art of reading
between the lines of the tables.
Suppose the following table represents a set of corresponding values of two equations X and y .
X : x₀ x₁ x₂………………..xn
Y : y₀ y₁ y ₂……………… yn.
We may require the value of y=yr corresponding to a value x=xr between x0 and xn .
Suppose the following table represents a set of
corresponding values of two equations
X and y .
X : x₀ x₁ x₂………………..xn
Y : y₀ y₁ y ₂……………… yn.
We may require the value of y=yr corresponding to a
value x=xr between x0 and xn . Thus interpolation
denotes the process of computing the value of a
function for any value of the independent variable
within the interval for which some values are given.
The term extrapolation is used to
denote the process of finding the
values outside this interval.
However the term interpolation
is supplied to both process.
Example : Y=X3+2X+5
y0,y1,y2………….yn
corresponding to the value x0,x1,x2…….xn of the
independent variable of x.
let the value of x be at the equi-distant
intervals.
yp=y0+p∆y0+p(p-1)∆2y0+ p(p-1)(p-2)∆3y0+
2ḷ 3ḷ
…………………………
p(p-1(p-2)……(p-(n-1))∆ny0
nḷ
Problem
1.Following are the data from the steam table.
Temperature C° 140 150 160 170 180
Pressure 3.685 4.854 6.302 8.076 10.225
Using newtons formula find the pressure of a
steam for a temperature 142°?
Solution:
x y ∆y ∆2y ∆3y ∆4y
140 3.685 1.169 0.279 0.047 0.002
150 4.854 1.448 0.326 0.049
160 6.302 1.774 0.375
170 8.076 2.149
180 10.225
yp=y0+p∆y0+p(p-1)∆2y0+ p(p-1)(p-2)∆3y0+…………………………
2ḷ 3ḷ
p(p-1(p-2)……(p-(n-1))∆ny0
nḷ
y0=3.685 p=x-x0
h
∆y0=1.169 =(142-140)/10=0.2
∆2y0=0.279
∆3y0=0.047
∆4y0=0.002
Yp=3.685+0.2(1.169)+0.2(0.2-1)0.279+0.2(0.2-1)(0.2-2)0.047+0.2(0.2-
2 6 24
1)(0.2-2)(0.2-3)0.002
24
=3.685+0.2338+0.0223+0.0022+0.00007
=3.89863
=3.899
2.Following data gives the value x and y. find the value of y when x is 21. From the table
X 20 23 26 29
Y 0.3420 0.3907 0.4384 0.4848
Solution:
x y ∆y ∆ 2y ∆ 3y
120 0.3420 0.0487 -0.001 0.0003
23 0.3907 0.0477 -0.0013
26 0.4384 0.0464
29 0.4848
Formula
yp=y0+p∆y0+p(p-1)∆2y0+ p(p-1)(p-2)∆3y0+………………………… p(p-1(p-2)……(p-(n-1))∆ny0
2ḷ 3ḷ nḷ
Y0=0.3420 p=x-x0
h
∆y0=0.0487 =(21-20)/3=0.3
∆2y0=-0.001
∆3y0=0.0003
yp= 0.3420+0.3(0.0487)+0.3(0.3-1)(-0.001)+0.3(0.3-1)(0.3-2)0.0003
2 6
=0.3420+0.01461+0.000105+0.00001785
=0.3567
3.Using newtons forward interpolation formula. Calculate x is 1.02 upto 3 decimal places in the table given
below
X 1.0 1.1 1.2 1.3 1.4
F(x) 0.841 0.89 1.932 0.964 0.985
Solution
X f(x) ∆y ∆2y ∆3y ∆4y
1.0 0.841 0.05 -0.009 0 -0.002
1.1 0.891 0.041 -0.0009 -0.002
1.2 0.932 0.032 -0.011
1.3 0.964 0.021
1.4 0.985
yp=y0+p∆y0+p(p-1)∆2y0+ p(p-1)(p-2)∆3y0+………………………… p(p-1(p-2)……(p-(n-1))∆ny0
2ḷ 3ḷ nḷ
y0=0.841 p=x-x0
h
∆y0=0.05 =(1.02-1)/0.1=0.2
∆ y0=-0.009
2
∆3y0=0
∆4y0=-0.002
Yp=0.841+0.2(0.05)+0.2(0.2-1)(-0.009)+0.2(0.2-1)(0.2-2)0+0.2(0.2-1)(0.2-2)(0.2-3)(-0.009)
2 6 24
=0.841+0.01+0.00072+0+0.0000672
=0.851
NEWTONS GREGORY BACKWARD INTERPOLATION FORMULA
Let yx=f(x) be a function which takes the value y0,y1,y2………….yn corresponding to the value
x0,x1,x2…….xn of the independent variable x. let the value of x be at equi-distance intervals.
Let x=xn + ph
solution:
since there are only fours corresponding pairs of values given in the polynomial
representing the data is
x0=14 x1=17 x2=31 x3=35
y0=68.7 y1=64 y2=44 y3=39.1
+(27-14)(27-31)(27-17)39.1
(35.4-14)(35-17)(35-31)
=20.5266+35.2169+48.0672-13.4479
=49.3104