Find all kinds of function $f: \mathbb{R} \rightarrow \mathbb{R}$ which satisfies $$|x|f(y)+yf(x)=f(xy)+f(x^2)+f(f(y))$$
My attempt: \begin{align} &P(0, 0): 0 = 2f(0)+f(f(0)). \\ &\text{Let } f(0)=c \Rightarrow f(c)=-2c. \\ \ \\ &\text{Let }t > 0, \\ &P(t, 0): tf(0)=f(0)+f(t^2)+f(f(0)). \\ &\Rightarrow (t-1)c=f(t^2)-2c. \\ &\therefore (t+1)c=f(t^2). \\ &t \neq -1(\because t>0) \Rightarrow f(t)=(\sqrt{t}+1)c. \\ \ \\ &\text{Actually, it makes sense if } t=0. \\ \end{align}
$$|x|f(y)+yf(x)=f(xy)+f(x^2)+f(f(y)) $$
$$\therefore \;\;f(x)=\begin{cases} 0&\forall x\geq 0\\ -xf(-1)&\forall x\le 0 \end{cases}$$ where $f(-1)\ge 0.$