Solution by Claude AI.
Since xy ranges over all real numbers, the original equation is equivalent to solving
f(x+f(x))=2f(x)for all x∈R.(1)
Find all functions f:R→R satisfying (1), with no assumption on f (in particular, no continuity).
The Key Invariant.
For a function f:R→R put
T(x)=x+f(x),a(x)=x−f(x),
so that (1) reads f(T(x))=2f(x).
Lemma 1.
If f satisfies (1), then a(T(x))=a(x) for every x∈R.
Consequently, for all n≥0,
f(Tn(x))=2nf(x),Tn(x)=a(x)+2n(x−a(x)).
Proof.
We compute
a(T(x))=T(x)−f(T(x))=x+f(x)−2f(x)=x−f(x)=a(x).
Applying (1) at the point Tn(x) gives f(Tn+1(x))=2f(Tn(x)), so f(Tn(x))=2nf(x) by induction. Since Tk+1(x)=Tk(x)+f(Tk(x)),
Tn(x)=x+k=0∑n−12kf(x)=x+(2n−1)f(x)=a(x)+2n(x−a(x)).
Thus a(x) is constant along the T-orbit of x, and T doubles the distance from this “anchor” a(x).
The Complete Characterization.
Theorem 1.
Let (Da)a∈R be a family of subsets of R (some possibly empty) such that
- each Da is closed under doubling: d∈Da⟹2d∈Da;
- the sets a+Da={a+d: d∈Da}, a∈R, are pairwise disjoint and their union is R.
Then the function f:R→R defined by
f(x)=x−afor x∈a+Da(2)
is well defined and satisfies (1). Conversely, every solution f of (1) arises in this way from exactly one such family, namely
Da={f(x): x∈R, x−f(x)=a}.
Proof.
(⇐).
By (ii), every x∈R lies in a+Da for exactly one a, so (2) defines f unambiguously. Let x∈a+Da and put d=x−a=f(x)∈Da. By (i), 2d∈Da, hence
x+f(x)=a+2d∈a+Da,
and therefore f(x+f(x))=(a+2d)−a=2d=2f(x).
(⇒).
Let f be a solution and define Da={f(x): a(x)=a}. Since f(x)=x−a whenever a(x)=a, we get
a+Da={x∈R: a(x)=a}.
These are the fibres of the map x↦a(x), so they are pairwise disjoint and cover R; this is (ii).
For (i), let d∈Da, say d=f(x) with a(x)=a. By Lemma 1, a(T(x))=a and f(T(x))=2d, so 2d∈Da.
Finally, if x∈a+Da then a(x)=a, so f(x)=x−a; that is, f is the function (2) built from (Da).
Uniqueness.
Suppose a family (Da′) satisfying (i) and (ii) produces f via (2). If x∈a+Da′, then f(x)=x−a, i.e. a(x)=a; hence a+Da′⊆{x: a(x)=a}. The sets a+Da′ cover R and the fibres {x: a(x)=a} are pairwise disjoint, so equality holds. Therefore Da′={x−a: a(x)=a}={f(x): a(x)=a}, which is the family constructed above.
Remark.
Writing g(x)=x−f(x), equation (1) is equivalent to
g(2x−g(x))=g(x)for all x∈R.
Theorem 1 says that this holds exactly when every fibre g−1(a)=a+Da is invariant under the homothety x↦2x−a of ratio 2 centred at a.
Examples.
- f≡0: here Da={0} for every a.
- f(x)=x+c for a constant c: here D−c=R and Da=∅ for a=−c.
- f(x)=x for x∈S and f(x)=0 otherwise, where S⊆R is any set with 2S⊆S (for example S=Q, S=[0,∞), or S={2n: n≥0}).
- f(2n−1)=2n for n=0,1,2,… and f(x)=0 for all other x; here D−1={0}∪{2n: n≥0}.