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 here aren't 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 are the most fundamental notation in set theory. They enclose all the elements that belong together into a single object.
- Order is irrelevant and duplicates collapse. {1,2,3} and {3,1,2} are the same set, and {1,1,2} is just {1,2}.
- Roster form lists elements explicitly, which works well when sets are small and finite: {a,b,c}.
- Ellipsis notation handles larger patterns: {1,2,3,…,100} lists the integers from 1 to 100 without writing all of them.
Set-Builder Notation: {x∣P(x)}
This defines sets by a property rather than listing every element. Read it as "the set of all x such that P(x) is true."
- Essential for infinite or large sets. {x∣x>0} describes all positive numbers concisely, which roster form can't do.
- The vertical bar ∣ (or sometimes a colon :) separates the variable from its defining condition.
- You'll often see a domain restriction on the left side: {x∈Z∣x>0} means "all positive integers," which is more precise than just {x∣x>0}.
Element Of: ∈
This symbol asserts that a specific object belongs to a set. If A={1,2,3}, then 2∈A is a true statement.
- Fundamental to logical proofs. Proving x∈A∩B requires showing x∈A AND x∈B.
- Distinguishes elements from sets. 2∈{1,2,3} is true, but {2}∈{1,2,3} because the singleton set {2} is not the same object as the number 2. (However, {2}∈{{2},3} would be true, since {2} is listed as an element.)
Not an Element Of: ∈/
This negates membership. 4∈/{1,2,3} states that 4 is absent from the set.
- Critical for complement definitions. x∈A′ means exactly that x∈/A (and x∈U).
- Appears in counterexample proofs. Showing one element ∈/ a set can disprove a universal claim like "all even numbers are in A."
Compare: ∈ vs. ⊆. Both describe relationships, but ∈ connects an element to a set, while ⊆ connects a set to another set. Confusing these is a common exam error. For instance, 1∈{1,2} is correct, but 1⊆{1,2} is not, because 1 isn't a set.
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: ⊆
A⊆B means "every element of A is also in B." Formally: if x∈A, then x∈B.
- Allows equality. A set is always a subset of itself: A⊆A is always true.
- The empty set is a subset of everything. ∅⊆A for any set A. This is vacuously true: there's no element in ∅ that could fail to be in A.
- To prove A⊆B, pick an arbitrary x∈A and show it must be in B.
Proper Subset: ⊂
A⊂B means A⊆B AND A=B. In other words, B contains everything A does, plus at least one extra element.
- If A={1,2} and B={1,2,3}, then A⊂B.
- If A={1,2} and B={1,2}, then A⊆B is true but A⊂B is false.
- Watch notation variations. Some textbooks use ⊊ for proper subset and reserve ⊂ to mean the same as ⊆. Know your course's convention.
Compare: ⊆ vs. ⊂. The difference is whether equality is permitted. If a problem asks you to prove A⊂B, you must show containment AND find an element in B that's not in A.
Special Sets: The Boundaries
These sets represent the extremes and serve as reference points for other operations.
Empty Set: ∅ or {}
The empty set contains no elements. It's the unique set with cardinality zero.
- Subset of every set. This is vacuously true since there's no element in ∅ that could fail to be in another set.
- Identity for union, annihilator for intersection. A∪∅=A and A∩∅=∅.
- Common mistake: Don't write {∅} when you mean ∅. The set {∅} actually contains one element (the empty set itself), so its cardinality is 1, not 0.
Universal Set: U
The universal set contains all elements under consideration. It defines the "universe of discourse" for a problem.
- Context-dependent. In number theory, U might be Z. In a survey problem, it might be all respondents.
- Required for complements. A′ only makes sense relative to some universal set U, because you need to know what "everything outside A" means.
Compare: ∅ vs. U. These are logical opposites. The empty set is contained in everything; the universal set contains everything. Complements swap between them: ∅′=U and U′=∅.
Set Operations: Combining and Separating
These operations take existing sets and produce new ones. They form the algebraic heart of set theory.
Union: ∪
Union combines all elements from both sets: A∪B={x∣x∈A OR x∈B}.
- Duplicates appear once. {1,2}∪{2,3}={1,2,3}, not {1,2,2,3}.
- Corresponds to logical OR. This connection is essential when translating between set theory and propositional logic.
- The result is always at least as large as the larger input set.
Intersection: ∩
Intersection keeps only shared elements: A∩B={x∣x∈A AND x∈B}.
- Can produce the empty set. When A∩B=∅, we call A and B disjoint.
- Corresponds to logical AND. Intersection is more restrictive than union.
- The result is always at most as large as the smaller input set.
Set Difference: ∖ or −
Set difference gives you elements in A but not in B: A∖B={x∣x∈A AND x∈/B}.
- Not commutative. A∖B=B∖A in general. For example, {1,2,3}∖{2,3,4}={1}, but {2,3,4}∖{1,2,3}={4}.
- Relates to complement. A∖B=A∩B′ when working within a universal set.
Complement: A′ or Aˉ or Ac
The complement is everything in the universal set that's outside A: A′={x∈U∣x∈/A}.
- Double complement returns the original. (A′)′=A.
- De Morgan's Laws apply:
- (A∪B)′=A′∩B′
- (A∩B)′=A′∪B′
These laws are worth memorizing. The pattern: when you "push" the complement through, union and intersection swap.
Compare: ∪ vs. ∩. Union grows sets; intersection shrinks them. Exam problems often test whether you can apply De Morgan's Laws to switch between them correctly.
Counting and Constructing New Sets
These notations let you measure sets and build more complex structures from simpler ones.
Cardinality: ∣A∣
Cardinality counts the number of elements in a set. If A={a,b,c}, then ∣A∣=3.
- Inclusion-exclusion principle for unions: ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣. You subtract the intersection because those elements got counted twice.
- For three sets: ∣A∪B∪C∣=∣A∣+∣B∣+∣C∣−∣A∩B∣−∣A∩C∣−∣B∩C∣+∣A∩B∩C∣.
- Infinite sets have cardinality too, but for this course, focus on finite sets.
Power Set: P(A) or 2A
The power set is the set of all subsets of A, including ∅ and A itself.
- Cardinality is 2n. If ∣A∣=n, then ∣P(A)∣=2n. Each element is either in or out of a given subset, giving 2 choices per element.
- Example: P({1,2})={∅,{1},{2},{1,2}}. That's 22=4 subsets from two elements.
- Note the types: Elements of P(A) are sets, not individual elements. So {1}∈P({1,2}) is true, but 1∈P({1,2}) is false.
Cartesian Product: ×
The Cartesian product gives all ordered pairs from two sets: A×B={(a,b)∣a∈A and b∈B}.
- Order matters and cardinality multiplies. ∣A×B∣=∣A∣⋅∣B∣. The pair (1,2) is different from (2,1).
- Foundation for relations and functions. Any relation R from A to B is a subset of A×B, and any function f:A→B is a special kind of relation.
- Example: If A={1,2} and B={x,y}, then A×B={(1,x),(1,y),(2,x),(2,y)}.
Compare: P(A) vs. A×A. Both create new sets from A, but power sets contain subsets while Cartesian products contain ordered pairs. If ∣A∣=2, then ∣P(A)∣=4 and ∣A×A∣=4. Same size, completely different structures.
Quick Reference Table
|
| Defining sets | {}, set-builder notation {x∣P(x)} |
| Membership | ∈, ∈/ |
| Containment | ⊆, ⊂ |
| Boundary sets | ∅, U |
| Combining sets | ∪, ∩ |
| Removing elements | ∖, complement A′ |
| Measuring sets | $$ |
| Building structures | P(A), A×B |
Self-Check Questions
-
What's the difference between ∈ and ⊆? Give an example where {1}⊆A is true but {1}∈A is false.
-
If A={1,2,3} and B={2,3,4}, compute A∪B, A∩B, A∖B, and B∖A. Which two results are equal?
-
Explain why ∅⊆A is true for every set A, using the definition of subset.
-
Compare P(A) and A×A when A={a,b}. List all elements of each and explain why they have the same cardinality but different types of elements.
-
Using De Morgan's Laws, rewrite (A∪B)′ in terms of complements and intersection. Then verify with U={1,2,3,4}, A={1,2}, B={2,3}.