Type analytic expressions such as sin(x), exp(-x^2), x^3 - 2x, or combinations that call ln, abs, sgn, and constants like pi.
Need a quick class demo? Toggle the fill option to emphasise signed area, compare how each rule converges as n grows, and use the CSV or LaTeX buttons to build worksheets instantly.
Inputs & options
Visualisation
Result
How it's calculated
FAQ
Which Riemann sum rule should I pick?
Left/right sums follow the orientation of rectangles, which is great for quick estimates but can over- or undershoot when f is monotone. The trapezoid rule is second-order accurate and balances speed with precision. Simpson's rule reaches fourth-order accuracy on smooth functions, while midpoint splits the difference with a symmetric single-rectangle view.
Why must Simpson's rule use an even n?
Simpson's rule joins point triplets with quadratics, so the interval must break into an even number of subintervals. The explorer automatically increases n by 1 when needed and highlights the adjustment in the steps.