Surjective function · Exercise-SURJECTIVE-FUNCTION-005
Step-by-step solved exercise: Relations and functions
Let \(\displaystyle f\colon\{1,2,3\}\to\{a,b\}\). Can \(\displaystyle f\) be surjective?
Surjective function · Exercise-SURJECTIVE-FUNCTION-005
Let \(\displaystyle f\colon\{1,2,3\}\to\{a,b\}\). Can \(\displaystyle f\) be surjective?
To be surjective, \(\displaystyle f\) must take both the value \(\displaystyle a\) and the value \(\displaystyle b\).
It suffices to assign the value \(\displaystyle a\) to one input and the value \(\displaystyle b\) to another.
The third input can take either value without affecting surjectivity.
So the image is \(\displaystyle \{a,b\}\), equal to the codomain, and \(\displaystyle f\) is surjective.
Yes, for example with \(\displaystyle f(1)=a\), \(\displaystyle f(2)=b\), \(\displaystyle f(3)=b\)