The integral is
,
.
Consider
.
In this case
.
Width
.
Substitute
and
.
.
.
Find the function values.
\
.
.
.
.
.
.
.
.
.
Substitute
and
values in
.
.
.
.
.
.
.
.
.
.Trapezoidal rule:
.
Substitute
,
,
,
,
,
,
,
and
.

.
Simpsons rule:
\
.
Substitute
,
,
,
,
,
,
,
and
.

.
The integral is
.









.
Trapezoidal Simpsons Exact
\
.