I have a solution for the above question but i wanted to check if what i am doing is correct and can be done or not.
The function i am getting also satisfies both the condition but i still am not sure if my method is correct or not.
I have given my solution below in the answers

According to the first crucial step of the solution proposed by the asker we get $$\int\limits_0^1x^3f'(x)\,dx =-1\quad (*)$$ By the Cauchy-Schwarz inequality we obtain $$1\le \int\limits_0^1x^6\,dx\, \int\limits_0^1[f'(x)]^2\,dx={1\over 7}\cdot 7=1$$ As the equality occurs in the C-S inequality, we get $f'(x)=cx^3.$ Next $(*)$ gives $c=-7.$ As $f(1)=0$ we get $$f(x)=-{7\over 4}(x^3-1)$$
Remark The solution can be made more elementary, by making a guess that $f'(x)=cx^3.$ Then $(*)$ gives $c=-7.$ Then we observe that $$\int\limits_0^1\left [f'(x)+7x^3\right ]^2\,dx=0$$ so $f'(x)=-7x^3.$