#37

solved

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

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

for any reals x,yx,y.

Known appearances

Solution

Solution by TYT, maromex and gghx.


We claim the only solutions are f(x)≡xf(x)\equiv x and f(x)≡0f(x)\equiv 0, which obviously work. We now show they are the only solutions. Let P(x,y)P(x,y) denote the assertion that f(x+f(y2))=f(x)+yf(y)f(x+f(y^2))=f(x)+yf(y).


Claim 1. f(−y)=−f(y)f(-y) = -f(y) for all y≠0y ≠ 0.

Proof. Comparing P(x,y)P(x, y) and P(x,−y)P(x, -y) we get yf(y)=−yf(−y) ∀y∈Ryf(y) = -yf(-y) \,\forall y \in \mathbb{R}. So if y≠0y \neq 0 then f(−y)=−f(y)f(-y) = -f(y).


Claim 2. f(0)=0f(0) = 0.

Proof. Let a=f(0)a = f(0).

P(0,0)⇒f(a)=aP(0, 0) \Rightarrow f(a) = a.

P(−a,0)⇒f(−a)=aP(-a, 0) \Rightarrow f(-a) = a.

If a≠0a \neq 0 then from Claim 1 −a=−f(a)=f(−a)=a-a = -f(a) = f(-a) = a so a=0a = 0, contradiction. Hence f(0)=a=0f(0) = a = 0.


Claim 3. ff is an odd function.

Proof. Immediate consequence of Claim 1 and Claim 2.


Claim 4. f(f(y2))=yf(y)f(f(y^2)) = yf(y) for all y∈Ry \in \mathbb{R}.

Proof. P(0,y)P(0, y) implies f(f(y2))=f(0)+yf(y)=yf(y)f(f(y^2)) = f(0) + yf(y) = yf(y) for all y∈Ry \in \mathbb{R}.


Claim 5. f(x+f(y))=f(x)+f(f(y))f(x + f(y)) = f(x) + f(f(y)) for all x,y∈Rx, y \in \mathbb{R}.

Proof. P(x,y)P(x, y) and Claim 4 give

f(x+f(y2))=f(x)+f(f(y2)) ∀x,y∈R(1). f(x + f(y^2)) = f(x) + f(f(y^2)) \,\forall x, y \in \mathbb{R} \quad (1).

Replacing xx by x−f(y2)x - f(y^2) in (1)(1) yields

f(x−f(y2))=f(x)−f(f(y2)) ∀x,y∈R(2). f(x - f(y^2)) = f(x) - f(f(y^2)) \,\forall x, y \in \mathbb{R} \quad (2).

Since ff is odd, −f(y2)=f(−y2)-f(y^2) = f(-y^2) and −f(f(y2))=f(−f(y2))=f(f(−y2))-f(f(y^2)) = f(-f(y^2)) = f(f(-y^2)). Therefore (2)(2) implies

f(x+f(−y2))=f(x)+f(f(−y2)) ∀x,y∈R(3). f(x + f(-y^2)) = f(x) + f(f(-y^2)) \,\forall x, y \in \mathbb{R} \quad (3).

From (1)(1) and (3)(3) we conclude f(x+f(y))=f(x)+f(f(y))f(x + f(y)) = f(x) + f(f(y)) for all x,y∈Rx, y \in \mathbb{R}.


Claim 6. f(1)=0f(1) = 0 or f(1)=1f(1) = 1.

Proof. Let b=f(1)b = f(1). Putting y=1y = 1 in Claim 4 yields f(b)=bf(b) = b. Hence putting y=by = b in Claim 5 yields f(x+b)=f(x)+b ∀x∈Rf(x + b) = f(x) + b \,\forall x \in \mathbb{R}. By induction f(x+nb)=f(x)+nb ∀x∈R,∀n∈Nf(x + nb) = f(x) + nb \,\forall x \in \mathbb{R}, \forall n \in \mathbb{N}. Moreover f(1+b)=f(1)+b=2bf(1 + b) = f(1) + b = 2b and f(1)=f(1−b)+bf(1) = f(1 - b) + b, i.e f(1−b)=0f(1 - b) = 0.

Thus

f(f((1+b)2))=f(f((1−b)2+4b))=f(f((1−b)2)+4b)=f(f((1−b)2))+4b(4). f(f((1 + b)^2)) = f(f((1 - b)^2 + 4b)) = f(f((1 - b)^2) + 4b) = f(f((1 - b)^2)) + 4b \quad (4).

From Claim 4 we get f(f((1+b)2))=(b+1)f(b+1)=2b(b+1)f(f((1 + b)^2)) = (b + 1)f(b + 1) = 2b(b + 1) and f(f((1−b)2))=(1−b)f(1−b)=0f(f((1 - b)^2)) = (1 - b)f(1 - b) = 0. As a result we obtain from (4)(4) that

2b(b+1)=4b, 2b(b + 1) = 4b,

which means b=0b = 0 or b=1b = 1.


Let S:={s∈R∣f(x+s)=f(x)+f(s) ∀x∈R}S := \{ s \in \mathbb{R} \mid f(x + s) = f(x) + f(s) \,\forall x \in \mathbb{R}\} then

Claim 7.

1.1. SS is closed under negation, addition and subtraction.

2.2. f(y)∈Sf(y) \in S for all y∈Ry \in \mathbb{R}.

3.3. yf(y)∈Syf(y) \in S for all y∈Ry \in \mathbb{R}.

4.4. z2yf(y)−y2zf(z)∈Sz^2yf(y) - y^2zf(z) \in S for all y,z∈Ry, z \in \mathbb{R}.

Proof.

1.1. If s,t∈Ss, t \in S then f(s+t)=f(s)+f(t)f(s + t) = f(s) + f(t) and for all x∈Rx \in \mathbb{R}, f(x+s+t)=f(x+s)+f(t)=f(x)+f(s)+f(t)=f(x)+f(s+t)f(x + s + t) = f(x + s) + f(t) = f(x) + f(s) + f(t) = f(x) + f(s + t). Hence s+t∈Ss + t \in S. Moreover since t∈St \in S we get f(x)=f(x−t)+f(t) ∀x∈Rf(x) = f(x - t) + f(t) \,\forall x \in \mathbb{R} so f(x+(−t))=f(x)+f(−t) ∀x∈Rf(x + (-t)) = f(x) + f(-t) \,\forall x \in \mathbb{R}. This means −t∈S-t \in S. Thus s−t=s+(−t)∈Ss - t = s + (-t) \in S.

2.2. Immediate by Claim 5.

3.3. From P(x,y)P(x, y) we get yf(y)=f(x+f(y2))−f(x)∈Syf(y) = f(x + f(y^2)) - f(x) \in S because f(x),f(x+f(y2))∈Sf(x), f(x + f(y^2)) \in S (by item 22) and SS is closed under subtraction.

4.4. From P(0,y+f(z2))P(0, y + f(z^2)) and P(y,z)P(y, z) we obtain

f(f((y+f(z2))2))=[y+f(z2)][f(y)+zf(z)]=yf(y)+yzf(z)+f(y)f(z2)+zf(z)f(z2). f(f((y + f(z^2))^2)) = [y + f(z^2)][f(y) + zf(z)] = yf(y) + yzf(z) + f(y)f(z^2) + zf(z)f(z^2).

Note that zf(z)f(z2)=f(z2)f(f(z2))∈Szf(z)f(z^2) = f(z^2)f(f(z^2)) \in S. Hence taking out all the terms that are known to be in SS we get

yzf(z)+f(y)f(z2)=f(f((y+f(z2))2))−yf(y)−zf(z)f(z2)∈S ∀y,z∈R(5). yzf(z) + f(y)f(z^2) = f(f((y + f(z^2))^2)) - yf(y) - zf(z)f(z^2) \in S \,\forall y, z \in \mathbb{R} \quad (5).

Replacing yy by y2y^2 in (5)(5) gives

y2zf(z)+f(y2)f(z2)∈S ∀y,z∈R(6). y^2zf(z) + f(y^2)f(z^2) \in S \,\forall y, z \in \mathbb{R} \quad (6).

Swapping yy and zz in (6)(6) gives

z2yf(y)+f(z2)f(y2)∈S∀y,z∈R(7). z^2yf(y) + f(z^2)f(y^2) \in S \forall y, z \in \mathbb{R} \quad (7).

From (6)(6) and (7)(7)

z2yf(y)−y2zf(z)=[z2yf(y)+f(z2)f(y2)]−[y2zf(z)+f(y2)f(z2)]∈S ∀y,z∈R. z^2yf(y) - y^2zf(z) = [z^2yf(y) + f(z^2)f(y^2)] - [y^2zf(z) + f(y^2)f(z^2)] \in S \,\forall y, z \in \mathbb{R}.

Claim 8. If S=RS = \mathbb{R} then f(x)=bx ∀x∈Rf(x) = bx \,\forall x \in \mathbb{R} where b=f(1)∈{0,1}b = f(1) \in \{0, 1\}.

Proof. So ff is additive over R\mathbb{R}. Replacing yy by y+1y + 1 in Claim 4 we get

f(f((y+1)2))=(y+1)f(y+1)⇒f(f(y2+2y+1))=(y+1)[f(y)+b]⇒f(f(y2))+2f(f(y))+b=(y+1)[f(y)+b]⇒2f(f(y))=by+f(y) ∀y∈R(8).\begin{align*} f(f((y + 1)^2)) = (y + 1)f(y + 1) &\Rightarrow f(f(y^2 + 2y + 1)) = (y + 1)[f(y) + b] \\ &\Rightarrow f(f(y^2)) + 2f(f(y)) + b = (y + 1)[f(y) + b] \\ &\Rightarrow 2f(f(y)) = by + f(y) \,\forall y \in \mathbb{R} \quad (8) \end{align*}.

Replacing yy by y2y^2 in (8)(8) we get

by2+f(y2)=2f(f(y2))=2yf(y) ∀y∈R(9). by^2 + f(y^2) = 2f(f(y^2)) = 2yf(y) \,\forall y \in \mathbb{R} \quad (9).

Since b∈{0,1},f(by2)=bf(y2) ∀y∈Rb \in \{0, 1\}, f(by^2) = bf(y^2) \,\forall y \in \mathbb{R}. Thus P(by2,y)P(by^2, y) implies

f(by2+f(y2))=f(by2)+yf(y)⇒f(2yf(y))=bf(y2)+yf(y)⇒2f(yf(y))=b[2yf(y)−by2]+yf(y)⇒2f(yf(y))=(2b+1)yf(y)−b2y2 ∀y∈R(10).\begin{align*} f(by^2 + f(y^2)) = f(by^2) + yf(y) &\Rightarrow f(2yf(y)) = bf(y^2) + yf(y) \\ &\Rightarrow 2f(yf(y)) = b[2yf(y) - by^2] + yf(y) \\ &\Rightarrow 2f(yf(y)) = (2b + 1)yf(y) - b^2y^2 \,\forall y \in \mathbb{R} \quad (10) \end{align*}.

For x,y∈Rx, y \in \mathbb{R} we compute f((x+y)2)f((x + y)^2) in two ways

f((x+y)2)=2(x+y)f(x+y)−b(x+y)2=2(x+y)[f(x)+f(y)]−b(x+y)2(11)f((x+y)2)=f(x2+2xy+y2)=f(x2)+f(y2)+2f(xy)=[2xf(x)−bx2]+[2yf(y)−by2]+2f(xy)(12).\begin{align*} f((x + y)^2) &= 2(x + y)f(x + y) - b(x + y)^2 = 2(x + y)[f(x) + f(y)] - b(x + y)^2 \quad (11) \\ f((x + y)^2) &= f(x^2 + 2xy + y^2) = f(x^2) + f(y^2) + 2f(xy) = [2xf(x) - bx^2] + [2yf(y) - by^2] + 2f(xy) \quad (12) \end{align*}.

Comparing (11)(11) and (12)(12) we obtain f(xy)+bxy=xf(y)+yf(x) ∀x,y∈Rf(xy) + bxy = xf(y) + yf(x) \,\forall x, y \in \mathbb{R}. In particular for x=f(y)x = f(y) we get

f(yf(y))+byf(y)=f(y)2+yf(f(y))⇒(2b+1)yf(y)−b2y22+byf(y)=f(y)2+y⋅f(y)+by2⇒4byf(y)=2f(y)2+(b2+b)y2⇒4byf(y)=2f(y)2+2b2y2(b2=b because b∈{0,1})⇒2[f(y)−by]2=0⇒f(y)=by ∀y∈R,\begin{align*} f(yf(y)) + byf(y) = f(y)^2 + yf(f(y)) &\Rightarrow \frac{(2b + 1)yf(y) - b^2y^2}{2} + byf(y) = f(y)^2 + y\cdot\frac{f(y) + by}{2} \\ &\Rightarrow 4byf(y) = 2f(y)^2 + (b^2 + b)y^2 \\ &\Rightarrow 4byf(y) = 2f(y)^2 + 2b^2y^2 \quad (b^2 = b \text{ because } b \in \{0, 1\}) \\ &\Rightarrow 2[f(y) - by]^2 = 0 \\ &\Rightarrow f(y) = by \,\forall y \in \mathbb{R}, \end{align*}

as claimed.


Claim 9. If f(1)=1f(1) = 1 then f(x)=x ∀x∈Rf(x) = x \,\forall x \in \mathbb{R}.

Proof. First, f(x+1)=f(x)+f(1)=f(x)+1 ∀x∈Rf(x + 1) = f(x) + f(1) = f(x) + 1 \,\forall x \in \mathbb{R} so 1∈S1 \in S. Take y∈Ry \in \mathbb{R}. It follows from Claim 7 that (y+1)[f(y)+1]=(y+1)f(y+1)∈S(y + 1)[f(y) + 1] = (y + 1)f(y + 1) \in S. Thus as SS is closed under subtraction, y=(y+1)[f(y)+1]−yf(y)−f(y)−1∈Sy = (y + 1)[f(y) + 1] - yf(y) - f(y) - 1 \in S. We conclude that S=RS = \mathbb{R}. Thus by Claim 8, f(x)=xf(1)=xf(x) = xf(1) = x for all x∈Rx\in \mathbb{R}.


Claim 10. If f(1)=0f(1) = 0 then f≡0f \equiv 0.

Proof. Consider arbitrary u,v≠0u, v \neq 0 such that u2,v2∈Su^2, v^2 \in S. Applying item 44 of Claim 7 we get, for all y,z∈Ry, z \in \mathbb{R}

(y+u2)2zf(z)−z2(y+u2)f(y+u2)∈S⇒(y2+2u2y+u4)zf(z)−z2(y+u2)[f(y)+f(y2)]∈S⇒[y2zf(z)−z2yf(y)]+[u4zf(z)−z2u2f(u2)]+2u2yzf(z)−u2z2f(y)−z2yf(u2)∈S.\begin{align*} (y + u^2)^2zf(z) - z^2(y + u^2)f(y + u^2) \in S &\Rightarrow (y^2 + 2u^2y + u^4)zf(z) - z^2(y + u^2)[f(y) + f(y^2)] \in S \\ &\Rightarrow [y^2zf(z) - z^2yf(y)] + [u^4zf(z) - z^2u^2f(u^2)] + 2u^2yzf(z) - u^2z^2f(y) - z^2yf(u^2) \in S \end{align*}.

Since y2zf(z)−z2yf(y)∈Sy^2zf(z) - z^2yf(y) \in S and u4zf(z)−z2u2f(u2)∈Su^4zf(z) - z^2u^2f(u^2) \in S, subtraction shows

2u2yzf(z)−u2z2f(y)−z2yf(u2)∈S ∀y,z∈R(13). 2u^2yzf(z) - u^2z^2f(y) - z^2yf(u^2) \in S \,\forall y, z \in \mathbb{R} \quad (13).

Replacing zz by vzvz in (13)(13) yields

2u2vyzf(vz)−u2v2z2f(y)−v2f(u2)z2y∈S ∀y,z∈R(14). 2u^2v yz f(vz) - u^2v^2z^2f(y) - v^2f(u^2)z^2y \in S \,\forall y, z \in \mathbb{R} \quad (14).

Since the roles of uu and vv are symmetric, swapping uu and vv in (14)(14) yields

2uv2yzf(uz)−u2v2z2f(y)−u2f(v2)z2y∈S ∀y,z∈R(15). 2uv^2yzf(uz) - u^2v^2z^2f(y) - u^2f(v^2)z^2y \in S \,\forall y, z \in \mathbb{R} \quad (15).

Subtracting the terms in (14)(14) and (15)(15) gives

2uv2yzf(uz)−2u2vyzf(vz)−[u2f(v2)−v2f(u2)]yz2∈S ∀y,z∈R, 2uv^2yz f(uz) - 2u^2vyzf(vz) - [u^2f(v^2) - v^2f(u^2)]yz^2 \in S \,\forall y, z \in \mathbb{R},

or zαu,v(z)y∈S ∀y,z∈Rz \alpha_{u, v}(z)y \in S \,\forall y, z \in \mathbb{R} where αu,v(z):=2uv2f(uz)−2u2vf(vz)−[u2f(v2)−v2f(u2)]z\alpha_{u, v}(z) := 2uv^2f(uz) - 2u^2vf(vz) - [u^2f(v^2) - v^2f(u^2)]z.

If there exists z∗≠0z^* \neq 0 such that z∗αu,v(z∗)≠0z^*\alpha_{u, v}(z^*) \neq 0 then z∗αu,v(z∗)yz^*\alpha_{u, v}(z^*)y ranges over R\mathbb{R} when yy varies over R\mathbb{R}. Thus S=RS = \mathbb{R} so by Claim 8, f≡0f \equiv 0. But this contradicts z∗αu,v(z∗)≠0z^*\alpha_{u, v}(z^*) \neq 0.


Thus zαu,v(z)=0 ∀z≠0z\alpha_{u, v}(z) = 0 \,\forall z \neq 0 so αu,v(z)=0 ∀z≠0\alpha_{u, v}(z) = 0 \,\forall z \neq 0. Since αu,v(0)=0\alpha_{u, v}(0) = 0, we get

2uv2f(uz)−2u2vf(vz)−[u2f(v2)−v2f(u2)]z=0 ∀z∈R(16). 2uv^2f(uz) - 2u^2vf(vz) - [u^2f(v^2) - v^2f(u^2)]z = 0 \,\forall z \in \mathbb{R} \quad (16).

Replacing zz by zv\frac{z}{v} in (16)(16) gives

2uv2f(uvz)−2u2vf(z)−u2f(v2)−v2f(u2)vz=0 ∀z∈R, 2uv^2f\left(\frac{u}{v}z\right) - 2u^2vf(z) - \frac{u^2f(v^2) - v^2f(u^2)}{v}z = 0 \,\forall z \in \mathbb{R},

or

f(uvz)−uvf(z)−u2f(v2)−v2f(u2)2uv3z=0 ∀z∈R, f\left(\frac{u}{v}z\right)- \frac{u}{v}f(z) - \frac{u^2f(v^2) - v^2f(u^2)}{2uv^3}z = 0 \,\forall z \in \mathbb{R},

or, by letting c:=uv≠0c := \frac{u}{v} \neq 0 and d:=u2f(v2)−v2f(u2)2uv3d := \frac{u^2f(v^2) - v^2f(u^2)}{2uv^3}

f(cz)=cf(z)+dz ∀z∈R(17). f(cz) = cf(z) + dz \,\forall z \in \mathbb{R} \quad (17).

Consequently

f(c2z)=cf(cz)+cdz=c[cf(z)+dz]+cdz=c2f(z)+2cdz ∀z∈R(18). f(c^2z) = cf(cz) + cdz = c[cf(z) + dz] + cdz = c^2f(z) + 2cdz \,\forall z \in \mathbb{R} \quad (18).

P(c2x,cy)P(c^2x, cy) together with (18)(18) give

f(c2x+f(c2y2))=f(c2x)+cyf(cy)⇒f(c2x+c2f(y2)+2cdy2)=[c2f(x)+2cdx]+cy[cf(y)+dy]⇒f(c2x+c2f(y2)+2cdy2)=c2[f(x)+yf(y)]+2cdx+cdy2 ∀x,y∈R(19).\begin{align*} f(c^2x + f(c^2y^2)) = f(c^2x) + cyf(cy) &\Rightarrow f(c^2x + c^2f(y^2) + 2cdy^2) = [c^2f(x) + 2cdx] + cy[cf(y) + dy] \\ &\Rightarrow f(c^2x + c^2f(y^2) + 2cdy^2) = c^2[f(x) + yf(y)] + 2cdx + cdy^2 \,\forall x, y \in \mathbb{R} \quad (19) \end{align*}.

Also

f(c2x+c2f(y2))=c2f(x+f(y2))+2cd[x+f(y2)]=c2[f(x)+yf(y)]+2cdx+2cdf(y2) ∀x,y∈R(20).\begin{align*} f(c^2x + c^2f(y^2)) = c^2f(x + f(y^2)) + 2cd[x + f(y^2)] = c^2[f(x) + yf(y)] + 2cdx + 2cdf(y^2) \,\forall x, y \in \mathbb{R} \quad (20) \end{align*}.

Subtracting (20)(20) from (19)(19) we get

f(c2x+c2f(y2)+2cdy2)−f(c2x+c2f(y2))=cd[y−f(y2)] ∀x,y∈R(21). f(c^2x + c^2f(y^2) + 2cdy^2) - f(c^2x + c^2f(y^2)) = cd[y - f(y^2)] \,\forall x, y \in \mathbb{R} \quad (21).

Putting x=−f(y2)x = -f(y^2) in (21)(21) gives cd[y−f(y2)]=f(2cdy2)cd[y - f(y^2)] = f(2cdy^2) so (21)(21) becomes

f(c2x+c2f(y2)+2cdy2)−f(c2x+c2f(y2))=f(2cdy2) ∀x,y∈R(22). f(c^2x + c^2f(y^2) + 2cdy^2) - f(c^2x + c^2f(y^2)) = f(2cdy^2) \,\forall x, y \in \mathbb{R} \quad (22).

For each fixed y∈Ry \in \mathbb R it can be observed that w:=c2x+c2f(y2)w := c^2x + c^2f(y^2) ranges over R\mathbb{R} as xx varies over R\mathbb{R}. Hence (22)(22) implies

f(w+2cdy2)=f(w)+f(2cdy2) ∀w∈R f(w + 2cdy^2) = f(w) + f(2cdy^2) \,\forall w \in \mathbb{R}

so 2cdy2∈S2cdy^2 \in S by the definition of SS. Thus

2cdy2∈S ∀y∈R.2cdy^2 \in S \,\forall y \in \mathbb{R}.

If d≠0d \neq 0 then 2cdy22cdy^2 ranges over R⩾0\mathbb{R}_{\geqslant 0} (or R⩽0\mathbb{R}_{\leqslant 0}) when yy varies over R\mathbb{R}. Since SS is closed under negation, we conclude that S=RS = \mathbb{R}. So again by Claim 8, f≡0f \equiv 0. But then d=u2f(v2)−v2f(u2)2uv3=0d = \frac{u^2f(v^2) - v^2f(u^2)}{2uv^3} = 0, a contradiction.

Thus d=0d = 0 and so f(cz)=cf(z) ∀z∈Rf(cz) = cf(z) \,\forall z \in \mathbb{R}. In particular f(c)=cf(1)=0f(c) = cf(1) = 0 and f(c2)=cf(c)=0f(c^2) = cf(c) = 0, which means f(u2v2)=0f\left( \frac{u^2}{v^2} \right) = 0.


Thus for all s,t∈Ss, t \in S such that s,t>0s, t > 0

f(st)=0. f\left(\frac{s}{t}\right) = 0.

Owing to the facts 0∈S0 \in S, f(0)=0f(0) = 0, ff is odd and SS is closed under negation we conclude that

f(st)=0 f\left(\frac{s}{t}\right) = 0

for all s,t∈Ss, t \in S where t≠0t \neq 0.

Now suppose that f(y)≠0f(y) \neq 0 for some y∈Ry \in \mathbb{R} then from Claim 4

f(y)=f(f(f(y2))f(y))=0 f(y) = f\left(\frac{f(f(y^2))}{f(y)}\right) = 0

since f(y),f(f(y2))∈Sf(y), f(f(y^2)) \in S. But this is a contradiction. So indeed it must be the case that f≡0f \equiv 0.