Solution by Bold_Dalai.
Substituting y=1 gives f(2x)=f(x)f(1)+x. Using this in original equation gives f(xy)f(1)=f(x)f(y). f(1)=0 or f(0)=0 then we have f is constant, contradiction since xy can’t be constant. Therefore f(1)=0 and f(0)=0. Using f(2x)=f(1)f(x)f(2) in first equation we get, we have f(2)−f(1)2=0 and f(x)=f(2)−f(1)2f(1)x. Direct substitution gives f(x)=x for every x.