I'm trying to prove that $\forall \delta >0, \, \exists C>0 \, \,s.t.\, |\int_{x}^{\pi}D_n(t)\, dt| \leq \frac{C}{n}$ for all $x \in [0,\delta]$, where $D_n$ denotes the Dirichlet kernel. I'm reading this from Giaquinta's Linear and metric structures (p. 446). The author gives two hints. One way is to do integration by parts. I think he means to integrate by parts the following: $ \int_{x}^{\pi} {\sin((n+1/2)x) \over \sin{(x/2)}}dx. $ But the two obvious ways to integrate this by parts give me back some horrible expressions that i don't know how to use in order to prove the result. The other hint is to use the following: $ \lim_{n \rightarrow \infty}\int_{\delta <|s|\leq \pi} f(t) D_n(t) \,dt =0 $ for any integrable periodic $f$, and $\delta >0$. I've tried this last expression with $f=1$, but I don't see how the conclusion would follow from this. By the way, the primitive of the Dirichlet kernel, which I've calculated with Mathematica, is too complicated to work with. To make things worse, I don't know how to prove the statement of this last hint (although the preliminary theorem that appears in the book I do understand). Any suggestions would be greatly appreciated.
PD: I wrote the second hint as it appears in the book, but I guess that where it says "$|s|$" it should say "$|t|$".