Either way, the concept of a function is rather straightforward. You give it an input, it gives you an output based on that input. Within math, we refer to the set of all possible inputs to a function as the domain of a function, and the set of all possible outputs as its co-domain. There are two possible ways a function can relate its domain to its co-do…