Riemann Sums: The sum is calculated by dividing the region up into shapes (rectangles or trapezoids) that together form a region that is similar to the region being measured, then calculating the area for each of these shapes, and finally adding all of these small areas together. Because the region filled by the small shapes is usually not exactly the same shape as the region being measured, the Riemann sum will differ from the area being measured. This error can be reduced by dividing up the region more finely, using smaller and smaller shapes. As the number of shapes grows towards infinity, the sum approaches the Riemann integral.

You can change the function. Also, it is possible to change the interval of integration, the number of sub-intervals for getting a better calculation of the area. The slider 'd' determines the position of the point on the interval .