You can change the function in the text box, and change number of rectangles by using the slider. The function will be rescaled so that its maximum value is always 1. The toggle button lets you switch between seeing the lower partial sums and the upper partial sums. The red formula tells you the lower and upper bounds for the signed area, calculated from the lower and upper partial sums respectively.