calculus

Riemann Sum

A Riemann sum approximates the area under a curve by dividing the region into rectangles. As the rectangles get thinner, the sum converges to the definite integral.

A Riemann sum approximates the area under a curve y=f(x)y = f(x) on [a,b][a, b] by dividing the interval into nn subintervals of width Δx=(b−a)/n\Delta x = (b-a)/n and summing the areas of nn rectangles:

Sn=∑i=1nf(xi∗) ΔxS_n = \sum_{i=1}^n f(x_i^*) \, \Delta x

where xi∗x_i^* is a sample point in the ii-th subinterval. Common choices:

  • Left Riemann sum: xi∗=a+(i−1)Δxx_i^* = a + (i-1)\Delta x.
  • Right Riemann sum: xi∗=a+iΔxx_i^* = a + i \Delta x.
  • Midpoint rule: midpoint of subinterval (more accurate).

As n→∞n \to \infty (rectangles get arbitrarily thin), if ff is integrable, the Riemann sum converges to the definite integral:

∫abf(x) dx=lim⁡n→∞Sn.\int_a^b f(x)\,dx = \lim_{n \to \infty} S_n.

This definition of the integral ties together discrete summation and continuous area, motivating the integral notation ∫\int as a "stretched S" for sum. Riemann sums also underlie all numerical integration (trapezoidal rule, Simpson's rule).

Stuck on this? Solve it with AI