Calc 2 (integration) courses often begin by introducing the idea of approximating the area under curves by rectangles, drawing pictures like this one of $y=\sqrt{x}$
Here we can approximate the area under the curve by the sum (yellow rectangles):
$0.2 (\sqrt{0.2} + \sqrt{0.4} + \sqrt{0.6} +\sqrt{0.8} +\sqrt{1}) \approx 0.75 $
Doing these sums by hand gets tiresome very quickly, so when teaching this material I often resort to a spreadsheet for calculations. The drawback of using a spreadsheet is that it can't easily draw pretty pictures like the one above. I imagine this would be a good use case for Mathematica or Matlab, but I'd prefer not to use such expensive software for a brief topic like this.
Is there free or open source software that would allow me to demonstrate and explore, both graphically and numerically, approximating integrals by finite sums such as these? I don't mind if a bit of programming is required on my part. It would be nice it was easy to share my workbook/code with students.