\left|I-\sum_{k=1}^nf(x_k)(a_k-a_{k-1})\right|<\varepsilon