Solution by MarkBcc168/jasperE3.
Let P(x,y) denote
f(2xf(y))=xf(y)+xy.
The zero function is not a solution, so choose j with f(j)=0. Then
P(2f(j)x,j)
gives
f(x)=2x+2f(j)xj.
Thus f is linear, say f(x)=cx. Substituting this into the equation gives
2c2xy=(c+1)xy
for all real x,y. Hence
2c2−c−1=0,
so c=1 or c=−21. Therefore the solutions are
f(x)=x for all xandf(x)=−2x for all x.
Both are checked directly to work.