Numerical Analysis: X F Initial DX X G X F
Numerical Analysis: X F Initial DX X G X F
Numerical Analysis: X F Initial DX X G X F
1. Differentiation
f ( x ) = g ′( x )
g (x ) − g (x − h )
=
h
2. Integration
f ( x ) = ∫ g ( x )dx , initial f ( x )
f (x + h ) = f (x ) +
h
[g (x ) + g (x + h )]
2
4. Definite integration
b
A = ∫ f (x )dx
a
b−a
h=
n
4.1. Trapezoidal Method
h⎡ n −1
⎤
A = ⎢ f (a ) + 2∑ f (a + ih ) + f (b )⎥
2⎣ i =1 ⎦
n = 1,2,3...
e≤
(b − a )h 2 f ′′
− 12
b
∫ f ′′(x )dx
b
f ′( x )
a
f ′′ = a
=
b−a b−a
1
4.2. Simpson’s Method
3
⎡ ⎤
n −1 n−2
h⎢ ⎥
A = ⎢ f (a ) + 4 ∑ f (a + ih ) + 2 ∑ f (a + ih ) + f (b )⎥
3 i =1 i=2
⎢ ⎥
⎣ i = odd i = even ⎦
n = 2,4,6...
e≤
(b − a )h 4 f (4 )
− 180
b
∫ f (x )dx
b
f (3 ) ( x )
( )
4
a
f (4 ) = a
=
b−a b−a
3
4.3. Simpson’s Method
8
⎡ ⎤
n−2 n −3
h⎢ n −1
⎥
A = ⎢ f (a ) + 3 ∑ f (a + ih ) + 3 ∑ f (a + ih ) + 2 ∑ f (a + ih ) + f (b )⎥
3 i =1 i =2 i =3
⎢ ⎥
⎣ i =1, 4 , 7.. i = 2 , 5,8... i =3, 6 , 9... ⎦
n = 3,6,9...
e≤
(b − a )h 4 f (4 )
− 80
b
∫ f (x )dx
b
f (3 ) ( x )
( )
4
a
f (4 ) = a
=
b−a b−a
5. Solving differential equation
y ′( x ) = f ( x, y ) , initial y( x0 ) = y 0
5.1. Euler’s Method
y ( xi + h ) = y ( xi ) + hf ( xi , y i )
6. Interpolation polynomial
6.1. Discrete data , (xi , y i )
∑ (P ( x ) − y )
2
Minimized i i
⎢ ∑ xi ∑x ∑x i ⎥ ⎢ a1 ⎥ = ⎢ ∑ x i y i ⎥
2 3
i
⎢ 4 ⎥
⎢ a ⎥ ⎢⎣ ∑ x i 2 y i ⎥⎦
⎢⎣ ∑ x i ∑x ∑x
2 3
i ⎥⎣ 2 ⎦
i
⎦
6.2. Continues function, f ( x )
1
∫ (P(x ) − f (x ))
2
Minimized dx
−1
P( x ) = a 0 P0 ( x ) + a1 P1 ( x ) + a1 P1 ( x ) + ... , x ∈ [− 1,1]
P0 ( x ) = 1
P1 ( x ) = x
P2 ( x ) =
1
2
(3x 2 − 1)
P3 ( x ) = (5 x 3 − 3x )
1
2
P4 ( x ) = (35 x 4 − 30 x 2 + 3)
1
8
P5 ( x ) = (63x 5 − 70 x 3 + 15 x )
1
8
2k + 1
1
f ( x )Pk ( x )dx
2 −∫1
ak =