Assume that $f\colon[0,1]\to\mathbb{R}$ is a differentiable function with $f'$ square integrable (if that's too weak or unpractical, assume that $f$ is continuously differentiable) such that $f(0)=f(1)=0$. Is it the case that $$ \left(\int_0^1 |f|\right)^2 \leq \frac{1}{12}\int_0^1 {f'}^2 $$ ? It holds for the functions $f$ I have tried (e.g., the obvious $f(x)=x(1-x)$, and things like $f(x)=\sin(\pi x)$). Moreover, it is not difficult to see that $1/12$ is the best one can hope for, since it's achieved for $f(x)=x(1-x)$.
It seems to reek of Cauchy-Schwarz and/or integration by parts, but I can't see how to prove it. It feels I am one simple trick short.