This is my problem "Find $f:\mathbb{R}\to \mathbb{R}$ s.t. $f(xf(y)-f(x))=2f(x)+xy$ ". I'm not so good at functional equation so all I did until now is subtituting $x,y$ by $1,0$ and I couldn't even calculate a value.
One other approach is that I find 1 solution $f=-x+1$. So I let $g=f+x-1$ and try to prove $g=0$, but subtituting that into the equation make it a mess. Help me please.
This is a really tough problem, I like it very much! I tried to make it clear where I used what, but nevertheless its a bit messy. Feel free to ask if something is unclear!
Let $f$ be a solution of the equation and let $P(x,y)$ e the assertion $f(xf(y)-f(x))=2f(x)+xy$ Then $$ P(1,y):\qquad f(f(y)-f(1))=2f(1)+y\implies f\text{ surjective} $$ Thus let $a,b\in\mathbb{R}$ be such that $f(a)=0$ and $f(b)=1$. $$ P(a,b):\qquad 0=f(af(b)-f(a))=ab $$ Therefore either $a=0$ or $b=0$.
Case 1 : $a=0$ $$ P(1,1):\qquad 0=2f(1)+1\implies f(1)=-\frac12 $$ Thus if we reconsider $P(1,y)$ we obtain $f(f(y)+1/2)=y-1$. Hence $$ P(1,f(y)+1/2):\qquad f(y-1/2)=f(f(f(y)+1/2)+1/2)=f(y)+1/2-1=f(y)-1/2 $$ and with $y=f(x)+1/2$ in the above equation: $$ f(f(x))=f(f(x)+1/2)-1/2=x-3/2 $$ But thus $0=f(f(0))=-3/2$, contradiction.
Case 2 : $b=0$
Then again $P(1,1)$ gives $f(0)=1$. Therefore if we reconsider $P(1,y)$ we get $f(f(y))=y\tag{1}\label{1}$ and thus $f$ is bijective. Now $$ P(x,0):\qquad f(x-f(x))=2f(x)\tag{2}\label{2} $$ $$ P(f(x),0):\qquad f(f(x)-x)=2x\\\stackrel{f()}\implies f(x)-x\stackrel{\eqref{1}}=f(f(f(x)-x))=f(2x)\tag{3}\label{3} $$ $$ P(f(x),1):\qquad f(-x)\stackrel{\eqref{1}}=f(-f(f(x)))\stackrel{P(f(x),1)}=2f(f(x))+f(x)\stackrel{\eqref{1}}=2x+f(x)\tag{4}\label{4} $$ Now $f(-1)\stackrel{\eqref{4}}=2+f(1)=2$ and thus $f(2)=f(f(-1))\stackrel{\eqref{1}}=-1$. Finally we take $$ P(x,2):f(-x-f(x))=2f(x)+2x $$ But $f(-x-f(x))\stackrel{\eqref{4}}=2(x+f(x))+f(x+f(x))$ and thus the above equation simplifies to $f(x+f(x))=0$. But $f$ is injective and we know already that $f(1)=0$, so $$ x+f(x)=1\implies f(x)=1-x\qquad\forall x\in\mathbb{R} $$ Substituting this back into the original equation we see that this is indeed a solution.