0

I got a really interesting as homework.

Find a formula (try to find as shorter formula as you can) for a function $f(x)$, such that its graph meet each line parallel to the $x$ axis (the $x$ axis also counts) an evn number of times!

It is also difficult to find such a graph! Please help!


Note: I already posted this prblem with an other one, but for the other one I got an aswer, but not for this one, so I post it as a seperated question.

4 Answers4

1

My proposal: $f(x)=x-x^{-1}$ on $\mathbb{R}\setminus\{0\}$

0

How about $f(0)=1, f(1)=1$ on $\{0,1\} \to \Bbb R$ There is no continuous function from all of $\Bbb R$ onto all of $\Bbb R$ that takes each value twice. That has been asked here.

Ross Millikan
  • 383,099
0

Here is another one: $f(x)=2x-\lfloor x\rfloor$ on $\mathbb{R}\rightarrow\mathbb{R}$

If the number of intersections with the parallel lines is given (e.g. $n$), you can use $$ f(x) = nx-(n-1)\lfloor x \rfloor $$

0

Another option is $f(x) = \log(x^2)$ on $\mathbb{R} \setminus \{0\}$.

B. Mehta
  • 13,032