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 ex 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) Simpsons 1/3 rule and (c) Simpsons 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 Simpsons one third rule with n = 10 and give the error bounds.
q R
2 1 2
6. using 0
ex dx Simpsons 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
xex 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 ex 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
MSS 224 SEM 2 2016/2017 2

12. Find the first derivative of f (x) at x = 0.4 from the following table:

x 0.1 0.2 0.3 0.4


f (x) 1.10517 1.22140 1.34986 1.49182

13. A slider in a machine moves along a fixed straight rod. Its distance x cm along the rod is given below for various
values of time t (seconds). Find the velocity of the slider and its acceleration at time t = 0.3 sec.

t 0.0 0.1 0.2 0.3 0.4 0.5 0.6


x 3.013 3.162 3.287 3.364 3.395 3.381 3.324

Use both the forward difference formula and the central difference formula to find the velocity and
compare the results.

14. Using the values in the table, estimate y 00 (1.3):

x 1.3 1.5 1.7 1.9 2.1 2.3


y 2.9648 2.6599 2.3333 1.9922 1.6442 1.2969

You might also like