🧩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: {xP(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{xx>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 2A2 \in A is a true statement
  • Fundamental to logical proofs—proving xABx \in A \cap B requires showing xAx \in A AND xBx \in B
  • Distinguishes elements from sets2{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 membership4{1,2,3}4 \notin \{1, 2, 3\} states that 4 is absent from the set
  • Critical for complement definitionsxAx \in A' means xAx \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 BBABA \subseteq B means "if xAx \in A, then xBx \in B"
  • Allows equality—a set is always a subset of itself: AAA \subseteq A is always true
  • The empty set is a subset of everythingA\emptyset \subseteq A for any set AA (vacuously true)

Proper Subset: \subset

  • Subset but not equalABA \subset B requires ABA \subseteq B AND ABA \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 ABA \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 ABA \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 intersectionA=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 complementsAA' 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 setsAB={xxA OR xB}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 elementsAB={xxA AND xB}A \cap B = \{x \mid x \in A \text{ AND } x \in B\}
  • Can produce the empty set—when AB=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 BBAB={xxA AND xB}A \setminus B = \{x \mid x \in A \text{ AND } x \notin B\}
  • Not commutativeABBAA \setminus B \neq B \setminus A in general
  • Relates to complementAB=ABA \setminus B = A \cap B' when working within a universal set

Complement: AA' or Aˉ\bar{A} or AcA^c

  • Everything outside AAA={xUxA}A' = \{x \in U \mid x \notin A\}
  • Double complement returns the original(A)=A(A')' = A
  • De Morgan's Laws apply(AB)=AB(A \cup B)' = A' \cap B' and (AB)=AB(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 unionsAB=A+BAB|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 setsA×B={(a,b)aA and bB}A \times B = \{(a, b) \mid a \in A \text{ and } b \in B\}
  • Order matters and cardinality multipliesA×B=AB|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 {xP(x)}\{x \mid P(x)\}
Membership\in, \notin
Containment\subseteq, \subset
Boundary sets\emptyset, UU
Combining sets\cup, \cap
Removing elements\setminus, complement AA'
Measuring setsA\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 ABA \cup B, ABA \cap B, ABA \setminus B, and BAB \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 (AB)(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\}.

Essential Set Theory Notations to Know for Discrete Mathematics