Mathematical-Reasoning · Unit 15 · Video 1 · Interactive Practice

Intersection, Union, Difference, Complement: And, Or, Not for Sets

IKey Formulas

OperationDefinitionLogic word
IntersectionA∩B={x∈U∣x∈A and x∈B}A \cap B = \{x \in U \mid x \in A \text{ and } x \in B\}and
UnionA∪B={x∈U∣x∈A or x∈B}A \cup B = \{x \in U \mid x \in A \text{ or } x \in B\}or (inclusive)
Set differenceA−B={x∈U∣x∈A and x∉B}A - B = \{x \in U \mid x \in A \text{ and } x \notin B\}and not
ComplementAc={x∈U∣x∉A}A^c = \{x \in U \mid x \notin A\}not

Key Insight: each definition is a logical operator written inside the braces. Order matters for the difference (A−B≠B−AA - B \ne B - A in general), and the complement always needs a stated universal set UU.

IIOne Chart, Four Operations

An element of UU belongs to the new set exactly when the logic word holds for its membership in AA and BB.

IIIShading Compound Sets

A compound set is built inside out: form the inner set first, then apply the outer operation.

💡 (A∩B)c(A \cap B)^c and Ac∪BcA^c \cup B^c shade the same regions and list the same elements; the next video shows why this equality holds for every pair of sets.

IVThe Complement Depends on U

The same set A={0,1,2,3,9}A = \{0, 1, 2, 3, 9\} has a different complement in each universal set.

VQuiz Questions

Problem 1 · Intersection by Listing

Given: U={1,2,…,10}U = \{1, 2, \ldots, 10\}, A={1,2,4,7,8}A = \{1, 2, 4, 7, 8\} and B={2,3,4,8,9}B = \{2, 3, 4, 8, 9\} — find A∩BA \cap B.

✅ Correct! 22, 44 and 88 are the only elements that appear in both lists.
❌ That is the union. A∪BA \cup B collects elements in AA or in BB; the intersection keeps only those in AA and in BB.
❌ That is A−BA - B. 11 and 77 are in AA but not in BB; the intersection wants elements in both sets.
❌ That is B−AB - A. 33 and 99 are in BB but not in AA, so they are not in A∩BA \cap B.
Show solution

Go through AA one element at a time and keep those that are also in BB:

1∉B1 \notin B, 2∈B2 \in B, 4∈B4 \in B, 7∉B7 \notin B, 8∈B8 \in B.

A∩B={x∈U∣x∈A and x∈B}={2,4,8}A \cap B = \{x \in U \mid x \in A \text{ and } x \in B\} = \{2, 4, 8\}

Problem 2 · The Order of a Difference

Given: U={1,2,…,10}U = \{1, 2, \ldots, 10\}, A={1,2,3,4,5,6}A = \{1, 2, 3, 4, 5, 6\} and B={1,3,5,7,9}B = \{1, 3, 5, 7, 9\} — find B−AB - A.

✅ Correct! B−AB - A keeps the elements of BB that are not in AA: only 77 and 99.
❌ Order reversed. {2,4,6}\{2, 4, 6\} is A−BA - B. In B−AB - A the elements come from BB, and 22, 44, 66 are not in BB.
❌ That is A∩BA \cap B. 11, 33 and 55 are in BB but they are also in AA, so the difference removes them.
❌ That is AcA^c. You removed AA's elements from UU instead of from BB; 88 and 1010 are not in BB.
Show solution

B−A={x∈U∣x∈B and x∉A}B - A = \{x \in U \mid x \in B \text{ and } x \notin A\}. Check each element of BB:

  • 1,3,5∈A1, 3, 5 \in A, so they are removed.
  • 7,9∉A7, 9 \notin A, so they stay.
B−A={7,9},A−B={2,4,6}B - A = \{7, 9\}, \qquad A - B = \{2, 4, 6\}

The two differences are different sets, which is why the order of AA and BB matters.

Problem 3 · Where the Parentheses Go

Given: U={1,2,…,8}U = \{1, 2, \ldots, 8\}, A={1,2,3,4}A = \{1, 2, 3, 4\} and B={3,4,5,6}B = \{3, 4, 5, 6\} — find (A∩B)c(A \cap B)^c.

✅ Correct! Inside out: A∩B={3,4}A \cap B = \{3, 4\}, and its complement is everything else in UU.
❌ That is Ac∩BcA^c \cap B^c. Ac={5,6,7,8}A^c = \{5, 6, 7, 8\} and Bc={1,2,7,8}B^c = \{1, 2, 7, 8\} share only 77 and 88, but the parentheses say to form A∩BA \cap B first and then take its complement.
❌ You stopped at the inner set. {3,4}\{3, 4\} is A∩BA \cap B; the outer complement still has to be applied.
❌ Missing elements. 77 and 88 are in neither AA nor BB, so they are not in A∩BA \cap B and therefore belong to its complement.
Show solution

Inner set: A∩B={3,4}A \cap B = \{3, 4\}.

Outer operation: remove 33 and 44 from UU:

(A∩B)c={1,2,5,6,7,8}(A \cap B)^c = \{1, 2, 5, 6, 7, 8\}

Compare Ac∩Bc={5,6,7,8}∩{1,2,7,8}={7,8}A^c \cap B^c = \{5, 6, 7, 8\} \cap \{1, 2, 7, 8\} = \{7, 8\}, a different set: the parentheses matter.

Problem 4 · Operations on Infinite Sets

Given: U=ZU = \mathbb{Z}, A={x∈Z∣x is even}A = \{x \in \mathbb{Z} \mid x \text{ is even}\} and B={x∈Z∣x≥3}B = \{x \in \mathbb{Z} \mid x \ge 3\} — find B−AB - A.

✅ Correct! B−A={x∈Z∣x≥3 and x is odd}B - A = \{x \in \mathbb{Z} \mid x \ge 3 \text{ and } x \text{ is odd}\}.
❌ That is A∩BA \cap B. These integers are at least 33 and even; the difference removes the even ones instead of keeping them.
❌ Order reversed. These are the even integers less than 33, which is A−BA - B.
❌ That is AcA^c. These are all the odd integers; B−AB - A also requires x≥3x \ge 3, so −1-1 and 11 do not belong.
Show solution

Write the definition and substitute the two properties:

B−A={x∈Z∣x∈B and x∉A}={x∈Z∣x≥3 and x is not even}B - A = \{x \in \mathbb{Z} \mid x \in B \text{ and } x \notin A\} = \{x \in \mathbb{Z} \mid x \ge 3 \text{ and } x \text{ is not even}\}

An integer that is not even is odd, so B−AB - A is the set of odd integers that are at least 33:

B−A={3,5,7,9,…}B - A = \{3, 5, 7, 9, \ldots\}

Solved: 0 / 4