Approximate area of  under a curveCompute left, right, and midpoint Hence  Riemann sums use with n rectangles are computed. Due to  the this it approximate area.

Approximating area under the curve

Approximate area under