Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Department of Mathematics and Computer Science

ENGINEERING MATHEMATICS III

Worksheet #2 (February 16, 2024)

Lecturer: Mohsen Aghaeiboorkheili Topic: Numerical Integration

In this worksheet, there will be some problems related to numerical methods(Numerical Integration)
topic that already discussed in the week 2 of the class. Students are encouraged to practice and solve
these problems in term of improving their ability in this topic. This worksheet will not be evaluated
and it is just for acquaintance of students with future quizzes. If you have any question regarding this
worksheet, just come to my room in the M CS221B.

Exercise 1
1
Consider f (x) = ,
x
Z 2
(a) Use the midpoint rule with n = 2 to estimate f (x)dx,
1
Z 2
(b) Use the trapezoidal rule with n = 2 to estimate f (x)dx,
1
Z 2
(c) Use the Simpson’ rule with n = 2 to estimate f (x)dx,
1

(d) calculate the absolute error and the relative error for midpoint case,
(e) calculate the absolute error and the relative error for trapezoidal case,
(f) calculate the absolute error and the relative error for Simpson’ case,

Solution

Exercise 2
Z 1
Use error bound equation to find an upper bound for the error in using M4 to estimate x2 dx.
0
Solution

Exercise 3
Z 2
The Trapezoidal rule applied to f (x)dx gives the value 4, and Simpson’s rule gives the value 2.
0
What is f (1)?
Solution

1
Numerical Integration – Worksheet #2 2

Exercise 4
Z 2
The Trapezoidal rule applied to f (x)dx gives the value 5, and the Midpoint rule gives the value
0
4. What value does Simpson’s rule give?
Solution

Exercise 5
Z 1
The quadrature formula f (x)dx = c0 f (−1)+c1 f (0)+c2 f (1) is exact for all polynomials of degree
−1
less than or equal to 2. Determine c0 , c1 and c2 .
Solution

Exercise 6
Approximate the following integral using the Simpson’s rule with n = 6:
Z 0.35
2
2
dx.
0 x −4

Solution

Exercise 7
Z b
For an integral f (x)dx derive the one-point Gauss quadrature rule.
a
Solution

Exercise 8
Use two-point Gauss quadrature rule to approximate the distance covered by a rocket from t = 8 to
t = 30 as given by Z 30    
140000
x= 2000 ln − 9.8t dt.
8 140000 − 2100t
Also, find the absolute relative true error.
Solution

You might also like