Riemann Sum (Numerical Integration)
Approximate ∫ₐᵇ f(x) dx using N rectangles (left, right, midpoint).
Result
General calculation reads
Amazon affiliateAs an Amazon Associate we may earn from qualifying purchases. This does not add cost for you.
How to use this calculator
- Enter polynomial + bounds + N + method.
About this calculator
Riemann sums approximate definite integrals via rectangles. As N → ∞, sum → exact integral. Midpoint method has O(1/N²) error (best of three); left/right have O(1/N). Doubling N quarters midpoint error but only halves left/right error. For polynomials, exact integration is easier; Riemann is for non-elementary functions. Simpson's rule (combine pairs) is even better — O(1/N⁴). Source: Wolfram MathWorld - Riemann Sum.
Frequently asked
Best method?+
Why N matters?+
When does it fail?+
Riemann vs. Simpson?+
For real coding?+
Related calculators
More tools you might like
Hand-picked tools that pair well with this one — same audience, same intent.
∫ₐᵇ p(x) dx using power rule for antiderivatives.
Approximate sin/cos/eˣ/ln(1+x) via Taylor polynomial of degree n.
Evaluate polynomial p(x) = aₙxⁿ + … + a₁x + a₀ at any x. Up to degree 6.
d/dx(aₙxⁿ + … + a₁x + a₀) = naₙxⁿ⁻¹ + … + a₁. Power rule.
lim x→a of polynomial ratios (basic substitution + L'Hopital for 0/0).
Trim margins off every page of a PDF — specify how many points to remove from top, right, bottom, and left.