The function is
.
(a) Determine
by Midpoint Rule:
Here
,
and
.
Number of subintervals are
.
Width of the interval :
.
, where
.
.
Mid points are
and
.
.


.

Find the integral value by integration by parts method.
\


Error is 

.
(b) Determine
by Simpsons rule:
The Simpsons rule for approximating
is given by
,
where
and
.

.
Error is 

.
(a)
,
.
(b)
,
.