Tutorials › AP Calculus › Why Sample-Point Choice Does not Change the Limit

Riemann Sums and Definite Integrals · Tutorial 441 of 999

Why Sample-Point Choice Does not Change the Limit

See why changing the sample points changes finite Riemann sums but not their limit for a continuous function.

Beginner 10 min read

What You'll Learn

  • Define tagged Riemann sums and the mesh of a partition
  • Bound the difference between two sums using different tags on the same partition
  • Explain why continuity on a closed interval guarantees uniform continuity
  • Prove that all tagged sums with mesh tending to zero approach one limit
  • Compare left, right, midpoint, and other sample points in worked examples
  • Recognize why equal limits do not mean equal finite approximations

Why Sample-Point Choice Matters

A Riemann sum estimates accumulated change by adding the heights of selected rectangles multiplied by their widths. For a fixed partition, choosing a different point in each subinterval generally changes those heights, so the finite sums need not be equal.

The key fact is that, for a continuous function on a closed interval, this difference becomes small as the subintervals become narrow. Left endpoints, right endpoints, midpoints, and other valid sample points therefore lead to the same definite-integral limit.

Central idea: The sums can differ for any particular partition. But when the largest subinterval width tends to zero, continuity ensures that the effect of changing the sample points tends to zero too.

Partitions, Tags, and Riemann Sums

A partition \(P\) of \([a,b]\) is a list of points \(a=x_0<x_1<\cdots<x_m=b\). Its \(i\)th subinterval is \([x_{i-1},x_i]\), with width \(\Delta x_i=x_i-x_{i-1}\). The mesh of the partition is its largest subinterval width.

$$ \|P\|=\max_{1\le i\le m}\Delta x_i. $$

A tag \(\xi_i\) for the \(i\)th subinterval is any point in that subinterval. Given a function \(f\) defined on \([a,b]\), the tagged Riemann sum is the sum of each function value at a tag multiplied by its subinterval width.

$$ S(P,\xi)=\sum_{i=1}^{m}f(\xi_i)\Delta x_i, \qquad \xi_i\in[x_{i-1},x_i]. $$

For an equal-width partition, left-endpoint sums use each subinterval's left endpoint as its tag, right-endpoint sums use the right endpoint, and midpoint sums use the midpoint. A different valid tag may be chosen independently in each subinterval.

In the Riemann-sum definition of the definite integral, the mesh tends to zero. The result we need to understand is that, for a continuous function, the limiting value does not depend on how the tags are chosen.

Why Continuity Controls the Difference

A function is uniformly continuous on \([a,b]\) if, for every \(\varepsilon>0\), there exists \(\delta>0\) such that whenever \(x,y\in[a,b]\) and \(|x-y|<\delta\), then \(|f(x)-f(y)|<\varepsilon\). The same \(\delta\) works throughout the interval, not just near one particular point.

Every function continuous on a closed, bounded interval is uniformly continuous there. One way to see why is by contradiction. If uniform continuity failed, there would be some fixed \(\varepsilon_0>0\) and pairs \(x_n,y_n\in[a,b]\) such that \(|x_n-y_n|<1/n\) but \(|f(x_n)-f(y_n)|\ge\varepsilon_0\) for every \(n\). Since \([a,b]\) is bounded and closed, the sequence \(x_n\) has a convergent subsequence with limit \(c\in[a,b]\). Along that subsequence, \(|x_n-y_n|\) tends to zero, so \(y_n\) tends to \(c\) as well. Continuity at \(c\) then makes both function values tend to \(f(c)\), contradicting their separation by at least \(\varepsilon_0\).

For a uniform-continuity bound, consider any two tags \(\xi_i,\eta_i\) in the same subinterval. Their distance cannot exceed that subinterval's width. As the mesh gets smaller, uniform continuity guarantees that the corresponding function values get closer.

The Same-Partition Bound

Take two tagged sums using the same partition \(P\), with tags \(\xi_i\) in one sum and \(\eta_i\) in the other. Subtract the sums, apply the triangle inequality, and use uniform continuity. If the mesh is small enough that function values at points within a subinterval differ by less than \(\varepsilon\), then:

$$ \begin{aligned} |S(P,\xi)-S(P,\eta)| &=\left|\sum_{i=1}^{m}\bigl(f(\xi_i)-f(\eta_i)\bigr)\Delta x_i\right|\\ &\le \sum_{i=1}^{m}|f(\xi_i)-f(\eta_i)|\Delta x_i\\ &<\sum_{i=1}^{m}\varepsilon\Delta x_i\\ &=\varepsilon(b-a). \end{aligned} $$

The last equality follows because the subinterval widths add to the full interval length. Thus all tag choices on the same sufficiently fine partition produce sums that are close to one another. Since \(\varepsilon\) can be made arbitrarily small, their difference tends to zero as the mesh tends to zero.

Worked Example: Left, Right, and Midpoint Sums

Compare three sums for \(f(x)=x^2\) on \([0,1]\), using four equal subintervals. Each width is \(\Delta x=1/4\).

The left endpoints are \(0,1/4,1/2,3/4\). Thus:

$$ \begin{aligned} L_4 &=\frac14\left(0^2+\left(\frac14\right)^2+\left(\frac12\right)^2+\left(\frac34\right)^2\right)\\ &=\frac14\left(0+\frac1{16}+\frac4{16}+\frac9{16}\right)\\ &=\frac14\left(\frac{14}{16}\right) =\frac{14}{64} =\frac7{32}. \end{aligned} $$

The right endpoints are \(1/4,1/2,3/4,1\). Hence:

$$ \begin{aligned} R_4 &=\frac14\left(\frac1{16}+\frac14+\frac9{16}+1\right)\\ &=\frac14\left(\frac1{16}+\frac4{16}+\frac9{16}+\frac{16}{16}\right)\\ &=\frac14\left(\frac{30}{16}\right) =\frac{30}{64} =\frac{15}{32}. \end{aligned} $$

The midpoint tags are \(1/8,3/8,5/8,7/8\). Therefore:

$$ \begin{aligned} M_4 &=\frac14\left(\frac1{64}+\frac9{64}+\frac{25}{64}+\frac{49}{64}\right)\\ &=\frac14\left(\frac{84}{64}\right) =\frac{21}{64}. \end{aligned} $$

Check the difference between the right and left sums: \(R_4-L_4=30/64-14/64=16/64=1/4\). The sums are not equal for this partition. The calculation illustrates why the theorem concerns their limits, not equality at a fixed number of rectangles.

Why All Fine Tagged Sums Have One Limit

The same-partition bound explains why tag choices become unimportant when the partition is fixed. We can also show that sums formed from different fine partitions approach one common value. This establishes that the limiting value exists and is independent of the partitions and tags.

Because \(f\) is uniformly continuous, for each \(\varepsilon>0\) there is a mesh size \(\delta>0\) such that any two function values at points less than \(\delta\) apart differ by less than \(\varepsilon\). Take any two tagged sums whose partitions have mesh less than \(\delta\). Combine the partition points to form a common refinement. Choose one tag in each subinterval of this refinement, and use these same refinement tags to form a refined sum.

Compare the first original sum with the refined sum. In each original subinterval, its original tag and every refinement tag lie in that subinterval, so their function values differ by less than \(\varepsilon\). Weighting by widths and adding shows that the original sum differs from the refined sum by at most \(\varepsilon(b-a)\). The same reasoning applies to the second original sum. By the triangle inequality, the two original sums differ by at most \(2\varepsilon(b-a)\).

Theorem: If \(f\) is continuous on \([a,b]\), then all tagged Riemann sums for partitions whose mesh tends to zero approach the same limit. That common limit is the definite integral \(\int_a^b f(x)\,dx\). In particular, the limit is unchanged by choosing left endpoints, right endpoints, midpoints, or any other tag in each subinterval.

To complete the argument, the bound \(2\varepsilon(b-a)\) can be made arbitrarily small by choosing the uniform-continuity tolerance \(\varepsilon\) small and the partitions fine enough. Thus the family of fine tagged sums is Cauchy: for any desired closeness, all sufficiently fine sums differ from one another by less than that amount. Completeness of the real numbers guarantees a common limit. Since the bound did not depend on the tag-selection rule, no valid rule can produce a different limit.

Worked Example: Different Tags on a Two-Subinterval Partition

Let \(f(x)=3x+1\) on \([0,2]\), partitioned at \(0,1,2\). Both widths equal \(1\). The left-endpoint tags are \(0\) and \(1\), so \(f(0)=1\), \(f(1)=4\), and:

$$ L=1(1)+1(4)=5. $$

The right-endpoint tags are \(1\) and \(2\). Since \(f(1)=4\) and \(f(2)=7\):

$$ R=1(4)+1(7)=11. $$

For midpoint tags \(1/2\) and \(3/2\), the values are \(f(1/2)=5/2\) and \(f(3/2)=11/2\), so:

$$ M=1\left(\frac52\right)+1\left(\frac{11}{2}\right)=\frac{16}{2}=8. $$

As another valid choice, use tags \(1/4\) and \(7/4\). Their function values are \(f(1/4)=7/4\) and \(f(7/4)=25/4\), giving:

$$ S=1\left(\frac74\right)+1\left(\frac{25}{4}\right)=\frac{32}{4}=8. $$

Each tag lies in its assigned subinterval, and each sum uses the correct width of \(1\). The results differ at this coarse partition, exactly as the theorem allows.

Worked Example: Unequal Widths and Arbitrary Valid Tags

Use \(f(x)=x^2\) on \([0,1]\), with partition points \(0,1/4,1\). The widths are \(1/4\) and \(3/4\). The left tags \(0\) and \(1/4\) give:

$$ S_{\text{left}} =\frac14(0^2)+\frac34\left(\frac14\right)^2 =0+\frac{3}{64} =\frac{3}{64}. $$

The right tags \(1/4\) and \(1\) give:

$$ S_{\text{right}} =\frac14\left(\frac14\right)^2+\frac34(1)^2 =\frac1{64}+\frac{48}{64} =\frac{49}{64}. $$

Now choose the valid tags \(1/8\) and \(1/2\). The sum is:

$$ \begin{aligned} S &=\frac14\left(\frac18\right)^2+\frac34\left(\frac12\right)^2\\ &=\frac1{256}+\frac3{16}\\ &=\frac1{256}+\frac{48}{256} =\frac{49}{256}. \end{aligned} $$

The checks are direct: \(1/8\) lies in \([0,1/4]\), \(1/2\) lies in \([1/4,1]\), and the widths \(1/4\) and \(3/4\) add to \(1\). The three sums differ, but all use the same partition and function.

What the Result Does—and Does Not—Say

The result matters because it tells us the definite integral is not tied to a special rectangle-placement rule. A convenient choice of tags may be used to calculate or estimate a sum; for a continuous function, refining the partition makes the choice immaterial to the limit.

A common mistake is to conclude that different sample-point rules give equal sums for every fixed partition. The first example disproves that: \(L_4=14/64\), while \(R_4=30/64\), so \(R_4-L_4=16/64=1/4\). The correction is to distinguish a finite approximation from its limit. The theorem says that the difference tends to zero as the mesh tends to zero, not that it is already zero.

The continuity condition is important. The argument depends on function values becoming uniformly close when their input points are close. If a function has a discontinuity, that guarantee may fail, so one cannot apply this theorem without checking its condition.

Takeaway: For a continuous function on a closed interval, every valid sample-point rule gives the same definite-integral limit as the partition mesh tends to zero. Sample points affect the approximations, but not their common limit.

Check Your Understanding

Use the definitions and result above to answer these questions.

  1. What is the mesh of a partition, and why does it matter for the sample-point choice?
  2. For a fixed partition, what does the same-partition bound say about sums formed with different tags?
  3. Why does continuity on a closed interval allow the theorem to apply?
  4. Does the theorem claim that left and right sums are equal for each finite partition? Explain.
  5. For \(f(x)=x^2\) on \([0,1]\), why are all valid sample-point rules guaranteed to have the same limit as the mesh tends to zero?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon