Assignment 6
Assignment 6
2
3. Use Simpson's-1/3 rule to estimate ∫0 x dx using a regular partition with n = 6.
Compare the estimate with the exact value.
3
4. Use Simpson's-3/8 rule to estimate ∫0 e -x 2 dx taking h = 0.1.
5. Show that the closed Newton-Cotes formula for n = 3 (known as the ”three eights
rule”) given by
b-a
I(f) = [f(a) + 3f(a + h) + 3f(a + 2h) + f(b)]
8
where h = (b - a) / 3 , has degree of precision equal to 3.
6. Derive Simpson’s rule with error term by using
x2
∫x 0
f(x)dx = a0 f(x0 ) + a1 f(x1 ) + a2 f(x2 ) + kf (4) (𝜉).
Find a 0 , a 1 , and a 2 from the fact that Simpson’s rule is exact for f(x) = x n when n =
1, 2, and 3. Then find k by applying the integration formula with f(x) = x 4 .
7. If y = A + Bx + Cx 2 and y 0 , y 1 and y 2 are the values of y corresponding to x = 0, h
and 2h respectively then prove that
2h h
∫0 ydx = (y0 + 4y1 + y2 ).
3
8. Compute
1 xp
Ip = ∫ dx
0 x 3 + 10
for p=1 and 2, using trapezium rule and Simpson’s 1/3 rule with the number of points
3, 5 and 9. Improve the results using Romberg integration.
9. For the given data
x 0.7 0.9 1.1 1.3 1.5 1.7 1.9 2.1
0 2 3 4 5 5
1 3 4 6 9 11
2 4 6 8 11 14