#213

solved

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

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

for any reals x,yx,y.

Solution

Solution by anakinwang.


Note that this problem is precisely FE #28 with xx restricted to the nonnegative reals. We remark that this proof was directly inspired by FE #475, which is essentially a slightly harder version of this problem.

Let Q(x,y)Q(x, y) denote the assertion that f(x+f(y)2)=f(x)+y2f(x + f(y)^2) = f(x) + y^2, where x≥0x \geq 0. We claim that a function f:R→Rf: \mathbb{R} \to \mathbb{R} satisfies Q(x,y)Q(x, y) for all x∈R≥0x \in \mathbb{R}_{\geq 0} and y∈Ry \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.

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

It remains to show that these are the only solutions. By Q(0,y)Q(0, y), we have f(f(y)2)=f(0)+y2f(f(y)^2) = f(0) + y^2 for any y∈Ry \in \mathbb{R}. Another application yields f(0)+f(y)4=f(f(f(y)2)2)=f((f(0)+y2)2)f(0) + f(y)^4 = f(f(f(y)^2)^2) = f((f(0) + y^2)^2); setting y=0y = 0 gives f(0)+f(0)4=f(f(0)2)=f(0)f(0) + f(0)^4 = f(f(0)^2) = f(0), so f(0)=0f(0) = 0. It follows that f(f(y)2)=y2f(f(y)^2) = y^2 and f(y)4=f(y4)f(y)^4 = f(y^4) for all y∈Ry \in \mathbb{R}.

Consider the behavior of ff over R≥0\mathbb{R}_{\geq 0}. For any x≥0x \geq 0, we have f(f(x)2)=xf(f(\sqrt{x})^2) = x, so every x≥0x \geq 0 is the output of ff for some input f(x)2≥0f(\sqrt{x})^2 \geq 0. For any y≥0y \geq 0, we also verify that f(y)=f(y4)4≥0f(y) = f(\sqrt[4]{y})^4 \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}.

As such, we recall that any r≥0r \geq 0 may be written as f(y)2f(y)^2 for some y≥0y \geq 0. By Q(x,y)Q(x, y), we then have f(x+r)≥f(x)f(x + r) \geq f(x) for any x,r≥0x, r \geq 0, so ff is nondecreasing over R≥0\mathbb{R}_{\geq 0}.

Since f(y)4=f(y4)f(y)^4 = f(y^4), we know that f(1)∈{0,1}f(1) \in \{0, 1\}. If f(1)=0f(1) = 0, then f(0)=f(f(1)2)=1f(0) = f(f(1)^2) = 1, a contradiction; thus, f(1)=1f(1) = 1. Meanwhile, noting that f(y)2≥0f(y)^2 \geq 0, we have by Q(f(y)2,y)Q(f(y)^2, y) that f(2f(y)2)=f(f(y)2)+y2=2f(f(y)2)f(2f(y)^2) = f(f(y)^2) + y^2 = 2f(f(y)^2). Letting r=f(y)2r = f(y)^2, we have f(2r)=2f(r)f(2r) = 2f(r) for any r≥0r \geq 0. Since f(1)=1f(1) = 1, it follows that f(2n)=2nf(2^n) = 2^n for any n∈Zn \in \mathbb{Z}. Applying Q(x,2n)Q(x, 2^n), we then find f(x+4n)=f(x)+4nf(x + 4^n) = f(x) + 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)=x2f(f(x)^2) = x^2, from which it follows that f(x)2=x2f(x)^2 = x^2, implying ∣f(x)∣=−x\lvert f(x) \rvert = -x. This concludes the proof.