Determine all the functions $f:\mathbb{R}\to\mathbb{R}$ with the property that $$f\bigl(x-f(y)\bigr) f\bigl(f(x)+y\bigr)=x f(x) - y f(y)$$ for any real numbers $x$ and $y$.
I managed to see that $f(x)=x$ and $f(x)=-x$ are solutions, but I don't know how to prove that.
For $x=y$ we have $$ f(x-f(x)) \times f(f(x)+x)) = 0. $$ Thus, $f(x-f(x)) = 0$ or $f(x+f(x)) = 0$.
Checking verifies all three solutions.