We will use the right Riemann sum. We can break this integral in two parts. We take the interval and we divide it n times: The area of the i-th rectangle in the right Riemann sum is: For the first part of our integral we have: For the second part we have: We can now put it all together: We can also write n-th partial sum: