I want to show that the function $f(x) := \frac{x}{\sqrt{x^2+1}}$, $x\in \mathbb{R}$, is the bijection of $\mathbb{R}$ onto $B:={y:0<y<1}$
Firstly, I use the horizontal line test. Taking ${x_1}$ and ${x_2}$ in $\mathbb{R}$ and assume that $f({x_1})$ = $f({x_2})$,
$\frac{x_1}{\sqrt{x^2_1+1}}$=$\frac{x_2}{\sqrt{x^2_2+1}}$
$x^2_1 = x^2_2$
$x_1 = \pm x_2 $
$x_2 = \pm x_1 $
which proved that the function is not injective.
Did I do something wrong?