If f(1)=0, then P(x,x)⇒f(2f(x2))=2f(x)2 while P(x2,1)⇒f(2f(x2))=0 so f(x)=0 which is indeed a solution.
We also have the constant solution f(x)=21.
We claim that the only other solutions are:
f(x)={cexp(v1(ln∣x∣))0if x=0if x=0
where c∈R+ and V1,V2 are Q-supplementary subvectorspaces of R such that ln∣2c∣∈V1 and v1:R→V1 and v2:R→V2 are the projections of a real in V1,V2. This includes the particular solutions f(x)=c∣x∣ when V1=R, and f(x)={210if x=0if x=0 when c=21 and V2=R.
f(x)={csgn(x)exp(v1(ln∣x∣))0if x=0if x=0
where 0=c∈R and V1,V2 are Q-supplementary subvectorspaces of R such that ln∣2c∣∈V1 and v1:R→V1 and v2:R→V2 are the projections of a real in V1,V2. This includes the particular solutions f(x)=cx when V1=R, f(x)=21sgn(x) when c=21 and V2=R, and f(x)=−21sgn(x) when c=−21 and V2=R.
Considering just nonconstant solutions, f(1)=0. Let g:R→R such that g(x)=f(1)f(x) for all x.
P(xy,1)⇒2f(x)f(y)=f(2f(xy))=2f(xy)f(1), we can calculate g(xy)=g(x)g(y).
P(x,1)⇒f(2f(1)1)f(2f(x))=2f(1)f(2f(1)1)f(x)⇒g(g(x))=ag(x) where a=2f(2f(1)1).
Let Q(x,y) be the assertion g(xy)=g(x)g(y).
Q(x,0)⇒g(0)(g(x)−1)=0⇒g(0)=0 since g is nonconstant.
Q(x,1)⇒g(x)(g(1)−1)=0⇒g(1)=1 since g is nonconstant.
Therefore a=ag(1)=g(g(1))=1.
If g(k)=0 for some k=0, then:
Q(kx,k)⇒g(x)=0 which contradicts that g is nonconstant.
Hence g(x)=0 for all x=0, so for all x>0 we have:
Q(x,x)⇒g(x)=g(x)2>0.
Now we can define h:R→R such that h(x)=lng(ex), the equations g(xy)=g(x)g(y) and g(g(x))=g(x) transform into:
h(x+y)=h(x)+h(y) and h(h(x))=h(x).
Let V1={x∣h(x)=x} and V2={x∣h(x)=0}. Since h(x−h(x))=h(x)+h(−h(x))=h(x)−h(h(x))=0, any element decomposes as:
h(x)=h(v1)+h(v2)=v1+0=v1
where v1=h(x)∈V1 and v2=x−h(x)∈V2. Finally, V1∩V2={0} and V1,V2 are closed under addition and multiplication by a rational scalar, so R=V1⊕V2 where ⊕ denotes direct sum and R is a Q-vectorspace. So if v1:R→V1 and v2:R→V2 are the projections of a real in V1,V2 then h(x)=v1(x) for all x.
Let c=f(1). Back to the original equation, substitution of f(x)=cg(x) gives g(2c)=2c.
Q(−1,−1)⇒g(−1)∈{−1,1}.
Q(x,−1)⇒g(−x)=g(−1)g(x), taking cases on g(−1) will give the two aforementioned solution sets.
If g(−1)=1, then g(x)>0 for all x which implies 2c=g(2c)>0. We’ll get our first solution set after substituting g(x)=exp(h(ln∣x∣)), since h(ln2c)=ln2c.
If g(−1)=−1, then we’ll get our second solution set after substituting g(x)=sgn(x)exp(h(ln∣x∣)), since h(ln∣2c∣)=ln∣2c∣. Verification of the solution sets follows by working backwards.