Chapter 7

ydx = (h/3) X {(y0 + yn) + [4 X (y1 + y3 +....+ yn - 1)] + [2 X (y2 + y4 +....+ yn-2)]} OR

ydx = (h/3) X [(y0 + yn) + (4 X ODD) + (2 X EVEN)]

Q. 1. Compute the approximate value of the integral (June 2002)
I =(1 + x2) dx
using Simpson's rule by taking interval size h as one.

Solution.

x 0 1 2
y = (1 + x2) 1 2 5

Here, h = 1, y0 = 1, y1 = 2, y2 = 5
y dx = (h/3) X [(y0 + y2) + (4 X y1)]
or y dx = (1/3) X [(1 + 5) + (4 X 2)]
or y dx = 14/3

Q. 2. Compute the approximate value of the integral (Dec. 2001)
I =(1 + x + x2) dx
using Simpson's rule by taking interval size h as 1.

Solution.

x 0 1
2
3
4
y = (1 + x + x2) 1 3
7
13
21

Here, h = 1, y0 = 1, y1 = 3, y2 = 7, y3 = 13, y4 = 21
y dx = (h/3) X {(y0 + y4) + [4 X (y1 + y3)] + (2 X y2)}
or y dx = (1/3) X {(1 + 21) + [4 X (3 + 13)] + (2 X 7)}
or y dx =100/3



Main Contents Page

© Universal Teacher Publications