Approximate a definite integral with left, right or midpoint rectangles or trapeziums. Increase the number of strips and watch the error shrink compared with the accurate value.
Loading the simulation…
How to use
- Choose a function and the limits a and b.
- Pick a method.
- Increase n.
Formula
$\int_a^b f(x)\,dx = \lim_{n \to \infty} \sum_{i=1}^{n} f(x_i^*)\,\Delta x$
Level: PU (I & II PUC / Class 11–12), UG (BSc / BE / BCA) · Topic: Calculus
Frequently asked questions
What is a Riemann sum?
An approximation of the area under a curve by adding the areas of thin rectangles.
Which method is most accurate?
For smooth functions the midpoint and trapezium rules are much better than left or right rectangles.
Related tools
CalculusDerivative as slope of tangentSecant lines become the tangent as h → 0.CalculusTaylor & Maclaurin seriesPolynomial approximations of sin, cos, eˣ, ln(1+x) term by term.CalculusFourier series (with sound)Build square, sawtooth and triangle waves from sines — and hear them.AlgebraLinear equation solverSolve pairs of linear equations exactly (Cramer’s rule).AlgebraQuadratic equation solverDiscriminant, nature of roots, exact surd/complex roots, vertex, sum and product.Linear algebraMatrix calculatorExact determinant, inverse, product, sum and transpose up to 5×5.