Riemann Sums

The core operations of the Calculus are "infinite subtraction" (or differentiation) and "infinite summation" (or integration). In the latter realm, we can leverage a discretized version which uses Riemann Sums.

When it comes to a bunch of basic shapes like rectangles, circles, and triangles, we have simple formulas to compute their areas.

We know that for a rectangle with sides of length aa and bb, the area is just the product aba\cdot b, for circles it's πr2\pi r^2 and triangles use 12bh\frac{1}{2} b\cdot h.

Suppose we have the function f(x)=x2f(x) = x^2 and we want to compute the area between interval 00 and 11.