01 / 22

Set Notation
& Operations

Master the language of sets: learn to describe collections using set-builder notation, then combine them with union, intersection, and complement.

Finite Mathematics

What Is a Set?

A set is a well-defined collection of distinct objects called elements (or members). We write sets with curly braces and list elements separated by commas.

Roster Notation
List every element: \( B = \{2, 4, 6, 8\} \)
Set-Builder Notation
Describe a rule: \( B = \{x \mid x \text{ is even}, 1 \le x \le 8\} \)

Special Sets & the Universal Set

\( U \) : Universal Set
The "universe" of all elements under discussion. Every set in a problem is a subset of \( U \).
\( \emptyset \) : Empty Set
The set with no elements. Also written \( \{ \} \). It is a subset of every set.
Subset \( \subseteq \)
\( A \subseteq B \) means every element of \( A \) is also in \( B \).

Why Sets Matter

Sets are the foundation of modern mathematics. They appear everywhere: probability, logic, databases, and computer science. Understanding set operations lets you solve counting problems systematically.

1
Probability: Events are sets of outcomes. \( P(A \cup B) \) uses the union operation.
2
Logic: AND corresponds to \( \cap \), OR corresponds to \( \cup \), NOT corresponds to complement.
3
Data: Database queries use set operations (JOIN = intersection, UNION = union).

Union: \( A \cup B \)

The union of two sets \( A \) and \( B \) is the set of all elements that belong to \( A \) or \( B \) (or both).

U A B Shaded region = \( A \cup B \)

Intersection: \( A \cap B \)

The intersection of two sets \( A \) and \( B \) is the set of all elements that belong to both \( A \) and \( B \).

U A B Shaded region = \( A \cap B \)

Complement: \( A' \)

The complement of a set \( A \) (written \( A' \) or \( \bar{A} \) or \( A^c \)) is the set of all elements in the universal set \( U \) that are not in \( A \).

U A Shaded region = \( A' \)

Set Difference: \( A \setminus B \)

The set difference \( A \setminus B \) (also written \( A - B \)) contains elements in \( A \) that are not in \( B \). It equals \( A \cap B' \).

U A B Shaded region = \( A \setminus B \)

Union vs Intersection

Union \( A \cup B \) Intersection \( A \cap B \)
Meaning In \( A \) or \( B \) (or both) In \( A \) and \( B \)
Logic equivalent OR AND
Size Always \( \ge \max(|A|, |B|) \) Always \( \le \min(|A|, |B|) \)
Venn diagram Both full circles Only the overlap
Symbol \( \cup \) (cup: opens up) \( \cap \) (cap: opens down)

De Morgan's Laws

Two powerful identities that connect complement with union and intersection:

First Law
\( (A \cup B)' = A' \cap B' \)
The complement of a union is the intersection of the complements.
Second Law
\( (A \cap B)' = A' \cup B' \)
The complement of an intersection is the union of the complements.

The Inclusion-Exclusion Principle

When counting elements in a union, you must subtract the overlap to avoid double-counting:

U \( |A| \) only \( |A \cap B| \) (subtract this) \( |B| \) only

How to Solve Set Problems

1
Identify \( U \): determine the universal set for the problem.
2
List the sets: write each set in roster or set-builder notation.
3
Draw a Venn diagram: place elements in the correct regions.
4
Apply the operation: use \( \cup \), \( \cap \), \( ' \), or \( \setminus \) as required.
5
Check with cardinality: verify counts using Inclusion-Exclusion.

Example 1: Basic Operations

Let \( U = \{1,2,3,4,5,6,7,8,9,10\} \), \( A = \{1,3,5,7,9\} \), \( B = \{2,3,5,7\} \).

1
\( A \cup B \): combine all elements: \( \{1,2,3,5,7,9\} \)
2
\( A \cap B \): elements in both: \( \{3,5,7\} \)
3
\( A' \): elements in \( U \) but not \( A \): \( \{2,4,6,8,10\} \)
4
\( A \setminus B \): in \( A \) but not \( B \): \( \{1,9\} \)

Example 2: Venn Diagram

Using the same sets, place every element of \( U \) in the correct Venn diagram region.

U A B 1, 9 3, 5, 7 2 Outside: 4, 6, 8, 10

Example 3: De Morgan's Laws

With \( U = \{1,...,10\} \), \( A = \{1,3,5,7,9\} \), \( B = \{2,3,5,7\} \), verify De Morgan's First Law: \( (A \cup B)' = A' \cap B' \).

1
Left side: \( A \cup B = \{1,2,3,5,7,9\} \), so \( (A \cup B)' = \) \( \{4,6,8,10\} \)
2
Right side: \( A' = \{2,4,6,8,10\} \), \( B' = \{1,4,6,8,9,10\} \)
3
\( A' \cap B' = \) \( \{4,6,8,10\} \)

Common Mistakes

✕ Confusing \( \cup \) and \( \cap \)
Union means or (bigger result). Intersection means and (smaller result). The symbols look similar: remember \( \cup \) = cup = more.
✕ Forgetting \( U \) for Complements
The complement \( A' \) depends on the universal set. Without defining \( U \), the complement is undefined.
✕ Double-Counting in Unions
Listing elements in \( A \cap B \) twice when computing \( A \cup B \). Always subtract the intersection or list without duplicates.

Operations Summary

Operation Symbol Meaning Venn Region
Union \( A \cup B \) In \( A \) or \( B \) Both circles
Intersection \( A \cap B \) In \( A \) and \( B \) Overlap only
Complement \( A' \) Not in \( A \) Outside the circle
Difference \( A \setminus B \) In \( A \) but not \( B \) Left crescent

Question 1 of 5

Let \( A = \{2,4,6,8\} \) and \( B = \{1,2,3,4\} \). What is \( A \cap B \)?

Question 2 of 5

If \( U = \{1,2,3,4,5,6,7,8\} \) and \( A = \{1,3,5,7\} \), what is \( A' \)?

Question 3 of 5

Let \( A = \{a,b,c,d\} \) and \( B = \{c,d,e,f\} \). What is \( A \cup B \)?

Question 4 of 5

If \( |A| = 12 \), \( |B| = 9 \), and \( |A \cap B| = 4 \), what is \( |A \cup B| \)?

Question 5 of 5

By De Morgan's Law, \( (A \cap B)' \) equals: