Professional Documents
Culture Documents
Lagrange's Interpolation Numerical
Lagrange's Interpolation Numerical
Lagrange's Interpolation Numerical
+
x_)
x1) (x - x)
x) (x
(x - x)
x,)
-
-
- +.
+
+
-
-
x) (x x1).. (x
+B2n-1X-*-(n-1)) (xX X-(n-2)) (x x) (x - x) (x -
-X-2) -
-
The coefficient's
B,s x). (x
are (x -Xn-) -
X-1)
Bo Yo
2r-
B2r-1 r = 1,2, n
(2r-1)!H7T=l, 2, ., n
B2 r-1)
(2r)!2
=s =
1, 2,.
2, . . , n -
l
22) ..
(u -
(n 1)) (u n)
-
+
where min{xo *^1» X(n-1)» X X} , < < (2n)!
(e) Gauss's third interpolation formula
max{xo X1 X(n-1) X- x}
Here we starts with x, instated of xg and runs parallel to the backward formula. Thus
coefficients
Ay A'y - and we set u
are !h' 21h 3!h4!h =
(i.e. u
replace by u -
P(x) =
y + A+M 2!
y+ U-D(u-2)
3!
ulu-1)(u-2ay+
4!
-1)(u-2)(u-3)5,
5!
uu-1)(u -2)...(u-(n-2) Mu-(n-1))%u-n)
(21-1)!
Here the number of interpolating points are even 1.e.
Xo» X1 *2., z(n-1) n
w
IN C PROGRAMMING
6 NUMERICAL METHODS WITH BASIC CONCEPTS
Error term:
R2,(x) = u(u2 - 12) (u2 - 22).. (u2 - (n - 1)) (u - n) (2m)!
NOTE 1 : Gauss's forward interpolation formula is used for interpolating at the startina
of the
centre of the interpolating points with 0 < u < l to mininmize the error.
NOTE 2 Gauss's backward interpolation formula is used for interpolating at the ending ofs
i the
centre of the interpolating points with -1 < u< 0 to minimize the error.
-)y+lue
4! e-P-
5!
-2)A',+a +
+
u(u-1) (" -2)... (u- (n-1)) A"y(n=1)
(2n-1)!
+Ay-
u (u-1)(u-2*)..(uf -(n-1)
(2n)! y
where the error term
y Ay
Ay
Y4
y4
y
y
y.3
y- 8y
By1
y
Dy
-
-
-
+
A,x ) (x- x1) (x-n-
-
-
(1)
Substitutingx = x, in (1), we obtained
L) A,(x,-x,)x-x)(x-X,)x-x,,).. (x-x,)
1=0
INTERPOLATION 39
o)X-*) (X-X,)(x-X,,)...(,x-x,)
X, *)(a,-x,)... (x, - x,-)(x-x)...(,x-x,)
=0
(x-x)x-x)..
(x,-x)(x -x,)...(x,,xX,-)*-Xi)
where ) is known as
Lagrangien function.
-xj-)(x, -X;1)4, *,)
Let wlx) =
(x -
x) (x -x) ...
(x -
x,)
:. Wx) =
(x -
x) (x -x). (x -
x,) + (x -
x) (x x) -
. .
(x x,)
-
Hence x) =
w(x)
(x-x,)wx,)
L=t-)waj 2
Error term
x,) (n+1)!
=
n+1)!
where min{xg, X ,
X Xo» X1 ..n X}
X} << max
where min{xo» X ,
X max{*» X1 Xn X}
X}< <
interpolation formula becomes
NOTE 1: For two interpolating points xo X the Lagrenge's
L,x)= 1
L) y,+
linear interpolation formula
This formula is known as
is unique.
NOTE 2 Lagrange's interpolation polynomial of degree at most n, such that
distinct from L,(x)
Let L,(x) be another polynomial,
i =0, 1, ..
L,x) =fa) =y,
Let ylx) L,(x) - L, (x) =
0, i =
0, 1, 2, n.
-y;
,
=
at most with at
least (n+1) zeros.
polynomial of degree n
Thusy(x) is a
Hence y(x) = 0
L(x)= L,()
Thus L,(x) is unique.
FUNCTIONS
LAGRANGIAN
PROPERTIES OF
3.13 linear
transformation.
invarient under
functions remain
(a) Lagrangian 0.
Let x = a + Bt where ß *
Then x = a + Bt
=B(;
-