Professional Documents
Culture Documents
MTH603
MTH603
Question #01:
Use Lagrange’s formula to find the form of f(x) and then evaluate f(x) at x=7, given
x 0 2 3 6
F(x) 648 704 729 792
Solution:
f x
x x1 x x 2 x x3 y x xo x x 2 x x3 y
x0 x1 x0 x2 x0 x3 0 x1 xo x1 x2 x1 x3 1
x xo x x 1 x x3 y x xo x x 1 x x2 y
x2 xo x2 x1 x2 x3 2 x3 xo x3 x1 x3 x2 3
By putting values :
f x
x 2 x 3 x 6 648 x 0 x 3 x 6 704
0 2 0 3 0 6 2 0 2 3 2 6
x 0 x 2 x 6 729 x 0 x 2 x 3 792
3 0 3 2 3 6 6 0 6 2 6 3
x 3 11x 2 36 x 36 x 3 9 x 2 18 x
f x
648 704
36 8
x 3 8 x 2 12 x x3 5 x 2 6 x
729 792
9 72
f x x 3 11x 2 36 x 36 18 x 3 9 x 2 18 x 88
x 3
8 x 2 12 x 81 x 3 5 x 2 6 x 11
Now find in g f x at x 5 :
5 5 30 5 648
2
f
f 5 25 150 648
f 5 773.
Question # 02:
5
1
Evalute 0 1 x 2 , by u sin g Trapezoidal rule.Taking h 1
and dividing the int erval 0, 5 int o 5 equal parts.
Solution:
x 0 1 2 3 4 5
Y=f(x)=1/1+x2 1 0.5 0.2 0.1 0.05 0.03
u sin g Trapezoidal rule :
h
ydx yo y5 2 y1 y2 y3 y4
2
1
ydx 2 1 0.03 2 0.5 0.2 0.1 0.05
1
ydx 2 1 0.03 2 0.85
ydx 1.365
So Solution by Trapezoidal rule is 1.365.