Let a function \(f:(0,\infty)\rightarrow (0,\infty)\) will be defined by \(f(x)=\left|1-\dfrac{1}{x}\right|\). Then \(f\) is:
1
Injective only
2
Not injective but it is surjective
3
Both injective as well as surjective
4
Neither injective nor surjective