Mathwords logoMathwords

Set Theory — Definition, Formula & Examples

Set theory is the branch of mathematics that studies sets — well-defined collections of distinct objects — and the relationships between them. It provides the foundational language used across nearly every other area of mathematics.

Set theory is the mathematical discipline concerned with the properties of and operations on sets, where a set is defined as any collection of distinct elements drawn from a universal domain. In its axiomatic form (e.g., Zermelo–Fraenkel with the Axiom of Choice, ZFC), it establishes the logical foundations upon which modern mathematics is constructed.

How It Works

You start by defining sets using roster notation like A={1,2,3}A = \{1, 2, 3\} or set-builder notation like B={xx>0}B = \{x \mid x > 0\}. From there, set theory gives you operations — union (\cup), intersection (\cap), complement, and difference — to combine or compare sets. It also defines relationships such as subset (\subseteq), equality, and disjointness. These tools let you reason precisely about membership, containment, and how collections overlap.

Worked Example

Problem: Given A={1,2,3,4}A = \{1, 2, 3, 4\} and B={3,4,5,6}B = \{3, 4, 5, 6\}, find ABA \cup B, ABA \cap B, and ABA \setminus B.
Union: Combine all elements from both sets, listing each element only once.
AB={1,2,3,4,5,6}A \cup B = \{1, 2, 3, 4, 5, 6\}
Intersection: Keep only the elements that appear in both AA and BB.
AB={3,4}A \cap B = \{3, 4\}
Set Difference: Take elements in AA that are not in BB.
AB={1,2}A \setminus B = \{1, 2\}
Answer: AB={1,2,3,4,5,6}A \cup B = \{1, 2, 3, 4, 5, 6\}, AB={3,4}A \cap B = \{3, 4\}, AB={1,2}A \setminus B = \{1, 2\}.

Why It Matters

Set theory underpins discrete mathematics, probability, database design, and formal logic. In computer science, data structures like hash sets and relational database queries (SQL joins) are direct applications of set operations. Any course in abstract algebra, real analysis, or topology begins with set-theoretic definitions.

Common Mistakes

Mistake: Confusing a subset (\subseteq) with an element (\in). For example, writing {1}{1,2,3}\{1\} \in \{1, 2, 3\}.
Correction: The number 11 is an element of {1,2,3}\{1, 2, 3\}, so 1{1,2,3}1 \in \{1, 2, 3\}. The set {1}\{1\} is a subset: {1}{1,2,3}\{1\} \subseteq \{1, 2, 3\}. An element and a set containing that element are different things.

Related Terms