Exercises – Long Day#

Exercise 1: Sets in roster form#

Let \(A\) and \(B\) be finite sets given as follows:

\[A = \{n \in \Bbb{N}\, | \, n=m^2 \,\,\,\mathrm{where} \,\,\, m \in \{1,2,3,4,5\}\},\]
\[B = \{n \in \Bbb{N} \, |\, n=2m-1 \,\,\,\mathrm{where} \,\,\, m \in \{1,2,3,4,5\}\}.\]

Question a#

Which elements do the sets \(A\) and \(B\) contain? State your answers in roster form.

Question b#

Which elements do the sets \(A \cap B\) and \(A \cup B\,\) contain? State your answers in roster form.

Question c#

Which elements do the sets \(A \setminus B\) and \(B \setminus A\,\) contain?

Exercise 2: Sets in set-builder notation#

Let \(C\) and \(D\) be the following sets:

\[C = \{n \in \Bbb{N}\, | \, n=2m \,\,\,\mathrm{where} \,\,\, m \in \Bbb{N}\},\]
\[D = \{n \in \Bbb{N}\, |\, n=3m \,\,\,\mathrm{where} \,\,\, m \in \Bbb{N}\}.\]

Describe which elements the sets \(C \cap D\) and \(C \cup D\,\) contain.

Exercise 3: The classical sets of numbers#

Describe in your own words the sets \(\Bbb{R} \setminus \Bbb{Q}\) and \(\Bbb{Z} \setminus \Bbb{N}\).

Exercise 4: Rules for set operations#

Question a#

Some identities from set theory can be illustrated by drawing a circle diagram, also known as a Venn diagram. In the textbook the concepts of union, set intersection and set difference are illustrated in this way in Section 2.1. Also, the set identities in Theorem 2.1.2 in the textbook can be visualised with the help of such diagrams.

Draw circle diagrams that visualise the identities in Equations (2.8) through (2.11) in Theorem 2.1.2 of the textbook.

Question b#

Use propositional logic to prove the identities given in Equations (2.4) and (2.10) in Theorem 2.1.2 in the textbook.

Question c#

Let \(A\) and \(B\) be sets with a finite number of elements. Let the notation \(|W|\) denote the number of elements within a given set \(W\). Explain why the following identity holds:

\(|A \cup B| = |A| + |B| - |A \cap B|\).

Exercise 5: Surjective, injective and bijective#

The following four sets are given:

\[A=\{ x \in \Bbb N \, | \, 1 \leq x \leq 7 \},\]
\[B=\{ x^2 \, | \, x \in A\},\]
\[C=\{ x \in \Bbb N \, | \, 1 \leq x \leq 6 \},\]
\[D=\{x \in \Bbb Z \, | \, -7 \leq x \leq 7 \wedge x \neq 0\}.\]

Below, four functions are defined. Determine whether each of them is surjective, injective and/or bijective.

Question a#

\(f_1 :A\rightarrow B\)

\(\ \ x \mapsto x^2\)

Question b#

\(f_2 :D\rightarrow B\)

\(\ \ x \mapsto x^2\)

Question c#

\(f_3 :C\rightarrow B\)

\(\ \ x \mapsto x^2\)

Question d#

\(f_4 :\Bbb Z\rightarrow \Bbb Z\)

\(\ \ x \mapsto |x|\)

Exercise 6: Composite functions#

We are given the set \(A=\{0,1,2\}\) as well as two functions \(f: A \to A\) and \(g: A \to \mathbb{R}\). The function \(f\) is given by \(f(x)=2-x\), while the function \(g\) is given by \(g(x)=2x+\mathrm e^x\).

Question a#

Is the composite function \(f \circ g\) defined? What about \(g \circ f\)?

Question b#

Compute \((g\circ f)(a)\) for all \(a \in A\).

Question c#

Determine the expression, domain, codomain and range of the function \(g \circ f\).

Question d#

Is the function \(g \circ f\) injective? What about surjective?

Exercise 7: An inverse function#

Let a function \(f: \mathbb{R} \rightarrow \mathbb{R}\) be given by

\[f(x)=3x-7.\]

Question a#

Let \(g: \mathbb{R} \rightarrow \mathbb{R}\) be a function given by

\[g(x)=(x+7)/3.\]

Use Definition 2.2.1 from the textbook to show that \(g\) is the inverse function of \(f\).

Question b#

Show that \(f\) is bijective.

Exercise 8: A piecewise defined function#

We define a function \(f: \mathbb{R} \to \mathbb{R}\) in the following way:

\(f(x)= \left\{ \begin{array}{ll} \sin(x) & \text{ if } x \le -\pi/2, \\ 2x & \text{ if } -\pi/2 < x < 0, \\ \mathrm e^x & \text{ if } x \ge 0. \\ \end{array} \right. \)

This function is an example of a piecewise defined function (see also Example 2.2.7 in the textbook) since the expression consists of three “pieces” that apply depending on which value \(x\) takes: one piece applies when \(x \le -\pi/2\), another when \(-\pi/2 < x < 0\) and yet another when \(x \ge 0\).

Question a#

Calculate \(f(-\pi)\), \(f(0)\), \(f(-3/2)\), \(f(-\pi/2)\) and \(f(1)\).

Question b#

Sketch the graph of the function \(f\).

Question c#

Is the given function \(f\) injective? What about surjective? Justify your answer.

Exercise 9: Quadratic polynomial functions#

We consider a function \(h: \mathbb{R} \rightarrow \mathbb{R}\) given by

\[h(x)=2x^2 -20x +57.\]

Question a#

Write the function \(h\) in the form \(h(x)=2(x-k_1)^2+k_2\), and state the constants \(k_1\) and \(k_2\). Use this form to determine the range of \(h\).

Question b#

For a given subset \(J \subseteq {\Bbb R}_{\geq 0}\), the restriction of \(h\) to \(J\) is the function we obtain from \(h\) by keeping the same expression and codomain, while restricting the domain to \(J\). State the largest possible interval \(J \subseteq {\Bbb R}_{\geq 0}\) on which the restriction of \(h\) to \(J\) becomes injective.

Question c#

We now consider the restriction of \(h\) to the interval \(J\) from Question b and restrict the codomain of this function to the set \(\mathbb{R}_{\ge 7}\) from Question a. The resulting function is bijective and is denoted by \(h_1\). More precisely, \(h_1\) is the function \(h_1: J \rightarrow \mathbb{R}_{\ge 7}\) that is given by \(h_1(x)=2x^2 -20x +57\).

Provide an expression for the inverse function \({h_1}^{-1}\).

Question d#

State the domain and the range of \({h_1}^{-1}\).

Have you finished all the exercises?#

If it went too quickly and you are eager for more, then click here for some challenging optional extra exercises.