Better Approximation to Areas by Refinement

To approximate the area between the graph of a function, say f(x) = 1/(x4+1), and the x-axis and between two x-values, say x=0 and x=2, we found a "Riemann sum", the sum of areas of rectangles with bases the subintervals determined by a subdivision 0=x0 < x1 < x2 < ... < xn=2 of the interval from 0 to 2, and where the height of the i-th rectangle is the value of f at a point x*i in the i-th subinterval. Now we want to see that if we "refine" the subdivision, adding more points and shortening the length of the largest subinterval in the subdivision, we will improve the approximation to the area.

We begin by comparing the (maximum) Riemann sums for this function on this interval with 2, 4, 10 and 20 equal subintervals.
First we compare the sums for 2 and 4 subintervals. We can see that the sum for 4 subintervals improves the approximation to the area by the area of the region in yellow.
Next we compare the sums for 2 and 10 subintervals. The latter approximation is closer to the area under the curve by the area of the gray region.
Finally (in this example) we compare the sums for 10 and 20 subintervals. The approximation with 20 is closer to the area under the curve than the one with 10 by the area of the violet region. Note also that, since the subdivision into 20 is also a refinement of the subdivision into 4 subintervals, the former is also a better approximation that the latter. On the other hand, since the subdivision into 10 subintervals is not a refinement of the subdivision into 4, there is no obvious way to see that 10 gives a better approximation than 4 (although it certainly appears to do so in this case).
The graphic to the left shows dynamically how increasing the number n of subintervals gives better approximations to the area under the curve. It moves quickly through all the values of n from 1 to 10, then slows a bit as the value of n doubles three times to 80. For each n-value, the subintervals are all of equal length and the maximum Riemann sum is shown. Though it is not clear (and may not be true) that each approximation is better than the last, it is clear that the approximation is very close for the larger values of n.

To make the same point numerically rather than graphically, we use a table taken from a spreadsheet, showing approximations to the area using 10, 20 and 40 equal subintervals. The length of the column of 40 values is a bit daunting, but the important information is collected at the top (in all cases): The top row shows the maximum and minimum Riemann sum approximations, and the second is the differences between them. Note that, as the number of subintervals is doubled, the difference between the maximum and minimum Riemann sum is roughly (in fact, in this case, apparently exactly) halved. Since the exact area is between the maximum and minimum Riemann sums, the finer subdivisions give better approximations to the desired area.
10MaxMin20MaxMin40MaxMin
Rsums1.1638780.9756421.1170941.0229771.0936341.046575
Diffs0.1882350.0941180.047059
xif(xi-1)f(xi) xif(xi-1)f(xi) xif(xi-1)f(xi)
010.998403010.9999010.999994
0.2 0.9984030.9750390.10.99990.9984030.050.9999940.9999
0.4 0.9750390.8852690.20.9984030.9919650.10.99990.999494
0.60.8852690.7094210.30.9919650.9750390.150.9994940.998403
0.80.7094210.50.40.9750390.9411760.20.9984030.996109
10.50.3253510.50.9411760.8852690.250.9961090.991965
1.20.3253510.2065430.60.8852690.8063870.30.9919650.985216
1.40.2065430.1323870.70.8063870.7094210.350.9852160.975039
1.60.1323870.0869750.80.7094210.6038280.40.9750390.960609
1.80.0869750.0588240.90.6038280.50.450.9606090.941176
210.50.4058280.50.9411760.916165
1.10.4058280.3253510.550.9161650.885269
1.20.3253510.2593290.60.8852690.848532
1.30.2593290.2065430.650.8485320.806387
1.40.2065430.1649480.70.8063870.759644
1.50.1649480.1323870.750.7596440.709421
1.60.1323870.1069280.80.7094210.657028
1.70.1069280.0869750.850.6570280.603828
1.80.0869750.0712650.90.6038280.551114
1.90.0712650.0588240.950.5511140.5
210.50.451364
1.050.4513640.405828
1.10.4058280.363768
1.150.3637680.325351
1.20.3253510.290579
1.250.2905790.259329
1.30.2593290.231401
1.350.2314010.206543
1.40.2065430.184485
1.450.1844850.164948
1.50.1649480.147667
1.550.1476670.132387
1.60.1323870.118878
1.650.1188780.106928
1.70.1069280.096349
1.750.0963490.086975
1.80.0869750.078657
1.850.0786570.071265
1.90.0712650.064687
1.950.0646870.058824
2