Use sliders to change the polynomial equation. Use the bottom slider to change the number of rectangles used to split up the area under the graph between points A and B. The upper sum represents the area of rectangles based on the upper height, the lower sum the lower height rectangles.
As the number of rectangles is increased the difference between the two areas becomes less and less.