The function is
.
(a) Determine
by Midpoint Rule:
Here
,
and
.
Number of subintervals are
.
Width of the interval:
.
, where
.
.
Mid points are
and
.
.
.
Substitute corresponding function values in above expression from the given graph.
\
.

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