Motivation [009Z]

What do we need to be true in order to be able to turn a function around into a valid function that goes the opposite direction?

If we take any old function and reverse the direction of all the arrows, the result might not be a valid function. There are two potential problems:

  1. Different elements of the domain can map to the same element of the codomain. If we reverse the arrows, that element of the codomain will have multiple arrows coming out of it, which is not allowed.
  2. Some elements of the codomain might be left out. If we turn the arrows around, these will not be assigned to anything.

We can define some special types of functions that don’t have these problems.