Math Lab
Home/Class XI/Ch 1/Venn diagrams and operations on sets

Venn diagrams and operations on sets

To compute with sets, we need operations , ways of combining two sets to make a new one. The three core operations are union, intersection and difference. Each has a clean Venn-diagram picture and obeys algebraic laws that mirror the laws of arithmetic.

Definitions

Let AA and BB be subsets of a universal set UU.

  • Union: AB={x:xA or xB}A \cup B = \{x : x \in A \text{ or } x \in B\}.
  • Intersection: AB={x:xA and xB}A \cap B = \{x : x \in A \text{ and } x \in B\}.
  • Difference: AB=AB={x:xA and xB}A - B = A \setminus B = \{x : x \in A \text{ and } x \notin B\}.
  • Symmetric difference: AB=(AB)(BA)=(AB)(AB)A \triangle B = (A - B) \cup (B - A) = (A \cup B) - (A \cap B).

Two sets are disjoint if AB=A \cap B = \varnothing.

Venn diagrams

A Venn diagram draws the universal set UU as a rectangle and each set inside it as a region (usually a circle). The picture shows which elements lie in which set.

  • ABA \cup B: the entire shaded region of either circle.
  • ABA \cap B: the overlap.
  • ABA - B: the part of AA outside BB.
  • BAB - A: the part of BB outside AA.

A Venn diagram never proves a set identity (the picture might miss a case), but it is a powerful guide , if a claimed identity fails on the picture, it is wrong; if it holds on the picture, you should try to prove it algebraically.

The algebra of sets

For all sets A,B,CUA, B, C \subseteq U:

Commutative: AB=BAA \cup B = B \cup A, AB=BAA \cap B = B \cap A.

Associative: (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).

Identity: A=AA \cup \varnothing = A, AU=AA \cap U = A.

Domination: AU=UA \cup U = U, A=A \cap \varnothing = \varnothing.

Idempotent: AA=AA \cup A = A, AA=AA \cap A = A.

Distributive: A(BC)=(AB)(AC),A \cup (B \cap C) = (A \cup B) \cap (A \cup C), A(BC)=(AB)(AC).A \cap (B \cup C) = (A \cap B) \cup (A \cap C).

Absorption: A(AB)=AA \cup (A \cap B) = A, A(AB)=AA \cap (A \cup B) = A.

Each law can be proved by the double-inclusion method. Let us prove one in detail.

Proof of distributivity: A(BC)=(AB)(AC)A \cap (B \cup C) = (A \cap B) \cup (A \cap C)

(\subseteq) Let xA(BC)x \in A \cap (B \cup C). Then xAx \in A and xBCx \in B \cup C. So xBx \in B or xCx \in C.

  • If xBx \in B: combined with xAx \in A, we get xABx \in A \cap B, hence x(AB)(AC)x \in (A \cap B) \cup (A \cap C).
  • If xCx \in C: similarly xAC(AB)(AC)x \in A \cap C \subseteq (A \cap B) \cup (A \cap C).

Either way, x(AB)(AC)x \in (A \cap B) \cup (A \cap C).

(\supseteq) Let x(AB)(AC)x \in (A \cap B) \cup (A \cap C). Then xABx \in A \cap B or xACx \in A \cap C.

  • If xABx \in A \cap B: xAx \in A and xBBCx \in B \subseteq B \cup C, so xA(BC)x \in A \cap (B \cup C).
  • If xACx \in A \cap C: xAx \in A and xCBCx \in C \subseteq B \cup C, so xA(BC)x \in A \cap (B \cup C).

Either way xA(BC)x \in A \cap (B \cup C). By antisymmetry, equality holds. \qed\qed

Disjoint sets

If AB=A \cap B = \varnothing, then AB=A+B|A \cup B| = |A| + |B|. Disjoint unions are easy to count. When the intersection is non-empty, we must subtract the overlap , leading to the inclusion–exclusion formula in a later subtopic.

Worked examples

Example 1. Let 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, ABA - B, BAB - A, ABA \triangle B.

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 - B = \{1, 2\}, BA={5,6}B - A = \{5, 6\}, AB={1,2,5,6}A \triangle B = \{1, 2, 5, 6\}.

Example 2. Verify the distributive law for A={1,2}A = \{1, 2\}, B={2,3}B = \{2, 3\}, C={1,3}C = \{1, 3\}.

LHS: BC={1,2,3}B \cup C = \{1, 2, 3\}, so A(BC)={1,2}A \cap (B \cup C) = \{1, 2\}. RHS: AB={2}A \cap B = \{2\}, AC={1}A \cap C = \{1\}, so (AB)(AC)={1,2}(A \cap B) \cup (A \cap C) = \{1, 2\}. They match.

Example 3. Prove A(AB)=AA \cup (A \cap B) = A.

Clearly AA(AB)A \subseteq A \cup (A \cap B) (every set is a subset of itself unioned with anything). For the reverse, take xA(AB)x \in A \cup (A \cap B). Then xAx \in A or xABx \in A \cap B. In the first case xAx \in A; in the second, xABAx \in A \cap B \subseteq A. Either way xAx \in A. \qed\qed

Example 4. If ABA \subseteq B, show AB=BA \cup B = B and AB=AA \cap B = A.

For the first, ABA \subseteq B gives ABBA \cup B \subseteq B (since both AA and BB are subsets of BB). Also BABB \subseteq A \cup B trivially. So AB=BA \cup B = B. For the second, ABAA \cap B \subseteq A always, and if xAx \in A then xBx \in B too (since ABA \subseteq B), so xABx \in A \cap B. Hence AABA \subseteq A \cap B and equality holds.

Example 5 (harder). Prove AB=(AB)(AB)A \triangle B = (A \cup B) - (A \cap B).

Take xAB=(AB)(BA)x \in A \triangle B = (A - B) \cup (B - A). Then xx is in exactly one of A,BA, B, so xABx \in A \cup B but xABx \notin A \cap B. Hence x(AB)(AB)x \in (A \cup B) - (A \cap B).

Conversely, if x(AB)(AB)x \in (A \cup B) - (A \cap B), then xAx \in A or xBx \in B, but not both. So xx is in exactly one of A,BA, B, i.e. x(AB)(BA)=ABx \in (A - B) \cup (B - A) = A \triangle B. \qed\qed

Try it yourself

  1. Let A={a,b,c,d}A = \{a, b, c, d\}, B={c,d,e,f}B = \{c, d, e, f\}. Find ABA \cup B, ABA \cap B, ABA - B, BAB - A.
  2. Show AB=ABA - B = A \cap B' where BB' is the complement in some UU containing both.
  3. Verify A(BC)=(AB)(AC)A \cup (B \cap C) = (A \cup B) \cap (A \cup C) for A={1,2}A = \{1, 2\}, B={2,3}B = \{2, 3\}, C={3,4}C = \{3, 4\}.
  4. Prove (AB)B=(A - B) \cap B = \varnothing.
  5. Draw Venn diagrams for ABCA \cap B \cap C and ABCA \cup B \cup C.
  6. Prove (AB)C=(AC)(BC)(A \cup B) - C = (A - C) \cup (B - C).
  7. If ABA \subseteq B, prove ACBCA - C \subseteq B - C.
  8. Find AAA \triangle A and AA \triangle \varnothing.
  9. Prove A(AB)=ABA - (A - B) = A \cap B.
  10. Show A(BA)=A \cap (B - A) = \varnothing.
  11. Find sets A,BA, B such that AB=BAA - B = B - A. What does this force?
  12. Prove the absorption law A(AB)=AA \cap (A \cup B) = A.

Pitfalls / Tricks

  • ABA - B keeps only what is in AA but not in BB. Order matters: ABBAA - B \ne B - A in general.
  • "or" in ABA \cup B is inclusive: xx can be in AA, in BB, or in both. Set-theoretic "or" is never exclusive.
  • Venn diagrams help intuition but are not proofs. Always confirm an identity by the double-inclusion argument.
  • Insight. Set operations mirror logic: \cup is "or", \cap is "and", - is "and not", ' is "not". Every law of sets is a law of logic in disguise.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Venn diagrams and operations
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6