Sets and Relations — Short Notes

Sets and Relations — Short Notes

Use set notation and operations, then describe relations as structured pairs.

1. 1. Set language and notation

  • A set is a well-defined collection of distinct objects. List elements with braces, for example A = {1, 2, 3}.
  • Use x ∈ A for membership and x ∉ A for non-membership. In set-builder form, describe the rule that selects the elements.
  • The empty set ∅ has no elements; a singleton has one. Equal sets have exactly the same elements, regardless of order.
  • A ⊆ B means every element of A lies in B; A is a proper subset when A ⊆ B and A ≠ B.

2. 2. Set operations

  • A ∪ B contains elements in A, in B, or in both. A ∩ B contains only common elements.
  • A − B contains elements of A that are not in B; the complement A′ is defined relative to a stated universal set U.
  • Disjoint sets have empty intersection. A Venn diagram helps display overlap and complements.
  • Count a union without double-counting: |A ∪ B| = |A| + |B| − |A ∩ B|.

3. 3. Set laws

  • Commutative laws: A ∪ B = B ∪ A and A ∩ B = B ∩ A.
  • Associative and distributive laws allow regrouping and expansion of unions and intersections.
  • De Morgan’s laws: (A ∪ B)′ = A′ ∩ B′ and (A ∩ B)′ = A′ ∪ B′.
  • Use the universal set consistently; a complement has no meaning until its universe is specified.

4. 4. Power sets and products

  • The power set P(A) is the set of every subset of A, including ∅ and A. If |A| = n, then |P(A)| = 2^n.
  • The Cartesian product A × B is the set of ordered pairs (a, b), with a ∈ A and b ∈ B.
  • Order matters in pairs: (a, b) = (c, d) only when a = c and b = d.
  • For finite sets, |A × B| = |A||B|. This gives a quick check on a list of pairs.

5. 5. Relations

  • A relation from A to B is any subset of A × B. A relation on A is a subset of A × A.
  • The domain is the set of first components used; the range is the set of second components used.
  • On one set, reflexive means (a, a) is present for every a; symmetric means reversing a pair preserves membership.
  • Transitive means (a, b) and (b, c) imply (a, c). A relation that is reflexive, symmetric and transitive is an equivalence relation.

6. 6. Worked counting checks

  • If |A| = 3 and |B| = 2, then A × B has 6 ordered pairs and P(A) has 8 subsets.
  • For three sets, inclusion–exclusion adds each single-set count, subtracts pairwise intersections and adds the triple intersection.
  • Check a relation by testing its ordered pairs against the definitions; a single counterexample disproves a property.
  • State the universal set and whether subset notation permits equality when interpreting a question.

Quick revision table

OperationMeaningIdentity/check
Union A ∪ BIn A or B|A ∪ B| = |A| + |B| − |A ∩ B|
Intersection A ∩ BIn both A and BA ∩ A′ = ∅
Difference A − BIn A, not BA − B = A ∩ B′
Power set P(A)All subsets of A|P(A)| = 2^|A|