Let f be a real regulated function on a compact interval [a, b]. Put
r(n)=nb−ak=1∑nf(a+knb−a)−∫abf(t)dt.
a) Show that if f is increasing on [a, b] one has
0≤r(n)≤nb−a(f(b)−f(a)).
b) If f is continuous and admits a regulated bounded right derivative on [a, b[, show that one has limn→∞nr(n)=2b−a(f(b)−f(a)) (putting xk=a+knb−a, remark that one has
r(n)=k=0∑n−1∫xkxk+1(f(xk+1)−f(t))dt, and apply prop. 5 of II, p. 57).
c) Give an example of a function f, increasing and continuous on [a, b], such that nr(n) does not tend to 2b−a(f(b)−f(a)) as n grows indefinitely [take for f the limit of a decreasing sequence (fn) of increasing functions whose graphs are broken lines such that
fn(a+k2nb−a)=f(a+k2nb−a)for0≤k≤2n and
(b−a)k=1∑2nfn(a+k2nb−a)−2n∫abfn(t)dt≥43(b−a)(fn(b)−fn(a))].