upgrade
upgrade

๐ŸงฉDiscrete Mathematics

Essential Set Theory Notations

Study smarter with Fiveable

Get study guides, practice questions, and cheatsheets for all your subjects. Join 500,000+ students with a 96% pass rate.

Get Started

Why This Matters

Set theory is the language underlying virtually every topic in discrete mathematicsโ€”from logic and proof techniques to functions, relations, and combinatorics. When you're working with probability, database queries, or algorithm analysis later in the course, you'll be using these notations constantly. The symbols you'll learn here aren't just abstract squiggles; they're precise tools for describing membership, containment, and combination of mathematical objects.

You're being tested on more than symbol recognition. Exam questions will ask you to translate between set-builder notation and roster form, determine subset relationships, compute cardinalities of combined sets, and apply operations in sequence. Don't just memorize what each symbol looks likeโ€”know what logical relationship it expresses and how it connects to other operations. That's what separates a correct answer from a complete one.


Describing Sets and Their Elements

Before you can operate on sets, you need to describe them precisely. These notations establish what a set contains and how we specify membership.

Set Notation: {}\{ \}

  • Curly braces define a setโ€”the most fundamental notation, enclosing all elements that belong together
  • Order is irrelevant and duplicates collapseโ€”{1,2,3}\{1, 2, 3\} and {3,1,2}\{3, 1, 2\} are identical sets
  • Roster form lists elements explicitly, useful when sets are small and finite

Set-Builder Notation: {xโˆฃP(x)}\{x \mid P(x)\}

  • Defines sets by property rather than listingโ€”read as "the set of all xx such that P(x)P(x) is true"
  • Essential for infinite or large setsโ€”{xโˆฃx>0}\{x \mid x > 0\} describes all positive numbers concisely
  • The vertical bar (or colon) separates the variable from its defining condition

Element Of: โˆˆ\in

  • Asserts membership in a setโ€”if A={1,2,3}A = \{1, 2, 3\}, then 2โˆˆA2 \in A is a true statement
  • Fundamental to logical proofsโ€”proving xโˆˆAโˆฉBx \in A \cap B requires showing xโˆˆAx \in A AND xโˆˆBx \in B
  • Distinguishes elements from setsโ€”2โˆˆ{1,2,3}2 \in \{1, 2, 3\} but {2}โˆˆฬธ{1,2,3}\{2\} \not\in \{1, 2, 3\} (the singleton set isn't an element)

Not an Element Of: โˆ‰\notin

  • Negates membershipโ€”4โˆ‰{1,2,3}4 \notin \{1, 2, 3\} states that 4 is absent from the set
  • Critical for complement definitionsโ€”xโˆˆAโ€ฒx \in A' means xโˆ‰Ax \notin A
  • Appears in counterexample proofsโ€”showing one element โˆ‰\notin a set can disprove universal claims

Compare: โˆˆ\in vs. โІ\subseteqโ€”both describe relationships, but โˆˆ\in connects an element to a set, while โІ\subseteq connects a set to another set. Confusing these is a common exam error.


Containment and Subset Relationships

These notations describe when one set lives entirely inside anotherโ€”a relationship that's central to proofs and logical arguments.

Subset: โІ\subseteq

  • Every element of AA is also in BBโ€”AโІBA \subseteq B means "if xโˆˆAx \in A, then xโˆˆBx \in B"
  • Allows equalityโ€”a set is always a subset of itself: AโІAA \subseteq A is always true
  • The empty set is a subset of everythingโ€”โˆ…โІA\emptyset \subseteq A for any set AA (vacuously true)

Proper Subset: โŠ‚\subset

  • Subset but not equalโ€”AโŠ‚BA \subset B requires AโІBA \subseteq B AND Aโ‰ BA \neq B
  • BB must contain at least one extra elementโ€”if A={1,2}A = \{1, 2\} and B={1,2,3}B = \{1, 2, 3\}, then AโŠ‚BA \subset B
  • Watch notation variationsโ€”some textbooks use โŠŠ\subsetneq for proper subset; know your course's convention

Compare: โІ\subseteq vs. โŠ‚\subsetโ€”the difference is whether equality is permitted. If an FRQ asks you to prove AโŠ‚BA \subset B, you must show containment AND find an element in BB that's not in AA.


Special Sets: The Boundaries

These sets represent the extremesโ€”everything and nothingโ€”and serve as reference points for other operations.

Empty Set: โˆ…\emptyset or {}\{ \}

  • Contains no elementsโ€”the unique set with cardinality zero
  • Subset of every setโ€”this is vacuously true since there's no element in โˆ…\emptyset that could fail to be in another set
  • Identity for union, annihilator for intersectionโ€”Aโˆชโˆ…=AA \cup \emptyset = A and Aโˆฉโˆ…=โˆ…A \cap \emptyset = \emptyset

Universal Set: UU

  • Contains all elements under considerationโ€”defines the "universe of discourse" for a problem
  • Context-dependentโ€”in number theory, UU might be Z\mathbb{Z}; in a survey problem, it might be all respondents
  • Required for complementsโ€”Aโ€ฒA' only makes sense relative to some universal set UU

Compare: โˆ…\emptyset vs. UUโ€”these are logical opposites. The empty set is contained in everything; the universal set contains everything. Complements swap between them: โˆ…โ€ฒ=U\emptyset' = U and Uโ€ฒ=โˆ…U' = \emptyset.


Set Operations: Combining and Separating

These operations take existing sets and produce new onesโ€”the algebraic heart of set theory.

Union: โˆช\cup

  • Combines all elements from both setsโ€”AโˆชB={xโˆฃxโˆˆAย ORย xโˆˆB}A \cup B = \{x \mid x \in A \text{ OR } x \in B\}
  • Duplicates appear onceโ€”{1,2}โˆช{2,3}={1,2,3}\{1, 2\} \cup \{2, 3\} = \{1, 2, 3\}, not {1,2,2,3}\{1, 2, 2, 3\}
  • Corresponds to logical ORโ€”essential connection for translating between set theory and propositional logic

Intersection: โˆฉ\cap

  • Keeps only shared elementsโ€”AโˆฉB={xโˆฃxโˆˆAย ANDย xโˆˆB}A \cap B = \{x \mid x \in A \text{ AND } x \in B\}
  • Can produce the empty setโ€”when AโˆฉB=โˆ…A \cap B = \emptyset, we call AA and BB disjoint
  • Corresponds to logical ANDโ€”intersection is more restrictive than union

Set Difference: โˆ–\setminus or โˆ’-

  • Elements in AA but not in BBโ€”Aโˆ–B={xโˆฃxโˆˆAย ANDย xโˆ‰B}A \setminus B = \{x \mid x \in A \text{ AND } x \notin B\}
  • Not commutativeโ€”Aโˆ–Bโ‰ Bโˆ–AA \setminus B \neq B \setminus A in general
  • Relates to complementโ€”Aโˆ–B=AโˆฉBโ€ฒA \setminus B = A \cap B' when working within a universal set

Complement: Aโ€ฒA' or Aห‰\bar{A} or AcA^c

  • Everything outside AAโ€”Aโ€ฒ={xโˆˆUโˆฃxโˆ‰A}A' = \{x \in U \mid x \notin A\}
  • Double complement returns the originalโ€”(Aโ€ฒ)โ€ฒ=A(A')' = A
  • De Morgan's Laws applyโ€”(AโˆชB)โ€ฒ=Aโ€ฒโˆฉBโ€ฒ(A \cup B)' = A' \cap B' and (AโˆฉB)โ€ฒ=Aโ€ฒโˆชBโ€ฒ(A \cap B)' = A' \cup B' (memorize these!)

Compare: โˆช\cup vs. โˆฉ\capโ€”union grows sets (result is at least as large as the larger input), intersection shrinks them (result is at most as large as the smaller input). FRQs often test whether you can apply De Morgan's Laws to switch between them.


Counting and Constructing New Sets

These notations let you measure sets and build more complex structures from simpler ones.

Cardinality: โˆฃAโˆฃ|A|

  • Counts the number of elementsโ€”if A={a,b,c}A = \{a, b, c\}, then โˆฃAโˆฃ=3|A| = 3
  • Key formula for unionsโ€”โˆฃAโˆชBโˆฃ=โˆฃAโˆฃ+โˆฃBโˆฃโˆ’โˆฃAโˆฉBโˆฃ|A \cup B| = |A| + |B| - |A \cap B| (inclusion-exclusion principle)
  • Infinite sets have cardinality tooโ€”but that's a topic for later; focus on finite sets for now

Power Set: P(A)\mathcal{P}(A) or 2A2^A

  • The set of all subsets of AAโ€”includes โˆ…\emptyset and AA itself
  • Cardinality is 2n2^nโ€”if โˆฃAโˆฃ=n|A| = n, then โˆฃP(A)โˆฃ=2n|\mathcal{P}(A)| = 2^n (each element is either in or out of each subset)
  • Example: P({1,2})={โˆ…,{1},{2},{1,2}}\mathcal{P}(\{1, 2\}) = \{\emptyset, \{1\}, \{2\}, \{1, 2\}\}โ€”four subsets from two elements

Cartesian Product: ร—\times

  • All ordered pairs from two setsโ€”Aร—B={(a,b)โˆฃaโˆˆAย andย bโˆˆB}A \times B = \{(a, b) \mid a \in A \text{ and } b \in B\}
  • Order matters and cardinality multipliesโ€”โˆฃAร—Bโˆฃ=โˆฃAโˆฃโ‹…โˆฃBโˆฃ|A \times B| = |A| \cdot |B|
  • Foundation for relations and functionsโ€”any relation RR from AA to BB is a subset of Aร—BA \times B

Compare: P(A)\mathcal{P}(A) vs. Aร—AA \times Aโ€”both create new sets from AA, but power sets contain subsets while Cartesian products contain ordered pairs. If โˆฃAโˆฃ=2|A| = 2, then โˆฃP(A)โˆฃ=4|\mathcal{P}(A)| = 4 but โˆฃAร—Aโˆฃ=4|A \times A| = 4 tooโ€”same size, completely different structures.


Quick Reference Table

ConceptBest Examples
Defining sets{}\{ \}, set-builder notation {xโˆฃP(x)}\{x \mid P(x)\}
Membershipโˆˆ\in, โˆ‰\notin
ContainmentโІ\subseteq, โŠ‚\subset
Boundary setsโˆ…\emptyset, UU
Combining setsโˆช\cup, โˆฉ\cap
Removing elementsโˆ–\setminus, complement Aโ€ฒA'
Measuring setsโˆฃAโˆฃ\mid A\mid, inclusion-exclusion
Building structuresP(A)\mathcal{P}(A), Aร—BA \times B

Self-Check Questions

  1. What's the difference between โˆˆ\in and โІ\subseteq? Give an example where {1}โІA\{1\} \subseteq A is true but {1}โˆˆA\{1\} \in A is false.

  2. If A={1,2,3}A = \{1, 2, 3\} and B={2,3,4}B = \{2, 3, 4\}, compute AโˆชBA \cup B, AโˆฉBA \cap B, Aโˆ–BA \setminus B, and Bโˆ–AB \setminus A. Which two results are equal?

  3. Explain why โˆ…โІA\emptyset \subseteq A is true for every set AA, using the definition of subset.

  4. Compare P(A)\mathcal{P}(A) and Aร—AA \times A when A={a,b}A = \{a, b\}. List all elements of each and explain why they have the same cardinality but different types of elements.

  5. Using De Morgan's Laws, rewrite (AโˆชB)โ€ฒ(A \cup B)' in terms of complements and intersection. Then verify with U={1,2,3,4}U = \{1, 2, 3, 4\}, A={1,2}A = \{1, 2\}, B={2,3}B = \{2, 3\}.