You are on page 1of 1

Powered by www.myengg.

com

NUMERICAL INTEGRATION
Synopsis:
1. Trapezoidal Rule : Let y = f(x) be a continuous function defined on [a, b]. Divide the interval on
b−a
x-axis into n equal parts each of length h = . Let a = x0, x1, x2, …, xn =b be the abscissae of
n
b
the successive points of division and yr = f(xr) for r = 0, 1, 2, …, n. Then ∫ f ( x ) dx =
a

h
= [f ( x 0 ) + 2f ( x 1 ) + 2f ( x 2 ) + ... + 2f(xn–1) + f(xn)]
2
h
= [ f ( x 0 ) + f ( x n ) + 2{f ( x1 ) + f ( x 2 ) + ... + f ( x n −1 )}]
2
h
= [( y 0 + y n ) + 2( y1 + y 2 + ... + y n −1 )]
2
2. Simpson’s Rule : Let y = f(x) be a continuous function defined on [a, b]. Divide the interval on x-
b−a b−a
axis into n = 2m (even integer) equal parts each of length h = = . Let a = x0, x1, x2, …,xn
n 2m
= x2m = b be the abscissae of the successive points of division and yr = f(xr) for r = 0, 1, 2…n. Then
b
h
∫ f ( x) dx = 3 [f ( x
a
0) + 4f ( x1 ) + 2f ( x 2 ) + 4f ( x 3 ) + ... +4f ( x 2m −1 ) + f ( x 2m )]

h
= [{f ( x 0 ) + f ( x 2m )} + 4{f ( x1 ) + f ( x 3 ) + ... + f ( x 2m −1 )}
3
+ 2{f ( x 2 ) + f ( x 4 ) + ... + f ( x 2m − 2 )}]
h
= [( y 0 + y 2m ) + 4( y1 + y 3 + ... + y 2m −1 )] +
3
2( y 2 + y 4 + ... + y 2m − 2 )]

Powered by www.myengg.com

You might also like