How can I modify $\frac{\cos(x)+1}{2}$ so that the range does not include 0?

61 Views Asked by At

I am trying to find a bijection between $[0,\infty)$ and $(0,1]$. All I've come up with so far is the below function which has a range of $[0, 1]$.

$$ \begin{align*} \frac{\cos(x)+1}{2} \end{align*} $$

Is there a way I can restrict the range of the function so that it does not include 0?

EDIT: I realize now that my function only worked for the domain $[0,\pi]$.

5

There are 5 best solutions below

3
On BEST ANSWER

That which makes the result zero is when $cos(x)+1=0$. Therefore, multiply both the numerator and denominator by $cos(x)+1$ (multiplying by one) and all zero results will be holes in the graph.

0
On

I suggest that you consider\begin{array}{ccc}[0,+\infty)&\longrightarrow&(0,1]\\x&\mapsto&\dfrac1{1+x^2}\end{array}instead.

1
On

$e^{-x}$ will do the job. I don't think you can modify your function to get an answer.

0
On

Note that

$$\frac{\cos(x)+1}{2}$$

is not injective onto $[0,+\infty)$ therefore is not a suitable function to obtain the result.

What about $$1-\frac2{\pi}\arctan x$$

3
On

Your intervals are both closed in one end and open in the other. That means that it's usually a good idea to try to map the closed end to the closed end and the open end to the open end. If you just draw a graph of such a function, you should be able to get ideas for what kinds of functions let you do that; a monotonic function with $f(0) = 1$ and, if you excuse the abuse of notation, "$f(\infty) = 0$" (technically it's written $\lim_{x\to \infty}f(x) = 0$).

I would personally have gone for $\frac1{x+1}$ as a first attempt, but the other suggestions you've gotten are equally good.