Skip to main content

Section 6.6 Functions Acting on Sets

Beginning Activity Beginning Activity 1: Functions and Sets

Let \(S = \left\{ a, b, c, d \right\}\) and \(T = \left\{ s, t, u \right\}\text{.}\) Define \(f\x S \to T\) by

\begin{align*} f(a) \amp = s \amp f(b) \amp = t \amp f(c) \amp = t \amp f(d) \amp = s\text{.} \end{align*}

1.

Let \(A = \left\{ a,c \right\}\) and \(B = \left\{ a, d \right\}\text{.}\) Notice that \(A\) and \(B\) are subsets of \(S\text{.}\) Use the roster method to specify the elements of the following two subsets of \(T\text{:}\)

(a)

\(\left\{ f ( x ) \mid x \in A \right\}\)

(b)

\(\left\{ f ( x ) \mid x \in B \right\}\)

2.

Let \(C = \left\{ s, t \right\}\) and \(D = \left\{ s, u \right\}\text{.}\) Notice that \(C\) and \(D\) are subsets of \(T\text{.}\) Use the roster method to specify the elements of the following two subsets of \(S\text{:}\)

(a)

\(\left\{ x \in S \mid f ( x ) \in C \right\}\)

(b)

\(\left\{ x \in S \mid f ( x ) \in D \right\}\)

Now let \(g\x \R \to \R\) be defined by \(g ( x ) = x^2\text{,}\) for each \(x \in \mathbb{R}\text{.}\)

3.

Let \(A = \left\{ 1, 2, 3, -1 \right\}\text{.}\) Use the roster method to specify the elements of the set \(\left\{ g ( x ) \mid x \in A \right\}\text{.}\)

4.

Use the roster method to specify the elements of each of the following sets:

(a)

\(\left\{ x \in \R \mid g( x ) = 1 \right\}\)

(b)

\(\left\{ x \in \R \mid g( x ) = 9 \right\}\)

(c)

\(\left\{ x \in \R \mid g( x ) = 15 \right\}\)

(d)

\(\left\{ x \in \R \mid g( x ) = -1 \right\}\)

5.

Let \(B = \left\{ 1, 9, 15, -1 \right\}\text{.}\) Use the roster method to specify the elements of the set \(\left\{ x \in \mathbb{R} \mid g ( x ) \in B \right\}\text{.}\)

Beginning Activity Beginning Activity 2: Functions and Intervals

Let \(g\x \mathbb{R} \to \mathbb{R}\) be defined by \(g ( x ) = x^2\text{,}\) for each \(x \in \mathbb{R}\text{.}\)

1.

We will first determine where \(g\) maps the closed interval \(\left[ 1, 2 \right]\text{.}\) (Recall that \([1, 2] = \left\{ x \in \R \mid 1 \leq x \leq 2 \right\}\text{.}\)) That is, we will describe, in simpler terms, the set \(\left\{ g ( x ) \mid x \in \left[ 1, 2 \right] \right\}\text{.}\) This is the set of all images of the real numbers in the closed interval \(\left[ 1, 2 \right]\text{.}\)

(a)

Draw a graph of the function \(g\) using \(-3 \leq x \leq 3\text{.}\)

(b)

On the graph, draw the vertical lines \(x = 1\) and \(x = 2\) from the \(x\)-axis to the graph. Label the points \(P \!\left(1, f ( 1 ) \right)\) and \(Q \!\left(2, f ( 2 ) \right)\) on the graph.

(c)

Now draw horizontal lines from the points \(P\) and \(Q\) to the \(y\)-axis. Use this information from the graph to describe the set \(\left\{ g ( x ) \mid x \in \left[ 1, 2 \right] \right\}\) in simpler terms. Use interval notation or set builder notation.

2.

We will now determine all real numbers that \(g\) maps into the closed interval \(\left[ 1, 4 \right]\text{.}\) That is, we will describe the set \(\left\{ x \in \mathbb{R} \mid g ( x ) \in \left[ 1, 4 \right] \right\}\) in simpler terms. This is the set of all preimages of the real numbers in the closed interval \(\left[ 1, 4 \right]\text{.}\)

(a)

Draw a graph of the function \(g\) using \(-3 \leq x \leq 3\text{.}\)

(b)

On the graph, draw the horizontal lines \(y = 1\) and \(y = 4\) from the \(y\)-axis to the graph. Label all points where these two lines intersect the graph.

(c)

Now draw vertical lines from the points in TaskĀ 2.b to the \(x\)-axis, and then use the resulting information to describe the set \(\left\{ x \in \mathbb{R} \mid g ( x ) \in \left[ 1, 4 \right] \right\}\) in simpler terms. (You will need to describe this set as a union of two intervals. Use interval notation or set builder notation.)

Subsection Functions Acting on Sets

In our study of functions, we have focused on how a function ā€œmapsā€ individual elements of its domain to the codomain. We also studied the preimage of an individual element in its codomain. For example, if \(f\x \mathbb{R} \to \mathbb{R}\) is defined by \(f ( x ) = x^2\text{,}\) for each \(x \in \mathbb{R}\text{,}\) then

  • \(f ( 2 ) = 4\text{.}\) We say that \(f\) maps 2 to 4 or that 4 is the image of 2 under the function \(f\text{.}\)

  • Since \(f ( x ) = 4\) implies that \(x = 2\) or \(x = -2\text{,}\) we say that the preimages of 4 are 2 and \(-2\) or that the set of preimages of 4 is \(\left\{ -2, 2 \right\}\text{.}\)

For a function \(f\x S \to T\text{,}\) the next step is to consider subsets of \(S\) or \(T\) and what corresponds to them in the other set. We did this in the beginning activities. We will give some definitions and then revisit the examples in the beginning activities in light of these definitions. We will first consider the situation where \(A\) is a subset of \(S\) and consider the set of outputs whose inputs are from \(A\text{.}\) This will be a subset of \(T\text{.}\)

Definition.

Let \(f\x S \to T\text{.}\) If \(A \subseteq S\text{,}\) then the image of \(\boldsymbol{A}\) under \(\boldsymbol{f}\) is the set \(f ( A )\text{,}\) where

\begin{equation*} f ( A ) = \left\{f ( x ) \mid x \in A \right\}\!\text{.} \end{equation*}

If there is no confusion as to which function is being used, we call \(f ( A )\) the image of \(\boldsymbol{A}\).

We now consider the situation in which \(C\) is a subset of \(T\) and consider the subset of \(A\) consisting of all elements of \(T\) whose outputs are in \(C\text{.}\)

Definition.

Let \(f\x S \to T\text{.}\) If \(C \subseteq T\text{,}\) then the preimage of \(\boldsymbol{C}\) under \(\boldsymbol{f}\) is the set \(f^{-1} ( C )\text{,}\) where

\begin{equation*} f^{-1} ( C ) = \left\{x \in S \mid f ( x ) \in C \right\}\text{.} \end{equation*}

If there is no confusion as to which function is being used, we call \(f^{-1} ( C )\) the preimage of \(\boldsymbol{C}\). The preimage of the set \(C\) under \(f\) is also called the inverse image of \(\boldsymbol{C}\) under \(\boldsymbol{f}\).

Notice that the set \(f^{-1} ( C )\) is defined whether or not \(f^{-1}\) is a function.

Progress Check 6.42. Beginning Activity 1 Revisited.

Let \(S = \left\{ a, b, c, d \right\}\) and \(T = \left\{ s, t, u \right\}\text{.}\) Define \(f\x S \to T\) by

\begin{align*} f(a) \amp = s \amp f(b) \amp = t \amp f(c) \amp = t \amp f(d) \amp = s\text{.} \end{align*}

Let \(A = \left\{ a, c \right\}, B = \left\{ a, d \right\}, C = \left\{ s, t \right\}, \text{ and } D = \left\{ s, u \right\}\text{.}\)

Use your work in Beginning Activity 1 to determine each of the following sets:

(a)

\(f ( A )\)

Solution.

\(f ( A ) = \left\{ s, t \right\}\)

(b)

\(f ( B )\)

Solution.

\(f ( B ) = \left\{ f ( x ) \mid x \in B \right\} = \left\{ s \right\}\)

(c)

\(f^{-1} ( C )\)

Solution.

\(f^{-1} ( C ) = \left\{ x \in S \mid f ( x ) \in C \right\} = \left\{ a, b, c, d \right\}\)

(d)

\(f^{-1} ( D )\)

Solution.

\(f^{-1} ( D ) = \left\{ x \in S \mid f ( x ) \in D \right\} = \left\{ a, d \right\}\)

Example 6.43. Images and Preimages of Sets.

Let \(f\x \mathbb{R} \to \mathbb{R}\) be defined by \(f( x ) = x^2\text{,}\) for each \(x \in \mathbb{R}\text{.}\) The following results are based on the examples in Beginning Activity 1 and Beginning Activity 2.

  • Let \(A = \left\{ 1, 2, 3, -1 \right\}\text{.}\) Then \(f ( A ) = \left\{ 1, 4, 9 \right\}\text{.}\)

  • Let \(B = \left\{ 1, 9, 15, -1 \right\}\text{.}\) Then \(f^{-1} ( B ) = \left\{ -\sqrt{15}, -3, -1, 1, 3, \sqrt{15} \right\}\text{.}\)

The graphs from Beginning Activity 2 illustrate the following results:

  • If \(T\) is the closed interval \(\left[ 1, 2 \right]\text{,}\) then the image of the set \(T\) is

    \begin{align*} f ( T ) \amp = \left\{ f ( x ) \mid x \in \left[ 1, 2 \right] \right\}\\ \amp = \left[ 1, 4 \right]\text{.} \end{align*}
  • If \(C\) is the closed interval \(\left[ 1, 4 \right]\text{,}\) then the preimage of the set \(C\) is

    \begin{equation*} f^{-1} ( C ) = \left\{ x \in \mathbb{R} \mid f ( x ) \in \left[ 1, 4 \right] \right\} = \left[ -2, -1 \right] \cup \left[ 1, 2 \right]\text{.} \end{equation*}

Subsection Set Operations and Functions Acting on Sets

We will now consider the following situation: Let \(S\) and \(T\) be sets and let \(f\) be a function from \(S\) to \(T\text{.}\) Also, let \(A\) and \(B\) be subsets of \(S\) and let \(C\) and \(D\) be subsets of \(T\text{.}\) In the remainder of this section, we will consider the following situations and answer the questions posed in each case.

  • The set \(A \cap B\) is a subset of \(S\) and so \(f ( A \cap B )\) is a subset of \(T\text{.}\) In addition, \(f ( A )\) and \(f ( B )\) are subsets of \(T\text{.}\) Hence, \(f ( A ) \cap f ( B )\) is a subset of \(T\text{.}\)

    Is there any relationship between \(f ( A \cap B )\) and \(f ( A ) \cap f ( B )\text{?}\)

  • The set \(A \cup B\) is a subset of \(S\) and so \(f ( A \cup B )\) is a subset of \(T\text{.}\) In addition, \(f ( A )\) and \(f ( B )\) are subsets of \(T\text{.}\) Hence, \(f ( A ) \cup f ( B )\) is a subset of \(T\text{.}\)

    Is there any relationship between \(f ( A \cup B )\) and \(f ( A ) \cup f ( B )\text{?}\)

  • The set \(C \cap D\) is a subset of \(T\) and so \(f^{-1} ( C \cap D )\) is a subset of \(S\text{.}\) In addition, \(f^{-1} ( C )\) and \(f^{-1} ( D )\) are subsets of \(S\text{.}\) Hence, \(f^{-1} ( C ) \cap f^{-1} ( D )\) is a subset of \(S\text{.}\)

    Is there any relationship between the sets \(f^{-1} ( C \cap D )\) and \(f^{-1} ( C ) \cap f^{-1} ( D )\text{?}\)

  • The set \(C \cup D\) is a subset of \(T\) and so \(f^{-1} ( C \cup D )\) is a subset of \(S\text{.}\) In addition, \(f^{-1} ( C )\) and \(f^{-1} ( D )\) are subsets of \(S\text{.}\) Hence, \(f^{-1} ( C ) \cup f^{-1} ( D )\) is a subset of \(S\text{.}\)

    Is there any relationship between the sets \(f^{-1} ( C \cup D )\) and \(f^{-1} ( C ) \cup f^{-1} ( D )\text{?}\)

These and other questions will be explored in the next progress check.

Progress Check 6.44. Set Operations and Functions Acting on Sets.

In SectionĀ 6.2, we introduced functions involving congruences. For example, if we let

\begin{equation*} R_8 = \left\{0, 1, 2, 3, 4, 5, 6, 7 \right\}\text{,} \end{equation*}

then we can define \(f\x R_8 \to R_8\) by \(f ( x ) = r\text{,}\) where \(\left( x^2 + 2 \right) \equiv r \pmod 8\) and \(r \in R_8\text{.}\) Moreover, we shortened this notation to

\begin{equation*} f ( x ) = \left( x^2 + 2 \right) \pmod 8\text{.} \end{equation*}

We will use the following subsets of \(\R_8\text{:}\)

\begin{equation*} A = \left\{ 1, 2, 4 \right\} \qquad B = \left\{ 3, 4, 6 \right\} \qquad C = \left\{ 1, 2, 3 \right\} \qquad D = \left\{ 3, 4, 5 \right\}\text{.} \end{equation*}
(a)

Verify that \(f ( 0 ) = 2\text{,}\) \(f ( 1 ) = 3\text{,}\) \(f ( 2 ) = 6\text{,}\) and \(f ( 3 ) = 3\text{.}\) Then determine \(f ( 4 )\text{,}\) \(f ( 5 )\text{,}\) \(f ( 6 )\text{,}\) and \(f ( 7 )\text{.}\)

Solution.
\begin{align*} f ( 0 ) = 2 \amp \amp f ( 2 ) = 6 \amp \amp f ( 4 ) = 2 \amp \amp f ( 7 ) = 3\\ f ( 1 ) = 3 \amp \amp f ( 3 ) = 3 \amp \amp f ( 5 ) = 3 \amp \amp f ( 6 ) = 6 \end{align*}
(b)

Determine \(f (A )\text{,}\) \(f (B )\text{,}\) \(f^{-1} (C )\text{,}\) and \(f^{-1} (D )\text{.}\)

Solution.

\(\) \(\) \(\) \(\)

\begin{align*} f ( A ) = \left\{ 2, 3, 6 \right\} \amp \amp f ( B ) = \left\{ 2, 3, 6 \right\}\\ f^{-1} ( C ) = \left\{ 0, 1, 3, 4, 5, 7 \right\} \amp \amp f^{-1} ( D ) = \left\{ 1, 3, 5, 7 \right\} \end{align*}
(c)

For each of the following, determine the two subsets of \(R_8\) and then determine if there is a relationship between the two sets. For example, \(A \cap B = \left\{ 4 \right\}\) and since \(f(4) = 2\text{,}\) we see that \(f ( A \cap B ) = \left\{ 2 \right\}\text{.}\)

(i)

\(f ( A \cap B )\) and \(f ( A ) \cap f ( B )\)

Solution.

\(f ( A \cap B ) = \left\{ 2 \right\}\) and \(f ( A ) \cap f ( B ) = \left\{ 2, 3, 6 \right\}\text{.}\) So in this case, \(f ( A \cap B ) \subseteq f ( A ) \cap f ( B )\text{.}\)

(ii)

\(f ( A \cup B )\) and \(f ( A ) \cup f ( B )\)

Solution.

\(f ( A ) \cup f ( B ) = \left\{ 2, 3, 6 \right\}\) and \(f ( A \cup B ) = \left\{ 2, 3, 6 \right\}\text{.}\) So in this case, \(f ( A \cup B ) = f ( A ) \cup f ( B )\text{.}\)

(iii)

\(f^{-1} ( C \cap D )\) and \(f^{-1} ( C ) \cap f^{-1} ( D )\)

Solution.

\(f^{-1} ( C ) \cap f^{-1} ( D ) = f^{-1} ( C \cap D ) = \left\{ 1, 3, 5, 7 \right\}\text{.}\) So in this case, \(f^{-1} ( C \cap D ) = f^{-1} ( C ) \cap f^{-1} ( D )\text{.}\)

(iv)

\(f^{-1} ( C \cup D )\) and \(f^{-1} ( C ) \cup f^{-1} ( D )\)

Solution.

\(f^{-1} ( C ) \cup f^{-1} ( D ) = f^{-1} ( C \cup D ) = \left\{ 0, 1, 3, 4, 5, 7 \right\}\text{.}\) So in this case, \(f^{-1} ( C \cup D ) = f^{-1} ( C ) \cup f^{-1} ( D )\text{.}\)

(d)

Notice that \(f ( A )\) is a subset of the codomain, \(R_8\text{.}\) Consequently, \(f^{-1} \!\left( f ( A ) \right)\) is a subset of the domain, \(R_8\text{.}\) Is there any relation between \(A\) and \(f^{-1} \!\left( f ( A ) \right)\) in this case?

Solution.

\(f ( A ) = \left\{ 2, 3, 6 \right\}\text{.}\) Hence, \(f^{-1} \!\left( f ( A ) \right) = \left\{ 0, 1, 2, 3, 4, 5, 6, 7 \right\}\text{.}\) So in this case, \(A \subseteq f^{-1} \!\left( f ( A ) \right)\text{.}\)

(e)

Notice that \(f^{-1} ( C )\) is a subset of the domain, \(R_8\text{.}\) Consequently, \(f \!\left( f^{-1} ( C ) \right)\) is a subset of the codomain, \(R_8\text{.}\) Is there any relation between \(C\) and \(f \!\left( f^{-1} ( C ) \right)\) in this case?

Solution.

\(f^{-1} ( C ) = \left\{ 0, 1, 3, 4, 5, 7 \right\}\text{.}\) So \(f \!\left( f^{-1} ( C ) \right) = \left\{2, 3 \right\}\text{.}\) So in this case, \(f \!\left( f^{-1} ( C ) \right) \subseteq C\text{.}\)

Progress Check 6.45. Set Operations and Functions Acting on Sets.

Define \(f\x \mathbb{R} \to \mathbb{R}\) by \(f ( x ) = x^2 + 2\) for all \(x \in \mathbb{R}\text{.}\) It will be helpful to use the graph shown in FigureĀ 6.46.

Graph of a parabola opening up extending from x = -3 to x = 3 and y = 2 to y = 11.
Figure 6.46. Graph for Progress CheckĀ 6.45

We will use the following closed intervals:

\begin{equation*} A = \left[ 0, 3 \right] \qquad B = \left[ -2, 1\right] \qquad C = \left[ 2, 6 \right] \qquad D = \left[ 0, 3 \right] \end{equation*}
(a)

Verify that \(f ( A ) = [2, 11]\text{,}\) \(f ( B ) = [2, 6]\text{,}\) \(f^{-1} ( C ) = [-2, 2]\text{,}\) and that \(f^{-1} ( D ) = [-1, 1]\text{.}\)

(b)

Explain why

(i)

\(f ( A \cap B ) = [2, 3]\) and \(f ( A ) \cap f ( B ) = [2, 6]\text{.}\) So in this case, \(f ( A \cap B ) \subseteq f ( A ) \cap f ( B )\text{.}\)

(ii)

\(f ( A \cup B ) = [2, 11]\) and \(f ( A ) \cup f ( B ) = [2, 11]\text{.}\) So in this case, \(f ( A \cup B ) = f ( A ) \cup f ( B )\text{.}\)

(iii)

\(f^{-1} ( C \cap D ) = [-1, 1]\) and \(f^{-1} ( C ) \cap f^{-1} ( D ) = [-1, 1]\text{.}\) So in this case, \(f^{-1} ( C \cap D ) = f^{-1} ( C ) \cap f^{-1} ( D )\text{.}\)

(iv)

\(f^{-1} ( C \cup D ) = [-2, 2]\) and \(f^{-1} ( C ) \cup f^{-1} ( D ) = [-2, 2]\text{.}\) So in this case, \(f^{-1} ( C \cup D ) = f^{-1} ( C ) \cup f^{-1} ( D )\text{.}\)

(c)

Recall that \(A = [0, 3]\text{.}\) Notice \(f ( A ) = [2, 11]\) is a subset of the codomain, \(\mathbb{R}\text{.}\) Explain why \(f^{-1} \!\left( f ( A ) \right) = [-3, 3]\text{.}\) Since \(f^{-1} \!\left( f ( A ) \right)\) is a subset of the domain, \(\mathbb{R}\text{,}\) we see that in this case, \(A \subseteq f^{-1} \!\left( f ( A ) \right)\text{.}\)

(d)

Recall that \(C = [2, 6]\text{.}\) Notice that \(f^{-1} ( C ) = [-2, 2]\) is a subset of the domain, \(\mathbb{R}\text{.}\) Explain why \(f \!\left( f^{-1} ( C ) \right) = [2, 6]\text{.}\) Since \(f \!\left( f^{-1} ( C ) \right)\) is a subset of the codomain, \(\mathbb{R}\text{,}\) we see that in this case \(f \!\left( f^{-1} ( C ) \right) = C\text{.}\)

The examples in Progress CheckĀ 6.44 and Progress CheckĀ 6.45 were meant to illustrate general results about how functions act on sets. In particular, we investigated how the action of a function on sets interacts with the set operations of intersection and union. We will now state the theorems that these examples were meant to illustrate. Some of the proofs will be left as exercises.

Proof.

We will prove ItemĀ 1. The proof of ItemĀ 2 is ExerciseĀ 5.

Assume that \(f\x S \to T\) is a function and let \(A\) and \(B\) be subsets of \(S\text{.}\) We will prove that \(f ( A \cap B ) \subseteq f ( A ) \cap f ( B )\) by proving that for all \(y \in T\text{,}\) if \(y \in f ( A \cap B )\text{,}\) then \(y \in f ( A ) \cap f ( B )\text{.}\)

We assume that \(y \in f ( A \cap B )\text{.}\) This means that there exists an \(x \in A \cap B\) such that \(f ( x ) = y\text{.}\) Since \(x \in A \cap B\text{,}\) we conclude that \(x \in A\) and \(x \in B\text{.}\)

  • Since \(x \in A\) and \(f ( x ) = y\text{,}\) we conclude that \(y \in f ( A )\text{.}\)

  • Since \(x \in B\) and \(f ( x ) = y\text{,}\) we conclude that \(y \in f ( B )\text{.}\)

Since \(y \in f ( A )\) and \(y \in f ( B )\text{,}\) \(y \in f ( A ) \cap f ( B )\text{.}\) This proves that if \(y \in f ( A \cap B )\text{,}\) then \(y \in f ( A ) \cap f ( B )\text{.}\) Hence \(f ( A \cap B ) \subseteq f ( A ) \cap f ( B )\text{.}\)

Proof.

We will prove ItemĀ 2. The proof of ItemĀ 1 is ExerciseĀ 6.

Assume that \(f\x S \to T\) is a function and that \(C\) and \(D\) are subsets of \(T\text{.}\) We will prove that \(f^{-1} ( C \cup D ) = f^{-1} ( C ) \cup f^{-1} ( D )\) by proving that each set is a subset of the other.

We start by letting \(x\) be an element of \(f^{-1} ( C \cup D )\text{.}\) This means that \(f ( x )\) is an element of \(C \cup D\text{.}\) Hence,

\begin{equation*} f ( x ) \in C \text{ or } f ( x ) \in D\text{.} \end{equation*}

In the case where \(f ( x ) \in C\text{,}\) we conclude that \(x \in f^{-1} ( C )\text{,}\) and hence that \(x \in f^{-1} ( C ) \cup f^{-1} ( D )\text{.}\) In the case where \(f ( x ) \in D\text{,}\) we see that \(x \in f^{-1} ( D )\text{,}\) and hence that \(x \in f^{-1} ( C ) \cup f^{-1} ( D )\text{.}\) So in both cases, \(x \in f^{-1} ( C ) \cup f^{-1} ( D )\text{,}\) and we have proved that \(f^{-1} ( C \cup D ) \subseteq f^{-1} ( C ) \cup f^{-1} ( D )\text{.}\)

We now let \(t \in f^{-1} ( C ) \cup f^{-1} ( D )\text{.}\) This means that

\begin{equation*} t \in f^{-1} ( C ) \text{ or } t \in f^{-1} ( D )\text{.} \end{equation*}
  • In the case where \(t \in f^{-1} ( C )\text{,}\) we conclude that \(f ( t ) \in C\) and hence that \(f ( t ) \in C \cup D\text{.}\) This means that \(t \in f^{-1} ( C \cup D )\text{.}\)

  • Similarly, when \(t \in f^{-1} ( D )\text{,}\) it follows that \(f ( t ) \in D\) and hence that \(f ( t ) \in C \cup D\text{.}\) This means that \(t \in f^{-1} ( C \cup D )\text{.}\)

These two cases prove that if \(t \in f^{-1} ( C ) \cup f^{-1} ( D )\text{,}\) then \(t \in f^{-1} ( C \cup D )\text{.}\) Therefore, \(f^{-1} ( C ) \cup f^{-1} ( D ) \subseteq f^{-1} ( C \cup D )\text{.}\)

Since we have now proved that each of the two sets is a subset of the other set, we can conclude that \(f^{-1} ( C \cup D ) = f^{-1} ( C ) \cup f^{-1} ( D )\text{.}\)

Proof.

We will prove ItemĀ 1. The proof of ItemĀ 2 is ExerciseĀ 7.

To prove ItemĀ 1, we will prove that for all \(a \in S\text{,}\) if \(a \in A\text{,}\) then

\(a \in f^{-1} \!\left( f ( A ) \right)\text{.}\) So let \(a \in A\text{.}\) Then, by definition, \(f ( a ) \in f ( A )\text{.}\) We know that \(f ( A ) \subseteq T\text{,}\) and so \(f^{-1} \!\left( f ( A ) \right) \subseteq S\text{.}\) Notice that

\begin{equation*} f^{-1} \!\left( f ( A ) \right) = \left\{ x \in S \mid f ( x ) \in f ( A ) \right\}\text{.} \end{equation*}

Since \(f ( a ) \in f ( A )\text{,}\) we use this to conclude that \(a \in f^{-1}\!\left ( f ( A ) \right)\text{.}\) This proves that if \(a \in A\text{,}\) then \(a \in f^{-1} \!\left( f ( A ) \right)\text{,}\) and hence that \(A \subseteq f^{-1} \!\left( f ( A ) \right)\text{.}\)

Exercises Exercises

1.

Let \(f\x S \to T\text{,}\) let \(A\) and \(B\) be subsets of \(S\text{,}\) and let \(C\) and \(D\) be subsets of \(T\text{.}\) For \(x \in S\) and \(y \in T\text{,}\) carefully explain what it means to say that

(a)

\(y \in f ( A \cap B )\)

Answer.

There exists an \(x \in A \cap B\) such that \(f ( x ) = y\text{.}\)

(b)

\(y \in f ( A \cup B )\)

(c)

\(y \in f ( A ) \cap f ( B )\)

(d)

\(y \in f ( A ) \cup f ( B )\)

Answer.

There exists an \(a \in A\) such that \(f ( a ) = y\) or there exists a \(b \in B\) such that \(f ( b ) = y\text{.}\)

(e)

\(x \in f^{-1} ( C \cap D )\)

(f)

\(x \in f^{-1} ( C \cup D )\)

Answer.

\(f ( x ) \in C \cup D\)

(g)

\(x \in f^{-1} ( C ) \cap f^{-1} ( D )\)

(h)

\(x \in f^{-1} ( C ) \cup f^{-1} ( D )\)

Answer.

\(f ( x ) \in C\) or \(f ( x ) \in D\)

2.

Let \(f\x \mathbb{R} \to \mathbb{R}\) by \(f ( x ) = -2x + 1\text{.}\) Let \(A = \left[ 2, 5 \right]\) \(B = \left[ -1, 3 \right]\) \(C = \left[ -2, 3 \right]\) \(D = \left[ 1, 4 \right]\text{.}\) Find each of the following:

(a)

\(f ( A )\)

(b)

\(f^{-1} ( f ( A ) )\)

Answer.

\(f^{-1} \left( f ( A ) \right) = \left[ 2, 5 \right]\text{.}\)

(c)

\(f^{-1} ( C )\)

(d)

\(f ( f^{-1} ( C ) )\)

Answer.

\(f ( f^{-1} ( C ) ) = \left[ -2, 3 \right]\)

(e)

\(f ( A \cap B )\)

Answer.

\(f ( A \cap B ) = \left[ -5, -3 \right]\)

(f)

\(f ( A ) \cap f ( B )\)

Answer.

\(f ( A ) \cap f ( B ) = \left[ -5, -3 \right]\)

(g)

\(f^{-1} ( C \cap D )\)

(h)

\(f^{-1} ( C ) \cap f^{-1} ( D )\)

3.

Let \(g\x \mathbb{N} \times \mathbb{N} \to \mathbb{N}\) by \(g ( m, n ) = 2^m 3^n\text{,}\) let \(A = \left\{ 1, 2, 3 \right\}\text{,}\) and let \(C = \left\{ 1, 4, 6, 9, 12, 16, 18 \right\}\text{.}\) Find

(a)

\(g ( A \times A )\)

Answer.

\(g ( A \times A ) = \left\{6, 12, 18, 24, 36, 54, 72, 108, 216 \right\}\)

(b)

\(g^{-1} ( C )\)

Answer.

\(g^{-1} ( C ) = \left\{ ( 1, 1 ), ( 2, 1 ), ( 1, 2 ) \right\}\)

(c)

\(g^{-1} \!\left( g ( A \times A ) \right)\)

(d)

\(g \!\left( g^{-1} ( C ) \right)\)

4.

Let \(S = \left\{1, 2, 3, 4 \right\}\text{.}\)

(a)

Define \(F\x S \to \mathbb{N}\) by \(F ( x ) = x^2\) for each \(x \in S\text{.}\) What is the range of the function \(F\) and what is \(F ( S )\text{?}\) How do these two sets compare?

Answer.

\(\text{ range} ( F ) = F ( S ) = \left\{1, 4, 9, 16 \right\}\)

(b)

Now let \(A\) and \(B\) be sets and let \(f\x A \to B\) be an arbitrary function from \(A\) to \(B\text{.}\)

Explain why \(f ( A ) = \text{ range} ( f )\text{.}\)

(c)

Define a function \(g\x A \to f ( A )\) by \(g ( x ) = f ( x )\) for all \(x\) in \(A\text{.}\) Prove that the function \(g\) is a surjection.

5.

Prove ItemĀ 2 of TheoremĀ 6.47. Let \(f\x S \to T\) be a function and let \(A\) and \(B\) be subsets of \(S\text{.}\) Then \(f ( A \cup B ) = f ( A ) \cup f ( B )\text{.}\)

Answer.

To prove \(f \left( A \cup B \right) \subseteq f \left( A \right) \cup f \left( B \right)\text{,}\) let \(y \in f \left( A \cup B \right)\text{.}\) Then there exists an \(x \in A \cup B\) such that \(f \left( x \right) = y\text{.}\) Since \(x \in A \cup B\text{,}\) \(x \in A\) or \(x \in B\text{.}\) We first note that if \(x \in A\text{,}\) then \(y = f \left( x \right)\) is in \(f \left( A \right)\text{.}\) In addition, if \(x \in B\text{,}\) then \(y = f \left( x \right)\) is in \(f \left( B \right)\text{.}\) In both cases, \(y = f \left( x \right) \in f \left( A \right) \cup f \left( B \right)\) and hence, \(f \left( A \cup B \right) \subseteq f \left( A \right) \cup f \left( B \right)\text{.}\)

Now let \(y \in f \left( A \right) \cup f \left( B \right)\text{.}\) If \(y \in f \left( A \right)\text{,}\) then there exists an \(x \in A\) such that \(y = f \left( x \right)\text{.}\) Since \(A \subseteq A \cup B\text{,}\) this implies that \(y = f \left( x \right) \in f \left( A \cup B \right)\text{.}\) In a similar manner, we can prove that if \(y \in f \left( B \right)\text{,}\) then \(y \in f \left( A \cup B \right)\text{.}\) Therefore, \(f \left( A \right) \cup f \left( B \right) \subseteq f \left( A \cup B \right)\text{.}\)

6.

Prove ItemĀ 1 of TheoremĀ 6.48. Let \(f\x S \to T\) be a function and let \(C\) and \(D\) be subsets of \(T\text{.}\) Then \(f^{-1} ( C \cap D ) = f^{-1} ( C ) \cap f^{-1} ( D )\text{.}\)

Answer.

To prove that \(f^{-1} ( C \cap D ) \subseteq f^{-1} ( C ) \cap f^{-1} ( D )\text{,}\) let \(x \in f^{-1} ( C \cap D )\text{.}\) Then \(f(x) \in C \cap D\text{.}\) How do we prove that \(x \in f^{-1} ( C ) \cap f^{-1} ( D )\text{?}\)

7.

Prove ItemĀ 2 of TheoremĀ 6.49. Let \(f\x S \to T\) be a function and let \(C \subseteq T\text{.}\) Then \(f \!\left( f^{-1} ( C ) \right) \subseteq C\text{.}\)

8.

Let \(f\x S \to T\) and let \(A\) and \(B\) be subsets of \(S\text{.}\) Prove or disprove each of the following:

(a)

If \(A \subseteq B\text{,}\) then \(f( A ) \subseteq f( B )\text{.}\)

(b)

If \(f ( A ) \subseteq f (B )\text{,}\) then \(A \subseteq B\text{.}\)

9.

Let \(f\x S \to T\) and let \(C\) and \(D\) be subsets of \(T\text{.}\) Prove or disprove each of the following:

(a)

If \(C \subseteq D\text{,}\) then \(f^{-1} ( C ) \subseteq f^{-1} (D )\text{.}\)

Answer.

This statement is true.

(b)

If \(f^{-1} ( C ) \subseteq f^{-1} (D )\text{,}\) then \(C \subseteq D\text{.}\)

Answer.

This statement is false.

10.

Prove or disprove:

If \(f\x S \to T\) is a function and \(A\) and \(B\) are subsets of \(S\text{,}\) then \(f ( A ) \cap f ( B ) \subseteq f ( A \cap B )\text{.}\)

Note: ItemĀ 1 of TheoremĀ 6.47 states that \(f ( A \cap B ) \subseteq f ( A ) \cap f ( B )\text{.}\)

11.

Let \(f\x S \to T\) be a function, let \(A \subseteq S\text{,}\) and let \(C \subseteq T\text{.}\)

(a)

ItemĀ 1 of TheoremĀ 6.49 states that \(A \subseteq f^{-1} \!\left( f ( A ) \right)\text{.}\) Give an example where \(f^{-1} \!\left( f ( A ) \right) \not \subseteq A\text{.}\)

(b)

ItemĀ 2 of TheoremĀ 6.49 states that \(f \!\left( f^{-1} ( C ) \right) \subseteq C\text{.}\) Give an example where \(C \not \subseteq f \!\left( f^{-1} ( C ) \right)\text{.}\)

12.

Is the following proposition true or false? Justify your conclusion with a proof or a counterexample.

If \(f\x S \to T\) is an injection and \(A \subseteq S\text{,}\) then \(f^{-1} \!\left( f ( A ) \right) = A\text{.}\)

13.

Is the following proposition true or false? Justify your conclusion with a proof or a counterexample.

If \(f\x S \to T\) is a surjection and \(C \subseteq T\text{,}\) then \(f \!\left( f^{-1} ( C ) \right) = C\text{.}\)

14.

Let \(f\x S \to T\text{.}\) Prove that \(f ( A \cap B ) = f ( A ) \cap f ( B )\) for all subsets \(A\) and \(B\) of \(S\) if and only if \(f\) is an injection.