Question
How to construct a discontinuous $f$ such that $f(xy) = f(x)+f(y)$. Domain of $f$ has to be some subset of $\mathbb{R}$ and range of $f$ is $\mathbb{R}$. Also, try to construct non differentiable $f$ having the above property.
Context
In Apostol's calculus-1, it starts to give the motivation of definition of $\ln x$, where it want to exploit the property of the function that it should satisfy $f(xy) = f(x)+f(y)$ and then it assumes that $f$ is differentiable. I was wondering if we relax the differentiable assumption, how to proceed in finding that function?