0

Let $f$ be a function from $X$ to $Y$

Prove that the function $f$ is one-to-one if and only if $f^{-1}(y)$ contains at most one element for every $y \in Y$.

(Note: if this is a duplicate please tell me how you searched to find the original question. Thank you).

Idle Fool
  • 1,022

1 Answers1

1

Proof:

($\Rightarrow$) If $f$ are (one-to-one)injective this means that $f(x_1)=f(x_2)$ implies $x_1=x_2$. Let $x_1,x_2\in f^{-1}(\left\{y\right\})$ with $y\in Y$ so $f(x_1)=y=f(x_2)$ then by the hypotesis $x_1=x_2$ and your claim is true.

($\Leftarrow$) Suppose that $f^{-1}(\left\{y\right\})=\left\{x\right\}$ for all $y\in Y$. Thus, if you choose $x_1$ and $x_2$ with $f(x_1)=y=f(x_2)$ then, $x_1,x_2\in f^{-1}(\{y\})=\{x\}$ therefore $x_1=x_2=x$. So $f$ is injective.

Ragnar1204
  • 1,130
  • 10
  • 20