Monotone increasing bijection from $\mathbb{R}$ to $(0,1)$.

functionsproof-verificationreal-analysis

Give an example of a monotone increasing function $f: \mathbb{R} \to (0,1)$ such that $f$ is a bijection.
I have an example in mind that follows $$g(x)=\frac{1}{1+e^x} ,x \in \mathbb{R}.$$ Then $g$ is a monotone decreasing bijection from $\mathbb{R}$ to $(0,1)$.

Then consider the function $f: \mathbb{R} \to (0,1)$ as $$f(x)=1-g(x).$$ Then is it the required example?
Is my answer is correct that, above define $f$ is a monotone increasing bijection from $\mathbb{R}$ to $(0,1)$?

If this example is wrong, please suggest me an appropriate example.
Thanks.

Best Answer

Yes, that works.

If you are ever in doubt in a situation like this, try to convince yourself by proof. In particular, you need only prove that

  1. strictly increasing,
  2. an injection, and
  3. a surjection.

(1) can be established by looking at the derivative: $$ f^{\prime}(x)=\frac{\exp x}{\left(1+\exp x\right)^{2}}>0. $$

(2) is implied by (1). Indeed, if $u \neq v$, then either $u < v$ (and hence $f(u) < f(v)$) or $v < u$ (and hence $f(v) < f(u)$).

(3) follows from the fact that if $0 < y < 1$ then $$ y=\frac{1}{1+\exp x}\iff x=\ln\left(\frac{1}{y}-1\right). $$ Therefore, given any $0 < y < 1$, we can find a real $x$ such that $f(x)=y$.

Related Question