0
$\begingroup$

I am not sure whether I stated to title correctly, but here is the problem that came up while studying.

For a continuous function $f: \mathbb{R} \rightarrow \mathbb{R}$, find all functions $f$ such that if $x$ is a rational number, then $f(x)$ is also a rational number. Also, if $x$ is irrational, then $f(x)$ is also irrational.

I could think of $f(x)=ax+b, f(x)=1/x$. Could there be any other functions?

I haven't studied real analysis, so I think this may be out of my knowledge.

$\endgroup$
  • $\begingroup$ Related: math.stackexchange.com/questions/167620/… $\endgroup$ – Math Lover Mar 31 '17 at 8:11
  • $\begingroup$ This question is too wide. Anyway, $1/x$ is not defined on the whole real line, so it does not satisfy your condition. There is $|x|$ which satisfies it. Moreover, you can use composition to make new ones, like $$||2x+3|-5|x-6|+4|+|2x-1|$$ $\endgroup$ – Crostul Mar 31 '17 at 8:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.