We know that $\Bbb{Q}\hookrightarrow \Bbb{R}$, by a $\Bbb{Q}$-algebra homomorphism from $\Bbb{R}\to\Bbb{R}$ we mean a ring homomorphism from $\Bbb{R}\to\Bbb{R}$ which is the identity on $\Bbb{Q}$.
I first thought in this way- We know that $[\Bbb{R}:\Bbb{Q}]=\infty$, and the set $\{1,\sqrt{2}\}$ can be extended to a basis $B$ of $\Bbb{R}$ over $\Bbb{Q}$. Then I define $f:\Bbb{R}\to\Bbb{R}$ such that $f(1)=\sqrt{2}$, $f(\sqrt{2})=1$ and $f(x)=x\ \forall x\in B\setminus \{1,\sqrt{2}\}$. Now extend $f$ linearly. But this way $f$ will be a group homomorphism but may not preserve the product (i.e. may not be a ring homomorphism). Even this $f$ is onto as well.
Can anyone suggest a way out? Thanks for your help in advance.