I needed help proving that this function is not an injection. I know that I can try a few $x$ values and see if I get the same output but I wanted a more rigorous proof using the definitions.
This is what I tried.
\begin{align} f(m)=f(p) &\implies \frac{m}{1+m^2} = \frac{p}{1+p^2} \\ &\implies m+mp^2 = p + pm^2 \\ &\implies m(1+p^2) = p(1+m^2) \end{align}
I don't really know where to go from here, how would I derive a contradiction showing that this is not injective?
Note that for $x \ne 0$, we have $$\frac{1/x}{1 + (1/x)^2} = \frac{(1/x)(x^2)}{(1 + (1/x)^2)(x^2)} = \frac{x}{x^2 + 1},$$ so if $f(x) = x/(1+x^2)$, then $f(1/x) = f(x)$ for all $x \ne 0$.
An easier way to have seen this particular property of $f$ is to have written $$f(x) = \frac{x}{1+x^2} = \frac{x/x}{1/x + x^2/x} = \frac{1}{x + \frac{1}{x}},$$ and now this relationship between $f(x)$ and $f(1/x)$ is laid bare.