



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




of their error formulas.
2
0
(4) ( ) 0 0 1 1 2 2 ( )
x
x
f x dx = a f + a f + a f + Kf n
f ( ) x = 1
2
0
x
x
dx = x − x = a ⋅ + a ⋅ + a ⋅
f ( ) x = x
2
0
2 2 0 0 2 2 0 0 1 2 2
x
x
x x x x xdx a x a a x
2 f ( ) x = x
2
0
3 2 2 0 2 0 2 0 0 1 2 2
x
x
x x x x (^) 2 2 x dx a x a a x
0 1 2
h h ⇒ a = a = h a = , 3
Where
2 0
2
x x h
Let
3 f ( ) x = x , we find that
2
0
4 (^3 2 0 2 0 3 2 0 0 2 32 ) 0 2
x
x
x x x x x x x x x x (^) 3 x dx x x
Let
4 f ( ) x = x ,
2 0 5 ( ) 2
90
x x
2 | | | ( ) | 12
CT
b a
( ) max{ ( )
h b a f
ε
η }
CS
b a E h f η ε
(4)
( ) max{ ( )}
h b a f
For example, (a)
(4) 3 5
f x f x f x x x
x +
For composite Trapezoidal Rule,
5
3
( ) max{ ( )} 2 (2 0) (0 4)
h b a f
− ⋅ ⋅ < = = − ⋅ ′′ − ⋅
For Composite Simpson’s Rule,
1 5 1 4 4 (4)
5
( ) max{ ( )} 24 (2 0) (0 4)
h b a f
− ⋅ ⋅ < = − ⋅ − ⋅
1 1 3
0
x dx =0.
-5 4 | R 10,10 (^) R 9,9 | 8.8543 10 10
− − = × <
21 11 22 21 4 1
11 21 22
x x
f x
x x 1
(a) Trapezoidal Rule over [0,1]:
1
0
f x dx = f + f
(b) Trapezoidal Rule over [0,1/2] and [1/2,1]:
1
0
f x dx = f + f + f
(c) Simpson’s rule over [0,1]:
1
0
f x dx = f + f + f
x new = − x i + +.
So, 1, 2, 3,
x (^) new = + x (^) new = x new = − +
Those are the best possible choices of interpolation of a function with a polynomial of degree at
most 3 in [2,3].
and a function in an arbitrary interval.
cos , cos , cos 6 2
x x x 6
π π (^) = (^) = (^) = π,
1, 2, 3,
x (^) new = + x (^) new = x (^) new = − + ,
For
f ( ) x x
1
0 2 1
dx a
,
1
1 2 1
x dx a
,
(^1 )
2 2 1
x dx a
,
(^1 )
3 2 1
x x dx a
,
3 0 1 1 2 2 3 3
f ( ) x P ( ) x a a T ( ) x a T ( ) x a T ( ) x x
3 5 7
sin ... 3! 5! 7!
x x x x = x − + − + ,
3 5
7
7 x x x P x = x − + − ,
Pn (^) − 1 ( ) x = Pn ( ) x − a Tn n ( ) x
6 7
P x = P x − − T
6 ,
7 6,7 (^6)
a E = ,
5 6
P x = P x − − T 5 ,
7 6 5,7 (^6 )
a a E = +
,
…
Eventually, we are able to have a polynomial of order 2 to economize the power series of sinx
while keeping the error less than 0.01.
16.Learn the notes of IVP.
yi (^) + 1 = yi + hf t ( , i yi ), i = 0,1, 2,... N − 1 \
y 0 (^) = y (0) = 0.5, h =0.
So,
2 y 1 (^) = y 0 (^) + 0.5 (⋅ y 0 − 0 + 1) =1.
2 y 2 (^) = y 1 (^) + 0.5 (⋅ y 1 − (0.5) + 1) = 3
2 y 3 (^) = y 2 (^) + 0.5 (⋅ y 2 − 1 + 1) =4.
2 y 4 (^) = y 3 (^) + 0.5 (⋅ y 3 − (1.5) + 1) =6.
2 2 (0.5) ( ) ( 2) 0. 2 2
E L i
h
( 1) | | ( 1 2
E L t i G
hM E e ), L
− ≤ − where
f t y L y t M y
So,
( 1) | | ( 1) 0. 2
E L t i G
hM E e L
− ≤ − =.
Mid Point Method:
i i i i i i
h h y (^) + = y + hf t + y + f t y i = N − ,
Modified Euler’s Method:
1
i i i i i i i i
h y y f t y f t h y hf t y
Heun’s Method:
1
i i i i i i i i
h h h y (^) + = y + f t y + f t + h y + f t y i = N −.