#475

solved

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

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

for any reals x,yx,y.

Solution

Solution by anakinwang.


Let P(x,y)P(x, y) denote the problem assertion. We claim that a function f:R→Rf: \mathbb{R} \to \mathbb{R} satisfies P(x,y)P(x, y) for all x,y∈Rx, y \in \mathbb{R} iff ff satisfies ∣f(x)∣=∣x∣\lvert f(x) \rvert = \lvert x \rvert for all x∈Rx \in \mathbb{R} and f(x)=xf(x) = x whenever x≥0x \geq 0.

Let us quickly verify all such ff work. Since f(x)2=x2f(x)^2 = x^2 for all x∈Rx \in \mathbb{R}, we have f(x)2+f(y)2=x2+y2≥0f(x)^2 + f(y)^2 = x^2 + y^2 \geq 0. Hence, f(f(x)2+f(y)2)=x2+y2f(f(x)^2 + f(y)^2) = x^2 + y^2.

It remains to show that these are the only solutions. To begin, let us focus on the behavior of ff over R≥0\mathbb{R}_{\geq 0}. For any x≥0x \geq 0, we have f(f(x)2+f(0)2)=xf(f(\sqrt{x})^2 + f(0)^2) = x, so every x≥0x \geq 0 is the output of ff for some input f(x)2+f(0)2≥0f(\sqrt{x})^2 + f(0)^2 \geq 0. For any r≥0r \geq 0, we may then choose a=f(r4)2+f(0)2a = f(\sqrt[4]{r})^2 + f(0)^2 and b=2f(0)2b = 2f(0)^2 to verify that f(r)=a2+b2≥0f(r) = a^2 + b^2 \geq 0 for all r≥0r \geq 0. It follows that the restriction of ff to R≥0\mathbb{R}_{\geq 0} is a surjection to R≥0\mathbb{R}_{\geq 0}.

We observe that over the nonnegatives, ff in fact bijects to R≥0\mathbb{R}_{\geq 0}. Indeed, to show injectivity over the R≥0\mathbb{R}_{\geq 0}, we simply note that f(x)=f(y)f(x) = f(y) implies f(2f(x)2)=f(2f(y)2)=2x2=2y2f(2f(x)^2) = f(2f(y)^2) = 2x^2 = 2y^2 for any x,y≥0x, y \geq 0.

Since f(2f(x)2)=2x2f(2f(x)^2) = 2x^2, we know 8f(x)4=f(2f(2f(x)2)2)=f(8x4)8f(x)^4 = f(2f(2f(x)^2)^2) = f(8x^4), so f(0),f(12)∈{0,12}f(0), f(\frac{1}{2}) \in \{0, \frac{1}{2}\}. We have f(2f(0)2)=0f(2f(0)^2) = 0 and f(2f(12)2)=12f(2f(\frac{1}{2})^2) = \frac{1}{2}, so we also know f(0)=12f(0) = \frac{1}{2} iff f(12)=0f(\frac{1}{2}) = 0. It follows that f(14)=f(f(0)2+f(12)2)=14f(\frac{1}{4}) = f(f(0)^2 + f(\frac{1}{2})^2) = \frac{1}{4}.

Evaluating P(14,x)P(\frac{1}{4}, x) yields f(116+f(x)2)=116+x2f(\frac{1}{16} + f(x)^2) = \frac{1}{16} + x^2. Nesting this gives 116+(116+f(x)2)2=f(116+f(116+f(x)2)2)=f(116+(116+x2)2)\frac{1}{16} + (\frac{1}{16} + f(x)^2)^2 = f(\frac{1}{16} + f(\frac{1}{16} + f(x)^2)^2) = f(\frac{1}{16} + (\frac{1}{16} + x^2)^2). Expanding, we have 17256+18f(x)2+f(x)4=f(17256+18x2+x4)\frac{17}{256} + \frac{1}{8}f(x)^2 + f(x)^4 = f(\frac{17}{256} + \frac{1}{8}x^2 + x^4). Since 17256<12\frac{17}{256} < \frac{1}{2}, pick t∈Rt \in \mathbb{R} satisfying 17256+18t2+t4=12\frac{17}{256} + \frac{1}{8}t^2 + t^4 = \frac{1}{2}. We obtain f(12)=17256+18f(t)2+f(t)4≥17256f(\frac{1}{2}) = \frac{17}{256} + \frac{1}{8}f(t)^2 + f(t)^4 \geq \frac{17}{256}, so necessarily f(12)=12f(\frac{1}{2}) = \frac{1}{2} and f(0)=0f(0) = 0.

Given f(0)=0f(0) = 0, we then have f(f(x)2)=x2f(f(x)^2) = x^2 by P(x,0)P(x, 0); a second application yields f(x)4=f(f(f(x)2)2)=f(x4)f(x)^4 = f(f(f(x)^2)^2) = f(x^4). By P(f(x)2,y)P(f(x)^2, y), we find f(x4+f(y)2)=f(f(f(x)2)2+f(y)2)=f(x4)+y2f(x^4 + f(y)^2) = f(f(f(x)^2)^2 + f(y)^2) = f(x^4) + y^2; writing w=x4w = x^4, we have f(w+f(y)2)=f(w)+y2f(w + f(y)^2) = f(w) + y^2 for any w≥0w \geq 0; call this assertion Q(w,y)Q(w, y). Recalling that any r≥0r \geq 0 may be written as f(y)2f(y)^2 for some y≥0y \geq 0, we obtain f(w+r)≥f(w)f(w + r) \geq f(w) for any w,r≥0w, r \geq 0, so ff is nondecreasing over R≥0\mathbb{R}_{\geq 0}.

Notice that f(2f(x)2)=2x2=2f(f(x)2)f(2f(x)^2) = 2x^2 = 2f(f(x)^2). Letting r=f(x)2r = f(x)^2, we have f(2r)=2f(r)f(2r) = 2f(r) for any r≥0r \geq 0. Since f(12)=12f(\frac{1}{2}) = \frac{1}{2}, it follows that f(2n)=2nf(2^n) = 2^n for any n∈Zn \in \mathbb{Z}. Applying Q(w,2n)Q(w, 2^n), we then find f(w+4n)=f(w)+4nf(w + 4^n) = f(w) + 4^n for any n∈Zn \in \mathbb{Z}; since f(0)=0f(0) = 0, it follows that that f(4nm)=4nmf(4^n m) = 4^n m for any n,m∈Zn, m \in \mathbb{Z} with m≥0m \geq 0.

We have proven f(x)=xf(x) = x for all xx in a dense subset of R≥0\mathbb{R}_{\geq 0}, so we are essentially done. Any x≥0x \geq 0 may be approximated by 4nm≤x≤4n(m+1)4^n m \leq x \leq 4^n (m + 1) to arbitrarily high precision by taking n→−∞n \to -\infty; since f(4nm)≤f(x)≤f(4n(m+1))f(4^n m) \leq f(x) \leq f(4^n (m + 1)), this forces f(x)=xf(x) = x for all x≥0x \geq 0. As for x<0x < 0, one simply notes that f(f(x)2)=x2=f(f(−x)2)f(f(x)^2) = x^2 = f(f(-x)^2), from which ∣f(x)∣=f(−x)=−x\lvert f(x) \rvert = f(-x) = -x follows from the injectivity of ff over R≥0\mathbb{R}_{\geq 0}. This concludes the proof.