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:X→Y be a function.

  1. (a)

    If S⊆X, the image of S under f is defined via

    f⁢(S):={f⁢(x)∣x∈S}.
  2. (b)

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

    f−1⁢(T):={x∈X∣f⁢(x)∈T}.

Example 5.5.3.

Let f⁢(x)=x2. Find f−1⁢([−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 f−1 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:X→Y be a bijective function. Then for all values y∈Y,

f−1⁢({y})={f−1⁢(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 f−1. Notice that pre-images always are sets, not numbers, even if there is one element in this set.

Example 5.5.5.

  1. (a)

    Show that the following statement is true: for any function f:X→Y where C,D⊂Y, f − 1 ( C ) ∩ f − 1 ( D ) ⊆ f − 1 ( C ∩ D ) .

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

    Define f:ℝ→ℝ via f⁢(x)=x2. Find two nonempty subsets A and B of ℝ such that A∩B=∅ 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:X→Y where A,B⊂X, f⁢(A)∩f⁢(B)⊆f⁢(A∩B).

    Blank space for you to write your work.

Theorem 5.5.6.

Let f:X→Y be an injective function and let S⊂X. Then f−1⁢(f⁢(S))=S.

Blank space for you to write your work.

Theorem 5.5.7.

Let g:X→Y be a surjective function and let T⊂Y. Then f⁢(f−1⁢(T))=T.

Blank space for you to write your work.

Theorem 5.5.8.

Let f:X→Y 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.