# Level sets of a continuously differentiable function

Suppose that $f : \mathbb{R} \rightarrow \mathbb{R}$ is such that $f$ is continuously differentiable and non-constant. Is it true that for any $c \in \mathbb{R}$, the level set $\{f=c\}$ contains only isolated points? Is at most countable? I feel like the implicit function theorem has something to say about this, but I can't seem to connect the dots. Thanks!

• It may be large too. Say $f(x) = x^2$ for positive $x$ and $0$ for negatives. Oct 13, 2017 at 17:07
• By a theorem of Whitney, any closed subset of $\Bbb R$ is the zero set of some infinitely differentiable function. Oct 13, 2017 at 17:11
• Thanks a lot for the comments!
– Mark
Oct 13, 2017 at 17:17
• It can contain isolated points or be countably or uncountably infinite. See the last question of dpmms.cam.ac.uk/study/IA/AnalysisI/2008-2009/… Oct 13, 2017 at 17:26

$$f(x)=\exp(-1/x^2)\text{ if }x\geq 0\text{ and }f(x)=0\text{ if }x<0\ .$$
It shouldn't be too difficult to prove that the function is infinitely differentiable at $x=0$.