5.2#4a

There’s a Riemann sum applet at http://www.slu.edu/classes/maymk/Riemann/Riemann.html which produces this result:

On the TI-89, you’d issue the commands shown in the screen capture here:

 

5.2#4b With midpoints:


On the TI-89, this would look like the screen image below: