Solution by jasperE3.
Equation is f(f(x)+f(y))=f(x)+y for all y≥0.
Comparing P(x,0) and P(0,x), we get f(x)=x+f(0) for all x≥0, so equation becomes f(f(x)+y+f(0))=f(x)+y. Take y large enough so that y,f(x)+y+f(0)≥0, then f(0)=0. We can prove that the remaining system f(x+f(y))=x+f(y) for all x≥0 and f(x)=x for all x≥0 is equivalent to the original equation, so our solutions are:
f(x)=x
f(x)={xg(x)if x≥cif x<c
where c≤0 and g:(−∞,c)→[c,∞)
f(x)={xg(x)if x>cif x≤c
where c<0 and g:(−∞,c]→(c,∞).