5.5 Functions and Sets

Objectives:

  • Define the composition of two functions

  • Connect our understanding of inverse functions with composition of functions

5.5.1 Connecting Two Major Worlds

Example 5.5.1.

The function f: given by f(x)=x2 is neither injective nor surjective. Could we restrict the domain and/or codomain of this function to make it bijective?

Blank space for you to write your work.

On the domain/codomain you chose, what is the function’s inverse function?

Blank space for you to write your work.

From the above example we see there is great utility in restricting our functions’ domains and codomains. In fact, it is often the only way we can make inverse functions for certain non-bijective functions!

For example, to make non-surjective functions surjective, we merely need to replace the codomain of the function f with f(X). We have used this notation intentionally: this is called the image of the set X under f.

Definition 5.5.2.

Let f:XY be a function.

  1. (a)

    If SX, the image of S under f is defined via

    f(S):={f(x)xS}.
  2. (b)

    If TY, the preimage (or inverse image) of T under f is defined via

    f1(T):={xXf(x)T}.

Example 5.5.3.

Let f(x)=x2. Find f1([1,4]).

Blank space for you to write your work.

There is an interesting thing we should bring up with this notation: even if a function f is not invertible, we can still take preimages of sets under f. The notation f1 can seem a bit unfortunate here, so let us make a quick theorem to help explain the connection between invertibility and preimages.

5.5.2 Proving with Functions and Sets

Theorem 5.5.4.

Let f:XY be a bijective function. Then for all values yY,

f1({y})={f1(y)}.
Blank space for you to write your work.

The notation on the left-hand side denotes the preimage of the set {y} under f; the notation on the right-hand side denotes the output of y under the inverse function f1. Notice that pre-images always are sets, not numbers, even if there is one element in this set.

Example 5.5.5.

Define f: via f(x)=x2.

  1. (a)

    Find two nonempty subsets A and B of such that AB= but f1(A)=f1(B).

    Blank space for you to write your work.

    Using this, show that the following statement is false: for any function f:XY where C,DY, f 1 ( C ) f 1 ( D ) f 1 ( C D ) .

    Blank space for you to write your work.
  2. (b)

    Find two nonempty subsets A and B of such that AB= but f(A)=f(B).

    Blank space for you to write your work.

    Using this, show that the following statement is false: for any function f:XY where A,BX, f(A)f(B)f(AB).

    Blank space for you to write your work.

Theorem 5.5.6.

Let f:XY be an injective function and let SX. Then f1(f(S))=S.

Blank space for you to write your work.

Theorem 5.5.7.

Let g:XY be a surjective function and let TY. Then f(f1(T))=T.

Blank space for you to write your work.

Theorem 5.5.8.

Let f:XY be a function and suppose that (Aα)αΔ is a collection of subsets of Y. Then we have the following:

  1. (a)

    it is true that f(αΔAα)αΔf(Aα).

    Blank space for you to write your work.
  2. (b)

    it is not necessarily true that αΔf(Aα)f(αΔAα).

    Blank space for you to write your work.