Relative complement · Exercise-RELATIVE-COMPLEMENT-010

Step-by-step solved exercise: Operations and families

Let \(\displaystyle A = \{1,\ldots,8\}\) and \(\displaystyle B = \{x \in A : x > 5\}\). What is \(\displaystyle |A \setminus B|\)?

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. The elements of \(\displaystyle A\) greater than \(\displaystyle 5\) are \(\displaystyle 6\), \(\displaystyle 7\), and \(\displaystyle 8\).

    \[\displaystyle B = \{6,7,8\}\]
  2. \(\displaystyle A \setminus B\) keeps the elements of \(\displaystyle A\) that are not in \(\displaystyle B\).

    \[\displaystyle A \setminus B = \{x \in A : x \notin B\}\]
  3. The numbers \(\displaystyle 1\), \(\displaystyle 2\), \(\displaystyle 3\), \(\displaystyle 4\), and \(\displaystyle 5\) remain.

    \[\displaystyle A \setminus B = \{1,2,3,4,5\}\]
  4. Therefore, the set has \(\displaystyle 5\) elements.

    \[\displaystyle |A \setminus B| = 5\]

Answer

\(\displaystyle 5\)

🎯 Build my path to this exercise