Solution by jasperE3.
f(x+f(y))=x+y for x,y≥0.
We claim the solutions are of the form f(x)={xg(x)if x≥0if x<0 where g:(−∞,0)→R any function. Easy to verify that they work, so we just need to show that assuming the original equation, f(x)=x for all x≥0.
Fix x≥0, if y≥max{f(x),f(0)} then:
P(y−f(x),x)⇒f(y)=y+x−f(x).
P(y−f(0),0)⇒f(y)=y−f(0).
so comparing, f(x)=x+f(0) for all x≥0. It remains to prove that f(0)=0.
Take x≥max{0,−f(0)}, we have:
P(0,x)⇒f(f(x)=x⇒f(x+f(0))=x⇒x+2f(0)=x,
and we have the result, so f(x)=x for all x≥0 as desired.