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: A∪B={x:x∈A or x∈B}A \cup B = \{x : x \in A \text{ or } x \in B\}.
  • Intersection: A∩B={x:x∈A and x∈B}A \cap B = \{x : x \in A \text{ and } x \in B\}.
  • Difference: A−B=A∖B={x:x∈A and x∉B}A - B = A \setminus B = \{x : x \in A \text{ and } x \notin B\}.
  • Symmetric difference: A△B=(A−B)∪(B−A)=(A∪B)−(A∩B)A \triangle B = (A - B) \cup (B - A) = (A \cup B) - (A \cap B).

Two sets are disjoint if A∩B=∅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.

  • A∪BA \cup B: the entire shaded region of either circle.
  • A∩BA \cap B: the overlap.
  • A−BA - B: the part of AA outside BB.
  • B−AB - 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,C⊆UA, B, C \subseteq U:

Commutative: A∪B=B∪AA \cup B = B \cup A, A∩B=B∩AA \cap B = B \cap A.

Associative: (A∪B)∪C=A∪(B∪C)(A \cup B) \cup C = A \cup (B \cup C), (A∩B)∩C=A∩(B∩C)(A \cap B) \cap C = A \cap (B \cap C).

Identity: A∪∅=AA \cup \varnothing = A, A∩U=AA \cap U = A.

Domination: A∪U=UA \cup U = U, A∩∅=∅A \cap \varnothing = \varnothing.

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

Distributive: A∪(B∩C)=(A∪B)∩(A∪C),A \cup (B \cap C) = (A \cup B) \cap (A \cup C), A∩(B∪C)=(A∩B)∪(A∩C).A \cap (B \cup C) = (A \cap B) \cup (A \cap C).

Absorption: A∪(A∩B)=AA \cup (A \cap B) = A, A∩(A∪B)=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∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C)

(⊆\subseteq) Let x∈A∩(B∪C)x \in A \cap (B \cup C). Then x∈Ax \in A and x∈B∪Cx \in B \cup C. So x∈Bx \in B or x∈Cx \in C.

  • If x∈Bx \in B: combined with x∈Ax \in A, we get x∈A∩Bx \in A \cap B, hence x∈(A∩B)∪(A∩C)x \in (A \cap B) \cup (A \cap C).
  • If x∈Cx \in C: similarly x∈A∩C⊆(A∩B)∪(A∩C)x \in A \cap C \subseteq (A \cap B) \cup (A \cap C).

Either way, x∈(A∩B)∪(A∩C)x \in (A \cap B) \cup (A \cap C).

(⊇\supseteq) Let x∈(A∩B)∪(A∩C)x \in (A \cap B) \cup (A \cap C). Then x∈A∩Bx \in A \cap B or x∈A∩Cx \in A \cap C.

  • If x∈A∩Bx \in A \cap B: x∈Ax \in A and x∈B⊆B∪Cx \in B \subseteq B \cup C, so x∈A∩(B∪C)x \in A \cap (B \cup C).
  • If x∈A∩Cx \in A \cap C: x∈Ax \in A and x∈C⊆B∪Cx \in C \subseteq B \cup C, so x∈A∩(B∪C)x \in A \cap (B \cup C).

Either way x∈A∩(B∪C)x \in A \cap (B \cup C). By antisymmetry, equality holds. \qed\qed

Disjoint sets

If A∩B=∅A \cap B = \varnothing, then ∣A∪B∣=∣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 A∪BA \cup B, A∩BA \cap B, A−BA - B, B−AB - A, A△BA \triangle B.

A∪B={1,2,3,4,5,6}A \cup B = \{1, 2, 3, 4, 5, 6\}, A∩B={3,4}A \cap B = \{3, 4\}, A−B={1,2}A - B = \{1, 2\}, B−A={5,6}B - A = \{5, 6\}, A△B={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: B∪C={1,2,3}B \cup C = \{1, 2, 3\}, so A∩(B∪C)={1,2}A \cap (B \cup C) = \{1, 2\}. RHS: A∩B={2}A \cap B = \{2\}, A∩C={1}A \cap C = \{1\}, so (A∩B)∪(A∩C)={1,2}(A \cap B) \cup (A \cap C) = \{1, 2\}. They match.

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

Clearly A⊆A∪(A∩B)A \subseteq A \cup (A \cap B) (every set is a subset of itself unioned with anything). For the reverse, take x∈A∪(A∩B)x \in A \cup (A \cap B). Then x∈Ax \in A or x∈A∩Bx \in A \cap B. In the first case x∈Ax \in A; in the second, x∈A∩B⊆Ax \in A \cap B \subseteq A. Either way x∈Ax \in A. \qed\qed

Example 4. If A⊆BA \subseteq B, show A∪B=BA \cup B = B and A∩B=AA \cap B = A.

For the first, A⊆BA \subseteq B gives A∪B⊆BA \cup B \subseteq B (since both AA and BB are subsets of BB). Also B⊆A∪BB \subseteq A \cup B trivially. So A∪B=BA \cup B = B. For the second, A∩B⊆AA \cap B \subseteq A always, and if x∈Ax \in A then x∈Bx \in B too (since A⊆BA \subseteq B), so x∈A∩Bx \in A \cap B. Hence A⊆A∩BA \subseteq A \cap B and equality holds.

Example 5 (harder). Prove A△B=(A∪B)−(A∩B)A \triangle B = (A \cup B) - (A \cap B).

Take x∈A△B=(A−B)∪(B−A)x \in A \triangle B = (A - B) \cup (B - A). Then xx is in exactly one of A,BA, B, so x∈A∪Bx \in A \cup B but x∉A∩Bx \notin A \cap B. Hence x∈(A∪B)−(A∩B)x \in (A \cup B) - (A \cap B).

Conversely, if x∈(A∪B)−(A∩B)x \in (A \cup B) - (A \cap B), then x∈Ax \in A or x∈Bx \in B, but not both. So xx is in exactly one of A,BA, B, i.e. x∈(A−B)∪(B−A)=A△Bx \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 A∪BA \cup B, A∩BA \cap B, A−BA - B, B−AB - A.
  2. Show A−B=A∩B′A - B = A \cap B' where B′B' is the complement in some UU containing both.
  3. Verify A∪(B∩C)=(A∪B)∩(A∪C)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 (A−B)∩B=∅(A - B) \cap B = \varnothing.
  5. Draw Venn diagrams for A∩B∩CA \cap B \cap C and A∪B∪CA \cup B \cup C.
  6. Prove (A∪B)−C=(A−C)∪(B−C)(A \cup B) - C = (A - C) \cup (B - C).
  7. If A⊆BA \subseteq B, prove A−C⊆B−CA - C \subseteq B - C.
  8. Find A△AA \triangle A and A△∅A \triangle \varnothing.
  9. Prove A−(A−B)=A∩BA - (A - B) = A \cap B.
  10. Show A∩(B−A)=∅A \cap (B - A) = \varnothing.
  11. Find sets A,BA, B such that A−B=B−AA - B = B - A. What does this force?
  12. Prove the absorption law A∩(A∪B)=AA \cap (A \cup B) = A.

Pitfalls / Tricks

  • A−BA - B keeps only what is in AA but not in BB. Order matters: A−B≠B−AA - B \ne B - A in general.
  • "or" in A∪BA \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.

Test Your Knowledge

Quick MCQ check on this chapter

Start Quiz →

AI Summary

Summarize this page in your favorite LLM