Solution by jasperE3.
f(2f(x)f(y))=xy+f(xy).
P(x,1)⇒f(2f(1)f(x))=x+f(x) so f is injective.
P(xy,1)⇒f(2f(xy)f(1))=xy+f(xy)=f(2f(x)f(y)) so f(xy)f(1)=f(x)f(y) by injectivity. If f(1)=0 then setting x=y gives f(x)=0 for all x which is not a solution. So f(1)=0 and we can define a function g:R→R as g(x)=f(1)f(x) such that g(xy)=g(x)g(y).
P(x,1)⇒f(2f(1)21)f(2f(1)f(x))=(x+f(x))f(2f(1)21)⇒g(g(x))=ag(x)+bx where b=f(1)21f(2f(1)21) and a=bf(1).
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 injective (therefore 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, which contradicts b=1−a.
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 f is linear. Testing, our only linear solution is f(x)=x.