This question was motivated by trying to generalise the derivative of $\ln x$ to a homomorphism.
Let $f: \mathbb R^+ \to \mathbb R$ be such that $f(xy)=f(x)+f(y)$ for all positive real numbers $x$ and $y$.
We can show that $f(1)=0$ by considering $f(1\cdot y)=f(1)+f(y)$.
Assume that, for example, $f(2)=0$. We can show that $f(2^q)=0$ for all rational numbers $q$.
My first instinct was that $f(x)=0$ for all $x>0$, but I'm probably wrong.
QUESTION: If $f$ is continuous for all $x>0$ then does it follow that $f(x) \equiv 0$? If not, then how about $f$ being differentiable?
EDIT: I know about the logarithm. This question was motivated by trying to find the derivative of a function that satisfies the "laws of logs". Finding the derivative of a log function requires that it be one-to-one. So I asked myself: what if it is not one-to-one? We must have $f(1)=0$, so I assumed that $f(2)=0$ and it implied that $f(2^q)=0$ for all $q \in \mathbb Q$. I then thought that perhaps, if $f$ is continuous then $f(x) \equiv 0$.
Proof that $f(2^q)=0$ for all $q \in \mathbb Q$.
We can show that $f(2^{1/k})=0$ for all positive integers $k$:
$$0 \ \ = \ \ f(2^1) \ \ = \ \ f(\underbrace{2^{1/k}\cdots 2^{1/k}}_{k \ \mathrm{times}}) \ \ = \ f(2^{1/k})+\cdots+f(2^{1/k}) \ \ = \ \ k\cdot f(2^{1/k})$$
It follows that $f(2^{-1/k})=0$ for all positive integers $k$: $$0 \ \ = \ \ f(1) \ \ = \ \ f\left(\frac{1}{2^{1/k}} \cdot 2^{1/k}\right)\ \ = \ \ f\left(\frac{1}{2^{1/k}}\right)+f\left(2^{1/k}\right) \ \ = \ \ f\left(\frac{1}{2^{1/k}}\right)+0$$
We can show that $f(2^q)=0$ for all positive rational numbers $q=s/t$:
$$f(2^{s/t}) \ \ = \ \ f([2^{1/t}]^s) \ \ = \ \ f(\underbrace{2^{1/t} \cdots 2^{1/t}}_{s \ \mathrm{times}}) \ \ = \ \ s \cdot f(2^{1/t}) \ \ = \ \ s \cdot 0 \ \ = \ \ 0$$
It follows that $f(2^{-q})=0$ for all positive rational numbers $q=s/t$: $$0 \ \ = \ \ f(1) \ \ = \ \ f\left(\frac{1}{2^{s/t}} \cdot 2^{s/t}\right)\ \ = \ \ f\left(\frac{1}{2^{s/t}}\right)+f\left(2^{s/t}\right) \ \ = \ \ f\left(\frac{1}{2^{s/t}}\right)+0$$
Hence $f(2^q)=0$ for all rational numbers $q$.