Define the continuous function
At the mesh points its values telescope:
If one term is zero, the result follows immediately. Otherwise the terms cannot all have the same sign, so there are mesh points at which is positive and negative. The intermediate value theorem between those points gives an with . Thus the telescoping increment lemma yields