Show solutionHide solution
Let \(f:\mathbf R\to(-1,1)\) be defined by \[ f(x)=\frac{x}{1+|x|},\qquad x\in\mathbf R. \]
1. The values of \(f\) lie in \((-1,1)\).
Since \(1+|x|>0\) and \(1+|x|>|x|\), we have \[ |f(x)|=\frac{|x|}{1+|x|}<1. \] Thus \(f(x)\in(-1,1)\) for every real \(x\), so the codomain is respected.
2. \(f\) is one-one.
We use the piecewise form \[ f(x)= \begin{cases} \dfrac{x}{1+x}, & x\ge 0,\\ \dfrac{x}{1-x}, & x<0. \end{cases} \]
On \([0,\infty)\), if \(f(x_1)=f(x_2)\), then \[ \frac{x_1}{1+x_1}=\frac{x_2}{1+x_2} \] and cross-multiplication gives \(x_1(1+x_2)=x_2(1+x_1)\), hence \(x_1=x_2\).
On \((-\infty,0)\), if \(f(x_1)=f(x_2)\), then \[ \frac{x_1}{1-x_1}=\frac{x_2}{1-x_2}, \] so \(x_1(1-x_2)=x_2(1-x_1)\), hence \(x_1=x_2\).
Finally, if \(x_1\ge 0\) and \(x_2<0\), then \(f(x_1)\ge 0\) while \(f(x_2)<0\). Hence \(f(x_1)\neq f(x_2)\). Therefore \(f\) is one-one.
3. \(f\) is onto \((-1,1)\).
Let \(y\in(-1,1)\). We must find \(x\in\mathbf R\) with \(f(x)=y\).
- If \(0\le y<1\), take \(x=\dfrac{y}{1-y}\ge 0\). Then \[ f(x)=\frac{\frac{y}{1-y}}{1+\frac{y}{1-y}} =\frac{y}{1-y+y}=y. \]
- If \(-1<y<0\), take \(x=\dfrac{y}{1+y}<0\). Then \[ f(x)=\frac{\frac{y}{1+y}}{1-\frac{y}{1+y}} =\frac{y}{1+y-y}=y. \]
Thus every \(y\in(-1,1)\) has a preimage. Hence \(f\) is onto.
Since \(f\) is both one-one and onto, it is a bijection from \(\mathbf R\) onto \((-1,1)\).