#177

solved

Find all functions f:R→Rf:\mathbb{R}\to\mathbb{R} such that

f(x2+y2)=x2+f(y)2f(x^2 + y^2) = x^2 + f(y)^2

for any reals x,yx,y.

Solution

Solution by qwerttiger.


From P(0,0)P(0,0),

f(0)=f(0)2,f(0)=f(0)^2,

so

f(0)∈{0,1}.f(0)\in\{0,1\}.

From P(x,0)P(x,0),

f(x2)=x2+f(0)2.f(x^2)=x^2+f(0)^2.

If f(0)=1f(0)=1, then

f(x)=x+1f(x)=x+1

for x≥0x\ge0.

However, P(1,1)P(1,1) gives

f(2)=1+f(1)2,f(2)=1+f(1)^2,

so

3=5,3=5,

a contradiction.

Thus

f(0)=0,f(0)=0,

and

f(x)=xf(x)=x

for x≥0x\ge0.

From P(0,x)P(0,x) and P(0,−x)P(0,-x),

f(x)2=f(−x)2.f(x)^2=f(-x)^2.

Thus

∣f(x)∣=−x|f(x)|=-x

for x≤0x\le0.

The answer set is

f(x)=xfor x≥0f(x)=x\quad\text{for }x\ge0

and

∣f(x)∣=−xfor x≤0.|f(x)|=-x\quad\text{for }x\le0.

To check this, notice that

x2+y2≥0,x^2+y^2\ge0,

so

f(x2+y2)=x2+y2.f(x^2+y^2)=x^2+y^2.

Also,

f(y)2=y2,f(y)^2=y^2,

regardless of whether f(y)=yf(y)=y or f(y)=−yf(y)=-y. Hence

x2+y2=x2+y2,x^2+y^2=x^2+y^2,

as required.