Show solutionHide solution
Let \(A=\{x\in\mathbf{R}:-1<x<1\}\) and define \(f:\mathbf{R}\to A\) by \(f(x)=\dfrac{x}{1+|x|}\).
Step 1: \(f\) is one-one.
We use the definition of \(|x|\).
If \(x\ge 0\), then \(|x|=x\), so \(f(x)=\dfrac{x}{1+x}\).
If \(x<0\), then \(|x|=-x\), so \(f(x)=\dfrac{x}{1-x}\).
Suppose \(f(x_1)=f(x_2)\). We consider cases according to the signs of \(x_1,x_2\).
Case 1: \(x_1\ge 0\) and \(x_2\ge 0\). Then \(\dfrac{x_1}{1+x_1}=\dfrac{x_2}{1+x_2}\). Cross-multiplying gives \(x_1(1+x_2)=x_2(1+x_1)\), i.e. \(x_1+x_1x_2=x_2+x_1x_2\), hence \(x_1=x_2\).
Case 2: \(x_1<0\) and \(x_2<0\). Then \(\dfrac{x_1}{1-x_1}=\dfrac{x_2}{1-x_2}\). Cross-multiplying gives \(x_1(1-x_2)=x_2(1-x_1)\), i.e. \(x_1-x_1x_2=x_2-x_1x_2\), hence \(x_1=x_2\).
Case 3: \(x_1\ge 0\) and \(x_2<0\). Then \(f(x_1)=\dfrac{x_1}{1+x_1}\ge 0\), while \(f(x_2)=\dfrac{x_2}{1-x_2}<0\) (since \(x_2<0\) and \(1-x_2>0\)). Thus \(f(x_1)\ne f(x_2)\), so this case cannot occur when \(f(x_1)=f(x_2)\). The case \(x_1<0,\ x_2\ge 0\) is similar.
In every possible case, \(f(x_1)=f(x_2)\) forces \(x_1=x_2\). Hence \(f\) is one-one.
Step 2: \(f\) is onto.
Let \(y\in A\), so \(-1<y<1\). We must find \(x\in\mathbf{R}\) with \(f(x)=y\).
If \(y\ge 0\), take \(x=\dfrac{y}{1-y}\). Since \(0\le y<1\), we have \(1-y>0\), so \(x\ge 0\). Then \(|x|=x\) and
\[f(x)=\frac{x}{1+x}=\frac{\dfrac{y}{1-y}}{1+\dfrac{y}{1-y}}=\frac{\dfrac{y}{1-y}}{\dfrac{1}{1-y}}=y.\]
If \(y<0\), take \(x=\dfrac{y}{1+y}\). Since \(-1<y<0\), we have \(1+y>0\), so \(x<0\). Then \(|x|=-x\) and
\[f(x)=\frac{x}{1-x}=\frac{\dfrac{y}{1+y}}{1-\dfrac{y}{1+y}}=\frac{\dfrac{y}{1+y}}{\dfrac{1}{1+y}}=y.\]
Thus every \(y\in A\) has a pre-image \(x\in\mathbf{R}\). Hence \(f\) is onto.
Since \(f\) is both one-one and onto, it is a bijection from \(\mathbf{R}\) onto \(A\).
Remark. The same conclusion follows from the inverse formula \(f^{-1}(y)=\dfrac{y}{1-|y|}\) for \(y\in A\), which is exactly the piecewise expression found above.