Riemann integral

Setup: partitions

Let f:[a,b]→R be a bounded function.

A partition of [a,b] is a finite ordered set

P=(x0,…,xn),a=x0<x1<⋯<xn=b.

We denote P[a,b], the set of all partitions of [a,b].
The norm of P is

|P|:=max1≤i≤n(xi−xi−1).

We say P′ is a refinement of P if it contains all points of P (and possibly more).

Lower/upper (Darboux) sums

For each subinterval [xi−1,xi] define

mi:=infx∈[xi−1,xi]f(x),Mi:=supx∈[xi−1,xi]f(x).

Then the lower sum and upper sum are

m(f,P):=∑i=1nmi(xi−xi−1),M(f,P):=∑i=1nMi(xi−xi−1).

Riemann sums

A Riemann sum chooses arbitrary points ξi∈[xi−1,xi] and defines

S(f,P,ξ):=∑i=1nf(ξi)(xi−xi−1).

Always m(f,P)≤S(f,P,ξ)≤M(f,P).

Integrability

Define the lower integral and upper integral of f by

∫ab―f:=supPm(f,P),∫ab―f:=infPM(f,P),

where P ranges over all partitions of [a,b], i.e, P∈P[a,b].

We say f is Riemann integrable on [a,b] (or R-integrable) if

∫ab―f=∫ab―f.

In that case, their common value is denoted by

∫abf(x)dx.

Equivalent practical criterion: f is Riemann integrable iff for every ε>0 there exists a partition P such that

M(f,P)−m(f,P)<ε.

Convergence of Riemann sums

If f is Riemann integrable and (Pn) is any sequence of partitions with |Pn|→0, then for any choice of tags ξi(n)∈[xi−1(n),xi(n)] one has

∫abf(x)dx=limn→∞S(f,Pn,ξ(n)).

Standard non-example (Dirichlet function)

Let ψ:[0,1]→R be

ψ(x)={1,x∈Q,0,x∉Q.

On every subinterval there are rationals and irrationals, hence every partition P satisfies m(ψ,P)=0 and M(ψ,P)=1. Therefore

∫01―ψ=0≠1=∫01―ψ,

so ψ is not Riemann integrable.