Solution by jasperE3.
f(xf(x)+f(xy))=x2+xy.
P(−1,1)⇒f(0)=0.
P(1,0)⇒f(f(1))=1.
P(f(1),0)⇒f(1)2=1.
Case 1: f(1)=1:
P(1,x)⇒f(f(x)+1)=x+1⇒f(x+2)=f(f(f(x)+1)+1)=f(x)+2.
Now we have f(xf(x)+f(y))=x2+y for all x=0, so:
f(xf(x)+z2+y)=x2+zf(z)+f(y)
for all x,z=0. Set z=2, using f(x+4)=f(x+2)+2=f(x)+4 this is:
f(xf(x)+y+4)=x2+f(y)+4⇒f(xf(x)+y)=x2+f(y)
for all x=0, which implies f(xf(x)+xy)=x2+f(xy). By #439 we have (combined with f(1)=1) the only solution in this case f(x)=x.
Case 2: f(1)=−1:
P(1,0)⇒f(−1)=1.
P(1,1)⇒f(−2)=2.
P(1,x)⇒f(f(x)−1)=x+1.
P(x,1)⇒f(xf(x)+f(x))=x2+x.
P(f(x)−1,1)⇒f(xf(x)+f(x))=f(x)2−f(x).
Comparing, we have f(x)2−f(x)=x2+x so f(x)∈{−x,x+1} for each x.
If f(k)=−k for some k, then k=0 and f(k)=k+1 so:
P(k,1)⇒f(k2+2k+1)=k2+k.
If f(k2+2k+1)=k2+2k+2 then k=−2 which contradicts f(−2)=2.
If f(k2+2k+1)=−k2−2k−1 then 2k2+3k+1=0 so k=−21 since k=−1.
So we have f(x)=−x for all x=−21. Then:
P(2,−47)⇒f(−21)=21,
so f(x)=−x for all x whether x=−21 or x=−21. Easy to verify that this is indeed a solution.