Find all function $f:R\to R$,such for any real number $x,y$ have $$f(f(x)+y)=2x+f(f(f(y))-x)$$
I have prove this one result:
$$f(f(0))=f(0)$$ proof:let $x=y=0$,then we have $$f(f(0))=f(f(f(0)))$$ and take $x=f(f(0)),y=0$,we have $$f(f(f(f(0))))=2f(f(0))+f(0)$$ so we have $$f(f(0))=-f(0)$$
use this links Ivan Loh methods to prove two reslut:
$f(x)$ is also injective
proof: For convenience, let $P(x, y)$ represent the equation $f(f(x)+y)=2x+f(f(f(y))-x)$.
$P(x, -f(x))$ gives $f(f(-f(f(x)))-x)=f(0)-2x$. Thus $f(x)$ is surjective.
Suppose $f(a)=f(b)$ for some $a, b$. Then $P(x, a)$ and $P(x, b)$ give $$f(f(x)+a)=2x+f(f(f(a))-x)=2x+f(f(f(b))-x)=f(f(x)+b)$$ Since $f(x)$ is surjective, $f(x+a)=f(x+b) \, \forall x \in \mathbb{R}$.
Now using the above equation and $P(a, y), P(b, y)$ give
\begin{align} 2a=f(f(a)+y)-f(f(f(y))-a) & =f(f(a)+y)-f(f(f(y))-(a+b)+b) \\ &=f(f(a)+y)-f(f(f(y))-(a+b)+a) \\ & =f(f(b)+y)-f(f(f(y))-b) \\ & =2b \end{align}
Thus $f(x)$ is also injective.
Finally, $P(0, y)$ gives $f(y+f(0))=f(f(f(y)))$, so since $f(x)$ is injective, $$f(f(y))=y+f(0) \, \forall y \in \mathbb{R}$$.
then I can't continue ,and I think this answer is $f(x)=x$.so How to prove it.and this problem is from my teacher to give me exercise .Thanks for you help! Now when post this post,This site automatically displays a prompt for a similar question to me(But it's different problem) :links