Sign up ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

A friend of mine introduced me to the following question: Does there exist a smooth function $f: \mathbb{R} \to \mathbb{R}$ ($f \in C^{\infty}$), such that $f$ maps rationals to rationals and irrationals to irrationals and is nonlinear?

He has been able to prove that such a polynomial (with degree at least 2) doesn't exist.

The problem has been asked before at least at

share|cite|improve this question
That link would be more helpful if it took us straight to the question. –  TonyK Dec 7 '10 at 13:19
As a side note: If we required just $f \in C^1$, then looking at the function $f$ defined by $f(x) = \frac{1}{x-1} + 1$ for $x \le 0$ and $f(x) = \frac{1}{x+1} - 1$ for $x \ge 0$ provides an example. There is also an example for the case where we drop the requirement that irrationals are mapped to irrationals. –  J. J. Dec 7 '10 at 16:50
It seems kind of hard to get a grip on these things. That class of functions isn't stable under addition, multiplication (though it is under multiplication by elements of $\mathbb Q$), exponentation or limits, ruling out most of the standard machinery of analysis. It is stable under iteration, though, so maybe dynamics could help? –  Gunnar Þór Magnússon Dec 7 '10 at 18:01
What a nice question! If it turns out no one here can answer it you might eventually want to try mathoverflow too. –  Noah Snyder Dec 8 '10 at 16:35
@Noah: I did that now,…. –  J. J. Dec 10 '10 at 12:06

1 Answer 1

up vote 6 down vote accepted

Sergei Ivanov has given a positive answer for the existence of such functions on MO:

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.