The parameter $\frac{1}{12}$ is kind of weird, it has the factor of 3, when the problem is about integration or derivation,we can assume it's about quadratic function.
what's more, as $f(0) = f(1) = 0$, we assume the equality stands when the function is symmetrical.
after trying, we can see function $f(x) = x(1-x)$ can satisfy the equality, while $f'(x) = -2x+1 = -2(x-\frac{1}{2})$.
in the light of the fact above, we substitute $\frac{1}{12}$ with $\int_{0}^{1}|x-\frac{1}{2}|dx$, using C-S inequality , we have:
$$
\frac{1}{12}\int_{0}^{1}|f'(x)|^2dx = \int_{0}^{1}|x-\frac{1}{2}|^2dx\int_{0}^{1}|f'(x)|^2dx \geq (\int_{0}^{1}|f'(x)(x-\frac{1}{2})|dx)^2
$$
$$
\int_{0}^{1}|f'(x)(x-\frac{1}{2})|dx \geq |\int_{0}^{1}f'(x)(x-\frac{1}{2})dx| = |\int_{0}^{1}f(x)dx|
$$
so,
$$
(\int_{0}^{1}f(x)dx)^2 \leq \frac{1}{12}\int_{0}^{1}|f'(x)|^2dx
$$