5.4 Riemann Sums
Centuries before the systematic formalization of the calculus by Newton and Leibniz, Archimedes of Syracuse (c. 287–212 BCE) achieved the first rigorous integration in history: the quadrature of the parabola. Armed with only Euclidean geometry and the method of exhaustion, Archimedes inscribed infinite sequences of rectilinear geometric triangles inside curved parabolic segments, summing geometric progressions to compute curvilinear areas.
Yet for two millennia, each specific geometric shape required its own bespoke, virtuosic trick. In the mid-nineteenth century, Bernhard Riemann revolutionized this viewpoint with a radical conceptual democratization: rather than inventing tailored geometric shapes to fit the curvature of a boundary, one slices the entire underlying space into uniform vertical strips of arbitrary width . In doing so, the intricate geometry of curved space is tamed by the elementary arithmetic of rectangles:
The modern definite integral is nothing other than the continuum limit of this discrete book-keeping.
In Section 5.2 we saw that net displacement and total distance both come down to one geometric problem: finding the area between the graph of a function, two vertical lines and , and the horizontal axis. We now carry out the plan from Section 5.1. We cut the region into thin vertical strips, replace each strip by a rectangle as in Figure 5.4, and add up the areas of the rectangles using the sigma notation of Section 5.3.
Let be a closed, bounded interval. A partition of is a finite ordered set of points
The partition divides into adjacent subintervals . The of a subinterval width of the -th subinterval is
The of a partition norm of is the length of its longest subinterval:
A tagged partition is a partition together with a choice of sample point (or tag) for each subinterval: an arbitrary point
The norm measures how coarse the partition is. A small norm means every strip is thin, and that is what makes the rectangles good approximations of the strips.
For a general partition, adding more subintervals does not by itself make the partition finer. Take the partition of given by
It has subintervals, but its norm is always , no matter how large is. The subinterval never shrinks. This is why the norm , and not the number of points , is the right way to measure how fine a partition is.
Let be a function defined on . Let be a tagged partition of with sample points . The corresponding Riemann sum is
The following special cases come up often.
-
•
If for all , then is called a partition regular. In this case the partition points are .
-
•
If for every , so that each tag is the left endpoint of its subinterval, then is called the left Riemann sum.
-
•
If for every , so that each tag is the right endpoint of its subinterval, then is called the right Riemann sum.
-
•
If for every , so that each tag is the middle point of its subinterval, then is called the middle Riemann sum.
Each term is the area of one rectangle in Figure 5.5: its height is and its width is . The Riemann sum adds up all of these areas.
Go back to the trip from Section 5.2, with the velocity. Over a short time interval the velocity hardly changes. So we can pretend it is constant and equal to its value at a single sample time. At constant velocity, displacement is just velocity times time, so the displacement over that interval is approximately . Adding these pieces gives
A Riemann sum is what you get when you replace a smoothly varying quantity by a step function and use the rule “rate time”. Which sample time you pick in each interval should matter less and less as the intervals get shorter.
Nothing in Definition 5.4.3 says must be positive. If , then the term is negative, and that rectangle counts as negative area. So a Riemann sum approximates the signed area: area above the axis minus area below it. This is exactly the net-change bookkeeping from Section 5.2.
In 1823 Augustin-Louis Cauchy defined the integral of a continuous function as the limit of sums in which the sample point is always the left endpoint of each subinterval. Bernhard Riemann went further in his 1854 Habilitationsschrift on trigonometric series, which was published only after his death, in 1868. He allowed the sample point to be any point of . He then asked exactly which functions give sums that settle down to a single number as , no matter how the tags are chosen. Giving that freedom of choice is what made the theory work for functions far more general than continuous ones.
Let on . Take the regular partition with :
so that
Left Riemann sum. The tags are the left endpoints, for , that is,
Hence
Right Riemann sum. The tags are the right endpoints, for , that is,
Hence, by Theorem 5.3.5 (iii) with ,
The function is increasing on . So on each subinterval its smallest value is at the left endpoint and its largest value is at the right endpoint. The left rectangles therefore lie under the graph and the right rectangles lie over it (see Figure 5.6). The true area is caught between the two sums:
This is a very wide window. To narrow it, we refine the partition.
Repeat Example 5.4.4 with a regular partition into subintervals. Then and . By Proposition 5.3.4 and Theorem 5.3.5 (iii),
For these formulas give and , which matches Example 5.4.4. As , both sums tend to . The window closes, and the area under over is . Turning this squeeze into a definition is the subject of the next section: the definite integral.
A Riemann sum turns an area problem into an addition problem. The power sum formulas of Theorem 5.3.5 turn that addition problem into a closed-form expression in . Taking the limit turns the approximation into an exact answer.