A Riemann sum approximates the definite integral of a function by partitioning the domain into subintervals and summing the areas of rectangles whose heights sample the function. This calculator lets you enter a function, choose the number of subdivisions, and visualize left, right, or midpoint Riemann sums, showing how the approximation improves as the partition is refined.
Controls: Click and drag to orbit, scroll to zoom.