You are on page 1of 2

MSS 224 SEM 2 2016/2017 1

Mzumbe University
Falculty of Science and Technology
MSS 224:Numerical Analysis
Tutorial sheet 4.

Numerical Integration

1. Approximate the following integrals using the (a) Rectangular rule(Midpoint rule) (b) Trapezoidal rule.
R1 R1
i) 0.5
x2 ln xdx, (ii) 0
x2 e−x dx
R π/4 R π/4
iii) 0
x sin xdx, (iv) 0
e3x sin 2xdx

2. Approximate the following integrals using the (a) Trapezoidal rule (b) Simpson’s 1/3 rule and (c) Simpson’s 3/8
rule.
R 0.25 R0
i) −0.25
(cos x)2 dx, (ii)x ln(x + 1)dx
−0.5
R 1.3 R e+1 1
iii) 0.75 [(sin x)2 − 2x sin x + 1]dx, (iv) e x ln x dx
R2 1
3. Use the trapezoidal rule with n = 4 to estimate 1 x
dx. Compare the estimate with the exact value of the
integral and also give the error bounds.
R2 1
4. Using Trapezoidal rule solve the integral 1 x2 +6x+10
dx with four subintervals.
R 10 1
5. Find 0 1+x2 dx using Simpson’s one third rule with n = 10 and give the error bounds.
q R
2 1 2
6. using π 0
e−x dx Simpson’s 1/3 rule, taking h = 0.125.

7. Evaluate the integrals and compare with the exact value known from calculus. Hence, find the bound errors.
R2 dx
a) 1 x , for 2m = 4 and 2m = 10
R 0.4 2
b) 0
xe−x dx, for 2m = 4 and 2m = 10
R1 dx
c) 0 1+x2
, for 2m = 4 and 2m = 10
R2
8. Approximate 0
x2 ln(x2 + 1)dx using h = 0.25. Use (a) Composite Trapezoidal rule, (b) Composite Simpsons
rule and (c) Composite Midpoint rule.
R2 2
9. Approximate 0
x2 e−x dx using h = 0.25. Use (a) Composite Trapezoidal rule, (b) Composite Simpsons rule
and (c) Composite Midpoint rule.

10. Suppose that f (0) = 1, f (0.5) = 2.5, f (1) = 2, and f (0.25) = f (0.75) = α. Find α if the Composite Trapezoidal
R1
rule with n = 4 gives the value 1.75 for 0 f (x)dx.

Numerical Differentiation

11. From the following table of values, estimate f 0 (1.10) and f 00 (1.10):

x 1.00 1.05 1.10 1.15 1.20 1.25 1.30
f (x) 1.0000 1.0247 1.0488 1.0724 1.0954 1.1180 1.1402

Its distance x cm along the rod is given below for various values of time t (seconds).324 Use both the forward difference formula and the central difference formula to find the velocity and compare the results.49182 13.9 2.5 1. estimate y 00 (1.9922 1.1 2.1 0.MSS 224 SEM 2 2016/2017 2 12.3 sec.9648 2.3): x 1.2 0.2 0.34986 1.3 1.2969 .5 0. Using the values in the table.3 0.3 y 2.395 3.364 3. A slider in a machine moves along a fixed straight rod.10517 1.381 3.4 from the following table: x 0.3 0.0 0.287 3.4 f (x) 1.6442 1.3333 1.1 0.6 x 3. 14.162 3. Find the velocity of the slider and its acceleration at time t = 0. t 0. Find the first derivative of f (x) at x = 0.4 0.013 3.7 1.6599 2.22140 1.