Riemann Sums

Compare upper and lower Riemann sums and their definite integral limits. Adapted from original by jeromeawhite.
Either use the default function or enter a function of your choice. Alternatively, drag the existing curve to a new position on the x-y plane. Shift and click-scroll to zoom in and out. Shift and click-drag to pan left/right/up/down. Shift and click-drag on axis to rescale axis. Drag points A and B along x-axis to adjust interval. Check boxes for calculation methods to use. Observe the effect of increasing the number n of sub-intervals