Approximate a definite integral with left, right, midpoint, or trapezoidal sums — enter f(x), the interval, and n to see the value, the rectangles, and the steps.
Use x as the variable. n is the number of subintervals (1–100000). The interval needs a < b.