NUMERICAL INTEGRATION_Presented by_VANDANA VERMA
NUMERICAL INTEGRATION_Presented by_VANDANA VERMA
INTEGRATION
Overview of this presentation
• Introduction
• Motivation
• Newton Cotes Formula
• Trapezoidal rule, Simpson’s Rule and their
Error Analysis.
Introduction
Numerical integration is the approximate
computation of an integral using numerical
techniques. The numerical computation of an
integral is sometimes called quadrature.
Motivation to study Numerical Integration
( x x ) i
lk ( x ) i 1
,
( x xk ) '( x)
We replace the function f(x) by the interpolating
polynomial and integrate between the given limits
b
I w( x) f ( x)dx
a
n
n b
b ( x x ) i
[ w( x)lk ( x)dx] f k w( x) i 1
f n 1 ( )dx
k 0
a
a
(n 1)!
n
k f k Rn
k 0
b
k w( x)lk ( x)dx
a
b n
1
Rn
(n 1)! a
w( x )i 1
( x xi ) f n 1
( ) dx
Determination of the error term
If ( x) does not change its sign in [a,b] and f(n+1)
is continuous in[a,b], then using Mean Value
Theorem of Integral calculus, we can write the
error of approximation in the form
b
f n 1 ( )
Rn
(n 1)! a w( x) ( x) dx, ( a, b)
Determination of the error term
n
a
Newton Cotes Methods
When w(x)=1 and the nodes xk ‘s are
equispaced with x0=a, xn=b with spacing
h=(b-a)/n, the methods are called Newton
Cotes Integration methods. The weights k ' s
are called the Cotes Numbers.
Setting x=x0+sh, we get
n
i
( x
i 1
x ) h n 1
s ( s 1)( s 2).....( s n)
( 1)
lk ( x ) s ( s 1)...........( s k 1)( s k 1)......( s n)and
k !(n k )!
n
( 1)
k h s ( s 1)...........( s k 1)( s k 1)......( s n)ds
k !(n k )! 0
n
h n 2
( n 1)
Rn s ( s 1)...........( s n ) f ( )ds
(n 1)! 0
Trapezoidal Rule
For n=1, we have x0=a, x1=b, h=b-a
1
h
0 h ( s 1) ds ,
0
2
1
h
1 h sds
0
2
and we get the method
b
b a
a
f ( x)dx
2
[ f (a ) f (b)]
Error in the trapezoidal rule becomes
1
h3
R1 s ( s 1) f (2) ( ) ds
2 0
Since s(s-1) does not change sign in [0,1], we
get
3 1
h (2) h3 (2) (b a) 3 (2)
R1 f ( ) s( s 1)ds f ( ) f ( ), (0,1)
2 0
12 12
Thus , the trapezoidal rule is exact for
polynomials of degree less than or equal to 1
and hence is of order 1
Simpson’s Rule
For n=2, we have h=b-a, x0=a, x1=(a+b)/2,x2=b
We get
2
h h
0 ( s 1)( s 2) ds
20 3
2
4h
1 h s ( s 2)ds
0
3
2
h h
2 s ( s 1)ds
20 3
and we get the method
b
b a a b
a
f ( x)dx
6
[ f (a ) 4 f (
2
) f (b)]