Using both right-hand and left-hand endpoints, find the Riemann sums for the function

- We first define
**Dx**. - We now define
**a**,_{i}**i**= 0, 1, 2, ..., n, the endpoints of these subintervals. - We evaluate
**f(a**_{i}) - We form the Riemann sum using left-hand endpoints:
- Simplifying, we obtain
- We form the Riemann sum using right-hand endpoints:
- Simplifying, we obtain