Mzumbe University Falculty of Science and Technology MSS 224:numerical Analysis Tutorial Sheet 4
Mzumbe University Falculty of Science and Technology MSS 224:numerical Analysis Tutorial Sheet 4
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):
12. Find the first derivative of f (x) at x = 0.4 from the following table:
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.
Use both the forward difference formula and the central difference formula to find the velocity and
compare the results.