The function is continuous on
.
The number of subintervals are
.
Trapezoidal rule:
\
.

.
Consider function
.
Graph the function:
.
.
Observe the graph:
\The area of the function using trapezoidal rule is
.
Graph the function:
.
.
Observe the graph:
\The area of the function using trapezoidal rule is
.
The integral is 



.
.
The trapezoidal is more accurate than midpoint rule.