A Riemann sum approximates a definite integral by splitting an interval into small pieces, building a rectangle on each piece, and adding the rectangle areas. In short: width times height on each slice, then add the slices.
For a function on , the general Riemann sum formula is
Here, is the width of the th subinterval, and is the sample point chosen inside that subinterval. The sample point might be the left endpoint, the right endpoint, or the midpoint.
What a Riemann sum means
The definite integral measures accumulated change over an interval. Geometrically, it often represents signed area under the curve.
A Riemann sum replaces the curve with rectangles that are easier to add. When the slices get thinner, the rectangles usually follow the graph more closely. If is continuous on , finer partitions make the sums approach the exact integral.
That is the core idea behind integration: the integral is the limit of these small accumulated pieces.
Left, right, and midpoint Riemann sums
If the subintervals all have equal width, then
and the sample point rule determines the kind of sum:
- Left sum: use the left endpoint of each subinterval.
- Right sum: use the right endpoint of each subinterval.
- Midpoint sum: use the midpoint of each subinterval.
These choices can change whether the estimate is too high or too low. If the function is increasing on the whole interval, a left sum underestimates and a right sum overestimates. That conclusion depends on the function actually being increasing on that interval.
Worked example: right Riemann sum for on
Approximate using a right Riemann sum with equal subintervals.
First find the width of each subinterval:
Because this is a right sum, use the right endpoints:
Now evaluate the function:
Build the sum:
Add inside the parentheses:
So
The exact integral is
The comparison matters more than the arithmetic. The right sum gives , while the exact integral is about , so the right sum is an overestimate. That happens here because is increasing on , which makes each right-endpoint rectangle a little too tall.
Common mistakes with Riemann sums
- Mixing up and the sample point. is the width; is where you measure the height.
- Using right endpoints when the problem asks for left endpoints, or vice versa.
- Forgetting that the estimate can be above or below the exact integral depending on the function and the sample rule.
- Treating every Riemann sum as ordinary area. If the function is below the -axis, the definite integral and the Riemann sum give signed area, not total physical area.
- Assuming more rectangles always fix every issue. Finer partitions improve the approximation under standard conditions such as continuity, but the sum is still an approximation until you take the limit idea seriously.
When Riemann sums are used
Riemann sums are useful whenever a quantity is built from many small contributions.
- In calculus, they give the intuition behind the definite integral.
- In physics, they can model accumulated quantities such as displacement from velocity samples.
- In numerical work, they provide simple estimates when an exact antiderivative is inconvenient or not the point.
They are also a practical check on whether you really understand what an integral means before using antiderivative rules mechanically.
A fast way to read the formula
Each term is one small contribution. The full sum says: add all the small contributions across the interval.
That same pattern shows up throughout calculus: small contribution times width, then add. A Riemann sum makes that structure visible before the limit notation turns it into an integral.
Try a similar problem
Try a midpoint sum for on with the same . Then compare it with the right sum above and the exact value . That is a quick way to see how the sample-point choice changes the estimate.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →