Show solutionHide solution
Part 1: \(f:\mathbf{R}^*\to\mathbf{R}^*\) defined by \(f(x)=\dfrac1x\) is one-one and onto.
One-one (injective): Let \(x_1,x_2\in\mathbf{R}^*\) with \(f(x_1)=f(x_2)\). Then
\[\frac{1}{x_1}=\frac{1}{x_2}.\]Since \(x_1,x_2\neq 0\), taking reciprocals gives \(x_1=x_2\). Hence \(f\) is one-one.
Onto (surjective): Let \(y\in\mathbf{R}^*\) be arbitrary. Since \(y\neq 0\), the number \(x=\dfrac1y\) is a non-zero real number, so \(x\in\mathbf{R}^*\). Then
\[f(x)=f\!\left(\frac1y\right)=\frac{1}{1/y}=y.\]Thus every element of the co-domain has a pre-image, so \(f\) is onto. Therefore \(f\) is one-one and onto.
Part 2: If the domain is replaced by \(\mathbf{N}\) while the co-domain remains \(\mathbf{R}^*\).
Consider \(g:\mathbf{N}\to\mathbf{R}^*\) defined by \(g(x)=\dfrac1x\).
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.
Onto: This fails. For example, take \(y=2\in\mathbf{R}^*\). If \(g(x)=2\), then \(\dfrac1x=2\), giving \(x=\dfrac12\), which is not a natural number. So \(2\) has no pre-image in \(\mathbf{N}\). Hence \(g\) is not onto.
Conclusion: 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 is no longer onto.