TITLE: Show that $2 \int f^2 \leq \int |f'| \cdot \int |f|$
QUESTION [7 upvotes]: Let $f(x)$ be a continuously differentiable function defined on closed interval $[0, 1]$ for which$$\int_0^1 f(x)\,dx = 0.$$How do I show that$$2 \int_0^1 f(x)^2\,dx \le \int_0^1 |f'(x)|\,dx \cdot \int_0^1 |f(x)|\,dx?$$

REPLY [3 votes]: Here is a slightly different point of view:
First, we note that $f(x)=f(0)+\int_0^x f'(t)\,dt$ and hence (here we also use that $\int_0^1f(x)\,dx=0$)
$$
\int_0^1 (f(x))^2\,dx=\int_0^1 f(x)\biggl[f(0)+\int_0^x f'(t)\,dt\biggr]\,dx=\int_0^1\int_0^x f(x)f'(t)\,dt\,dx.\tag{1}
$$
Changing order of integration in the right-hand side of $(1)$, using the fact that $\int_0^1 f(x)\,dx=0$, and then changing order of integration again, we find that
$$
\begin{aligned}
\int_0^1 (f(x))^2\,dx&=\int_0^1f'(t)\int_t^1 f(x)\,dx\,dt\\
&=-\int_0^1f'(t)\int_0^tf(x)\,dx\,dt\\
&=-\int_0^1\int_x^1f(x)f'(t)\,dt\,dx
\end{aligned}
$$
Thus, by adding these two formulas, and using the triangle inequality,
$$
\begin{aligned}
2\int_0^1(f(x))^2\,d&=\biggl|\int_0^1\int_0^x f(x)f'(t)\,dt\,dx-\int_0^1\int_x^1f(x)f'(t)\,dt\,dx\biggl|\\
&\leq \int_0^1\int_0^x |f(x)|\,|f'(t)|\,dt\,dx+\int_0^1\int_x^1|f(x)|\,|f'(t)|\,dt\,dx\\
&=\int_0^1|f(x)|\,dx\cdot\int_0^1|f'(t)|\,dt,
\end{aligned}
$$
and we are done.