7.2 Set Operations (Union, Intersection, Complement) & Venn Diagrams

Key Takeaways

  • The union A∪BA \cup B contains elements in AA, in BB, or in both (inclusive OR); the intersection A∩BA \cap B contains elements in both AA and BB simultaneously (AND).

  • The relative complement (difference) A∖BA \setminus B consists of elements in AA but not in BB (A∖B=A∩B′A \setminus B = A \cap B'), while the absolute complement A′A' consists of all elements in universal set UU that do not belong to AA.

  • The Principle of Inclusion-Exclusion (PIE) for two sets is ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣|A \cup B| = |A| + |B| - |A \cap B|; for three sets, ∣A∪B∪C∣=∣A∣+∣B∣+∣C∣−∣A∩B∣−∣A∩C∣−∣B∩C∣+∣A∩B∩C∣|A \cup B \cup C| = |A| + |B| + |C| - |A \cap B| - |A \cap C| - |B \cap C| + |A \cap B \cap C|.

  • Solving multi-set Venn diagram survey problems requires working systematically from the innermost triple intersection outward to pairwise overlaps, single-set regions, and the exterior complement.

  • De Morgan's Laws for sets establish that (A∪B)′=A′∩B′(A \cup B)' = A' \cap B' (the complement of a union is the intersection of complements) and (A∩B)′=A′∪B′(A \cap B)' = A' \cup B' (the complement of an intersection is the union of complements).

Last updated: August 2026

7.2 Set Operations (Union, Intersection, Complement) & Venn Diagrams

Set operations allow mathematicians to combine, filter, and compare collections of data. On the CLEP College Mathematics exam, questions involving unions, intersections, complements, and 2-set/3-set Venn diagrams are among the most frequently tested logic topics. Mastering systematic problem-solving workflows ensures quick, error-free execution on survey and word problems.


1. Fundamental Set Operations

Let UU be the universal set, and let AA and BB be arbitrary subsets of UU.

+-----------------------------------------------------------------------------+
|                        CORE SET OPERATIONS SUMMARY                          |
|                                                                             |
|   Operation      Notation        Set-Builder Definition      Logical Link   |
|   ---------      --------        ----------------------      ------------   |
|   Union          A \cup B        {x | x in A or x in B}      Disjunction    |
|   Intersection   A \cap B        {x | x in A and x in B}     Conjunction    |
|   Difference     A \setminus B   {x | x in A and x notin B}  Negation       |
|   Complement     A' or A^c       {x in U | x notin A}        Absolute NOT   |
+-----------------------------------------------------------------------------+

Union (A∪BA \cup B)

The union of AA and BB is the set of all elements that belong to AA, to BB, or to both (inclusive OR):

A∪B={x∣x∈A∨x∈B}A \cup B = \{x \mid x \in A \lor x \in B\}
  • Key Property: ∣A∪B∣≥max⁡(∣A∣,∣B∣)|A \cup B| \ge \max(|A|, |B|).

Intersection (A∩BA \cap B)

The intersection of AA and BB is the set of all elements that belong simultaneously to both AA and BB (AND):

A∩B={x∣x∈A∧x∈B}A \cap B = \{x \mid x \in A \land x \in B\}
  • Key Property: ∣A∩B∣≤min⁡(∣A∣,∣B∣)|A \cap B| \le \min(|A|, |B|). If A∩B=∅A \cap B = \emptyset, then AA and BB are disjoint.

Set Difference / Relative Complement (A∖BA \setminus B or A−BA - B)

The relative complement of BB in AA consists of all elements that belong to AA but do NOT belong to BB:

A∖B={x∣x∈A∧x∉B}=A∩B′A \setminus B = \{x \mid x \in A \land x \notin B\} = A \cap B'
  • Note: A∖B≠B∖AA \setminus B \neq B \setminus A in general (set difference is non-commutative).

Absolute Complement (A′A' or AcA^c or A‾\overline{A})

The absolute complement of AA consists of all elements in the universal set UU that are not in AA:

A′=U∖A={x∈U∣x∉A}A' = U \setminus A = \{x \in U \mid x \notin A\}

Essential Complement Algebraic Identities

  • Double Complement: (A′)′=A(A')' = A
  • Universal Bounds: U′=∅U' = \emptyset and ∅′=U\emptyset' = U
  • Union with Complement: A∪A′=UA \cup A' = U
  • Intersection with Complement: A∩A′=∅A \cap A' = \emptyset

2. De Morgan's Laws & Distributive Laws for Sets

De Morgan's Laws for Sets

De Morgan's Laws describe how complementation interacts with unions and intersections by "flipping" the operation:

  1. Complement of a Union:

    (A∪B)′=A′∩B′(A \cup B)' = A' \cap B'

    Interpretation: The set of elements that are NOT in AA or BB equals the set of elements that are outside AA AND outside BB.

  2. Complement of an Intersection:

    (A∩B)′=A′∪B′(A \cap B)' = A' \cup B'

    Interpretation: The set of elements NOT in both AA and BB equals the set of elements outside AA OR outside BB.

Distributive Laws for Sets

  • Intersection over Union: A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C)
  • Union over Intersection: A∪(B∩C)=(A∪B)∩(A∪C)A \cup (B \cap C) = (A \cup B) \cap (A \cup C)

3. The Principle of Inclusion-Exclusion (PIE)

When calculating the cardinality of a union, simply adding ∣A∣+∣B∣|A| + |B| double-counts the elements in the overlapping intersection A∩BA \cap B. PIE corrects for this overlap.

Two-Set Inclusion-Exclusion Formula

∣A∪B∣=∣A∣+∣B∣−∣A∩B∣|A \cup B| = |A| + |B| - |A \cap B|

Rearranging to solve for the intersection:

∣A∩B∣=∣A∣+∣B∣−∣A∪B∣|A \cap B| = |A| + |B| - |A \cup B|
+-----------------------------------------------------------------------------+
|                        TWO-SET VENN DIAGRAM REGIONS                         |
|                                                                             |
|   +-------------------------- Universal Set U --------------------------+   |
|   |                                                                     |   |
|   |        Set A                             Set B                      |   |
|   |    +-----------+                     +-----------+                  |   |
|   |   /   Region I  \                   /  Region III \                 |   |
|   |  /   (A only)    \   Region II     /   (B only)    \                |   |
|   | |   A \setminus B | (A \cap B)    |     B \setminus A |             |   |
|   |  \               /                 \               /                |   |
|   |   +-------------+-------------------+-------------+                 |   |
|   |                                                                     |   |
|   |               Region IV: (A \cup B)'  (Neither A nor B)             |   |
|   +---------------------------------------------------------------------+   |
+-----------------------------------------------------------------------------+
  • Region I (AA only): ∣A∣−∣A∩B∣|A| - |A \cap B|
  • Region II (A∩BA \cap B): Common to both AA and BB
  • Region III (BB only): ∣B∣−∣A∩B∣|B| - |A \cap B|
  • Region IV (Neither): ∣U∣−∣A∪B∣|U| - |A \cup B|

Three-Set Inclusion-Exclusion Formula

∣A∪B∪C∣=∣A∣+∣B∣+∣C∣−∣A∩B∣−∣A∩C∣−∣B∩C∣+∣A∩B∩C∣|A \cup B \cup C| = |A| + |B| + |C| - |A \cap B| - |A \cap C| - |B \cap C| + |A \cap B \cap C|
+-----------------------------------------------------------------------------+
|                       THREE-SET VENN DIAGRAM (8 REGIONS)                    |
|                                                                             |
|   +-------------------------- Universal Set U --------------------------+   |
|   |                                                                     |   |
|   |                 /-------------\     /-------------\                 |   |
|   |                /    Set A      \   /     Set B     \                |   |
|   |               /     (I)         \ /      (III)      \               |   |
|   |              |                   X                   |              |   |
|   |              |     A only       / \      B only      |              |   |
|   |              |                 / (II)\               |              |   |
|   |               \               /  A^B  \             /               |   |
|   |                \      (IV)   |---------|   (VI)    /                |   |
|   |                 \     A^C    |  (VII)  |   B^C    /                 |   |
|   |                  \          / | A^B^C | \        /                  |   |
|   |                   \--------+--+-------+--+------/                   |   |
|   |                            |    (V)      |                          |   |
|   |                            |   C only    |                          |   |
|   |                             \           /                           |   |
|   |                              \  Set C  /                            |   |
|   |                               \-------/                             |   |
|   |                                                                     |   |
|   |                  Region VIII: Outside (A \cup B \cup C)'            |   |
|   +---------------------------------------------------------------------+   |
+-----------------------------------------------------------------------------+

4. Step-by-Step Methodology for Venn Diagram Survey Problems

To solve 3-set survey word problems without error, follow the Innermost-to-Outermost Algorithm:

+-----------------------------------------------------------------------------+
|                   INNERMOST-TO-OUTERMOST SURVEY ALGORITHM                   |
|                                                                             |
|   Step 1: Fill the Central Triple Intersection:                             |
|           Region VII = |A \cap B \cap C|                                    |
|                                                                             |
|   Step 2: Fill the Three Two-Set Intersections:                             |
|           Region II  = |A \cap B| - Region VII                              |
|           Region IV  = |A \cap C| - Region VII                              |
|           Region VI  = |B \cap C| - Region VII                              |
|                                                                             |
|   Step 3: Fill the Three Single-Set Exclusive Regions:                      |
|           Region I   (A only) = |A| - (Region II + Region IV + Region VII)  |
|           Region III (B only) = |B| - (Region II + Region VI + Region VII)  |
|           Region V   (C only) = |C| - (Region IV + Region VI + Region VII)  |
|                                                                             |
|   Step 4: Fill the Exterior Complement:                                     |
|           Region VIII (None) = |U| - Sum(Regions I through VII)             |
+-----------------------------------------------------------------------------+

5. Worked Examples

Worked Example 1: Set Operations on Discrete Sets

Problem: Let U={1,2,3,4,5,6,7,8,9,10}U = \{1, 2, 3, 4, 5, 6, 7, 8, 9, 10\}, A={2,3,5,7}A = \{2, 3, 5, 7\}, and B={1,3,5,7,9}B = \{1, 3, 5, 7, 9\}. Determine:

  1. A∩BA \cap B
  2. A∪BA \cup B
  3. A∖BA \setminus B
  4. (A∪B)′(A \cup B)'

Solution:

  1. Elements common to both AA and BB: A∩B={3,5,7}A \cap B = \{3, 5, 7\}.
  2. Combine all elements in AA or BB: A∪B={1,2,3,5,7,9}A \cup B = \{1, 2, 3, 5, 7, 9\}.
  3. Elements in AA that are not in BB: A∖B={2}A \setminus B = \{2\}.
  4. Elements in UU not in A∪BA \cup B: (A∪B)′={4,6,8,10}(A \cup B)' = \{4, 6, 8, 10\}.

Worked Example 2: Comprehensive 3-Set Survey Problem

Problem: A survey of 150150 college students regarding their course enrollment reveals:

  • 7070 take Mathematics (MM)
  • 6565 take Computer Science (CC)
  • 5555 take Physics (PP)
  • 3030 take Mathematics and Computer Science (M∩CM \cap C)
  • 2525 take Mathematics and Physics (M∩PM \cap P)
  • 2020 take Computer Science and Physics (C∩PC \cap P)
  • 1010 take all three courses (M∩C∩PM \cap C \cap P)

Determine:

  1. How many students take Computer Science ONLY?
  2. How many students take exactly two of the three subjects?
  3. How many students take none of these three courses?

Solution: Apply the Innermost-to-Outermost Algorithm:

  1. Region VII (All 3): ∣M∩C∩P∣=10|M \cap C \cap P| = 10
  2. Two-set exclusive overlaps:
    • M∩CM \cap C only =30−10=20= 30 - 10 = 20
    • M∩PM \cap P only =25−10=15= 25 - 10 = 15
    • C∩PC \cap P only =20−10=10= 20 - 10 = 10
  3. Single-subject exclusive regions:
    • MM only =70−(20+15+10)=70−45=25= 70 - (20 + 15 + 10) = 70 - 45 = 25
    • CC only =65−(20+10+10)=65−40=25= 65 - (20 + 10 + 10) = 65 - 40 = 25
    • PP only =55−(15+10+10)=55−35=20= 55 - (15 + 10 + 10) = 55 - 35 = 20
  4. Sum of all students taking at least one course (Union): ∣M∪C∪P∣=25+25+20+20+15+10+10=125|M \cup C \cup P| = 25 + 25 + 20 + 20 + 15 + 10 + 10 = 125
  5. Exterior Region (None of the three): None=150−125=25\text{None} = 150 - 125 = 25

Answers:

  1. Computer Science only =25= 25 students.
  2. Exactly two subjects =20+15+10=45= 20 + 15 + 10 = 45 students.
  3. None of the three courses =25= 25 students.

6. Common CLEP Traps & Strategic Checkpoints

  • Trap 1: Forgetting to Subtract the Overlap in Survey Problems: If 6565 take CS and 3030 take Math & CS, the number taking CS only is NOT 65−3065 - 30. You must account for the triple intersection before isolating regions.
  • Trap 2: "Or" Means Inclusive Disjunction: In mathematics and on the CLEP, "AA or BB" always includes elements in both AA and BB unless the word "exclusive" is specifically stated.
  • Trap 3: Set Difference Order: A∖B≠B∖AA \setminus B \neq B \setminus A. Always take elements from the first set and remove those belonging to the second set.
  • Trap 4: Misinterpreting De Morgan's Laws: (A∪B)′=A′∩B′(A \cup B)' = A' \cap B', NOT A′∪B′A' \cup B'. The union symbol flips to an intersection under negation.
Test Your Knowledge

Let universal set U={1,2,3,4,5,6,7,8,9,10}U = \{1, 2, 3, 4, 5, 6, 7, 8, 9, 10\}, set A={2,4,6,8,10}A = \{2, 4, 6, 8, 10\}, and set B={3,6,9}B = \{3, 6, 9\}. What is the resulting set (A∪B)′(A \cup B)'?

A

{2,3,4,6,8,9,10}\{2, 3, 4, 6, 8, 9, 10\}

B

{6}\{6\}

C

{1,3,5,7,9}\{1, 3, 5, 7, 9\}

D

{1,5,7}\{1, 5, 7\}

Test Your Knowledge

In a college freshman survey of 120 students, 75 students are enrolled in Math, 55 students are enrolled in Psychology, and 25 students are enrolled in both Math and Psychology. How many surveyed students are enrolled in NEITHER Math nor Psychology?

A

15 students

B

20 students

C

40 students

D

65 students

Test Your Knowledge

In a survey of 100 technology professionals: 48 use Python, 42 use SQL, 35 use JavaScript, 18 use Python and SQL, 15 use Python and JavaScript, 14 use SQL and JavaScript, and 8 use all three languages. How many professionals use SQL ONLY (and neither Python nor JavaScript)?

A

24 professionals

B

18 professionals

C

10 professionals

D

42 professionals

Sections you finish are checked off in the contents.