I am trying to prove that a function is bijective and I really am not sure how to go about it. I know that I must show that the function is both injective and surjective for it to be bijective. The function that I am trying to prove is bijective is:
$f:\mathbb{R} \to (-1,1); x \mapsto \frac {x}{\sqrt{1+x^2}}$
So to prove that it is injective, would I begin by letting $x, y \in (-1,1)$ and have:
$\frac {x}{\sqrt{1+x^2}} = \frac {y}{\sqrt{1+y^2}}$
Would this be the right way of going about it? I am not sure on how to prove that it is surjective.