Surjective function · Exercise-SURJECTIVE-FUNCTION-010

Step-by-step solved exercise: Relations and functions

Let \(\displaystyle f\colon\{1,2\}\to\{a,b,c\}\). Can \(\displaystyle f\) be surjective?

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

Step-by-step solution

  1. The domain \(\displaystyle \{1,2\}\) has two elements, so the image has at most two values.

    \[\displaystyle \lvert f(\{1,2\})\rvert\le 2\]
  2. The codomain \(\displaystyle \{a,b,c\}\) has three elements.

    \[\displaystyle \lvert\{a,b,c\}\rvert=3\]
  3. To be surjective, the image would need three elements, which is impossible.

    \[\displaystyle \lvert f(\{1,2\})\rvert\ge 3\]
  4. Therefore, no function from \(\displaystyle \{1,2\}\) to \(\displaystyle \{a,b,c\}\) is surjective.

Answer

No; its image has at most \(\displaystyle 2\) elements and \(\displaystyle \{a,b,c\}\) has \(\displaystyle 3\)

🎯 Build my path to this exercise