Solution by EmptySet.
Either f(x)=0 or f(x)=x for all x.
Suppose we have some u for which f(u)=u. Then we may pick v such that f(u2)+v⋅f(u)=uv, so then P(u,v)⟹f(u2)=0. Note that there is a contradiction here if u=0, so f(0)=0.
Now, P(u2,y)⟹f(u2⋅y)=f(f(u4))−f(u4) does not depend on y, so f is constant. And because f(0)=0, we must have that f(x)=0 for all x.