Let $f:[a,b] \to \mathbb{R}$ be a differentiable function with $f(a)=0$ and so that $f'$ is continuous. Show that $$\int_a^b |{f(x)f'(x)}|\:\mathrm{d}x \leq \frac{b-a}{2} \int_a^b f'(x)^2\: \mathrm{d}x.$$
I received a hint for examining the function $G(x):=\int_a^x |f'(t)|\:\mathrm{d}t$ but haven't really gotten anywhere with it. Any tips would be greatly appreciated