MathLabs

Problem 2

Find all functions f:R→Rf:\mathbb R\to\mathbb R such that f(x2+f(y))=y+f(x)2f(x^2+f(y))=y+f(x)^2 for all real x,yx,y.
Step 5 of 5: Use nonnegativity to identify the function
In plain words

Use nonnegativity to identify the function

f(z)=−z<0andf(z)=f(w2)=f(w)2≥0f(z)=-z<0\quad\text{and}\quad f(z)=f(w^2)=f(w)^2\ge0
Detailed analysis

Suppose f(x)=y≠xf(x)=y\ne x. If y>xy>x, set z=y−x>0z=y-x>0; if y<xy<x, set z=x−y>0z=x-y>0. Additivity gives f(z)=−z<0f(z)=-z<0 in either case. Choose ww with w2=zw^2=z. But f(z)=f(w2)=f(w)2≥0f(z)=f(w^2)=f(w)^2\ge0, a contradiction. Therefore f(x)=xf(x)=x for every real xx, and direct substitution verifies it.