Exercises – Long Day#

Exercise 1: Sets in Roster Form#

Let \(A\) and \(B\) be finite sets given in the following roster forms:

\[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?

Question b#

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

Question c#

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

Exercise 2: Sets in Roster Form#

Let \(C\) and \(D\) be sets given in the roster forms:

\[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 visualized by 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 the following identity:

\(|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\}.\]

Question a#

Is the following function surjective, injective and/or bijective?

\(f_1 :A\rightarrow B\)

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

Question b#

Is the following function surjective, injective and/or bijective?

\(f_2 :D\rightarrow B\)

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

Question c#

Is the following function surjective, injective and/or bijective?

\(f_3 :C\rightarrow B\)

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

Question d#

Is the following function surjective, injective and/or bijective?

\(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\) has the functional expression \(f(x)=2-x\), while the function \(g\) has the functional expression \(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 functional expression, domain, co-domain 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#

We are given a function \(f: \mathbb{R} \rightarrow \mathbb{R}\) by its functional expression

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

Question a#

Let \(g: \mathbb{R} \rightarrow \mathbb{R}\) be a function with the functional expression

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

Show using Definition 2.2.1 from the textbook that \(g\) is the inverse function of \(f\).

Question b#

Justify that \(f\) is bijective.

Opgave 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 functional 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}\) with the functional expression

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

Question a#

Bring the function \(h\) to 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 functional expression and co-domain, 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 delimit the co-domain 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 directly, \(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 a functional expression for the inverse function \({h_1}^{-1}\).

Question d#

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

Are you Done with all Exercises?#

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