Is the function $f: (\mathbb{R} - \{0\})\rightarrow \mathbb{R}$ defined by $f(x) = \frac{1}{x}$ surjective?
My notes say that it isn't but I don't see why. The codomain is all real numbers, and if I plug in every single $x$ in the domain, it is possible to map to all the real numbers, so the range equals to codomain?
$f(x)=0$ has no solutions. In fact if $\frac{1}{x}=f(x)=0$, since $x\neq 0$, then $1=0\cdot x=0$.
Therefore it is not surjective.