Let $f:[0, 1]\to \mathbb{R}$ be a two times differentiable function such that $f''$ is Riemann integrable, $f(0)=0$ and $f'(0)=0$. Is it true under these assumptions that $$12 \int_{0}^{1}f^{2}(x)dx\le\int_{0}^{1}(1-x^4)(f''(x)) ^2dx?$$
The source of my problem is this, where I also proved this inequality if $f$ is a $C^2$ class function, i.e. if we know that $f''$ is not only Riemann integrable, but actually continuous. For the sake of completeness, I will add my short proof here.
By Taylor's Theorem with Integral Remainder we know that $$f(x)=\int_0^x (x-t)f''(t)dt$$ for any $x\in [0,1]$.
Thus, $$\int_0^1 f^2(x)dx=\int_0^1 \left(\int_0^x (x-t)f''(t) dt\right)^2 dx \stackrel{\text{C-S}}{\le}\int_0^1 \frac{x^3}{3}\left(\int_0^x (f''(t))^2 dt\right)dx=\frac{1}{12}\int_0^1(1-x^4)(f''(x))^2dx$$ and we are done.
The OP from AoPS required $f''$ to be only Riemann integrable and I wonder if this inequality still holds in that case or if he actually intended $f''$ to be continuous.
So far I've only come up with the idea that maybe I can somehow approximate a two times differentiable function with a Riemann integrable second derivative by a sequence of $C^2$ class functions. I don't know if this is possible (I haven't taken an advanced course in real analysis yet, so please bear with me if there is some well known density argument that I am not aware of), but this is all I could come up with.