We claim that the complete solution set is exactly the additive involutions of R, which includes the two familiar solutions f(x)=x and f(x)=−x, as well as arbitrary non-linear additive involutions.
We now prove that every solution has the claimed form. Let P(x,y) denote the assertion of f(f(x)+f(xy))=x+xy.
Lemma 1. The function f is surjective.
Proof. The assertion P(x,0) yields f(f(x)+f(0))=x.
Since every x∈R occurs on the right-hand side, f must be surjective. □
Lemma 2. The function f is injective.
Proof. Let c=f(0). From Lemma 1, we can note that f(f(x)+c)=x for all x∈R. Now suppose that f(a)=f(b). Then
f(a)+c=f(b)+c. Applying f to both sides gives f(f(a)+c)=f(f(b)+c), and hence a=b. Therefore f is injective. □
Lemma 3.
For every x=0 and every t∈R, f(f(x)+f(t))=x+t.
Proof. Let x=0. Given any t∈R, choose y=xt.
Then xy=t. Therefore, by P(x,xt),
f(f(x)+f(t))=x+xxt=x+t.
This proves the lemma. □
Lemma 4. For every x=0 and every t∈R, f(x)+f(t)=f(x+t)+c, where c=f(0).
Proof. By Lemma 3, we know that f(f(x)+f(t))=x+t. On the other hand, by Lemma 1 applied to x+t, f(f(x+t)+c)=x+t.
Consequently,
f(f(x)+f(t))=f(f(x+t)+c).
Since f is injective by Lemma 2, we have sufficiently proven the lemma. □
Lemma 5. The function g(x)=f(x)−c is additive.
Proof. Since c=f(0), g(0)=f(0)−c=0. If x=0, Lemma 4 gives f(x+t)=f(x)+f(t)−c. Therefore,
Thus g(x+t)=g(x)+g(t) whenever x=0. If x=0, then g(0+t)=g(t)=g(0)+g(t), since g(0)=0. Hence for all x,t∈R, g is additive. □
Lemma 6. The constant c=f(0) is zero.
Proof. By Lemma 1, f(f(x)+c)=x. Since f(x)=g(x)+c, this becomes f(g(x)+2c)=x. Since f=g+c, we obtain
g(g(x)+2c)+c=x.
Because g is additive, g(g(x))+2g(c)+c=x. Taking x=0 gives 2g(c)+c=0, where a simple substitution yields g(g(x))=x∀x∈R. Thus g is an involution. Applying g to 2g(c)+c=0 gives
2g(g(c))+g(c)=0⟹2c+g(c)=0.
From both of these equations, we get g(c)=c. Substituting back yields 3c=0, meaning since c∈R, c=0. Therefore f=g. Such means f is additive and f(f(x)=x for every x∈R. □
Lemma 7. Every additive involution is a solution.
Proof. Suppose f:R→R is additive and satisfies f(f(x))=x
for every x∈R. Then, for arbitrary x,y∈R,
f(f(x)+f(xy))=f(f(x))+f(f(xy))=x+xy..
Thus P(x,y) holds for all x,y∈R. □
Therefore the complete solution set is
f:R→R is additive and f∘f=idR.
as desired. ■
Note that continuity is not assumed. Consequently, the solution set contains non-linear additive involutions in addition to f(x)=x and f(x)=−x.
\noindent\rule{\linewidth}{0.4pt}.
Remark: Continuity is not assumed. No continuity hypothesis is needed, and in fact the solution set contains discontinuous functions. To see this explicitly, choose a Hamel basis B of R over Q containing 1 and 2. Define f on B by
f(1)=2,f(2)=1,
and
f(b)=bfor every b∈B∖{1,2}.
Extend f to all of R by Q-linearity. Then f is additive. Moreover, for every basis element b∈B, f(f(b))=b. Therefore all of the following are true for every b∈B∖{1,2}:
f(f(1))=f(2)=1,f(f(2))=f(1)=2,f(f(b))=b.
By linearity,
f(f(x))=x∀x∈R.
Thus f is an additive involution and hence, by the characterization above, is a solution of the original functional equation. It remains to show that f is not continuous. Assume for the sake of contradiction that f were continuous. Every continuous additive function g:R→R is linear, so there would exist c∈R such that f(x)=cx∀x∈R. Since f(1)=2, we would have c=2 and consequently f(2)=2⋅2=2. Recall that our construction yielded
f(2)=1, a contradiction. Hence f is discontinuous. Therefore continuity is not assumed in the problem, and the complete solution set contains discontinuous, non-linear functions. □