In the last section, we talked about certain kinds of functions that have properties not had by other functions. Surjective functions have properties not shared with injective functions, and vice-versa. In this section, we swing back to talking about properties that all functions have, though the last property we talk about is a bit more refined when the underlying function is injective.
Empty Inputs Produce Empty Outputs
One classic analogy mathematicians use to talk about functions is that of a machine. Simply put, a machine is a device that takes in some input, operates on that input, and produces an output. Like machines, a function takes in an input, and based on how the function is defined, produces an output.
The machine analogy provides some useful insight into how functions work. For example, what happens if nothing is put into a machine? Weβd expect that with no input, the machine canβt produce anything because if there is no input, then there is nothing for the machine to operate on.
The next theorem formalizes this idea to work with our more rigorous definition of function.
Theorem 6.3.1
Let be an arbitrary function.
Then we have that
General Strategy: Weβll use a proof by contradiction to show that if there is an image in , then the empty set would be non-empty!
Presume - for the purpose of showing a contradiction - that such that .
Because the presupposition that yields a contradiction, we must then have that
which is the same thing as saying
as desired.
Weβll use this theorem in some of the upcoming examples.
A Union of Subsets
Consider an arbitrary function , along with two subsets of the domain . Since and are subsets of the domain of , we can consider their respective image sets and .
Suppose that we first take the union , and then form the image set . Is that the same thing as taking the union of the two image sets ?
Theorem 6.3.2
Let be an arbitrary function, with and .
Then we have that
General Strategy: Here, we really just need to appeal to the definitions for image, and union. Weβll use those definitions, as well as some logical equivalencies involving the Existential Quantifier, inside an element argument.
Suppose we pick an arbitrary element from the image set :
Since weβve just shown that
we also have that
as desired.
Letβs look at a couple of examples of this theorem in action.
Example 6.3.1
For the sets and , consider the function where
depicted below as an arrow diagram:
Figure 6.3.1
Suppose we let
We have that . Let's verify that .
First, we calculate . We start by calculating :
Now, we can calculate :
Second, we calculate :
Thus, we have that
as asserted by Theorem 6.3.1.
Example 6.3.2
Consider the function where
Suppose we wanted to calculate . We know that and . Thus, we can use Theorem 6.3.1 to simplify our work a little bit:
An Intersection of Subsets
We may expect we have a similar result when considering the intersection , but there is a slight hiccup.
Theorem 6.3.3
Let be an arbitrary function with .
Then we have that
General Strategy: Here, weβll use another element argument similar to the one used in Proof 6.3.1. Of course, weβll appeal to the definition of intersection instead of union.
Let be an arbitrarily picked element in .
Note the use of the single-sided logical implication instead of the double-sided logical equivalence in the seventh row of the above sequence of steps. Because that single step required a logical implication, and not a logical equivalency, what weβve shown is that
which means weβve shown that
as desired.
Proof 6.3.2 required a logical implication because of the way the Existential Quantifier distributes over the conjunction operator . This is why Theorem 6.3.2 uses subset instead of equality .
The logic used was abstract, but we can look at some concrete examples to drive the point home.
Example 6.3.3
Consider the function depicted below:
Figure 6.3.2
Let's consider the subsets and . We see that ; as such,
Now we compute :
In this case, since and , we have a proper subset relationship:
Example 6.3.4
Consider the function shown below:
Figure 6.3.3
Letting and , we get the following:
Here, we have set equality: .
The previous examples relied on splitting up a functionβs domain into disjoint subsets. This is an easy way to demonstrate the validity of Theorem 6.3.2 because the mpty set is a subset of every set. Because the empty set was present in both of the previous examples, we were also able to use Theorem 6.3.1 in our calculations as well.
The next few examples will not split up the functionβs domain into disjoint subsets.
Example 6.3.5
Consider the function pictured below:
Figure 6.3.4
Using this function, we see that
So here, we have a proper subset: .
Example 6.3.6
Consider the function depicted below:
Figure 6.3.5
We consider the subsets and of the domain again, and proceed as usual:
This time, we have set equality: .
Examples 6.3.3 and 6.3.4 showed functions that were neither injective nor surjective. Even though both domains were split up into disjoint sets, Example 6.3.3 yielded a proper subset while Example 6.3.4 yielded two equal sets. This means that splitting up the domain of a function into disjoint subsets is not enough to guarantee that .
The function in Example 6.3.5 was also neither injective nor surjective, and its domain was split up into two subsets that shared an element. Still, we got that .
Now consider the function in Example 6.3.6. That function was injective, but not surjective, and when we split up the domain, we did get equal subsets .
Subsets of an Injective Functionβs Domain
For two sets , the set depends on what elements are shared between and . As such, it stands to reason that in order to guarantee that , we need to focus on what elements are shared between image sets. This is addressed by determining if a function is injective.
As was shown in Example 6.3.6, being injective may be enough to guarantee that .
However, Example 6.3.4 shows that just because , that does not tell us if is injective.
This pair of observations yields the following theorem:
Theorem 6.3.4
Let be an injective, but otherwise arbitrary, function with .
Then we have that
General Strategy: Weβll proceed in the same way as we did in Proof 6.3.2. This time, weβll use the fact that is injective instead of the one-sided distribution of the Existential Quantifier. This will let us use logical equivalence instead of logical implication.
Let be an arbitrarily picked element in .
Weβve just shown that
which means weβve shown that
as desired.
Theorem 6.3.4 is useful for calculating certain sets that come from intersections of image sets because we have equality. With Theorem 6.3.3, we donβt have equality, but a sort of βupper boundβ on what the result could be because without an injective function, all we have is a subset relationship.
Example 6.3.7
Consider the function depicted below:
Figure 6.3.6
Suppose we wanted to calculate . We see that and , and that is injective. This means we can apply Theorem 6.3.3 to simplify our calculation: