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 operations are the verbs of set theory—they describe how sets combine, overlap, and relate to one another. When you're working through proofs or solving problems in discrete mathematics, probability, or even computer science, you'll constantly rely on these operations to manipulate and analyze collections of objects. Understanding union, intersection, complement, difference, and their properties isn't just about memorizing symbols; it's about grasping how mathematical structures interact.
You're being tested on your ability to apply these operations correctly, recognize their algebraic properties (like commutativity and associativity), and use fundamental laws like De Morgan's to simplify complex expressions. Don't just memorize that A∪B means "everything in A or B"—know why union is commutative, how complement relates to difference, and when to apply De Morgan's Laws to break apart a complicated set expression.
Combining Sets: Union and Intersection
These two operations form the backbone of set manipulation. Union gathers elements together; intersection finds common ground. Both share key algebraic properties that make them predictable and powerful.
Union
- Notation: A∪B—includes all elements that are in A, in B, or in both sets
- No duplication occurs; each element appears exactly once in the resulting set, regardless of how many times it appears across the original sets
- Commutative and associative—A∪B=B∪A and (A∪B)∪C=A∪(B∪C), allowing flexible regrouping in proofs
Intersection
- Notation: A∩B—contains only elements that belong to both A and B simultaneously
- Identifies overlap between sets, which is essential for determining shared characteristics or common membership
- Commutative and associative—A∩B=B∩A and (A∩B)∩C=A∩(B∩C), mirroring union's algebraic behavior
Compare: Union vs. Intersection—both are commutative and associative, but union expands (gathers all elements) while intersection contracts (keeps only shared elements). If a problem asks you to maximize coverage, think union; if it asks for commonality, think intersection.
Removing Elements: Complement and Difference
These operations focus on what's not included. Complement removes everything in a set from the universal set; difference removes one set's elements from another. Understanding their relationship is key to simplifying expressions.
Complement
- Notation: A′ or Ac—includes all elements in the universal set U that are not in A
- Depends on context; the complement only makes sense relative to a defined universal set, so always identify U first
- Equivalent to U−A—this connection to set difference helps when rewriting expressions or applying De Morgan's Laws
Difference
- Notation: A−B (or A∖B)—contains elements that are in A but not in B
- Highlights uniqueness; isolates what belongs exclusively to the first set
- Not commutative—A−B=B−A in general, so order matters when computing differences
Symmetric Difference
- Notation: A△B—includes elements in either A or B, but not in both
- Equivalent to (A−B)∪(B−A)—think of it as "union minus the overlap"
- Commutative and associative—unlike regular difference, symmetric difference behaves predictably under reordering
Compare: Difference vs. Symmetric Difference—regular difference (A−B) is one-sided and non-commutative, while symmetric difference (A△B) captures elements unique to either set and is commutative. Use symmetric difference when you need to identify elements that belong to exactly one of two sets.
Set Relationships: Subsets and Disjoint Sets
Before performing operations, you often need to understand how sets relate structurally. Subset relationships establish hierarchy; disjoint sets have no overlap at all.
Subset and Superset
- Notation: A⊆B—every element of A is also an element of B, making A a subset
- Superset is the inverse—B⊇A means B contains all elements of A (and possibly more)
- Proper subsets use A⊂B—this indicates A⊆B and A=B, meaning B has at least one element not in A
Disjoint Sets
- Definition: A∩B=∅—two sets are disjoint when they share no elements whatsoever
- Critical in probability—disjoint sets represent mutually exclusive events, where P(A∪B)=P(A)+P(B)
- Pairwise vs. mutually disjoint—a collection of sets is mutually disjoint if every pair of sets in the collection is disjoint
Compare: Subset vs. Disjoint—if A⊆B, then A and B share all of A's elements (maximum overlap for A). If A and B are disjoint, they share nothing (zero overlap). These represent opposite extremes of set relationships.
Building New Structures: Power Sets and Cartesian Products
Some operations don't combine sets element-by-element but instead construct entirely new collections. Power sets enumerate all possible subsets; Cartesian products generate ordered pairs.
Power Set
- Notation: P(A) or 2A—the set of all possible subsets of A, including ∅ and A itself
- Cardinality formula: ∣P(A)∣=2n—if A has n elements, its power set has 2n elements
- Fundamental for counting arguments—power sets appear in combinatorics, topology, and anywhere you need to consider "all possible selections"
Cartesian Product
- Notation: A×B—the set of all ordered pairs (a,b) where a∈A and b∈B
- Order matters in pairs—(a,b)=(b,a) unless a=b, so the Cartesian product is not commutative
- Cardinality formula: ∣A×B∣=∣A∣⋅∣B∣—essential for counting problems involving combinations from two sets
Compare: Power Set vs. Cartesian Product—power sets work on a single set and produce subsets, while Cartesian products combine two sets into ordered pairs. If ∣A∣=3, then ∣P(A)∣=8, but ∣A×A∣=9. Different operations, different growth patterns.
Fundamental Laws: De Morgan's Rules
These laws connect union, intersection, and complement in a way that's essential for simplifying complex set expressions. De Morgan's Laws let you "distribute" a complement across an operation by swapping union and intersection.
De Morgan's Laws
- First law: (A∪B)′=A′∩B′—the complement of a union equals the intersection of the complements
- **Second law: (A∩B)′=A′∪B′—the complement of an intersection equals the union of the complements
- Proof strategy essential—when you need to prove two sets are equal, De Morgan's Laws often provide the key transformation
Compare: The Two De Morgan's Laws—both "flip" the operation (union becomes intersection, intersection becomes union) when you move the complement inside. Remember: complement reverses the operation. This pattern also appears in logic with AND/OR and negation.
Quick Reference Table
|
| Combining elements | Union (∪), Intersection (∩) |
| Removing elements | Complement (A′), Difference (A−B), Symmetric Difference (△) |
| Commutative operations | Union, Intersection, Symmetric Difference |
| Non-commutative operations | Difference (A−B), Cartesian Product (A×B) |
| Set relationships | Subset (⊆), Superset (⊇), Disjoint (A∩B=∅) |
| Structure-building operations | Power Set (P(A)), Cartesian Product (A×B) |
| Key simplification laws | De Morgan's Laws |
| Cardinality formulas | Power Set (2n), Cartesian Product ($$ |
Self-Check Questions
-
Which two operations are both commutative and associative, yet produce opposite effects on set size—one expanding and one contracting?
-
If A={1,2,3} and B={2,3,4}, compute A−B, B−A, and A△B. What does this reveal about commutativity?
-
Using De Morgan's Laws, rewrite (A∪B∪C)′ as an expression involving only intersections and complements.
-
Compare and contrast: How does the power set of a set with 4 elements differ in size from the Cartesian product of that set with itself? What does each operation represent conceptually?
-
If two sets A and B satisfy both A⊆B and A∩B=∅, what can you conclude about A? Justify your answer using definitions.