An integral adds contributions that vary continuously. Riemann sums approximate that addition with rectangles; trapezoidal sums use straight edges between sampled heights. Understanding the width and height of each piece is more important than memorizing one long summation formula.
Each contribution is height times width
Partition into subintervals. In the ith interval, choose a sample point and multiply by the interval width The sum
approximates the signed area or accumulated quantity. For equal widths, Left, right, and midpoint sums differ only in which point supplies each height.
As the largest subinterval width tends to zero, the sums approach for a continuous function. Negative heights contribute negatively. An integral is signed accumulation, not automatically geometric area.
Example: three approximations to the same integral
Approximate using two equal subintervals. The width is 1. The left endpoints are 0 and 1, so the left sum is The right endpoints are 1 and 2, so the right sum is
The midpoints are 0.5 and 1.5, giving The exact integral is Since increases on this interval, left rectangles lie below the curve and right rectangles above it.
That direction comes from monotonicity, not from the words “left” and “right” alone. For a decreasing function, the directions reverse. If the function changes direction, there may be no overall guarantee from endpoint choice alone.
The graph y = x squared on [0, 2] with left-endpoint Riemann rectangles. A control changes the partition from 2 to 4, 8 or 16 rectangles.
Left-endpoint rectangles underestimate this increasing curve. Increase the number of rectangles to see the approximation improve.
Describe this figure
The graph squared on with left-endpoint Riemann rectangles. A control changes the partition from 2 to 4, 8 or 16 rectangles.
Trapezoids connect neighboring heights
On the trapezoidal contribution is
It is average endpoint height times width. For the preceding example, the two contributions are and totaling 3. With equal partitions, the trapezoidal sum is the average of the corresponding left and right sums.
For a concave-up graph, the secant edges lie above the curve, so the trapezoidal rule overestimates the integral. The midpoint rule underestimates. Concave-down graphs reverse those directions. These error statements use concavity, whereas left/right error statements use increasing/decreasing behavior.
Example: a table with unequal intervals
A pump's rate is measured in liters per minute:
| Time | Rate |
|---|---|
| 0 | 4 |
| 2 | 7 |
| 5 | 5 |
A trapezoidal estimate of the amount pumped from 0 to 5 minutes is liters. The widths are 2 and 3, not a single common width.
Using an unweighted average of all three rates would treat the measurements as if they represented equal time spans. The units also check the method: liters per minute multiplied by minutes gives liters.
Read a sum as an integral
The expression has width starts at 1, and uses right endpoints on It represents Identify the width and sample point before guessing the integrand.
Signed rectangles can represent more than geometric area
If f is a velocity, a negative rectangle represents displacement in the negative direction. Its signed contribution is still height times width. To estimate total distance, use the absolute velocity as the height instead and split intervals where the sign changes when the data allow it.
Changing the units of the input changes the numerical widths. A rate in liters per minute paired with time entries measured in seconds requires converting one of those units first. A correct rectangle pattern with inconsistent units still gives an incorrect accumulated quantity. State the units of both height and width before multiplying.
Try it yourself
Use a left sum to estimate with three equal intervals. Is it high or low?
Answer: Width 1 and heights 3, 5, and 7 give 15. The function increases, so the estimate is low. The exact value is 18; a trapezoidal sum is exact here because the graph is already a straight line.
What to remember
Match every height with its interval width. Use monotonicity for left/right error, concavity for midpoint/trapezoidal error, and units to interpret the accumulated result.