1
$\begingroup$

I was looking for examples of functions $f:\mathbb{R}\to\mathbb{R}$ such that for any $a>0$ we have that $[-1,1]\subseteq f\left([-a,a]\right)$

The two examples I could think of were $\sin(1/x)$ and $\cos(1/x)$. However, I was wondering if there are other, interesting examples of such a function? Perhaps ones not involving trigonometric functions? I'd be grateful for some suggestions.

$\endgroup$
4
  • 1
    $\begingroup$ Should $f$ be continuous in any way? $\endgroup$ Commented Mar 3, 2013 at 9:36
  • $\begingroup$ Nope, it doesn't have to be. $\endgroup$ Commented Mar 3, 2013 at 9:39
  • 1
    $\begingroup$ Then what about the function taking the value -2 at every rational point and 2 at every irrational point. $\endgroup$ Commented Mar 3, 2013 at 9:59
  • 1
    $\begingroup$ But for that function, $f([-a,a])$ is the set $\{{-2,2\}}$, which does not include the interval $[-1,1]$. $\endgroup$ Commented Mar 3, 2013 at 11:53

2 Answers 2

3
$\begingroup$

If $-1\lt x\lt1$, and $x\ne0$, let the decimal expansion of $x$ be $x=\pm.000\dots0d_1d_2d_3\dots$ with $d_1\ne0$. Then let $f(x)=\pm.d_1d_2d_3\dots$. For $x=0$ and for $|x|\ge1$ the definition of $f$ is arbitrary. Then for every $a\gt0$ and for every $y$ in $[-1,1]$ there is an $x$ with $-a\lt x\lt a$ and $f(x)=y$.

$\endgroup$
1
  • $\begingroup$ Hm... It actually took me a while to figure out how this would work, but now I see it, and it's a neat example (+1). Thank you for your effort. $\endgroup$ Commented Mar 3, 2013 at 12:28
2
$\begingroup$

Conway base 13 function comes to mind.

Indeed f takes on the value of every real number on any closed interval $[a,b]$ where $b > a$. (Wikipedia, Conway base 13 function)

So in particular for every $a\in\Bbb R$ we have $[-1,1]\subseteq\Bbb R\subseteq f([-a,a])$. Seems much more than just an oscillation around zero.

$\endgroup$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.