Solution by jasperE3.
f(2f(xy))=f(x)f(y)+xy.
If f(1)=0, then P(x,x)⇒f(2f(x2))=f(x)2+x2 while P(x2,1)⇒f(2f(x2))=x2 so f(x)=0 for all x, this isn’t a solution.
So f(1)=0. Let g:R→R such that g(x)=f(1)f(x) for all x, note that no constant solutions exist for f so g is nonconstant.
P(xy,1)⇒f(x)f(y)+xy=f(2f(xy))=f(xy)f(1)+xy, we can calculate g(xy)=g(x)g(y).
P(x,1)⇒f(2f(1)1)f(2f(x))=f(1)f(2f(1)1)f(x)+xf(2f(1)1)⇒g(g(x))=ag(x)+bx where a=f(2f(1)1) and b=f(1)2a.
Let Q(x,y) be the assertion g(xy)=g(x)g(y).
Q(x,0)⇒g(0)(g(x)−1)=0⇒g(0)=0 since g is nonconstant.
Q(x,1)⇒g(x)(g(1)−1)=0⇒g(1)=1 since g is nonconstant.
Therefore b=g(g(1))−ag(1)=1−a.
If g(k)=0 for some k=0, then:
Q(kx,k)⇒g(x)=0 which contradicts that g is nonconstant.
Hence g(x)=0 for all x=0.
If a=0 then (by its definition) b=0, but then g(g(x))=0 implies g(x)=0 for all x which is constant, contradiction.
If a=1 then b=1−a=0, so (by its definition) a=0, contradiction.
For all x=0:
Q(x,x1)⇒g(x1)=g(x)1, in g(g(x))=ag(x)+(1−a)x now we have (again for x=0):
ag(x)+(1−a)x1=g(g(x))1=g(x)a+x1−a,
which simplifies to:
xg(x)=a2xg(x)+a(1−a)x2+a(1−a)g(x)2+(1−a)2xg(x)
⇒a(1−a)x2+(2a2−2a)xg(x)+a(1−a)g(x)2=0.
We already established a∈/{0,1}, so we can divide everything by a(1−a) to get:
x2−2xg(x)+g(x)2=0⇒g(x)=x.
Then g is the identity, since g(0)=0, so f is linear. Testing, our only linear solutions are f(x)=x and f(x)=−x.