Clearly since RHS is a polynomial of degree 4 LHS must also be a polynomial of degree at most 4.
Putting x=0 we get f(1)=0
Putting x=1 we get f(1)+f(0)=2−1
⇒f(0)=1
Putting x=−1 we get
f(−1)+f(2)=−2−1=−3.....(1)
Putting x=2 we get
4f(2)+f(−1)=4−16=−12....(2)
(1)×4−(2) gives
3f(−1)=0⇒f(−1)=0
Hence f(x) has 2 roots 1 and -1.
Since it is a quadratic at most these are the only roots it has
f(x)=(x−1)(x−(−1)) or (1−x)(1+x)
Putting f(x)=x2−1 in given equation for f(x), we find x4−2x=−(x4−2x), which is not possible
So, f(x)=1−x2