Use ∑k=1nk2=6n(n+1)(2n+1) to prove ∫01x2dx=31 from upper and lower sums.
Ln=6n3(n−1)n(2n−1)→31,Un=6n3n(n+1)(2n+1)→31
n=48: the gap U−L=1/48≈0.0208 squeezes 31.Show proof
On the uniform partition Pn, x2 is increasing, so the lower sum uses left endpoints and the upper sum right endpoints: Ln=n31∑k=0n−1k2, Un=n31∑k=1nk2.
Substituting the sum-of-squares formula gives Ln=6n3(n−1)n(2n−1) and Un=6n3n(n+1)(2n+1).
Both tend to 6n32n3=31 as n→∞, so the integral is 31 by squeezing.
Prove the Dirichlet function is not Riemann integrable by showing U−L=1 for every partition.
U(D,P)=1,L(D,P)=0for every P
Contrast with the sums for x2 — for the Dirichlet function the gap never narrows.Show proof
Every interval contains both rationals and irrationals, so on every subinterval supD=1 and infD=0.
Hence for every partition P, U(D,P)=∑1⋅Δxk=1 and L(D,P)=∑0⋅Δxk=0.
Since U−L=1→0, the necessary and sufficient condition for Riemann integrability fails.
Prove that refining a partition never increases U−L.
P′⊃P⇒U(f,P′)≤U(f,P),L(f,P′)≥L(f,P)
n=10: the gap shrinks monotonically as the partition refines.Show proof
Splitting one subinterval in two: each piece's supremum is at most the original's, so the upper sum decreases (or stays).
Likewise each piece's infimum is at least the original's, so the lower sum increases (or stays).
So U−L decreases monotonically under refinement — the sums squeeze toward each other.