Letting x=y=−α we get
f(f(−α))=f(f(−α))+f(α)−α⟹f(α)=α.
Letting x=−α,y=α we get
α=f(f(α))=f(f(−α))+α+α⟹f(f(−α))=−α.
Now let us denote f(−α)=a. We know that f(a)=−α. Letting x=α,y=a we get
α=2α+a⟹a=−α.
Finally, letting y=−α gives us
f(x)=f(f(x)),∀x∈R,
and letting x=−α gives us
f(f(y))=y,∀y∈R.
It follows that
f(x)=f(f(x))=x,∀x∈R.
It is easy to check that the function f(x)=x really is a solution.