Venn Diagrams

Venn diagrams are visual tools used to represent relationships between sets. The universal set (U) is typically represented by a rectangle, and its subsets are represented by closed curves, usually circles. Venn diagram showing a universal set U and a subset A

Operations on Sets

1. Union of Sets (\cup) The union of two sets A and B is the set of all elements that are in set A, or in set B, or in both. Common elements are taken only once.

AB={x:xA or xB}A \cup B = \{x : x \in A \text{ or } x \in B\}

Venn diagram showing the union of two sets A and B

2. Intersection of Sets (\cap) The intersection of two sets A and B is the set of all elements which are common to both A and B.

AB={x:xA and xB}A \cap B = \{x : x \in A \text{ and } x \in B\}

  • Disjoint Sets: If two sets have no elements in common (AB=ϕA \cap B = \phi), they are called disjoint sets.

Venn diagram showing the intersection of two sets A and B

3. Difference of Sets (-) The difference of sets A and B (in that order) is the set of elements which belong to A but not to B.

AB={x:xA and xB}A - B = \{x : x \in A \text{ and } x \notin B\}

  • Note that in general, ABBAA - B \ne B - A.

Venn diagram showing the difference of two sets A and B

4. Complement of a Set (') Let U be the universal set. The complement of a set A, denoted by AA', is the set of all elements of U which are not in A.

A={x:xU and xA}=UAA' = \{x : x \in U \text{ and } x \notin A\} = U - A

Venn diagram showing complement of a set A

Properties & Laws of Set Operations

  • Commutative Law: AB=BAA \cup B = B \cup A; AB=BAA \cap B = B \cap A
  • Associative Law: (AB)C=A(BC)(A \cup B) \cup C = A \cup (B \cup C); (AB)C=A(BC)(A \cap B) \cap C = A \cap (B \cap C)
  • Distributive Law: A(BC)=(AB)(AC)A \cap (B \cup C) = (A \cap B) \cup (A \cap C)
  • De Morgan's Laws: These are crucial for logic and set theory.

(AB)=AB(A \cup B)' = A' \cap B' (AB)=AB(A \cap B)' = A' \cup B'

Example 1: Union and Intersection

Question: Let A={2,4,6,8}A = \{2, 4, 6, 8\} and B={6,8,10,12}B = \{6, 8, 10, 12\}. Find ABA \cup B and ABA \cap B.

Solution:

  • Union: We list all unique elements from both sets. AB={2,4,6,8,10,12}A \cup B = \{2, 4, 6, 8, 10, 12\}
  • Intersection: We list only the elements that are common to both sets. AB={6,8}A \cap B = \{6, 8\}

Example 2: Difference and Complement

Question: Let U={1,2,3,4,5,6,7,8,9}U = \{1, 2, 3, 4, 5, 6, 7, 8, 9\}, A={1,2,3,4}A = \{1, 2, 3, 4\}, and B={2,4,6,8}B = \{2, 4, 6, 8\}. Find ABA - B, BAB - A, and AA'.

Solution:

  • Difference (A - B): Elements in A but not in B. AB={1,3}A - B = \{1, 3\}
  • Difference (B - A): Elements in B but not in A. BA={6,8}B - A = \{6, 8\}
  • Complement (A'): Elements in U but not in A. A={5,6,7,8,9}A' = \{5, 6, 7, 8, 9\}