Lesson 32: New Functions From Old pt. 2

In the previous lesson we explored one possible way of taking two functions (that are assumed to somehow already be “given” to us, so to speak) and forming a third (new) function from them.  We noted that this is very similar in spirit to our definitions of unions, intersections, and Cartesian products of two sets, each giving a way to form a third set from the information of two initially given sets.  And just as there is more than one to form a third set from two old ones, there is more than one way to do the same for functions.  This lesson explores a second way of doing so.

Before making our definitions, let us make a little more contact with the likely more familiar story of sets.  As mentioned above, we have three different ways of forming a new set from two old ones: 1) we can form the union of the two old ones, 2) we can form the intersection of the two old ones, and 3) we can form the Cartesian product of the two old ones.  These three different constructions can then be classified into two different classes: one type of construction leaves the underlying elements of the two old sets alone, and the other type of construction creates a set whose underlying elements are different than those of both of the original sets.  In particular, the process of forming the union or intersection of two sets is to simply form a third set whose elements are taken from the two original sets in precisely the same form.  For example, if one of our old sets is a set of basketballs and dinosaurs and the other old set is a set of basketballs and dinosaurs, then the union (and intersection) of these two sets is a set of basketballs and dinosaurs just the same (just possibly a different collection of basketballs and dinosaurs). The Cartesian product construction, however, differs in the sense that the underlying elements are changed.  Namely, in the above case of sets of basketballs and dinosaurs, the individual elements of the Cartesian product of the two old sets are neither basketballs nor dinosaurs, but rather a collection of abstract pairs of basketballs and dinosaurs.

Let us quickly note that this is all entirely okay!  A set is just a collection of elements.  If we want to build a new set from two old ones, all we need to do is create a collection of elements—there is no requirement that these elements must be the same as the elements in the old sets.

We now turn our attention to how this all relates to creating new functions from old ones.  Our discussion in the previous lesson introduced the construction of the composition of two functions.  In this construction we were able to define a third function from two old ones without changing the underlying domains and codomains.  Namely, we saw that if we have a function f:A\rightarrow B and another function g:B\rightarrow C, then we can define a third function g\circ f:A\rightarrow C.  In other words, if the codomain of f is the same as the domain of g, then we can define a third function whose domain is that of f and whose codomain is that of g.  We are reminded therefore that we can’t “willy nilly” define a third function from two old ones—the two old functions must satisfy certain requirements on their domains and codomains.  Moreover, and more interestingly, we can ask the question of whether or not we can define a third function from two old ones in such a way that the underlying domains and codomains are changed (analogous to the changing of the underlying elements in the Cartesian product construction).  Indeed we can, and in exploring one particular way we will also find a way to define a third function from two old ones even if the constraints on the respective domains and codomains needed for composition are not satisfied.  Let us see how this goes.

Suppose we’re given (by some enemy or divine creature or math teacher or what have you) two functions f:A\rightarrow B and g:C\rightarrow D.  We note immediately that unless B=C (or D=A) as sets, we cannot define the composition g\circ f (or f\circ g) of f and g because in neither case does the domain of one equal the codomain of the other.  This doesn’t mean that we can pack up and go home, though, for there are other interesting things that we can do.

The way out of our “oh-no-we-can’t-form-a-composition-function” conundrum is to change the underlying domains and codomains.  The essence of this idea is that even though we can’t (in general) define a function from, say, A to D using the information of f and g, we can define a function from the Cartesian product A\times C to the Cartesian product B\times D.  In other words, as we’ll soon see, we can define a new function from the Cartesian product of the domains of f and g to the Cartesian product of the codomains of f and g.  Despite this possibly confusing wording, the math is actually quite straightforward.

Consider the set A\times C.  We remind the reader that this is nothing but the set of pairs (a,c) with a\in A and c\in C.  For each a\in A, though, f assigns a particular element f(a)\in B since we know that f is a function from A to B.  Similarly, for each c\in C, g assigns the particular element g(c)\in D to it.  Thus, to each (a,c)\in A\times C we can assign the element (f(a), g(c))\in B\times D.

Before defining our function, we need to first check that this method of assigning elements in B\times D to elements in A\times C is in fact in line with the definition of a function.  In particular, we need to ensure that each element in A\times C is sent somewhere in B\times D, and we need to make sure that each element in A\times C is sent to only one element in B\times D.  This property of the assignment procedure (a,c)\mapsto (f(a), g(c)) indeed follows straightforwardly from the fact that we already know that f and g are functions and therefore have the “function properties” required of them for their respective domains and codomains.  We leave the explicit proof—which is highly recommended to the reader to at least read through, as it nicely illustrates how to succinctly use the formalism that we’ve built up to prove new things within the formalsim—to the exercises.  For now, we assume that this method of assigning elements of B\times D to elements of A\times C indeed forms a function.

Let us give this function some nice notation.  Namely, we denote the function that sends each (a,c)\in A\times C to (f(a),g(c))\in B\times D by the symbol f\times g.  Thus, analogous to the notation f:A\rightarrow B, we have the notation f\times g:A\times C\rightarrow B\times D.  The expression f\times g gives us a symbolic “name” for the function, A\times C is the domain of the function, and B\times D is the codomain of the function.  Additionally, analogous to the statement that f(a) is an element of B (namely, that element of B that a\in A is sent to by f), we now have the statement that f\times g ((a,c)) is an element of B\times D, where in the symbolic expression we simply have that f\times g replaces f as the name of the function and (a,c)\in A\times C replaces a\in A as the element in the domain that is getting sent to the codomain.  Explicitly, we have that f\times g((a,c))=(f(a),g(c)), since the right hand side is the element in B\times D that is, by definition, the image of the element (a,c) under the function f\times g.

Let’s now take a look at a concrete example so that we can get a feel for how these abstract ideas can actually be used to do some mathematical things.  Let us suppose that A=\{1, 2, 3\}, that B=\{a, b\}, that C=\{Kobe, LeBron\}, and that D=\{basketball, dinosaur\}, let us suppose that f:A\rightarrow B is a function such that f(1)=a, f(2)=a, and f(3)=b, and finally let us suppose that g:C\rightarrow D is a function such that g(Kobe)=basketball and g(LeBron)=dinosaur.  Phew!  That was a lot of “supposing”, but this is all that is meant by the phrase “suppose we’re given a function f:A\rightarrow B and a function g:C\rightarrow D”.  Namely, to be “given” some mathematical structure, we must either construct it explicitly ourselves (which we’ve just done, by “supposing” that we have them), or we acquire them from some other mathematical problem or proof—either way, though, once we have them, we can do with them what we want.  In particular, let us now examine the function that we now know about, namely f\times g.

We have already explicitly constructed both the functions f and g, and therefore the action of the function f\times g is completely fixed for us.  In other words, we had the freedom to choose f and g as we desired (so long as what we chose was indeed mathematically well-defined, i.e. satisfying the requirements of what a function is, etc.), but once we’ve chosen these functions we are stuck with the resulting f\times g.  This is part of the beauty of math: we can define certain structures quite freely, and then we are forced to deal with their eternal, objective, indisputable consequences.  The art of mathematics then is, in part, the act of figuring out which objects to define in order to get the most interesting and/or beautiful and/or useful (unavoidable) consequences.

Enough philosophizing, let us just go on and see what the function f\times g, with f and g defined above, looks like.  First let’s examine the domain of f\times g.  This is A\times C, and writing out all of the elements explicitly we have

A\times C=\{(1,Kobe), (1, LeBron), (2, Kobe), (2, LeBron), (3, Kobe), (3, LeBron)\}.

Let’s now look at the codomain, B\times D.  We have

B\times D=\{(a,basketball), (a, dinosaur), (b, basketball), (b, dinosaur)\}.

We then have that the image of, for example, (1, Kobe)\in A\times C under the action of the function f\times g, is (f(1), g(Kobe))=(a, basketball).  In symbols, we have f\times g((1, Kobe))=(a, basketball).  In the same way, we can see where the other five elements in A\times C are mapped under f\times g, and we leave the explicit results for the exercises (see Exercise 2).  We also leave one other full example—a slightly more open ended example—to Exercise 3.

In the next lesson we return to the world of groups and homomorphisms, and we use the construction of f\times g to give a more abstract view of homomorphisms.  This will have important uses for us in the (very) far future when we discuss the mathematical structure known as categories, but for now it will simply give us a (very) cool pictorial representation of homomorphisms.  Here’s to plowing further into the true beauty of math!

Exercises

1) Prove that if f:A\rightarrow B and g:C\rightarrow D are both functions, then f\times g, as defined in this lesson, is also a function.

2) Explicitly write where the remaining five elements (i.e., those that are not (1, Kobe)) in A\times C go under the action of f\times g in the example discussed at the end of this lesson.

3)  Define four sets A, B, C, and D of your choosing, and define two functions f:A\rightarrow B and g:C\rightarrow D, also of your choosing (but make sure they’re well-defined!).  As explicitly as possible*, write out the action of f\times g, i.e., write out where each element in the domain of f\times g goes in the codomain.

*It may not be possible to explicitly list where each individual element in the domain goes, as may be the case if you define sets with infinitely many elements.  Nonetheless, express the action of f\times g as concretely as possible.

Solutions to Exercises

On to Lesson 33

Back to Lesson 31 

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s