Let $f\in C^{2}[0,1]$ such that $f(0)=0,f(1/2)=f(1)=1$. Show that
$$\int_{0}^{1}[f''(x)]^2dx\ge 12.$$
My idea: try to find a function $f(x)$ such that the equality holds and use Cauchy-Schwarz. So I tried some "good" functions to achieve the minimum value.
Assume $f(x)=ax^3+bx^2+cx$ is a polynomial. Then I find that when $f(x)=-2x^2+3x$, the integral $\int_{0}^{1}[f''(x)]^2dx$ has minimum value $16$. It seems it doesn't help to solve the problem.
Since $f''(x)=(f(x)-ax-b)''$ and replace $f(x)$ by $f(x)-x$, we can change the condition to $f(0)=f(1)=0, f(1/2)=1/2$. I find that $f(x)=\frac{1}{2}\sin(\pi x)$ satisfies the condition and $\int_{0}^{1}[f''(x)]^2dx=\frac{\pi^2}{8}=12.1761...$ which is very closed to $12$. But it still doesn't help.
It seems that it isn't easy to find such $f(x)$ such that the equality holds. So how to prove this inequality? And what is the minumum value of this integral? May be not 12? Thank you!

You can split the integral in to two separate ones $$ \int_0^{\frac12} (f''(x))^2 \, \mathrm{d}x+\int_{\frac12}^{1} (f''(x))^2 \, \mathrm{d}x $$ and find the smallest function for both using calculus of variations and combine them piecewise. The reason that you have to do this is because calculus of variations only makes statements about the boundary. The solution is $$ f(x)= \begin{cases} -2x^3+\frac52 x& x \in [0,\frac12]\\ 2x^3-6x^2+\frac{11}2x -\frac12& x \in (\frac12,1]. \end{cases} $$ This achieves the lower bound of 12. From there on it is indeed Cauchy-Schwarz, similar to this How prove this $\int_{a}^{b}[f''(x)]^2dx\ge\dfrac{4}{b-a}$ .