Section Introduction
Many topological properties are defined using continuous functions. We will focus on continuity later β for now we review some important concepts related to functions. Much of this should be familiar, but some might be new.
First we present the basic definitions. Much of our previous work has probably been with functions that map from the reals to the reals, but we will be considering functions form a more general perspective. We start with a formal definition of a function.
Note that the first property is an existence property β that if then there is an element in that matches up with This first property also says that every element in is used, or that every element in is paired with an element in and the element in depends on the element in that is chosen. The second property is a uniqueness one β that there is only one element in that is paired with a given element in
and in this way we think of as a mapping from the set to the set We indicate that is a mapping from set to set with the notation
There is some familiar terminology and notation associated with functions. Let be a function from a set to a set
- If
then is the image of under Since each in is paired with a unique there is only one image of under That is why it is appropriate to use the work βtheβ when referring to the image of an element. - If
and for some then is called a preimage of For a given there may be many different preimages of no preimages of or just one preimage of It can be instructive to construct examples of each situation. The fact that a preimage of an element may not be unique is the reason we use the word βaβ when referring to a preimage.
Knowing the domains and codomains is very important when working with functions, and we will pay a lot of attention to these sets.
We have likely been exposed to one-to-one and onto function in our past mathematical experiences. One-to-one functions (or injections) and onto functions (or surjections) are special types of functions and we present their definitions here.
Definition 2.2.
- The function
is an injection if, whenever and are in then Alternatively, using the function notation, is an injection if implies - The function
is a surjection if, whenever then there is an so that is in Alternatively, using the function notation, is a surjection if for each there exists an so that
Preview Activity 2.1.
We often define functions with rules, but functions can also be defined by tables or graphs. We will work with functions defined by rules in this activity. The goal of this activity is to illustrate why the domain and the codomain are just as important as the rule defining the outputs when want to determine if a function is one-to-one and/or onto. As an example, let (Note that is the function and is the image of under ) Notice that
This observation is enough to prove that the function is not an injection since we can see that there exist two different inputs that produce the same output.
Since we know that for all This implies that the function is not a surjection. For example, is in the codomain of and for all in the domain of
(a)
We can change the domain of a function so that the function is defined on a subset of the original domain. Such a function is called a restriction.
Definition 2.3.
A notation used for the restriction is also We also call an extension of Let be defined by and let where is the set of positive real numbers. So has the same codomain as but a different domain.
(i)
Show that is an injection.
(ii)
Is a surjection? Justify your conclusion.
(b)
Let and let be defined by Notice that the function uses the same formula as the function and has the same domain as but has a different codomain than
(i)
Explain why is not an injection.
(ii)
Is a surjection? Justify your conclusion.
(c)
(i)
Prove or disprove: the function is an injection.
(ii)
Prove or disprove: the function is a surjection.
In our preview activity, the same mathematical formula was used to determine the outputs for the functions. However:
- One of the functions was neither an injection nor a surjection.
- One of the functions was not an injection but was a surjection.
- One of the functions was an injection but was not a surjection.
- One of the functions was both an injection and a surjection.
This illustrates the important fact that whether a function is injective or surjective not only depends on the formula that defines the output of the function but also on the domain and codomain of the function.
An important special function that is always an injection and surjection is the identity function on a set. If is a set, the identity function on is denoted as and for every