Let $f:\mathbb{R} \rightarrow \mathbb{R}$ be a measurable (with respect to the Lebesgue measure), $\pi$-periodic function which is Lebesgue integrable over $[0,\pi]$.
Moreover assume that $\int\limits_0^\pi f(x)dx = 0$. Define \begin{equation} g(x) = \left\{ \begin{aligned} \frac{f(x)}{x} & \quad \text{for } \pi \leq x < \infty \\ \\ 0 & \quad \text{otherwise} \end{aligned} \right. . \end{equation}
Claim: $$\left| \int\limits_{k\pi}^{(k+1)\pi}g(x) dx \right| \leq \frac{1}{k^2\pi} \int\limits_{0}^{\pi}f^+(x)dx ,$$ where $f^+(x)$ denotes the positive part of $f(x)$.
The problem I have is that the constant $\frac{1}{k^2\pi}$ seems to be very sharp. So the basic approach \begin{align} \left| \int\limits_{k\pi}^{(k+1)\pi}g(x) dx \right| &\leq \int\limits_{k\pi}^{(k+1)\pi}\frac{\left|f(x)\right|}{x} dx = \int\limits_{k\pi}^{(k+1)\pi}\frac{f^+(x) + f^-(x)}{x} dx \\ &\leq \frac{2}{k\pi} \int\limits_{0}^{\pi}f^+(x)dx ,\end{align}
( Here we used $\int\limits_{k\pi}^{(k+1)\pi}f^+{x} dx = \int\limits_{k\pi}^{(k+1)\pi}f^-{x} dx$, whith $f^-(x)$ denoting the negative part of $f(x)$ and that $f^\pm(x)$ is $\pi$-periodic.)
seems to overestimate quite a bit.
I also tried to use the fact that $\frac{1}{x}$ is convex (Hermite-Hadamard inequality), but I couldn't come up with the constant $\frac{1}{k^2}$ and would therefore appreciate a hint, how one can find this constant.