Let f:[0,1]→R satisfy ∣f(x)−f(y)∣⩽∣x−y∣ for all x,y∈[0,1].
Show that f is continuous and that for all ε>0, there exists a piecewise constant function g such that
x∈[0,1]sup∣f(x)−g(x)∣⩽ε.
For all integers n⩾1, let un=∫01f(t)cos(nt)dt. Show that the sequence (un) converges to 0 .