Injective function · Exercise-INJECTIVE-FUNCTION-009

Step-by-step solved exercise: Relations and functions

Is every injective function also surjective?

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. Take \(\displaystyle f(n)=n+1\) from \(\displaystyle \mathbb{N}\) to \(\displaystyle \mathbb{N}\), with \(\displaystyle \mathbb{N}=\{1,2,3,\dots\}\).

    \[\displaystyle f(n)=n+1\]
  2. If \(\displaystyle n+1=n'+1\), subtracting \(\displaystyle 1\) gives \(\displaystyle n=n'\), so \(\displaystyle f\) is injective.

    \[\displaystyle n+1=n'+1\Rightarrow n=n'\]
  3. But \(\displaystyle 1\) is not the image of any \(\displaystyle n\) in \(\displaystyle \mathbb{N}\), because \(\displaystyle n+1\geq 2\).

    \[\displaystyle n+1\geq 2\]
  4. No; \(\displaystyle n\mapsto n+1\) from \(\displaystyle \mathbb{N}\) to \(\displaystyle \mathbb{N}\) is injective and not surjective.

Answer

No; \(\displaystyle n\mapsto n+1\) from \(\displaystyle \mathbb{N}\) to \(\displaystyle \mathbb{N}\) is injective and not surjective

🎯 Build my path to this exercise