Evaluate the integral

using Riemann sums.

**Solution**

Partition the interval into subintervals of length . This produces,

(1)

On the other hand, assuming is even:

since it holds that

Euler’s Gamma reflection formula was used at line . Letting we get that

If is odd we work similarly.