Solution by jasperE3.
f(f(x2)+xf(y))=x2+yf(x).
P(0,x)⇒f(f(0))=xf(0), so varying x we find that f(0)=0.
P(−1,1)⇒f(−1)=−1.
P(−1,1−x)⇒f(f(1)−f(1−x))=x, so f is surjective.
Claim: there are some a,b=0 such that f(x+a)=f(x)+b for all x.
If f(1)=1:
P(−1,x)⇒f(f(1)−f(x))=1−x so:
f(f(1)−1+x)=f(f(1)−f(f(1)−f(x)))=1−f(1)+f(x),
and so we can take a=f(1)−1 and b=1−f(1).
If f(1)=1:
P(1,x)⇒f(1+f(x))=1+x so:
f(2+x)=f(1+f(1+f(x)))=2+f(x),
and so we can take a=b=2.
P(x,y+a)⇒f(f(x2)+xf(y)+bx)=x2+yf(x)+af(x)=f(f(x2)+xf(y))+af(x)
and since f(x2)+xf(y) can take any value for x=0 (by surjectivity):
f(y+bx)=f(y)+af(x)
for all x=0. It’s true for x=0 as well, so taking y=0 we have f(bx)=af(x) and so:
f(y+bx)=f(y)+f(bx)⇒f(x+y)=f(x)+f(y),
that is, f is additive.
P(x,0)⇒f(f(x2))=x2.
Original equation reduces to f(xf(y))=yf(x), now it’s easy to obtain by additivity that:
f(x+xf(y))=f(x)+yf(x),
which by #46 has solutions f(x)=0 (doesn’t fit the original equation) and f(x)=x.