Upper and Lower Sums Close In

Rectangles pack the region under a curve to measure its area. Lower and upper sums squeeze the true area from both sides.

The answer sits between the underfilled and overfilled totals. Finer partitions narrow the gap between them. When the gap vanishes, that value is the integral.

For example, fit square pieces into the curved shape of a 🍰 cake. The smaller you cut the pieces, the fewer gaps remain and the better they match.

L(f,P)β‰€βˆ«abf≀U(f,P)L(f,P) \le \int_a^b f \le U(f,P)

Part of these learning paths

Examples & Exercises

Use βˆ‘k=1nk2=n(n+1)(2n+1)6\sum_{k=1}^{n} k^2 = \frac{n(n+1)(2n+1)}{6} to prove ∫01x2 dx=13\int_0^1 x^2\,dx = \frac13 from upper and lower sums.

Ln=(nβˆ’1)n(2nβˆ’1)6n3β†’13,Un=n(n+1)(2n+1)6n3β†’13L_n = \frac{(n-1)n(2n-1)}{6n^3} \to \frac13, \quad U_n = \frac{n(n+1)(2n+1)}{6n^3} \to \frac13
n=48n = 48: the gap Uβˆ’L=1/48β‰ˆ0.0208U - L = 1/48 \approx 0.0208 squeezes 13\frac13.
Show proof
  1. On the uniform partition PnP_n, x2x^2 is increasing, so the lower sum uses left endpoints and the upper sum right endpoints: Ln=1n3βˆ‘k=0nβˆ’1k2L_n = \frac{1}{n^3}\sum_{k=0}^{n-1}k^2, Un=1n3βˆ‘k=1nk2U_n = \frac{1}{n^3}\sum_{k=1}^{n}k^2.

  2. Substituting the sum-of-squares formula gives Ln=(nβˆ’1)n(2nβˆ’1)6n3L_n = \frac{(n-1)n(2n-1)}{6n^3} and Un=n(n+1)(2n+1)6n3U_n = \frac{n(n+1)(2n+1)}{6n^3}.

  3. Both tend to 2n36n3=13\frac{2n^3}{6n^3} = \frac13 as nβ†’βˆžn \to \infty.

    The uniform partitions suffice because the lower and upper integrals are the supremum/infimum over all partitions: for each nn, Ln=L(Pn,f)β‰€βˆ«01β€Ύfβ‰€βˆ«01β€Ύf≀U(Pn,f)=UnL_n = L(P_n, f) \le \underline{\int_0^1} f \le \overline{\int_0^1} f \le U(P_n, f) = U_n.

    Both ends tend to 13\frac13, so by squeezing the lower and upper integrals both equal 13\frac13, and the integral is 13\frac13.

Prove the Dirichlet function is not Riemann integrable by showing Uβˆ’L=1U - L = 1 for every partition.

U(D,P)=1,L(D,P)=0forΒ everyΒ PU(D,P) = 1, \quad L(D,P) = 0 \quad \text{for every } P
Contrast with the sums for x2x^2 β€” for the Dirichlet function the gap never narrows.
Show proof
  1. Every interval contains both rationals and irrationals, so on every subinterval sup⁑D=1\sup D = 1 and inf⁑D=0\inf D = 0.

  2. Hence for every partition PP, U(D,P)=βˆ‘1β‹…Ξ”xk=1U(D,P) = \sum 1\cdot\Delta x_k = 1 and L(D,P)=βˆ‘0β‹…Ξ”xk=0L(D,P) = \sum 0\cdot\Delta x_k = 0.

  3. Since Uβˆ’L=1β†’ΜΈ0U - L = 1 \not\to 0, the necessary and sufficient condition for Riemann integrability fails.

Prove that refining a partition never increases Uβˆ’LU - L.

Pβ€²βŠƒPβ€…β€Šβ‡’β€…β€ŠU(f,Pβ€²)≀U(f,P),β€…β€ŠL(f,Pβ€²)β‰₯L(f,P)P' \supset P \;\Rightarrow\; U(f,P') \le U(f,P),\; L(f,P') \ge L(f,P)
n=10n = 10: the gap shrinks monotonically as the partition refines.
Show proof
  1. Splitting one subinterval in two: each piece's supremum is at most the original's, so the upper sum decreases (or stays).

  2. Likewise each piece's infimum is at least the original's, so the lower sum increases (or stays).

  3. So Uβˆ’LU - L decreases monotonically under refinement β€” the sums squeeze toward each other.

11. Integration