Assume $f$ is a twice differentiable function on $\Bbb R $ and $ f'' $ is continuous. Assume further that $ f(-1) = f(1) = 0$ then prove that $$\int\limits_{-1}^1 f' ^ 2\leq \frac{1}{2} \left( \int\limits_{-1} ^ 1 f^2 + \int _{-1}^ 1 (f'')^2 \right) $$
I thought of applying Rolle's theorem on $f$ but I'm not sure how to use it to prove this inequality. I also thought of using A.M. - G.M. inequality but it does not seem fruitful. I am stuck and unable to start this problem. Thank you.