I f x dx a * Geometrically, I is the area under the curve - - PowerPoint PPT Presentation

i f x dx a geometrically i is the area under the curve of
SMART_READER_LITE
LIVE PREVIEW

I f x dx a * Geometrically, I is the area under the curve - - PowerPoint PPT Presentation

Numerical Integration * The problem in numerical integration is the numerical evaluation of integral. b I f x dx a * Geometrically, I is the area under the curve of f(x) between a and b. Methods of solution y


slide-1
SLIDE 1
slide-2
SLIDE 2
slide-3
SLIDE 3

 

b a

I f x dx  

* The problem in numerical integration is the numerical evaluation of integral. * Geometrically, I is the area under the curve

  • f f(x) between a and b.

Numerical Integration

slide-4
SLIDE 4

Methods of solution

slide-5
SLIDE 5

1- Trapezoidal Rule

 

1 1

2 h A f f  

x y b

f

 

y f x 

2

x

x

n

x

1

x

1

f

2

f

a

 

2 1 2

2 h A f f  

 

3 2 3

2 h A f f  

h h

   

1 2 1

2 .... 2

n n

h A f f f f f

         

b a h n  

slide-6
SLIDE 6

Example

1 2 x

e dx 

1 0.2 5 h   

 

2x

f x e  x 0.6 0.2 0.4 0.8 1.0 f(x) 1 3.3201 1.4918 2.2255 4.9530 7.3890

   

0.2 1 7.3890 2 1.4918+2.2255+3.3201+4.9530 2 3.23698       

Approximate the value of , use n =5, then estimate the error.

1 2 x

e dx

slide-7
SLIDE 7

Error Estimation

1 2 Exact x

e dx I  

1 2

2

x

e       

1 2

1 2

x

e     

2

1 1 2 e       3.19453 

.

3.23698

Trap

I 

. Exact Trap

Error I I  

3.19453 3.23698  

0.04245  

slide-8
SLIDE 8

Example

2

1 x

e dx

1 0.1 10 h   

 

2

x

f x e  

0.1[(1 0.367879) (0.99005+0.960789+0.913931+0.852144 2 +0.778801+0.697676+0.612626+0.527292+0.444 2 858)]  

Approximate the value of , use n =10.

2

1 x

e dx

x 0.3 0.1 0.2 0.4 0.5 f(x) 1 0.913931 0.99005 0.960789 0.852144 0.778801 x 0.6 0.9 0.7 0.8 1.0 f(x) 0.697676 0.444858 0.612626 0.527292 0.367879

0.746211 

slide-9
SLIDE 9

2- Simpson’s Rule

 

1 1 2

4 3 h A f f f   

 

2 2 3 4

4 3 h A f f f   

 

3 4 5 6

4 3 h A f f f   

   

1 3

4 .... 3

n

h A f f f f       

 

2 4

2 .... f f     

b a h n  

slide-10
SLIDE 10

Example

1 0.1 10 h   

 

2x

f x e 

1 2 x

e dx 

x 0.3 0.1 0.2 0.4 0.5 f(x) 1 1.8221 1.2214 1.4918 2.2255 2.7183

     

0.1 1 7.3890 1.2214+1.8221+2.7183+4.0552+6.0496 3 1.4918+2.2255+3.3201+4.95 4 30 2       

x 0.6 0.9 0.7 0.8 1.0 f(x) 3.3201 6.0496 4.0552 4.9530 7.3890

Approximate the value of , use n=10, then estimate the error.

1 2 x

e dx

3.19454 

slide-11
SLIDE 11

Example

1 2 Exact x

e dx I  

1 2

2

x

e       

1 2

1 2

x

e     

2

1 1 2 e       3.19453 

.

3.19454

Simp

I 

. Exact Simp

Error I I  

3.19453 3.19454   0.00001  

slide-12
SLIDE 12

Example

2

1 x

e dx

1 0.1 10 h   

 

2

x

f x e  

0.1[(1 0.367879) (0.99005+0.913931+0.778801+0.612626+0.444858) 3 + (0.960789+0.852144+0.697676)+0.527 2 2 ] 4 29  

Approximate the value of , use n=10.

2

1 x

e dx

x 0.3 0.1 0.2 0.4 0.5 f(x) 1 0.913931 0.99005 0.960789 0.852144 0.778801 x 0.6 0.9 0.7 0.8 1.0 f(x) 0.697676 0.444858 0.612626 0.527292 0.367879

0.746825 

slide-13
SLIDE 13