Sei sulla pagina 1di 4

TITLE:

Approximate integration using polynomial interpolation.

OBJECTIVE:
2

To approximate the value of x sec1 ( x ) dx .


1

METHODOLOGY:
(ba)
1. Divide the interval [a,b] into subintervals of width h= n where n 5.

21 1
H= 5 = 5 = 0.2

2. Find f(a), f(a+h), f(a+2h) f(b)


F (1) = 1*asec (1) = 0
F (1.2) = 1.2*asec (1.2) = 0.7028
F (1.4) = 1.4*asec (1.4) = 1.0853
F (1.6) = 1.6*asec (1.6) = 1.4331
F (1.8) = 1.8*asec (1.8) = 1.7672
F (2) = 2*asec (2) = 2.0944

3. From a set of n linear equations by substituting (a, f(a)), (a+h, f(a+h)), (a+2h,
f(a+2h)) (b,f(b)) into the following equation of polynomial:
a0 + a1x + a2x2 + a3x3 + a4x4 + a5x5 =y
a0 + a1(1) + a2(1)2 + a3(1)3 + a4(1)4 + a5(1)5 =0
a0 + a1(1.2) + a2(1.2)2 + a3(1.2)3 + a4(1.2)4 + a5(1.2)5 = 0.7028
a0 + a1(1.4) + a2(1.4)2 + a3(1.4)3 + a4(1.4)4 + a5(1.4)5 = 1.0853
a0 + a1(1.6) + a2(1.6)2 + a3(1.6)3 + a4(1.6)4 + a5(1.6)5 = 1.4331
a0 + a1(1.8) + a2(1.8)2 + a3(1.8)3 + a4(1.8)4 + a5(1.8)5 = 1.7672
a0 + a1(2) + a2(2)2 + a3(2)3 + a4(2)4 + a5(2)5 = 2.0944

4. Find matrices A, x and b that express the given system of linear equations as a
single matrix equation Ax=b.

1.0000 1.0000 1.0000 1.0000 1.0000 1.0000


1.0000 1.2000 1.4400 1.7280 2.0736 2.4883
A= 1.0000 1.4000 1.9600 2.7440 3.8416 5.3782
1.0000 1.6000 2.5600 4.0960 6.5536 10.4858
LINEAR ALGEBRA II 1

1.0000 1.8000 3.2400 5.8320 10.4976 18.8957


1.0000 2.0000 4.0000 8.0000 16.0000 32.0000

0.0000
0.7028
b= 1.0853
1.4331
1.7672
2.0944

5. Solve for x.

-68.4210
214.2912
x= -268.2100
168.3823
-52.5673
6.5247

6. Obtain the equation of the polynomial.


y = -68.4210 + 214.2912x - 268.2100x2 + 168.3823x3 - 52.5673x4 + 6.5247x5

7. Plot the graph of the polynomial as well as the graph of y = f(x) on the same
diagram.
LINEAR ALGEBRA II 2

Graph of polynomial and y = f(x)


2.5

1.5

1
y

0.5

-0.5
1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2
x

8. y = -68.4210 + 214.2912x - 268.2100x 2 + 168.3823x3 - Ap


52.5673x4 + 6.5247x5
2 pro
y= x sec1
( x) dx xi
1

ma
te the definite integral using the polynomial obtained.
2

68.4210+214.2912 x 268.2100 x 2 +168.3823 x 3 52.5673 x 4 +6.5247 x 5 dx


1

2 3 4 5 6
214.2912 x 268.2100 x 168.3823 x 52.5673 x 6.5247 x 2
[68.4210 x + + + ] 1
2 3 4 5 6
LINEAR ALGEBRA II 3

= 1.2182

Potrebbero piacerti anche