# Continuous vs. Monotone Functions

If $f\colon (a,b)\rightarrow \mathbb{R}$ is continuous, then is it always possible to find a countable collection $\{J_i\}$ of sub-intervals of $(a,b)$ (which could be closed-open, open-closed, closed or open) such that

• $J_i'$s cover $(a,b)$ except countably many points;

• $f$ is monotonic on each $J_i$?

(I came to this question by considering the $\sin(\frac{1}{x})$ function on $(0,1)$.)

• No. The Weierstrass nowhere differentiable function is monotonic on no interval, e.g.. – David Mitra Nov 19 '14 at 9:18
• @DavidMitra I think what you wrote is acrually a full answer to the question, not just a comment. Perhaps post it as such? – 5xum Nov 19 '14 at 9:19

No. The Weierstrass nowhere differentiable function is monotonic on no interval, e.g..

• Oh! Thanks. This example is important in other parts of analysis also. Thanks for the nice solution. – Groups Nov 19 '14 at 11:24