Interactive · 1 question
A function can be considered a map from one set to another. Here are a few examples:
Let . Then is a function that maps the set of real numbers to the set of real numbers.
Let , but where we restrict the domain of to integers. Then is a function that maps the set of integers to the set of even integers. It would also be correct to say that maps the set of integers to the set of integers; not every element in the second set needs to be mapped to.
For each living person, consider that person's favorite positive integer. If a person doesn't have a favorite, then associate that person with the number 0. This gives us a function that maps the set of living people to the set of non-negative integers.
In fact, any function is a map from one set to another set . The set is called the domain, and the set is called the codomain. The range is the set of elements of that get mapped to.
Read the definitions above closely. Are the codomain and the range of a function always the same set?
So, anytime we have a function, sets are in view. Therefore, it's useful to understand what sets are and how we handle them.