7.2 Set Theory, Operations, & Venn Diagrams

Key Takeaways

  • A set is a well-defined collection of distinct elements denoted via roster or set-builder notation; fundamental properties include element membership (x ∈ A), subset inclusion (A ⊆ B), the empty set (∅ where |∅| = 0), and cardinality (|A| or n(A)).
  • The four foundational set operations are Union (A ∪ B: elements in A or B or both), Intersection (A ∩ B: elements common to both A and B), Complement (A': elements in universal set U not in A), and Difference (A \ B: elements in A but not in B).
  • The Principle of Inclusion-Exclusion (PIE) for two sets establishes that |A ∪ B| = |A| + |B| - |A ∩ B|, reconciling total coverage by subtracting the doubly counted intersection.
  • Multi-set Venn diagram word problems must be solved using an inside-out strategy: populate the innermost shared intersection first, deduct overlap from outer regions, and evaluate the exterior complement region |(A ∪ B)'| = |U| - |A ∪ B|.
  • Set theory provides the structural underpinning for probability: sample spaces represent universal sets, events represent subsets, and probabilities mirror relative set cardinalities via P(A ∪ B) = P(A) + P(B) - P(A ∩ B) and P(A|B) = |A ∩ B| / |B|.
Last updated: August 2026

Set Theory Foundations & Notation

Set theory is the mathematical language used to organize, classify, and analyze collections of objects. On the ACCUPLACER Quantitative Reasoning, Algebra, and Statistics (QAS) exam, set theory provides the structural framework for categorical logic, algebraic domains, and probability spaces.

1. What is a Set?

A set is a well-defined collection of distinct objects called elements (or members). "Well-defined" means that given any object, there is an unambiguous rule determining whether that object belongs to the set.

  • Distinctness: Elements in a set are never duplicated. The collection {3,3,5,7}\{3, 3, 5, 7\} is written simply as {3,5,7}\{3, 5, 7\}.
  • Order Irrelevance: The sequence in which elements are listed does not matter: {a,b,c}={c,a,b}\{a, b, c\} = \{c, a, b\}.

2. Set Specification Notations

  • Roster (Listing) Notation: Elements are explicitly enumerated within curly braces separated by commas. A={2,4,6,8,10}A = \{2, 4, 6, 8, 10\}
  • Set-Builder Notation: Specifies a variable, a vertical bar | (meaning "such that"), and a governing algebraic condition. B={xZ1x10 and x is even}B = \{x \in \mathbb{Z} \mid 1 \le x \le 10 \text{ and } x \text{ is even}\}

3. Fundamental Set Symbols & Terminology

SymbolMathematical NameMeaning & Formal DefinitionExample
\inElement ofxAx \in A means xx is a member of set AA3{1,3,5}3 \in \{1, 3, 5\}
\notinNot an element ofxAx \notin A means xx is not a member of set AA4{1,3,5}4 \notin \{1, 3, 5\}
UUUniversal SetThe overarching set containing all objects under current considerationU={1,2,3,,20}U = \{1, 2, 3, \dots, 20\}
\emptyset or {}\{\}Empty (Null) SetThe unique set containing exactly zero elements ($$\emptyset
$$Aororn(A)$$Cardinality
\subseteqSubsetABA \subseteq B means every element of AA is also in BB{2,4}{1,2,3,4}\{2, 4\} \subseteq \{1, 2, 3, 4\}
\subsetProper SubsetABA \subset B means ABA \subseteq B and ABA \neq B (BB contains extra elements){1,2}{1,2,3}\{1, 2\} \subset \{1, 2, 3\}

Cardinality & Subset Theorems

  1. The Empty Set Theorem: The empty set is a subset of every set: A\emptyset \subseteq A for any set AA.
  2. Total Subsets Formula: A finite set with cardinality nn (A=n|A| = n) possesses exactly 2n2^n distinct subsets and 2n12^n - 1 proper subsets.
    • Example: For set S={x,y,z}S = \{x, y, z\} (n=3n = 3), there are 23=82^3 = 8 subsets: ,  {x},  {y},  {z},  {x,y},  {x,z},  {y,z},  {x,y,z}\emptyset, \; \{x\}, \; \{y\}, \; \{z\}, \; \{x, y\}, \; \{x, z\}, \; \{y, z\}, \; \{x, y, z\}

The Four Core Set Operations

Set operations allow you to combine, intersect, and isolate subsets within a universal set UU.

      Union: A ∪ B                   Intersection: A ∩ B             Complement: A' (or A^c)
  ┌─────────────────────┐          ┌─────────────────────┐          ┌─────────────────────┐
  │  /█████\   /█████\  │          │  /     \ /█████\ /  │          │ ███████████████████ │
  │ │███████╳████████│ │          │ │       │█████│   │ │          │ ████/     \████████ │
  │  \█████/   \█████/  │          │  \     / \███/ \  │ │          │ ███│   A   │███████ │
  │     A         B     │          │     A       B     │ │          │ ████\     /████████ │
  │      All shaded     │          │    Only overlap     │          │ ███████████████████ │
  └─────────────────────┘          └─────────────────────┘          └─────────────────────┘

1. Union (ABA \cup B)

The union of sets AA and BB is the set of all elements that belong to set AA, OR set BB, OR both. AB={xUxA or xB}A \cup B = \{x \in U \mid x \in A \text{ or } x \in B\}

  • Key Word: "OR".

2. Intersection (ABA \cap B)

The intersection of sets AA and BB is the set of all elements that belong to BOTH set AA AND set BB simultaneously. AB={xUxA and xB}A \cap B = \{x \in U \mid x \in A \text{ and } x \in B\}

  • Key Word: "AND".
  • Disjoint Sets: If AB=A \cap B = \emptyset, the sets are disjoint (mutually exclusive) and share no elements.

3. Complement (AA' or AcA^c or Aˉ\bar{A})

The complement of set AA is the set of all elements in the universal set UU that do NOT belong to AA. A={xUxA}=UAA' = \{x \in U \mid x \notin A\} = U \setminus A

  • Key Word: "NOT".
  • Fundamental Identity: A+A=U|A| + |A'| = |U| and AA=UA \cup A' = U.

4. Set Difference / Relative Complement (ABA \setminus B or ABA - B)

The difference of sets AA and BB (also called the relative complement of BB in AA) is the set of all elements that belong to AA but do NOT belong to BB. AB={xUxA and xB}=ABA \setminus B = \{x \in U \mid x \in A \text{ and } x \notin B\} = A \cap B'

  • Interpretation: "Only AA" (stripping all shared elements of BB out of set AA).

The Principle of Inclusion-Exclusion (PIE)

When combining sets, simply adding A+B|A| + |B| counts elements in the overlapping intersection twice. The Principle of Inclusion-Exclusion (PIE) corrects for this overlap.

PIE for Two Sets

AB=A+BAB|A \cup B| = |A| + |B| - |A \cap B| n(AB)=n(A)+n(B)n(AB)n(A \cup B) = n(A) + n(B) - n(A \cap B)

Algebraic Rearrangements of PIE

By isolating different terms, PIE can solve for any unknown component:

  • Solving for the Intersection: AB=A+BAB|A \cap B| = |A| + |B| - |A \cup B|
  • Solving for "Only Set A": AB=AAB|A \setminus B| = |A| - |A \cap B|
  • Accounting for the Exterior ("Neither Set"): (AB)=UAB=U(A+BAB)|(A \cup B)'| = |U| - |A \cup B| = |U| - (|A| + |B| - |A \cap B|)

Venn Diagram Anatomy & The Inside-Out Solution Algorithm

A Venn diagram visually maps the logical relations among sets enclosed within a rectangular bounding box representing the universal set UU.

2-Set Venn Diagram Region Anatomy

A two-set Venn diagram partitions the universal set UU into four mutually disjoint regions:

┌────────────────────────────────────────────────────────┐
│ Universal Set U                                        │
│     ┌───────────────┐     ┌───────────────┐            │
│     │   Region I    │     │  Region III   │            │
│     │   (Only A)    │ Reg │   (Only B)    │            │
│     │   A \ B       │ II  │   B \ A       │            │
│     │               │A ∩ B│               │            │
│     └───────────────┘     └───────────────┘            │
│                      Set A       Set B                 │
│                                                        │
│               Region IV: Neither A nor B               │
│               (A ∪ B)' = U \ (A ∪ B)                   │
└────────────────────────────────────────────────────────┘
  • Region I (Only AA): AB=AAB|A \setminus B| = |A| - |A \cap B|
  • Region II (Both AA and BB): AB|A \cap B|
  • Region III (Only BB): BA=BAB|B \setminus A| = |B| - |A \cap B|
  • Region IV (Neither AA nor BB): (AB)=U(Region I+Region II+Region III)|(A \cup B)'| = |U| - (|\text{Region I}| + |\text{Region II}| + |\text{Region III}|)

The Strict "Inside-Out" Solution Algorithm for Word Problems

When solving complex multi-set survey word problems on the ACCUPLACER exam, follow this systematic inside-out sequence:

  1. Identify the Universal Set Total: Note U|U| (the total population surveyed).
  2. Populate the Innermost Core First: Enter the value for the full intersection (ABA \cap B for two sets, or ABCA \cap B \cap C for three sets).
  3. Calculate Double-Overlap Regions (for 3 sets): Subtract the 3-way center from each 2-way intersection.
  4. Calculate Single-Set-Only Regions: Subtract all inner overlapping numbers from the total given for that individual set.
  5. Sum All Interior Disjoint Regions: Compute the total union count AB|A \cup B| (or ABC|A \cup B \cup C|).
  6. Determine the Exterior Region: Subtract the total union from U|U| to find the count of individuals satisfying "none of the categories."

Connecting Set Theory Directly to Probability

Set theory and probability theory share an isomorphic (one-to-one) relationship. Every probability formula is a normalized set cardinality expression scaled by the size of the sample space S|S|:

Set Theory ConceptNotationProbability EquivalentProbability Formula
Universal SetUUSample SpaceSS with P(S)=1P(S) = 1
SubsetAUA \subseteq UEventESE \subseteq S with $$P(E) = \frac{
Empty Set\emptysetImpossible EventP()=0P(\emptyset) = 0
Set UnionABA \cup BCompound Event "AA OR BB"P(AB)=P(A)+P(B)P(AB)P(A \cup B) = P(A) + P(B) - P(A \cap B)
Set IntersectionABA \cap BJoint Event "AA AND BB"P(AB)=P(A)P(BA)P(A \cap B) = P(A) \cdot P(B \mid A)
Set ComplementAA'Complement Event "NOT AA"P(A)=1P(A)P(A') = 1 - P(A)
Set DifferenceABA \setminus BEvent AA occurs without BBP(AB)=P(A)P(AB)P(A \cap B') = P(A) - P(A \cap B)
Relative Cardinality$$\frac{A \cap B}{

Step-by-Step Worked Examples

Worked Example 1: Set Operations on Discrete Number Sets

Let the universal set be the first 1212 positive integers: U={1,2,3,4,5,6,7,8,9,10,11,12}U = \{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12\} Define two subsets:

  • Set AA (Even integers): A={2,4,6,8,10,12}A = \{2, 4, 6, 8, 10, 12\}
  • Set BB (Multiples of 33): B={3,6,9,12}B = \{3, 6, 9, 12\}

Determine the elements and cardinality for each of the following:

  1. Intersection (ABA \cap B): Elements common to both sets: AB={6,12}    AB=2A \cap B = \{6, 12\} \implies |A \cap B| = 2.

  2. Union (ABA \cup B): Combine all elements without duplication: AB={2,3,4,6,8,9,10,12}    AB=8A \cup B = \{2, 3, 4, 6, 8, 9, 10, 12\} \implies |A \cup B| = 8 Verification via PIE: AB=A+BAB=6+42=8|A \cup B| = |A| + |B| - |A \cap B| = 6 + 4 - 2 = 8.

  3. Difference (ABA \setminus B): Elements in AA that are not multiples of 33: AB={2,4,8,10}    AB=4A \setminus B = \{2, 4, 8, 10\} \implies |A \setminus B| = 4

  4. Complement of Union ((AB)(A \cup B)'): Elements in UU not in ABA \cup B: (AB)={1,5,7,11}    (AB)=128=4(A \cup B)' = \{1, 5, 7, 11\} \implies |(A \cup B)'| = 12 - 8 = 4


Worked Example 2: Two-Set College Survey Problem

A college surveyed 180180 incoming freshmen regarding course registrations:

  • 110110 students registered for an English course (EE).
  • 8585 students registered for a Mathematics course (MM).
  • 4545 students registered for both English and Mathematics.
  1. How many students registered for ONLY English (EME \setminus M)? EM=EEM=11045=65|E \setminus M| = |E| - |E \cap M| = 110 - 45 = 65

  2. How many students registered for ONLY Mathematics (MEM \setminus E)? ME=MEM=8545=40|M \setminus E| = |M| - |E \cap M| = 85 - 45 = 40

  3. How many students registered for at least one of these courses (EME \cup M)? EM=E+MEM=110+8545=150|E \cup M| = |E| + |M| - |E \cap M| = 110 + 85 - 45 = 150 (Alternative check: 65 [only E]+45 [both]+40 [only M]=15065 \text{ [only } E] + 45 \text{ [both]} + 40 \text{ [only } M] = 150).

  4. How many students registered for NEITHER course ((EM)(E \cup M)')? (EM)=UEM=180150=30|(E \cup M)'| = |U| - |E \cup M| = 180 - 150 = 30

  5. If a student who registered for Mathematics is chosen at random, what is the probability that they also registered for English? P(EM)=EMM=4585=9170.5294P(E \mid M) = \frac{|E \cap M|}{|M|} = \frac{45}{85} = \frac{9}{17} \approx 0.5294


Worked Example 3: Three-Set Survey Problem

A technology firm surveyed 120120 software engineers regarding their programming language proficiencies in Python (PP), Java (JJ), and C++ (CC):

  • 6565 know Python (P=65|P| = 65)
  • 5555 know Java (J=55|J| = 55)
  • 5050 know C++ (C=50|C| = 50)
  • 3030 know both Python and Java (PJ=30|P \cap J| = 30)
  • 2525 know both Python and C++ (PC=25|P \cap C| = 25)
  • 2020 know both Java and C++ (JC=20|J \cap C| = 20)
  • 1212 know all three languages (PJC=12|P \cap J \cap C| = 12)

Step 1: Calculate the two-language-only regions

  • Only Python & Java: (PJ)C=3012=18|(P \cap J) \setminus C| = 30 - 12 = 18
  • Only Python & C++: (PC)J=2512=13|(P \cap C) \setminus J| = 25 - 12 = 13
  • Only Java & C++: (JC)P=2012=8|(J \cap C) \setminus P| = 20 - 12 = 8

Step 2: Calculate the single-language-only regions

  • Only Python: 65(18+13+12)=6543=2265 - (18 + 13 + 12) = 65 - 43 = 22
  • Only Java: 55(18+8+12)=5538=1755 - (18 + 8 + 12) = 55 - 38 = 17
  • Only C++: 50(13+8+12)=5033=1750 - (13 + 8 + 12) = 50 - 33 = 17

Step 3: Calculate the total union (PJC|P \cup J \cup C|) Sum all 77 disjoint internal regions: PJC=22+17+17Exactly 1+18+13+8Exactly 2+12All 3=56+39+12=107|P \cup J \cup C| = \underbrace{22 + 17 + 17}_{\text{Exactly 1}} + \underbrace{18 + 13 + 8}_{\text{Exactly 2}} + \underbrace{12}_{\text{All 3}} = 56 + 39 + 12 = 107

Step 4: Answer key analytical questions

  1. How many engineers know NONE of these three languages? (PJC)=UPJC=120107=13|(P \cup J \cup C)'| = |U| - |P \cup J \cup C| = 120 - 107 = 13
  2. How many engineers know EXACTLY ONE language? Only P+Only J+Only C=22+17+17=56\text{Only } P + \text{Only } J + \text{Only } C = 22 + 17 + 17 = 56
  3. How many engineers know EXACTLY TWO languages? 18+13+8=3918 + 13 + 8 = 39

Common Pitfalls & ACCUPLACER Exam Traps

  1. Confusing "Set AA" with "ONLY Set AA": In a survey, stating that "5050 people drink coffee" does not mean 5050 people drink only coffee; some of those 5050 also drink tea. You must subtract the intersection to find the "coffee only" group.
  2. Adding Direct Counts in Survey Totals: Summing A+B+C|A| + |B| + |C| directly often yields a sum exceeding the total population U|U|. This is expected because overlapping individuals are counted multiple times. Always use the Principle of Inclusion-Exclusion.
  3. Misinterpreting the Empty Set vs. Zero: The number 00 is an integer element, whereas ={}\emptyset = \{\} is a set with cardinality 00. Note that {0}\{0\} \neq \emptyset because {0}\{0\} contains one element (the number 00), meaning {0}=1|\{0\}| = 1.
  4. Neglecting the Exterior Region: When finding the union from survey data, students often forget that UAB|U| - |A \cup B| represents the exterior population who participate in neither activity.
Loading diagram...
Venn Diagram Region Decomposition and Set Operations
Test Your Knowledge

In a survey of 150 college freshmen, 85 students reported being enrolled in Psychology, 65 reported being enrolled in Sociology, and 30 reported being enrolled in both Psychology and Sociology. How many of the surveyed students are enrolled in NEITHER Psychology nor Sociology?

A
B
C
D
Test Your Knowledge

Let the universal set be U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}. Let Set A = {2, 3, 5, 7} (prime numbers in U) and Set B = {1, 3, 5, 7, 9} (odd numbers in U). What is the cardinality of the complement of their union, denoted as |(A ∪ B)'|?

A
B
C
D
Test Your Knowledge

A survey of 100 high school student-athletes found that 60 play Basketball, 45 play Soccer, and 20 play both Basketball and Soccer. If an athlete who plays Basketball is chosen at random from this group, what is the probability that this student also plays Soccer?

A
B
C
D