Docsity

Derivation of Numerical Integration Rules and Error Formulas - Prof. Biswa Datta, Study notes of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
1. Learn the derivations of the composite Trapezoidal and Simpson’s rules and those
of their error formulas.
2. 2
0
(4)
00 11 22
() ()
x
x
f
xdx af af af Kf n=+++
∫
() 1fx=
2
0
20 0 1 2
11
x
x
dx x x a a a=−=⋅+⋅+⋅
∫11
()
f
xx=
2
0
22
20 02
00 1 22
() ()
22
x
x
xx xx
x
dx a x a a x
−+
==+ +
∫
2
()
f
xx=
2
0
3
22
20 02
00 1 22
() ()
32
x
x
xx xx
22
x
dx a x a a x
−+
==+ +
∫
01 2
4
,,
33
hh
aaha⇒= = =
,
3
Where 20
2
x
x
h−
=.
Let 3
()
f
xx=, we find that
2
0
4
333
20 20 2002 20
02
( ) 2( ) ()
46 326
x
x
xx xx xxxx xx3
x
dx x x
−− −+−
==+ +
∫
Let 4
()
f
xx=,
5
20
()
2
90
x
x
K
−
⇒=− .
3. 2
||| ()|
12
CT
ba
Ehf
ε
−′′
=<
12
()max{()
hba f
ε
}
η
⋅
⇒< ′′
−⋅
4(4)
()
||| ()|
180
CS
ba
Ehf
η
ε
−
=− <
(4)
180
( ) max{ ( )}
hba f
ε
η
⋅
⇒< −⋅
pf3
pf4
pf5

Partial preview of the text

Download Derivation of Numerical Integration Rules and Error Formulas - Prof. Biswa Datta and more Study notes Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

  1. Learn the derivations of the composite Trapezoidal and Simpson’s rules and those

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

K

2 | | | ( ) | 12

CT

b a

E h f η ε

( ) 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

[ ] [ ] 0.

( ) 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

R R

R R

11 21 22

R

⇒ R = R + = ⋅ + =

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

  1. Learn the derivation of Gaussian Quadrature formula with n=2.
  2. Let f ( ) x = 1, f ′( ) x = 0

[(3 2) (3 2)]

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].

  1. Learn the Normal Equation Method for least squares approximations of a set of discrete data

and a function in an arbitrary interval.

  1. (^1 2 )

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

π − x x

,

1

1 2 1

x dx a

π − x x

,

(^1 )

2 2 1

x dx a

π − x x

,

(^1 )

3 2 1

x x dx a

π − x x

,

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.

  1. Euler’s Method:

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

E = y ′′ ξ = − = −

( 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

− ≤ − =.

  1. See 17.
  2. y ′ = f t y ( , ) = − y + t + 1 ,

Mid Point Method:

1 (^ ,^ ( ,^ )),^ 0,1,...^1

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 −.