Show that the function ${\text{f}}:{{\mathbf{R}}_*} \to {{\mathbf{R}}_*}$ defined by ${\text{f(}}x) = \dfrac{1}{x}$ is one-one and onto, where ${{\mathbf{R}}_*}$ is the set of all non-zero real numbers. Is the result true, if the domain ${{\mathbf{R}}_*}$ is replaced by ${\text{N}}$ with co-domain being same as ${{\mathbf{R}}_*}$?
Show solutionHide solution
Let \(f:\mathbf{R}_*\to\mathbf{R}_*\) be defined by \(f(x)=\dfrac{1}{x}\), where \(\mathbf{R}_*\) is the set of all non-zero real numbers.
One-one (injective): Let \(x_1,x_2\in\mathbf{R}_*\) with \(f(x_1)=f(x_2)\). Then \(\dfrac{1}{x_1}=\dfrac{1}{x_2}\). Since \(x_1,x_2\neq 0\), cross-multiplying gives \(x_2=x_1\). Hence \(f\) is one-one.
Onto (surjective): Let \(y\in\mathbf{R}_*\) be arbitrary. Then \(y\neq 0\), so \(x=\dfrac{1}{y}\) is a non-zero real number, i.e. \(x\in\mathbf{R}_*\). Also \(f(x)=\dfrac{1}{x}=\dfrac{1}{1/y}=y\). Thus every element of the co-domain has a pre-image, so \(f\) is onto.
Therefore \(f\) is both one-one and onto (a bijection).
If the domain is replaced by \(\mathbf{N}\): Consider \(g:\mathbf{N}\to\mathbf{R}_*\) defined by \(g(x)=\dfrac{1}{x}\).
For one-one: if \(g(x_1)=g(x_2)\), then \(\dfrac{1}{x_1}=\dfrac{1}{x_2}\), so \(x_1=x_2\). Hence \(g\) is still one-one.
For onto: take \(y=\dfrac{1}{2}\in\mathbf{R}_*\). The only real number with \(\dfrac{1}{x}=\dfrac{1}{2}\) is \(x=2\in\mathbf{N}\), so this value is attained. But take \(y=\dfrac{1}{3/2}=\dfrac{2}{3}\in\mathbf{R}_*\). Then \(x=\dfrac{3}{2}\notin\mathbf{N}\), and no natural number \(x\) satisfies \(\dfrac{1}{x}=\dfrac{2}{3}\). More simply, for \(y=\dfrac{1}{2}\) the pre-image is \(2\), but for \(y=\dfrac{1}{3}\) the pre-image is \(3\), while for a value such as \(y=\dfrac{1}{2.5}\) there is no natural pre-image. In general, the range of \(g\) is \(\left\{\dfrac{1}{n}: n\in\mathbf{N}\right\}\), which is not all of \(\mathbf{R}_*\). For instance \(y=\dfrac{2}{3}\in\mathbf{R}_*\) has no pre-image in \(\mathbf{N}\).
Hence \(g\) is one-one but not onto. So the result is not true when the domain \(\mathbf{R}_*\) is replaced by \(\mathbf{N}\) with the same co-domain \(\mathbf{R}_*\): the function remains one-one but fails to be onto.