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|:=max1in(xixi1).

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 [xi1,xi] define

mi:=infx[xi1,xi]f(x),Mi:=supx[xi1,xi]f(x).

Then the lower sum and upper sum are

m(f,P):=i=1nmi(xixi1),M(f,P):=i=1nMi(xixi1).

Riemann sums

A Riemann sum chooses arbitrary points ξi[xi1,xi] and defines

S(f,P,ξ):=i=1nf(ξi)(xixi1).

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

Integrability

Define the lower integral and upper integral of f by

abf:=supPm(f,P),abf:=infPM(f,P),

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

We say f is Riemann integrable on [a,b] if

abf=abf.

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)[xi1(n),xi(n)] one has

abf(x)dx=limnS(f,Pn,ξ(n)).

Standard non-example (Dirichlet function)

Let ψ:[0,1]R be

ψ(x)={1,xQ,0,xQ.

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

01ψ=01=01ψ,

so ψ is not Riemann integrable.