A Riemann sum approximates a definite integral with a single repeated calculation: width times height on each slice, then add the slices. Get the width and the sample point straight and the rest is arithmetic.
The formula and its symbols
For a function on , the general Riemann sum is
Here is the width of the th subinterval, and is the sample point chosen inside that subinterval — its height. The sample point can be the left endpoint, the right endpoint, or the midpoint. Each term is one small contribution; the sum adds them across the interval.
Why this approximates the integral
The definite integral measures accumulated change over an interval and often represents signed area under the curve. A Riemann sum replaces the curve with rectangles that are easy to add. As the slices get thinner, the rectangles follow the graph more closely — and if is continuous on , finer partitions make the sums approach the exact integral. That limiting process is the core idea behind integration: the integral is the limit of these small accumulated pieces. The formula simply makes the "small contribution times width, then add" structure visible before limit notation hides it.
Left, right, and midpoint sums
With equal-width subintervals,
and the sample-point rule sets the type:
- Left sum: left endpoint of each subinterval.
- Right sum: right endpoint of each subinterval.
- Midpoint sum: 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 — a conclusion that depends on the function actually being increasing there.
Worked example: right sum for on
Approximate with a right Riemann sum, equal subintervals.
Width of each subinterval:
Right endpoints:
Evaluate :
Build the sum:
The exact integral is
The comparison matters more than the arithmetic: the right sum gives while the exact value is about , so the right sum overestimates. That happens because is increasing on , making each right-endpoint rectangle slightly too tall.
Practice the calculation
Compute a midpoint sum for on with the same . The midpoints are . Answer check: the midpoint estimate should come out to , which lands much closer to the exact than the right sum did — a quick way to see how the sample-point choice changes the estimate.
Calculation traps to watch for
- 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 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 sum gives signed area, not total physical area.
- Assuming more rectangles always fix everything. Finer partitions improve the approximation under standard conditions such as continuity, but the sum is still an approximation until you take the limit.
When Riemann sums are used
Riemann sums show up wherever a quantity is built from many small contributions: in calculus they give the intuition behind the definite integral; in physics they model accumulated quantities such as displacement from velocity samples; in numerical work they give simple estimates when an exact antiderivative is inconvenient. They are also a practical check on whether you understand what an integral means before applying antiderivative rules mechanically.
Frequently Asked Questions
- What is a Riemann sum in simple terms?
- 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. On each slice you compute width times height, where the height comes from evaluating the function at a chosen sample point, then you add all the slices together.
- What is the difference between left, right, and midpoint Riemann sums?
- With equal-width subintervals, the only difference is the sample point used for each rectangle's height: the left endpoint, the right endpoint, or the midpoint of each subinterval. The choice can change whether the estimate comes out too high or too low, depending on how the function behaves on the interval.
- Does a left Riemann sum overestimate or underestimate?
- If the function is increasing on the whole interval, a left sum underestimates the integral and a right sum overestimates it. That conclusion depends on the function actually being increasing there; for decreasing functions the roles reverse, so always check the behavior of the function on the specific interval first.
- How is a Riemann sum related to the definite integral?
- The definite integral measures accumulated change and is the limit of Riemann sums as the slices get thinner. For a continuous function on a closed interval, finer partitions make the rectangle sums approach the exact value of the integral. That limiting process is the core idea behind integration.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →