Chapter 1 · Sets

1.3 Venn Diagrams and Operations on Sets

Combine sets into new ones — $A\cup B$, $A\cap B$, $A-B$ and $A'$ — see each as a shaded region of a Venn diagram, and calculate with the laws that link them, including De Morgan's laws.

A class teacher surveys the $40$ students of Class 11-B: who plays cricket, and who plays football? Her questions sound simple, but each one asks for a different set. "Who plays at least one of the two games?" "Who plays both?" "Who plays cricket but not football?" "Who plays neither?" Each answer is built from the set $C$ of cricketers and the set $F$ of footballers by an operation — just as $3+5$ and $3\times5$ are built from two numbers.

In this section we define the four operations on sets — union, intersection, difference and complement — and draw each one as a shaded region of a Venn diagram. Then we collect the laws these operations obey. Some look exactly like the laws of arithmetic (commutative, associative, distributive); others, such as De Morgan's laws, are new and are used again in probability (Chapter 14) and in logic and computer science.

Venn Diagrams, Union and Intersection

A Venn diagram (named after the English logician John Venn) draws the universal set $U$ as a rectangle and each set under discussion as a closed region — usually a circle — inside it. Elements may be written in the regions where they belong. Two overlapping circles cut the rectangle into four regions: only in $A$, in both $A$ and $B$, only in $B$, and in neither. Every operation in this section is a choice of some of these regions.

📘 Definition 1.10 — Union of sets

The union of sets $A$ and $B$ is the set of all elements that are in $A$ or in $B$ (or in both): $$A\cup B=\{x : x\in A \text{ or } x\in B\}.$$ In a Venn diagram, $A\cup B$ is the whole of both circles. The word "or" in mathematics is inclusive: an element lying in both sets belongs to the union, and it is written only once.

✏️ Example 1 — Finding unions
Find $A\cup B$ when (a) $A=\{2,4,6,8\}$, $B=\{6,8,10,12\}$; (b) $A=\{a,e,i,o,u\}$, $B=\{a,b,c,d\}$; (c) $A=\{1,2,3\}$, $B=\{x : x\in\mathbb{N},\ x\lt6\}$; (d) $A=[-1,3)$, $B=[2,5]$; (e) $A=(-2,0)$, $B=(0,2)$.
Method Write down every element of $A$, then add the elements of $B$ that are not already listed. Never write a common element twice.
(a)–(b) (a) $A\cup B=\{2,4,6,8,10,12\}$ ($6$ and $8$ are listed once). (b) $A\cup B=\{a,b,c,d,e,i,o,u\}$.
(c) $B=\{1,2,3,4,5\}$ and every element of $A$ is already in $B$, so $A\cup B=\{1,2,3,4,5\}=B$. In general, if $A\subset B$ then $A\cup B=B$.
(d) Draw both intervals on a number line: $[-1,3)$ runs from $-1$ (included) up to $3$, and $[2,5]$ starts at $2$ before the first one ends. Together they cover everything from $-1$ to $5$, both included: $A\cup B=[-1,5]$.
(e) The two intervals touch at $0$, but $0$ belongs to neither. So $A\cup B=(-2,0)\cup(0,2)$ — all of $(-2,2)$ except the single number $0$. This union is not an interval.
📐 Theorem 1.2 — Properties of union

For any subsets $A$, $B$, $C$ of a universal set $U$:

  1. $A\cup B=B\cup A$ (commutative law);
  2. $(A\cup B)\cup C=A\cup(B\cup C)$ (associative law);
  3. $A\cup\phi=A$ ($\phi$ is the identity for union);
  4. $A\cup A=A$ (idempotent law);
  5. $U\cup A=U$;
  6. $A\subset A\cup B$ and $B\subset A\cup B$.

Proof. (1) "$x\in A$ or $x\in B$" says the same as "$x\in B$ or $x\in A$". (2) Both sides are the set of elements lying in at least one of $A$, $B$, $C$. (3) $\phi$ contributes no elements. (4) "$x\in A$ or $x\in A$" just says $x\in A$. (5) $A\subset U$, so adding the elements of $A$ to $U$ adds nothing new. (6) If $x\in A$ then "$x\in A$ or $x\in B$" is true. $\blacksquare$

📘 Definition 1.11 — Intersection of sets; disjoint sets

The intersection of sets $A$ and $B$ is the set of all elements that are in both $A$ and $B$: $$A\cap B=\{x : x\in A \text{ and } x\in B\}.$$ In a Venn diagram, $A\cap B$ is the lens-shaped overlap of the two circles. If $A\cap B=\phi$, the sets $A$ and $B$ are called disjoint sets; they are drawn as circles that do not overlap.

✏️ Example 2 — Finding intersections
Find $A\cap B$, and say whether $A$ and $B$ are disjoint: (a) $A=\{2,4,6,8\}$, $B=\{6,8,10,12\}$; (b) $A=\{x : x\in\mathbb{N},\ x \text{ divides } 12\}$, $B=\{x : x\in\mathbb{N},\ x \text{ divides } 18\}$; (c) $A=\{1,3,5,7\}$, $B=\{2,4,6\}$; (d) $A=(-1,3)$, $B=[2,5]$.
(a) The common elements are $6$ and $8$: $A\cap B=\{6,8\}$. Not disjoint.
(b) In roster form $A=\{1,2,3,4,6,12\}$ and $B=\{1,2,3,6,9,18\}$, so $A\cap B=\{1,2,3,6\}$ — exactly the divisors of $6=\text{HCF}(12,18)$. Not disjoint.
(c) No element is common (odd numbers against even numbers): $A\cap B=\phi$, so $A$ and $B$ are disjoint.
(d) We need $-1\lt x\lt3$ and $2\le x\le5$, i.e. $2\le x\lt3$. So $A\cap B=[2,3)$: the larger left end and the smaller right end, each keeping its own bracket.
📐 Theorem 1.3 — Properties of intersection; distributive laws

For any subsets $A$, $B$, $C$ of a universal set $U$:

  1. $A\cap B=B\cap A$ (commutative law);
  2. $(A\cap B)\cap C=A\cap(B\cap C)$ (associative law);
  3. $A\cap\phi=\phi$ and $A\cap U=A$ ($U$ is the identity for intersection);
  4. $A\cap A=A$ (idempotent law);
  5. $A\cap B\subset A$ and $A\cap B\subset B$;
  6. $A\cap(B\cup C)=(A\cap B)\cup(A\cap C)$ and $A\cup(B\cap C)=(A\cup B)\cap(A\cup C)$ (distributive laws).

Proof of the first distributive law. For any element $x$, $$\begin{aligned}x\in A\cap(B\cup C)&\iff x\in A \text{ and } (x\in B \text{ or } x\in C)\\&\iff (x\in A \text{ and } x\in B) \text{ or } (x\in A \text{ and } x\in C)\\&\iff x\in(A\cap B)\cup(A\cap C).\end{aligned}$$ Since the two sets have exactly the same elements, they are equal. Parts (1)–(5) follow directly from the meaning of "and"; the second distributive law is proved in the same way with "and" and "or" exchanged (Exercise III). $\blacksquare$

✏️ Example 3 — Checking a distributive law by listing
Let $A=\{1,2,3,4,5\}$, $B=\{2,4,6,8\}$ and $C=\{3,4,5,6\}$. Verify that $A\cap(B\cup C)=(A\cap B)\cup(A\cap C)$.
LHS $B\cup C=\{2,3,4,5,6,8\}$, so $A\cap(B\cup C)=\{2,3,4,5\}$.
RHS $A\cap B=\{2,4\}$ and $A\cap C=\{3,4,5\}$, so $(A\cap B)\cup(A\cap C)=\{2,3,4,5\}$.
Check Both sides equal $\{2,3,4,5\}$. ✓ Note that an example only illustrates a law; the proof in Theorem 1.3 is what shows it holds for all sets.
Interactive 1 — The Venn Operations Lab

Two circles cut $U$ into four regions. For the chosen operation the lab visits each region in turn and asks "does this region belong to the new set?" — the regions that say yes are shaded, and the elements inside them form the answer. Press ▶ to let it run through all the operations; watch $A-B$ and $B-A$ shade different regions, and try the pair with $A\subset B$.

set—
elements—
number of elements—
$n(A),\ n(B),\ n(A\cap B)$—

Difference and Complement

"Cricket but not football" removes the footballers from the cricketers. That is a difference of sets. When the set we remove from is the whole universal set, the result gets a special name — the complement.

📘 Definition 1.12 — Difference of sets

The difference of sets $A$ and $B$, in this order, is the set of elements of $A$ that are not in $B$: $$A-B=\{x : x\in A \text{ and } x\notin B\}.$$ In a Venn diagram, $A-B$ is the part of circle $A$ outside circle $B$ ("only $A$"). In general $A-B\ne B-A$.

✏️ Example 4 — Differences
(a) Let $A=\{1,2,3,4,5,6\}$ and $B=\{2,4,6,8\}$. Find $A-B$, $B-A$ and $A\cap B$, and show that these three sets are pairwise disjoint with union $A\cup B$.
(b) Find $[0,5]-(1,3)$ and $\mathbb{R}-\mathbb{Q}$.
(c) Describe $\mathbb{N}-\{x : x\in\mathbb{N},\ x \text{ is even}\}$.
(a) $A-B=\{1,3,5\}$ (remove $2,4,6$ from $A$); $B-A=\{8\}$; $A\cap B=\{2,4,6\}$.
Disjoint No element appears in two of these lists. Their union is $\{1,2,3,4,5,6,8\}=A\cup B$. In the Venn diagram they are the three regions "only $A$", "both" and "only $B$", which together make up both circles.
(b) Removing the open interval $(1,3)$ from $[0,5]$ leaves $0\le x\le1$ and $3\le x\le5$ — the end points $1$ and $3$ stay, because they were never in $(1,3)$. So $[0,5]-(1,3)=[0,1]\cup[3,5]$. And $\mathbb{R}-\mathbb{Q}$ is the set $T$ of irrational numbers (Section 1.2).
(c) Removing the even natural numbers leaves the odd ones: $\{1,3,5,7,\dots\}$.
📘 Definition 1.13 — Complement of a set

Let $U$ be the universal set and $A\subset U$. The complement of $A$ is the set of all elements of $U$ that are not in $A$: $$A'=U-A=\{x : x\in U \text{ and } x\notin A\}.$$ In a Venn diagram, $A'$ is everything inside the rectangle but outside circle $A$. The complement depends on $U$: change the universal set and the complement changes too.

📐 Theorem 1.4 — Laws of complements; De Morgan's laws

For subsets $A$, $B$ of a universal set $U$:

  1. $A\cup A'=U$ and $A\cap A'=\phi$ (complement laws);
  2. $(A')'=A$ (law of double complementation);
  3. $U'=\phi$ and $\phi'=U$;
  4. $A-B=A\cap B'$;
  5. $(A\cup B)'=A'\cap B'$ and $(A\cap B)'=A'\cup B'$ (De Morgan's laws).

Proof of the first De Morgan law. For any $x\in U$, $$\begin{aligned}x\in(A\cup B)'&\iff x\notin A\cup B\\&\iff x\notin A \text{ and } x\notin B\\&\iff x\in A' \text{ and } x\in B'\\&\iff x\in A'\cap B'.\end{aligned}$$ The middle step is the heart of it: an element fails to be in "$A$ or $B$" exactly when it is in neither. The second law is proved the same way (Exercise III), and (1)–(4) follow directly from Definitions 1.12 and 1.13. $\blacksquare$

✏️ Example 5 — Verifying De Morgan's laws
Let $U=\{1,2,3,\dots,10\}$, $A=\{2,4,6,8,10\}$ and $B=\{2,3,5,7\}$. Find $A'$, $B'$, and verify both of De Morgan's laws.
Complements $A'=\{1,3,5,7,9\}$ and $B'=\{1,4,6,8,9,10\}$.
First law $A\cup B=\{2,3,4,5,6,7,8,10\}$, so $(A\cup B)'=\{1,9\}$. Also $A'\cap B'=\{1,9\}$. Equal ✓
Second law $A\cap B=\{2\}$, so $(A\cap B)'=\{1,3,4,5,6,7,8,9,10\}$. Also $A'\cup B'=\{1,3,4,5,6,7,8,9,10\}$. Equal ✓
Check $n\big((A\cap B)'\big)=10-1=9$: the complement of a one-element set in a ten-element $U$ has nine elements. ✓
✏️ Example 6 — Proving identities with the laws
(a) Prove that $A-(A-B)=A\cap B$ for all sets $A$, $B$.
(b) Prove that if $A\cup B=A\cap B$, then $A=B$.
(a) Rewrite By Theorem 1.4(4), $A-B=A\cap B'$, so $A-(A-B)=A\cap(A\cap B')'$.
(a) De Morgan $(A\cap B')'=A'\cup(B')'=A'\cup B$. Hence $A-(A-B)=A\cap(A'\cup B)$.
(a) Distribute $A\cap(A'\cup B)=(A\cap A')\cup(A\cap B)=\phi\cup(A\cap B)=A\cap B$. $\blacksquare$ (In words: removing from $A$ "the part of $A$ outside $B$" leaves the part of $A$ inside $B$.)
(b) Let $x\in A$. Then $x\in A\cup B=A\cap B$, so $x\in B$; thus $A\subset B$. In the same way, $x\in B\Rightarrow x\in A\cup B=A\cap B\Rightarrow x\in A$, so $B\subset A$. By Theorem 1.1(3), $A=B$. $\blacksquare$
Interactive 2 — The Law Tester

An identity between sets is true exactly when its two sides shade the same regions of the Venn diagram — whatever elements those regions contain. The tester shades the left-hand side in the left panel and the right-hand side in the right panel, then checks region by region. Two of the "laws" in the list are false: find the region that exposes each one.

regions checked—
now checking—
mismatches—
verdict—
⚠️ Common mistakes with set operations

1. "Or" includes "both". $A\cup B$ contains the elements common to $A$ and $B$ — once each.

2. Order matters in a difference. $A-B$ and $B-A$ are different sets (they are even disjoint). Read $A-B$ as "in $A$, not in $B$".

3. The complement of a union is not the union of complements. $(A\cup B)'=A'\cap B'$: the operation flips as the dash moves inside. Writing $(A\cup B)'=A'\cup B'$ is the commonest error in this chapter — Interactive 2, claim 7, shows the regions where it fails.

4. A complement needs a universal set. With $U=\{1,2,\dots,10\}$, $\{2,4\}'$ has eight elements; with $U=\mathbb{N}$ it is infinite.

5. With intervals, watch the end points. $[0,5]-(1,3)$ keeps $1$ and $3$; $[0,5]-[1,3]$ does not, and equals $[0,1)\cup(3,5]$.

📘 In the CBSE syllabus — school assessment only (not in the year-end board exam)

Practical problems on union and intersection are taught and tested in school, but not in the year-end board exam. JEE Main and JEE Advanced both list the operations on sets, and JEE Advanced names practical problems based on them.

For finite sets $A$ and $B$, adding $n(A)$ and $n(B)$ counts the elements of $A\cap B$ twice, so $$n(A\cup B)=n(A)+n(B)-n(A\cap B).$$ If $A$ and $B$ are disjoint this is just $n(A\cup B)=n(A)+n(B)$. (For three sets: $n(A\cup B\cup C)=\sum n(A)-\sum n(A\cap B)+n(A\cap B\cap C)$.)

Worked example. Each of the $120$ students of a junior college uses at least one of two UPI apps, P and Q; $72$ use P and $65$ use Q. How many use both, and how many use P only?
Solution. Every student uses at least one app, so $n(P\cup Q)=120$. Then $120=72+65-n(P\cap Q)$ gives $n(P\cap Q)=17$. P only: $n(P-Q)=72-17=55$.

Exercises

I
Union and intersection.
  • 1 $A=\{1,3,5\}$, $B=\{1,2,3\}$. Find $A\cup B$ and $A\cap B$.
  • 2 $A=\{a,b\}$, $B=\{a,b,c\}$. Find $A\cup B$ and $A\cap B$. What do you notice?
  • 3 $A=\{x : x\in\mathbb{N},\ 1\lt x\le6\}$, $B=\{x : x\in\mathbb{N},\ 6\lt x\lt10\}$. Find $A\cup B$ and $A\cap B$.
  • 4 $A$ = the set of primes less than $20$, $B$ = the set of odd natural numbers less than $20$. Find $A\cap B$ and $A\cup B$.
  • 5 Find $(-3,2]\cup[0,6)$ and $(-3,2]\cap[0,6)$.
  • 6 Find $[1,4]\cup(4,7)$ and $[1,4]\cap(4,7)$.
  • 7 If $A\subset B$, write $A\cup B$ and $A\cap B$ more simply.
  • 8 Which pairs are disjoint? (a) $\{1,2,3,4\}$ and $\{x : x\in\mathbb{N},\ 4\le x\le6\}$ (b) $\{a,e,i,o,u\}$ and $\{c,d,e,f\}$ (c) the even integers and the odd integers
  • 9 Transport. In a city's metro, $B$ is the set of stations on the Blue Line and $Y$ the set of stations on the Yellow Line. Describe $B\cap Y$ and $B\cup Y$ in words. What would $B\cap Y=\phi$ mean for a passenger?
1 $A\cup B=\{1,2,3,5\}$; $A\cap B=\{1,3\}$.
2 $A\cup B=\{a,b,c\}=B$ and $A\cap B=\{a,b\}=A$ — because $A\subset B$.
3 $A=\{2,3,4,5,6\}$, $B=\{7,8,9\}$. $A\cup B=\{2,3,4,5,6,7,8,9\}$; $A\cap B=\phi$ (disjoint).
4 $A=\{2,3,5,7,11,13,17,19\}$, $B=\{1,3,5,\dots,19\}$. $A\cap B=\{3,5,7,11,13,17,19\}$ (every prime except $2$); $A\cup B=\{1,2,3,5,7,9,11,13,15,17,19\}$.
5 Union $(-3,6)$; intersection $[0,2]$.
6 Union $[1,7)$ (the two pieces join at $4$, which belongs to $[1,4]$); intersection $\phi$, since $4\notin(4,7)$.
7 $A\cup B=B$ and $A\cap B=A$.
8 (a) Not disjoint: $4$ is common. (b) Not disjoint: $e$ is common. (c) Disjoint: no integer is both even and odd.
9 $B\cap Y$ is the set of interchange stations, where you can change between the two lines; $B\cup Y$ is the set of stations served by at least one of the two lines. $B\cap Y=\phi$ would mean there is no direct interchange — a passenger could not switch lines without using a third line or leaving the network.
II
Difference and complement. In parts 1–8, $U=\{1,2,3,4,5,6,7,8,9\}$, $A=\{1,2,3,4\}$, $B=\{2,4,6,8\}$ and $C=\{3,4,5,6\}$.
  • 1 $A'$
  • 2 $B'$
  • 3 $(A\cup C)'$
  • 4 $(A')'$
  • 5 $(B-C)'$
  • 6 $A-B$ and $B-A$
  • 7 $A-C$ and $C-A$
  • 8 $A'\cap B'$, and check that it equals $(A\cup B)'$.
  • 9 Take $U=\mathbb{N}$. Find the complements of (a) $\{x : x \text{ is an even natural number}\}$ (b) $\{x : x\in\mathbb{N},\ x\gt6\}$.
  • 10 Take $U=\mathbb{R}$. Find the complement of $[2,5)$, and find $[-2,4]-[0,1)$.
Check: see parts 1–8 shaded on a Venn diagram of $A$, $B$, $C$
set—
elements—
number of elements—
1 $A'=\{5,6,7,8,9\}$.
2 $B'=\{1,3,5,7,9\}$.
3 $A\cup C=\{1,2,3,4,5,6\}$, so $(A\cup C)'=\{7,8,9\}$.
4 $(A')'=A=\{1,2,3,4\}$ (double complementation).
5 $B-C=\{2,8\}$, so $(B-C)'=\{1,3,4,5,6,7,9\}$.
6 $A-B=\{1,3\}$; $B-A=\{6,8\}$.
7 $A-C=\{1,2\}$; $C-A=\{5,6\}$.
8 $A'\cap B'=\{5,6,7,8,9\}\cap\{1,3,5,7,9\}=\{5,7,9\}$. And $A\cup B=\{1,2,3,4,6,8\}$, so $(A\cup B)'=\{5,7,9\}$ ✓ (De Morgan).
9 (a) The set of odd natural numbers. (b) $\{1,2,3,4,5,6\}$.
10 $[2,5)'=(-\infty,2)\cup[5,\infty)$ — the end point $5$ was excluded from $[2,5)$, so it is in the complement. $[-2,4]-[0,1)=[-2,0)\cup[1,4]$.
III
Laws and proofs. $A$, $B$, $C$ are subsets of a universal set $U$.
  • 1 Verify $A\cup(B\cap C)=(A\cup B)\cap(A\cup C)$ for $A=\{1,2\}$, $B=\{2,3,4\}$, $C=\{4,5\}$.
  • 2 Prove that $A\cap B\subset A\subset A\cup B$.
  • 3 Prove that $A-B=A\cap B'$.
  • 4 Prove the second De Morgan law, $(A\cap B)'=A'\cup B'$.
  • 5 Prove the second distributive law, $A\cup(B\cap C)=(A\cup B)\cap(A\cup C)$.
  • 6 Show that $A\cap B=A$ if and only if $A\subset B$.
  • 7 Is it true that $A\cup B=A\cup C$ always implies $B=C$? Prove it or give a counterexample.
  • 8 Prove that $(A-B)\cup(A\cap B)=A$.
1 $B\cap C=\{4\}$, so LHS $=\{1,2,4\}$. $A\cup B=\{1,2,3,4\}$, $A\cup C=\{1,2,4,5\}$, so RHS $=\{1,2,4\}$. Equal ✓
2 If $x\in A\cap B$ then in particular $x\in A$; so $A\cap B\subset A$. If $x\in A$ then "$x\in A$ or $x\in B$" is true, so $x\in A\cup B$; so $A\subset A\cup B$.
3 $x\in A-B\iff x\in A$ and $x\notin B\iff x\in A$ and $x\in B'\iff x\in A\cap B'$.
4 $x\in(A\cap B)'\iff x\notin A\cap B\iff$ it is not true that $x$ is in both $\iff x\notin A$ or $x\notin B\iff x\in A'$ or $x\in B'\iff x\in A'\cup B'$.
5 $x\in A\cup(B\cap C)\iff x\in A$ or ($x\in B$ and $x\in C$) $\iff$ ($x\in A$ or $x\in B$) and ($x\in A$ or $x\in C$) $\iff x\in(A\cup B)\cap(A\cup C)$. (Check the middle step in both cases: if $x\in A$ both brackets are true; if $x\notin A$ both sides say $x\in B$ and $x\in C$.)
6 If $A\cap B=A$ then every $x\in A$ lies in $A\cap B$, hence in $B$: $A\subset B$. Conversely, if $A\subset B$, then $A\cap B\subset A$ always, and every $x\in A$ is also in $B$, so $A\subset A\cap B$; hence $A\cap B=A$.
7 False. Take $A=\{1,2\}$, $B=\{1\}$, $C=\{2\}$: $A\cup B=\{1,2\}=A\cup C$ but $B\ne C$. (Compare Exam corner E4: adding $A\cap B=A\cap C$ does force $B=C$.)
8 $(A-B)\cup(A\cap B)=(A\cap B')\cup(A\cap B)=A\cap(B'\cup B)=A\cap U=A$, using the distributive and complement laws.
IV
Simplifying and describing.
  • 1 Simplify $(A\cup B)\cap(A\cup B')$.
  • 2 Simplify $(A'\cup B')'$.
  • 3 Simplify $A\cap(A'\cup B)$.
  • 4 If $A$ and $B$ are disjoint, find $A-B$ and $A\cap B'$.
  • 5 School clubs. $U$ is the set of students of a school, $M$ the set of members of the maths club and $S$ the set of members of the sports team. Write in symbols: (a) students in neither (b) maths-club members who are not in the sports team (c) students in exactly one of the two.
1 By the second distributive law, $(A\cup B)\cap(A\cup B')=A\cup(B\cap B')=A\cup\phi=A$.
2 De Morgan: $(A'\cup B')'=(A')'\cap(B')'=A\cap B$.
3 $A\cap(A'\cup B)=(A\cap A')\cup(A\cap B)=\phi\cup(A\cap B)=A\cap B$.
4 No element of $A$ is in $B$, so nothing is removed: $A-B=A$, and $A\cap B'=A-B=A$.
5 (a) $(M\cup S)'$, which by De Morgan equals $M'\cap S'$. (b) $M-S$ (or $M\cap S'$). (c) $(M-S)\cup(S-M)$.
🎯 Exam corner Board · 1 markBoard · 2 marksBoard · 3 marksJEE MainJEE Advanced

How this is examined: Board papers ask for unions, differences and complements of listed sets (1–2 marks) and short proofs or verifications of De Morgan's and the distributive laws (2–3 marks); JEE tests the laws through "which statements are always true" questions and uses $n(A\cup B)$ (see the 📘 box) for counting.

E1. Board · 1 mark If $A=\{1,2,3,4\}$ and $B=\{3,4,5,6\}$, then $A-B$ is (A) $\{1,2\}$   (B) $\{5,6\}$   (C) $\{3,4\}$   (D) $\{1,2,5,6\}$

Idea Keep the elements of $A$ that are not in $B$: remove $3$ and $4$ from $A$.
Trap (B) is $B-A$ (order reversed); (C) is $A\cap B$; (D) is "in exactly one of the sets".
Answer (A).

E2. Board · 2 marks Let $U=\{1,2,3,4,5,6,7,8\}$, $A=\{1,2,5,6\}$ and $B=\{2,3,6,7\}$. Verify that $(A\cap B)'=A'\cup B'$.

LHS $A\cap B=\{2,6\}$, so $(A\cap B)'=\{1,3,4,5,7,8\}$. (1 mark)
RHS $A'=\{3,4,7,8\}$, $B'=\{1,4,5,8\}$, so $A'\cup B'=\{1,3,4,5,7,8\}$. (1 mark)
Answer Both sides equal $\{1,3,4,5,7,8\}$, so the law is verified.

E3. Board · 3 marks For any sets $A$, $B$, $C$ prove that $A\cap(B-C)=(A\cap B)-(A\cap C)$.

LHS $x\in A\cap(B-C)\iff x\in A,\ x\in B$ and $x\notin C$. (1 mark)
RHS $x\in(A\cap B)-(A\cap C)\iff x\in A,\ x\in B$, and $x\notin A\cap C$. Since $x\in A$ already, "$x\notin A\cap C$" is the same as "$x\notin C$". (1 mark)
Answer Both sides consist of exactly the elements in $A$ and $B$ but not in $C$, so the sets are equal. $\blacksquare$ (1 mark)

E4. JEE Main Let $A$, $B$, $C$ be sets such that $A\cup B=A\cup C$ and $A\cap B=A\cap C$. Then (A) $A=B$   (B) $B=C$   (C) $A=C$   (D) $A=B=C$

Method $B=B\cap(A\cup B)=B\cap(A\cup C)=(B\cap A)\cup(B\cap C)=(A\cap C)\cup(B\cap C)=(A\cup B)\cap C=(A\cup C)\cap C=C$, using absorption, the given equalities and the distributive law twice.
Trap (A), (C), (D) fail: $A=\{1\}$, $B=C=\{2\}$ satisfies both conditions with $A\ne B$. Exercise III.7 shows one condition alone is not enough.
Answer (B). ⏱ Fast route: in a Venn diagram, the first condition fixes the part of $B$ outside $A$, the second fixes the part inside $A$ — so all of $B$ equals all of $C$.

E5. JEE Main Numerical value. Each of the $95$ students of a language school studies at least one of French and German; $58$ study French and $49$ study German. Find the number who study German but not French.

Idea $n(F\cup G)=95$, so $95=58+49-n(F\cap G)$ and $n(F\cap G)=12$.
Subtract $n(G-F)=n(G)-n(F\cap G)=49-12$.
Answer $37$. ⏱ Fast route: $n(G-F)=n(F\cup G)-n(F)=95-58=37$.

E6. JEE Advanced One or more options correct. For all subsets $A$, $B$ of a universal set $U$, which of the following are always true? (A) $A-B=A\cap B'$   (B) $(A-B)\cup B=A\cup B$   (C) $(A\cup B)-B=A$   (D) $A\cap(A'\cup B)=A\cap B$

(A), (B) (A) is Theorem 1.4(4). (B) $(A\cap B')\cup B=(A\cup B)\cap(B'\cup B)=(A\cup B)\cap U=A\cup B$. Both true.
(C) $(A\cup B)-B=(A\cup B)\cap B'=(A\cap B')\cup\phi=A-B$, which equals $A$ only when $A\cap B=\phi$. Counterexample: $A=B=\{1\}$ gives $\phi\ne A$. False in general.
(D) $(A\cap A')\cup(A\cap B)=A\cap B$. True.
Answer (A), (B), (D).
🔬 Research–Teaching NexusMini project · about 45 minutes

Research question. Do the filters of a real search tool — a library catalogue, a shopping app, a job portal — behave exactly like union, intersection and complement?

Why it matters. Search engines and databases are built on set operations: AND is $\cap$, OR is $\cup$, NOT is a difference. When a filter is labelled ambiguously, users get results they did not ask for. Checking a real system against the laws of this section is a small piece of genuine software testing.

What to do.

  1. Choose a site that lets you combine two filters (for example "author = X" and "published after 2015", or "brand = Y" and "rating 4★ and above").
  2. Record the number of results for filter $A$ alone, filter $B$ alone, and both together. Decide whether "both together" is $A\cap B$ or $A\cup B$ on that site.
  3. If the site offers OR or "exclude", record those counts too and check that $n(A\cup B)=n(A)+n(B)-n(A\cap B)$ and $n(A-B)=n(A)-n(A\cap B)$ (the counting rule from the 🚀 box).
  4. Draw a Venn diagram of your two filters with the four region counts written in.

Tools: Phone browser; notebook or spreadsheet

Hand in: Your table of counts, the labelled Venn diagram, and two sentences on whether the site's filters obey the laws of sets.

Going further. Some sites combine values within one filter by OR (two brands) but across filters by AND (brand and price). Write a typical query as an expression such as $(B_1\cup B_2)\cap P$ and simplify it with the distributive law.

Instructor note: counts on live sites may not satisfy the identities exactly (results are often capped, approximate, or deduplicated differently); students should report and explain any discrepancy rather than "fix" their numbers.

🧪 Self-check quiz

0/5 correct

Q1. If $A=\{1,2,3\}$ and $B=\{2,3,4\}$, then $A\cap B$ is

Q2. $(A\cup B)'$ is always equal to

Q3. With $U=\{1,2,3,4,5,6\}$ and $A=\{1,2,3\}$, the complement $A'$ is

Q4. If $A=\{a,b,c,d\}$ and $B=\{c,d,e\}$, then $A-B$ is

Q5. If $A\subset B$, then $A\cap B$ equals