I am trying to show for a 1d map, $r$, where every number involved is in $\Bbb{R}$ that if: $$r(x_1+x_2)=r(x_1)+r(x_2)\tag{*}$$ then $$r(x)=\alpha x$$ for some $\alpha\in \Bbb{R}$. How do I show this? My attempt is given below:
Let $x_2=\frac{p}{q} x_1$ where $p, q \in \Bbb{Z}$ then: $$r(x_2)=r\left( p \times \frac{1}{q}x_1\right)$$ then from (*) applied $p$ times we have: $$r(x_2)=p\times r\left(\frac{1}{q} x_1\right)$$ but since: $$r(x_1)=r\left( q\times\frac{1}{q} x_1 \right)=q\times r\left( \frac{1}{q} x_1 \right)$$ we have: $$ r\left( \frac{1}{q} x_1 \right)=\frac{1}{q} r(x_1)$$ and thus: $$r(x_2)=\frac{p}{q} \times r(x_1)$$ This means that if we define $\alpha$ so $r(x_1)=\alpha x_1$ then:$$r(x_2)=\frac{p}{q} \alpha x_1=\alpha x_2$$ I am now stuck on proving it when $x_2=\beta x_1$ where $\beta$ is irrational. Is it enough to say that it has to work since rationals are dense in $\Bbb{R}$? Either way can you explain or present another valid proof.