Find all functoins $f: \mathbb R \rightarrow \mathbb R$ such that $\forall x,y \in \mathbb R$ the equality:: $$f(xy+f(x))=xf(y)+f(x)$$
My work so far:
1) $f(0)=0$;
Let $f(a)=f(b)\not=0$
$x=a, y=b \Rightarrow f(ab+f(a))=af(b)+f(a)$;
$x=b, y=a \Rightarrow f(ba+f(b))=bf(a)+f(b)$;
Then $af(b)+f(a)=bf(a)+f(b) \Rightarrow a=b$
$x=0: f(f(0))=f(0) \Rightarrow f(0)=0$
2) $f(x)=x -$ solution. I have tried to prove that $g(x)=f(x)-x = 0 (\forall x \in \mathbb R)$ $$g(xy+x+g(x))=xg(y)$$