Injective function · Exercise-INJECTIVE-FUNCTION-005

Step-by-step solved exercise: Relations and functions

Can there be an injective function \(\displaystyle f\colon\{1,2,3\}\to\{a,b\}\)?

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

Step-by-step solution

  1. The domain has three elements and the codomain only two.

    \[\displaystyle |\{1,2,3\}|=3,\quad |\{a,b\}|=2\]
  2. An injective function needs distinct images for each input.

    \[\displaystyle f(1),f(2),f(3)\text{ distintos}\]
  3. There are only two possible values, so two inputs must share an image.

    \[\displaystyle 3>2\]
  4. No injective function of that kind exists, because the domain has more elements than the codomain.

Answer

No, because the domain has more elements than the codomain

🎯 Build my path to this exercise