Mathematical Proof/Functions
Introduction
In the previous chapter, we have discussed the concept of Template:Colored em. There are not much restrictions on the relations. For instance, for a relation from set to set , every element of can be related to no elements of , exactly one element of , or multiple elements of . In this chapter, we will focus on a particular type of relations from set to set where Template:Colored em element in is related to Template:Colored em (or a Template:Colored em) element of .
You should have encountered the concept of Template:Colored em before, e.g. a function defined by gives you a value of for every given value of . The functions you have encountered are likely to be in the above form, i.e. in the form of an equation. Also, the value of and are likely to be real numbers.
But we can generalize such ideas to more general situations where and are not necessarily real numbers (e.g., they can be elements of certain sets), and the functions need not be expressed by a formula like above. As a result, the concept and definition of functions discussed here may seem foreign to you, and look quite different from what you have previously learnt about functions.
Definitions
Template:Colored definition Template:Colored remark Template:Colored exercise Template:Colored example Template:Colored example Template:Colored example Template:Colored exercise We should be aware that the codomain of a function is not necessarily the same as the range of a function. The following is the definition of the Template:Colored em of a function (same as the definition for a relation). Template:Colored definition Template:Colored remark Template:Colored example Template:Colored exercise Template:Colored example Template:Colored remark Template:Colored example Template:Colored exercise Since the domain and codomain, in addition to the "way" of the mapping, all affect the "behaviour" and properties of a function, it is natural to incorporate all these features into the definition of Template:Colored em of functions: Template:Colored definition Template:Colored exercise Template:Colored example Template:Colored exercise
Injective, surjective and bijective functions
In this section, we will discuss some important properties that a function may possess, namely injectivity, surjectivity, and bijectivity. Template:Colored definition Template:Colored remark Template:Colored exercise Template:Colored example Template:Colored example Template:Colored example Template:Colored exercise Template:Colored definition Template:Colored remark Template:Colored exercise Template:Colored example Template:Colored example Template:Colored definition Template:Colored remark Template:Colored exercise Template:Colored example Template:Colored example Template:Colored example Template:Colored exercise Template:Colored exercise Template:Colored exercise
Composition of functions
Let and be nonempty sets, and let and be two functions. In this section, we are going to discuss a way to create a new function from "combining" the two functions and , called their Template:Colored em: Template:Colored definition Template:Colored remark Template:Colored example Template:Colored remark Template:Colored example Template:Colored remark Although the composition of functions is not commutative, it is Template:Colored em. Template:Colored theorem
Proof. First, since is a function from to , it follows that is a function from to . Similarly, since is a function from , it follows that is function from to .
It now remains to prove that both functions map every element into the same image in . For every , (a bracket for means "grouping" and first, that is, we regard as a function first. To understand this more easily, one may write instead of "" above.)
Also,
Template:Colored example Now, let us study some results that are related to the composition, injectivity, surjectivity, and bijectivity. Template:Colored proposition
Proof. For (a), assume that and are injective. Then, for every For (b), assume that and are injective. Then, for every , since is surjective, there exists such that . For Template:Colored em , there must also exist such that since is surjective. It follows that for every , there exists such that
Proof. Assume that and are bijective, i.e., are injective Template:Colored em surjective. It follows by the above proposition that is injective Template:Colored em surjective, i.e., is bijective.
After knowing such results, it is natural to question that whether the Template:Colored em of the above proposition holds. Indeed, the converse does not hold, and we have the following results: Template:Colored proposition
Proof. For (a), assume that is injective. Then, for every , For (b), assume that is surjective. Then, for every , there exists such that . So, we now can show that is surjective: for every , we can choose , and then we have .
Template:Colored remark To summarize the results, we have the following table:
| (given) | ||
|---|---|---|
| injective | injective | injective/not injective |
| surjective | surjective | surjective/not surjective |
| bijective | injective | surjective |
Template:Colored exercise Template:Colored example Template:Colored exercise
Inverse functions
Recall that a function is a special relation from set to set satisfying some requirements. Also, recall that given a relation from to , the Template:Colored em is defined to be We know that the inverse relation is always a relation itself. However, is the inverse relation of a Template:Colored em always a Template:Colored em from to itself? The answer is, indeed, no. Consider the following example. Template:Colored example Of course, when the inverse relation of a function turns out to be also a function from to , it is natural to define it as the Template:Colored em of : Template:Colored definition Template:Colored remark We are then interested in knowing under what conditions the inverse relation is a function from to , so that the Template:Colored em.
First, in order for to be a function from to , we must have . So, we need to ensure that Template:Colored em element of is related to some elements in , so that when we "reverse" the ordered pairs in to get , there is at least one image for every . This means , i.e., needs to be surjective.
Of course, we also need to ensure that there is a Template:Colored em image for every . Under the condition that is surjective, there is at least one image for every already. So, it remains to ensure that there is Template:Colored em one image for every .
To ensure this, we need the function to be injective, since, if is injective, then every element of has at most one pre-image. So, when we "reverse" the ordered pairs in to get , every element of has at most one Template:Colored em.
From this discussion, we know that if is a function from to , then has to be injective and surjective, i.e. bijective. This shows that the bijectivity of is the necessary condition for the existence of the inverse function. Is it also the sufficient condition? It turns out that the bijectivity of is actually the Template:Colored em condition for the existence of the inverse function: Template:Colored theorem
Proof.
"" direction: Assume that is a function from to . Then, we will proceed to prove that is injective and surjective:
Injective: For every , first assume . Then, . By definition of inverse relation, we have . Since is a function from to , we have by definition .
Surjective: For every , since is a function from to , there exists a unique such that . This means by definition of inverse relation that , i.e., .
"" direction: Assume that is bijective. Then, we will proceed to prove that is a function from to . That is, we need to ensure that for every element , there exists a unique such that .
Existence: For every , since is surjective, there exists such that , i.e. . Hence, . This shows that for every , there exists such that .
Uniqueness: Assume , in addition to . So, we have , i.e., . Since is injective, we have .
Hence, from this theorem, we know that it is only meaningful to talk about inverse function of when is bijective. If is not bijective, then its inverse function does not exist at all, and it is meaningless to talk about it. The following theorem further suggests that the inverse function must also be bijective. Template:Colored theorem
Proof. Assume that is bijective. Then, is a function from to . Then, we will show that it is injective and surjective.
Injective: For every , first assume . Then, . Thus, . It follows that since is a function.
Surjective: For every , since is a function, there exists a unique such that , i.e., , and hence , i.e., .
Template:Colored remark Another common definition of inverse function is that the inverse function of , denoted by , is a function satisfying It turns out that these two definitions of inverse function are indeed (logically) equivalent. Consider the following theorem. Template:Colored theorem
Proof. Let us first prove that is bijective.
Injective: For every , Surjective: For every , choose . Then,
Now, let us prove that . Since is bijective, the inverse function exists. Then, since the domain and codomain of the inverse function is and respectively by definition, and have the same domain and codomain. It now remains to show that for every . Since is surjective, for every , there exists such that . This means . Now, we have for every ,
The converse of the above theorem is also true. More precisely, if is bijective, and thus its inverse function exists, then we have and . (Details are left to the following exercise.) Hence, the two definitions are actually logically equivalent, in the sense that
- by the above theorem, the conditions in the alternative definition imply the conditions in our definition.
- by the above remark, the conditions in our definition imply the conditions in the alternative definition.
It then follows that the function satisfying and is unique, since the inverse function is unique. Template:Colored exercise Here, we will introduce an approach to find a formula for the inverse function. But this approach does not Template:Colored em work. Template:Colored example In this approach, we use some algebraic manipulation to find the inverse function. However, such method is not always possible. For instance, the function defined by is bijective, but its inverse function is given by (indeed, defined to be) . In this case, such inverse function cannot be obtained by such algebraic manipulation. Template:Colored exercise
Image sets and preimage sets
The concepts discussed in this section are the generalizations of the concepts of Template:Colored em and Template:Colored em. Template:Colored definition Template:Colored remark Graphically, the image set looks like:
A B *------* *------* | | | | | . X | | f(X) | |.###. | | . | |.###.--------->.###. | |.###. | |.###. | | . | | . | *------* *------*
The preimage set looks like
A B *------* *------* |f-1(Y)| | | | . | | Y | |.###. | | . | |.###.<---------.###. | |.###. | |.###. | | . | | . | *------* *------*
Template:Colored example Template:Colored remark Template:Colored exercise Template:Colored proposition
Proof. (a) For every subset , we have . So, for every , (b) For every subset , we have . So, for every , assume . Then, for some . But means . So, we have .
Template:Colored exercise Template:Colored exercise
Cardinalities of sets
Recall that a set is Template:Colored em if it contains a finite number of elements, i.e., or for some . On the other hand, a set is infinite if it is not finite. Previously, we have studied cardinalities of finite sets, and we have left cardinalities of Template:Colored em sets undefined. But, it turns out that we can define cardinalities of infinite sets in a more complicated way, using Template:Colored em.
It may now seem that we can write something like for an infinite set . But it turns out that this is not quite meaningful, and as we shall see, infinite sets can have different cardinalities, or different "sizes". That is, there are different sizes of infinity! (in some sense).
To motivate the definition for the cardinalities of infinite sets, let us first consider a simple example of Template:Colored em sets. Template:Colored example This example suggests that for two finite (nonempty) sets and , they have the Template:Colored em if there exists a bijective function from to (or from to . One such function is given by the Template:Colored em of the bijective function from to .) This leads us to the following definition: Template:Colored definition Template:Colored remark Template:Colored example The result in this example may seem strange and counter-intuitive, since seems to be twice as large as , and is a proper subset of , but they turn out to have the same cardinality. Such phenomenon is actually quite common when we deal with the cardinalities of Template:Colored em.
Fortunately, the numerical equivalence has some nice properties: reflexivity, symmetry and transitivity: Template:Colored theorem
Proof.
Reflexivity:
Case 1: is empty. Then, .
Case 2: is nonempty. Then, consider the identity function . We have shown that it is bijective.
Symmetry:
Case 1: and are both empty. Then, must be numerically equivalent to .
Case 2: One of is empty, and another is nonempty. Then, must Template:Colored em be numerically equivalent to , and the result follows.
Case 3: Both and are nonempty. Then, assume is numerically equivalent to . This means there exists a bijective function . Now, consider its inverse function , which is bijective. So, is numerically equivalent to .
Transitivity:
Case 1: are empty. Then, must be numerically equivalent to .
Case 2: Some of are empty, and some are nonempty. Then, it is impossible for to be numerically equivalent to Template:Colored em to be numerically equivalent to . The result follows.
Case 3: are nonempty. Then, assume is numerically equivalent to and is numerically equivalent to . Then, there exist bijective functions and . Thus, their composition is bijective. Hence, and are numerically equivalent.
Now, let us focus on the set , and consider the (infinite) sets having the same cardinality as . We give a special name for such sets: Template:Colored definition Template:Colored remark Using this definition, we can further define another property of a set: Template:Colored definition Template:Colored remark Template:Colored example Template:Colored remark Template:Colored exercise We now know that and have the same cardinality. It is then natural to consider the set of all rational numbers, . It appears that is much larger than , so it may seem that should no longer be denumerable, and be uncountable. But it turns out that is also denumerable. Template:Colored example So, we have proved that . It turns out that even if seems much larger than and , it still has the same cardinality as them. A natural question then arises: is there any uncountable set at all? The answer is yes, and the best known example is the set of all real numbers, . In other words, there does not exist a bijective function from to . Since is uncountable, this suggests that the "size" of is different from the "size" of , i.e., there are different sizes of infinity (in some sense). Template:Colored example Template:Colored remark The following results may be useful for comparing denumerable or uncountable sets. Template:Colored proposition Template:Colored example Template:Colored exercise Template:Colored example Template:Colored proposition Template:Colored remark Template:Colored example Template:Colored remark Template:Colored proposition Template:Colored proposition Template:Colored exercise Template:Colored example Template:Colored exercise Template:Nav Template:BookCat