






A Riemann sum is a method used in calculus to approximate the integral (or area under a curve) of a function. It is named after the German mathematician Bernhard Riemann. The basic idea behind a Riemann sum is to break up the region under a curve into small rectangles, compute the area of each rectangle, and then sum those areas to approximate the total area under the curve.
Steps to compute a Riemann sum:
- Divide the interval:
Suppose you want to approximate the integral of a functionover the interval
. You divide this interval into n subintervals (small segments) of equal width,
.
- Choose sample points:
For each subinterval, you select a sample point(usually in the middle, left, or right of the subinterval) to evaluate the function
at that point.
- Compute the area of rectangles:
For each subinterval, the height of the rectangle isand the width is
. The area of the rectangle is then
.
- Sum the areas:
Add up the areas of all the rectangles to get an approximation of the total area under the curve:
Where:
is the number of rectangles (subintervals).
is the function evaluated at the sample point
.
is the width of each subinterval.
Types of Riemann sums:
- Left Riemann sum: The sample points
are taken to be the left endpoints of each subinterval.
- Right Riemann sum: The sample points
are taken to be the right endpoints of each subinterval.
- Midpoint Riemann sum: The sample points
are taken to be the midpoints of each subinterval.
As the number of rectangles (n) increases:
- The approximation becomes more accurate because the rectangles fit the curve more closely.
- In the limit, as
, the Riemann sum approaches the exact value of the definite integral of
over the interval
:
Example:
Let’s approximate the integral using a Riemann sum with 4 subintervals (
):
- Divide the interval
into 4 equal parts, so
.
- For a left Riemann sum, the sample points are
,
,
,
.
- Evaluate
at those points:
- Multiply each value by
and sum them:
Thus, the Riemann sum approximation of the integral is .
Discover more from Science Comics
Subscribe to get the latest posts sent to your email.