#182

solved

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

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

for any reals x,yx,y.

Solution

Solution by maromex.


Let P(x,y)P(x,y) denote the given assertion f(x2+y2)=f(x)2+f(y)2.f(x^2+y^2) = f(x)^2 + f(y)^2.

P(0,0):f(0)=2f(0)2P(0,0): f(0) = 2f(0)^2. This means f(0)∈{0,12}.f(0) \in \left\{0, \frac{1}{2} \right\}.

Case 1: f(0)=0f(0) = 0

P(x,0):f(x2)=f(x)2P(x, 0) : f(x^2) = f(x)^2.

So f(x2+y2)=f(x2)+f(y2).f(x^2+y^2) = f(x^2) + f(y^2). Therefore ff is additive on nonnegative reals, and is bounded ≥0\ge 0 on nonnegative reals because f(x2)=f(x)2≥0.f(x^2) = f(x)^2 \ge 0. It follows that f(x)=cxf(x) = cx for all x≥0x \ge 0 for some real constant c.c. We have cx2=c2x2cx^2 = c^2x^2, so c∈{0,1}.c \in \{0, 1\}.

Case 1.1: c=0c=0

We get 0=f(x)20 =f(x)^2, so f(x)=0f(x)=0 for all real x.x. This function works.

Case 1.2: c=1c=1

We get x2=f(x)2x^2 = f(x)^2, and with f(x)=0f(x) = 0 for all x≥0x \ge 0, this is equivalent to the problem. So we get

f(x)={xx≥0xg(x)x<0f(x) = \begin{cases} x & x \ge 0 \\ xg(x) & x < 0 \end{cases}

for an arbitrary function g:(−∞,0)→{−1,1}.g : (-\infty,0) \to \{-1,1\}. This works.


Case 2: f(0)=12f(0) = \frac{1}{2}

P(x,0):f(x2)=f(x)2+14.P(x,0) : f(x^2) = f(x)^2 + \frac{1}{4}.

So f(x2+y2)=f(x2)+f(y2)−12.f(x^2+y^2) = f(x^2) + f(y^2) - \frac{1}{2}. Therefore x↦f(x)−12x \mapsto f(x) - \frac{1}{2} is additive on nonnegative reals, and is bounded ≥−14\ge -\frac{1}{4} on nonnegative reals because f(x2)−12=f(x)2+14−12≥−14.f(x^2) - \frac{1}{2} = f(x)^2 + \frac{1}{4}- \frac{1}{2} \ge -\frac{1}{4}. It follows that f(x)=cx+12f(x) = cx+ \frac{1}{2} for all x≥0x \ge 0 for some real constant c.c. We have cx2+12=(cx+12)2+14cx^2 + \frac{1}{2} = \left(cx + \frac{1}{2}\right)^2 + \frac{1}{4}, so c=0.c=0.

We get 12=f(x)2+14.\frac{1}{2} = f(x)^2 + \frac{1}{4}. Therefore f(x)∈{−12,12}f(x) \in \left\{-\frac{1}{2}, \frac{1}{2}\right\} for all x<0.x<0. So

f(x)={12x≥0g(x)x<0f(x) = \begin{cases} \frac{1}{2} & x \ge 0 \\ g(x) & x<0\end{cases}

for an arbitrary function g:(−∞,0)→{−12,12}.g : (-\infty, 0) \to \left\{-\frac{1}{2},\frac{1}{2}\right\}. This works.

Combining cases, the functions that work are f(x)=0f(x)=0 for all real xx, $f(x) =

{xx≥0xg(x)x<0\begin{cases} x & x \ge 0\\xg(x) & x<0\end{cases}

for an arbitrary function g:(−∞,0)→{−1,1}g:(-\infty,0) \to \{-1,1\}, and $f(x) =

{12x≥0g(x)x<0\begin{cases} \frac{1}{2} & x \ge 0 \\g(x) & x<0\end{cases}

for an arbitrary function g:(−∞,0)→{−12,12}.g:(-\infty,0) \to \left\{-\frac12,\frac12\right\}.