Sets

Pick up almost any page of higher mathematics — a definition of a function, the domain of a graph, the sample space of a probability experiment, the solution of an inequality — and underneath it you will find one quiet, universal language doing the bookkeeping: sets. A set is nothing more exotic than a well-defined collection of objects, yet the German mathematician Georg Cantor's decision, in the 1870s, to study collections as objects in their own right reshaped the whole of mathematics. This chapter builds that language from the ground up and gives you the toolkit you will use, without a second thought, in every chapter that follows this year — Relations and Functions, Trigonometry, Probability, and beyond. You will start with the two ways to write a set down — roster form and set-builder form — and the precise vocabulary of membership, written with the symbols ∈\in and ∉\notin. From there the chapter builds a ladder of definitions: the empty set with no elements at all, finite and infinite sets, and what it means for two sets to be equal. The middle of the chapter is about comparison — subsets, proper subsets, the intervals of the real line as subsets of R\mathbb{R}, and the power set, the set of all subsets of a set. Venn diagrams then give you a picture to think with, and on top of that picture sit the four operations that make sets genuinely useful: union, intersection, difference and complement, each with its own algebra of laws, culminating in De Morgan's laws, one of the most quoted results in all of mathematics. Finally, the chapter turns operations into arithmetic: the counting formula n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A) + n(B) - n(A \cap B) lets you solve real "how many people like both" survey problems without drawing a single diagram. By the end, you should be able to move fluently between a verbal description of a collection, its set-builder form, its Venn diagram, and a numerical count of its elements — the same four-way fluency that every later chapter in this book will quietly assume you already have.

Key takeaways
  • A set is a well-defined collection of distinct objects, written in roster form (elements listed inside braces) or set-builder form (a common property inside braces), for example A={x:x∈N, 3<x<10}={4,5,6,7,8,9}A = \{x : x \in \mathbb{N},\ 3 < x < 10\} = \{4,5,6,7,8,9\}.
  • The empty set ϕ\phi has no elements at all; a set is finite if its number of elements n(S)n(S) is a natural number (or zero), otherwise it is infinite.
  • Two sets AA and BB are equal (A=BA = B) exactly when they have precisely the same elements — order and repetition never matter.
  • AA is a subset of BB (A⊂BA \subset B) when every element of AA is also in BB; if additionally A≠BA \neq B, AA is a proper subset. Always A⊂AA \subset A and ϕ⊂A\phi \subset A for every set AA.
  • The power set P(A)P(A) is the set of all subsets of AA (including ϕ\phi and AA itself); if n(A)=nn(A) = n, then n(P(A))=2nn(P(A)) = 2^n.
  • Intervals (a,b)(a,b), [a,b][a,b], [a,b)[a,b), (a,b](a,b] are subsets of R\mathbb{R} of length b−ab-a, each containing infinitely many real numbers, distinguished only by whether the endpoints a,ba, b are included.
  • 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\}, and difference A−B={x:x∈A and x∉B}A - B = \{x : x \in A \text{ and } x \notin B\}; sets with A∩B=ϕA \cap B = \phi are called disjoint.
  • The complement of AA with respect to a universal set UU is A′=U−A={x:x∈U and x∉A}A' = U - A = \{x : x \in U \text{ and } x \notin A\}, satisfying A∪A′=UA \cup A' = U, A∩A′=ϕA \cap A' = \phi and (A′)′=A(A')' = A.
  • De Morgan's laws: (A∪B)′=A′∩B′(A \cup B)' = A' \cap B' and (A∩B)′=A′∪B′(A \cap B)' = A' \cup B' — the complement of a union is the intersection of complements, and vice versa.
  • Key idea: every set question — describing, comparing, combining or counting collections — reduces to the single test "is x in this set", and for finite sets that test converts directly into the counting formula n(A ∪ B) = n(A) + n(B) − n(A ∩ B), the arithmetic engine behind every Venn-diagram survey problem.
The core insight

Every operation on sets — subset, power set, union, intersection, difference, complement — is built from one primitive test, "does xx belong to this set", and for finite sets that primitive collapses into the counting law n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A) + n(B) - n(A \cap B), which turns any Venn diagram into pure arithmetic.

What this chapter covers

The chapter opens with the definition of a set and its two notations — roster form and set-builder form — together with the membership symbols ∈\in and ∉\notin. It then builds a ladder of classifications: the empty set, finite versus infinite sets, and equal sets, each pinned down by a precise definition and tested against short examples. The middle portion turns to comparison: subsets and proper subsets, the special subsets of R\mathbb{R} (including N⊂Z⊂Q⊂R\mathbb{N} \subset \mathbb{Z} \subset \mathbb{Q} \subset \mathbb{R} and the irrationals TT), intervals as subsets of the real line, and the power set of a set. A universal set UU and Venn diagrams then supply the picture used for everything that follows: the four operations on sets — union, intersection, difference and complement — each stated as a formal definition, each illustrated by a Venn diagram, and each obeying a family of algebraic laws (commutative, associative, distributive, idempotent, and De Morgan's laws for the complement). The chapter closes by turning these pictures into numbers, with the counting formula for n(A∪B)n(A \cup B) and its three-set extension, which is exactly the tool competitive exams love to test in "survey of students" problems.

The core ideas

Describing a set: roster form and set-builder form

A set is a well-defined collection of objects — "well-defined" meaning that for any given object, you can say definitely whether it belongs to the collection or not. Sets are conventionally named with capital letters (A,B,X,…A, B, X, \ldots) and their elements with lowercase letters (a,b,x,…a, b, x, \ldots). If aa is an element of set AA we write a∈Aa \in A (read "aa belongs to AA"); if it is not, we write a∉Aa \notin A. There are exactly two standard ways to describe a set.

A={a1,a2,…,an}(roster form),B={x:x has property P}(set-builder form)(1)A = \{a_1, a_2, \ldots, a_n\} \qquad \text{(roster form)}, \qquad B = \{x : x \text{ has property } P\} \qquad \text{(set-builder form)} \qquad (1)

where: in roster form every element is listed once, separated by commas, inside braces — order is immaterial and repetition changes nothing, so {1,2,3}\{1,2,3\} and {3,1,2,2}\{3,1,2,2\} describe the same set. In set-builder form, the colon reads "such that" and the braces read "the set of all", so A={x:x is a natural number and 3<x<10}A = \{x : x \text{ is a natural number and } 3 < x < 10\} reads "the set of all xx such that xx is a natural number between 33 and 1010", giving A={4,5,6,7,8,9}A = \{4,5,6,7,8,9\} (this is Example 1 territory — NCERT's own Examples 1 to 5 build exactly this translation skill in both directions). Some sets — like {1,3,5,7,…}\{1,3,5,7,\ldots\}, the odd naturals — use three dots to signal a pattern that continues indefinitely; not every infinite set can be listed this way, since a set like R\mathbb{R} follows no simple pattern at all.

Empty, finite and infinite sets

A set that contains no elements at all is the empty set (or null set, or void set), written ϕ\phi or {}\{\} — for instance {x:x∈N, 1<x<2}\{x : x \in \mathbb{N},\ 1 < x < 2\} is empty because no natural number lies strictly between 11 and 22 (NCERT Example 6 works through five such cases). If a set's number of elements n(S)n(S) is a natural number (or zero, for ϕ\phi), the set is called finite; otherwise it is infinite. The set of natural numbers N\mathbb{N}, for example, is infinite, while the set of days of the week is finite with n(S)=7n(S) = 7. Because you cannot list every element of an infinite set inside braces, infinite sets in roster form use the three-dot convention — {1,2,3,…}\{1,2,3,\ldots\} for N\mathbb{N}, {…,−2,−1,0,1,2,…}\{\ldots,-2,-1,0,1,2,\ldots\} for Z\mathbb{Z} — but a set like the real numbers, which follows no such listable pattern, cannot be written in roster form at all.

Equal sets

Two sets AA and BB are equal, written A=BA = B, precisely when they contain exactly the same elements — every element of AA lies in BB and every element of BB lies in AA. Order of listing and repeated elements never affect this: {1,2,3}\{1,2,3\} and {2,2,1,3,3}\{2,2,1,3,3\} are the same set, and the set of letters in "CATARACT" equals the set of letters in "TRACT" (both reduce to {C,A,T,R}\{C, A, T, R\}, NCERT's Example 23). Equality is therefore a double-inclusion idea — A=BA = B exactly when A⊂BA \subset B and B⊂AB \subset A — a technique you will use repeatedly to prove two sets coincide, as in the first worked derivation below.

Subsets, intervals and the power set

AA is a subset of BB, written A⊂BA \subset B, if every element of AA is also an element of BB — formally, A⊂BA \subset B if a∈A  ⟹  a∈Ba \in A \implies a \in B. Every set is a subset of itself (A⊂AA \subset A), and the empty set is a subset of every set (ϕ⊂A\phi \subset A). When A⊂BA \subset B but A≠BA \neq B, AA is a proper subset of BB, and BB is called a superset of AA. A set with exactly one element is a singleton set. Among the number systems, N⊂Z⊂Q⊂R\mathbb{N} \subset \mathbb{Z} \subset \mathbb{Q} \subset \mathbb{R}, while the irrationals T={x:x∈R and x∉Q}T = \{x : x \in \mathbb{R} \text{ and } x \notin \mathbb{Q}\} also satisfy T⊂RT \subset \mathbb{R}, with Q\mathbb{Q} and TT sharing no elements.

(a,b)={x:a<x<b},[a,b]={x:a≤x≤b},[a,b)={x:a≤x<b},(a,b]={x:a<x≤b}(2)(a,b) = \{x : a < x < b\}, \quad [a,b] = \{x : a \le x \le b\}, \quad [a,b) = \{x : a \le x < b\}, \quad (a,b] = \{x : a < x \le b\} \qquad (2)

where: a,b∈Ra, b \in \mathbb{R} with a<ba < b; a round bracket excludes that endpoint and a square bracket includes it, so (a,b)(a,b) is the open interval, [a,b][a,b] is the closed interval, and [a,b)[a,b), (a,b](a,b] are half-open (or half-closed) intervals. Every one of these is a subset of R\mathbb{R} containing infinitely many points, and its length is b−ab - a regardless of which endpoints are included. Special unbounded intervals extend the same notation: [0,∞)[0,\infty) is the non-negative reals, (−∞,0)(-\infty,0) the negative reals, and (−∞,∞)(-\infty,\infty) is all of R\mathbb{R}.

Figure
A real number line showing four intervals stacked one above another between the points a and b, an open interval with unfilled circles at both ends, a closed interval with filled circles at both ends, a right half open interval with a filled circle at a and unfilled circle at b, and a left half open interval with unfilled circle at a and filled circle at b
Four kinds of interval on the real line — same span, different endpoints (a, b) [a, b] [a, b) (a, b] a b unfilled circle = endpoint excluded, filled circle = endpoint included, length always b minus a

Alongside subsets, the power set of AA, written P(A)P(A), is the set of all subsets of AA — every subset, including ϕ\phi and AA itself, is one of its elements. For A={1,2}A = \{1,2\}, P(A)={ϕ,{1},{2},{1,2}}P(A) = \{\phi, \{1\}, \{2\}, \{1,2\}\}, which has 4=224 = 2^2 elements. In general, if n(A)=nn(A) = n, then n(P(A))=2nn(P(A)) = 2^n — the first worked derivation below proves this precisely. Because the members of P(A)P(A) are themselves sets, membership and subset-hood must be written with care: {1}∈P(A)\{1\} \in P(A) (it is one of the four listed elements) but 1∈A1 \in A, not 1∈P(A)1 \in P(A).

Universal sets and Venn diagrams

In a given context we usually work inside one basic set relevant to that context, called the universal set, denoted UU; every set under discussion is then treated as a subset of UU. While studying number systems, UU might be R\mathbb{R}; in a human-population study, UU is the set of all people in the world. A Venn diagram, named after the logician John Venn, pictures UU as a rectangle and its subsets as circles inside it, with elements marked as points — an immediately readable way to see relationships such as B⊂AB \subset A.

Figure
Four small Venn diagrams in a grid inside a rectangle labelled U, the first shaded fully across both circles A and B for union, the second shaded only in the overlap for intersection, the third shaded only in the part of A outside B for difference A minus B, and the fourth shaded everywhere in U outside circle A for the complement of A
Four set operations, read straight off a Venn diagram U A B A ∪ B (union) U A B A ∩ B (intersection) U A B A − B (difference) U A A′ (complement, shaded outside A)

Union, intersection and difference of sets

The union of AA and BB collects every element that lies in AA or in BB (common elements counted only once); the intersection collects only the elements common to both; the difference A−BA - B collects elements of AA that are not in BB.

A∪B={x:x∈A or x∈B},A∩B={x:x∈A and x∈B},A−B={x:x∈A and x∉B}(3)A \cup B = \{x : x \in A \text{ or } x \in B\}, \qquad A \cap B = \{x : x \in A \text{ and } x \in B\}, \qquad A - B = \{x : x \in A \text{ and } x \notin B\} \qquad (3)

where: "or" is used inclusively (an element in both sets still counts once in the union). If A∩B=ϕA \cap B = \phi, AA and BB are called disjoint — for example {2,4,6,8}\{2,4,6,8\} and {1,3,5,7}\{1,3,5,7\} share nothing. NCERT's own Examples 12 to 19 work these definitions on concrete sets; one useful special case worth remembering is that if B⊂AB \subset A then A∪B=AA \cup B = A and A∩B=BA \cap B = B (Examples 13 and 17). These three operations obey a family of algebraic laws that mirror ordinary arithmetic: union and intersection are each commutative (A∪B=B∪AA \cup B = B \cup A, A∩B=B∩AA \cap B = B \cap A) and associative ((A∪B)∪C=A∪(B∪C)(A \cup B) \cup C = A \cup (B \cup C), similarly for ∩\cap), each is idempotent (A∪A=AA \cup A = A, A∩A=AA \cap A = A), ϕ\phi is the identity for union (A∪ϕ=AA \cup \phi = A) while UU is the identity for intersection (A∩U=AA \cap U = A), and intersection distributes over union — A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C) — exactly as multiplication distributes over addition. Note carefully that difference is not commutative: A−B≠B−AA - B \neq B - A in general (Examples 18 and 19 show this directly), and the three pieces A−BA - B, A∩BA \cap B, B−AB - A are always mutually disjoint — a fact the third derivation below turns into the counting formula.

Complement of a set and De Morgan's laws

Once a universal set UU is fixed, the complement of A⊂UA \subset U is the set of everything in UU that is not in AA.

A′={x:x∈U and x∉A}=U−A(4)A' = \{x : x \in U \text{ and } x \notin A\} = U - A \qquad (4)

where: A′A' is itself a subset of UU. Complementation satisfies the complement laws A∪A′=UA \cup A' = U and A∩A′=ϕA \cap A' = \phi, the law of double complementation (A′)′=A(A')' = A, and the boundary cases ϕ′=U\phi' = U, U′=ϕU' = \phi. The single most important pair of results about complements are De Morgan's laws, named after Augustus De Morgan:

(A∪B)′=A′∩B′,(A∩B)′=A′∪B′(5)(A \cup B)' = A' \cap B', \qquad (A \cap B)' = A' \cup B' \qquad (5)

where: in words, the complement of a union is the intersection of the complements, and the complement of an intersection is the union of the complements — "not (A or B)" means "not A, and not B", exactly as in ordinary logic. NCERT's Example 22 verifies both laws numerically on U={1,…,6}U = \{1,\ldots,6\}, A={2,3}A = \{2,3\}, B={3,4,5}B = \{3,4,5\}; the second derivation below proves the first law in full generality by the double-inclusion method introduced with equal sets.

Counting elements: the union formula for finite sets

For finite sets, the number of elements in a union is not simply n(A)+n(B)n(A) + n(B), because any element common to both sets would be counted twice. The correction is one of the most quoted formulas in this chapter, since it converts a Venn diagram directly into an exam answer.

n(A∪B)=n(A)+n(B)−n(A∩B),n(A∪B∪C)=∑n(A)−∑n(A∩B)+n(A∩B∩C)(6)n(A \cup B) = n(A) + n(B) - n(A \cap B), \qquad n(A \cup B \cup C) = \sum n(A) - \sum n(A \cap B) + n(A \cap B \cap C) \qquad (6)

where: the second formula, read in full, is n(A∪B∪C)=n(A)+n(B)+n(C)−n(A∩B)−n(B∩C)−n(A∩C)+n(A∩B∩C)n(A \cup B \cup C) = n(A) + n(B) + n(C) - n(A \cap B) - n(B \cap C) - n(A \cap C) + n(A \cap B \cap C). When AA and BB are disjoint, n(A∩B)=0n(A \cap B) = 0 and the formula reduces to plain addition, n(A∪B)=n(A)+n(B)n(A \cup B) = n(A) + n(B). This "add, then correct for double-counting" pattern — called the inclusion-exclusion principle — is exactly the tool behind every "how many students like both subjects" survey problem, worked out in full in the third derivation and the Competitive-level worked example below.

Two to three worked derivations

Derivation AProving that a set with n elements has a power set of size two to the power n

The goal here is to prove, in full generality, the claim stated alongside the power set definition — that if a finite set AA has exactly nn elements, then its power set P(A)P(A), the set of all subsets of AA, has exactly 2n2^n elements. The argument rests on a simple but powerful idea: building any subset of AA is equivalent to making one independent yes-or-no decision for each element of AA, and independent binary choices multiply, they do not add.

Step 1. Label the elements of AA as a1,a2,…,ana_1, a_2, \ldots, a_n. To build any subset S⊂AS \subset A, go through the elements one at a time and decide, for each aia_i, whether it is included in SS or excluded from SS. Every subset corresponds to exactly one such sequence of nn include/exclude decisions, and every sequence of decisions produces exactly one subset — this is a one-to-one correspondence between subsets of AA and binary sequences of length nn.

Step 2. Count the sequences using the multiplication principle. The decision for a1a_1 has 22 outcomes (in or out), independently the decision for a2a_2 has 22 outcomes, and so on through ana_n. Since all nn decisions are independent of one another, the total number of possible sequences is 2×2×⋯×2⏟n times=2n\underbrace{2 \times 2 \times \cdots \times 2}_{n \text{ times}} = 2^n.

Step 3. Check this against a small case. For A={1,2}A = \{1, 2\}, n=2n = 2, so the formula predicts 22=42^2 = 4 subsets. Listing them directly gives ϕ,{1},{2},{1,2}\phi, \{1\}, \{2\}, \{1,2\} — exactly four, matching the four "in/out" sequences (out,out)(\text{out},\text{out}), (in,out)(\text{in},\text{out}), (out,in)(\text{out},\text{in}), (in,in)(\text{in},\text{in}).

Step 4. An equivalent inductive argument makes the doubling explicit: the empty set has exactly one subset, itself, and 20=12^0 = 1, so the base case holds. If a set of kk elements has 2k2^k subsets, adding one new element ak+1a_{k+1} to form a (k+1)(k+1)-element set either keeps each of those old subsets unchanged, or adds ak+1a_{k+1} to each of them to form a brand-new subset — every old subset is paired with exactly one new one, so the count exactly doubles to 2×2k=2k+12 \times 2^k = 2^{k+1}. By induction, n(P(A))=2nn(P(A)) = 2^n for every finite nn, and this is why counting subsets of a 3-element set gives 88, not 66 or 99 — a mistake that comes from trying to list subsets ad hoc instead of trusting the doubling law.

Go deeper · Derivation B · 1 minProving De Morgan's law that the complement of a union is the intersection of the complements
Derivation BProving De Morgan's law that the complement of a union is the intersection of the complements

The goal is to prove (A∪B)′=A′∩B′(A \cup B)' = A' \cap B' for arbitrary subsets A,BA, B of a universal set UU, using the same double-inclusion technique NCERT itself uses in Example 25 to prove A=BA = B from A∪B=A∩BA \cup B = A \cap B: to show two sets are equal, show each is a subset of the other, then combine the two inclusions. This is the master technique for every "prove these sets are equal" question in the chapter, not just this one law.

Step 1. Show (A∪B)′⊂A′∩B′(A \cup B)' \subset A' \cap B'. Let xx be an arbitrary element of (A∪B)′(A \cup B)'. By the definition of complement, x∈Ux \in U and x∉A∪Bx \notin A \cup B.

Step 2. Unpack "x∉A∪Bx \notin A \cup B" using the definition of union: since A∪BA \cup B is everything in AA or BB, an element that is in neither fails both membership tests at once. So x∉A∪Bx \notin A \cup B means x∉Ax \notin A and x∉Bx \notin B simultaneously — "not (A or B)" becomes "not A, and not B", the same logical rule you use in everyday negation ("not raining or windy" means "not raining, and not windy").

Step 3. Since x∈Ux \in U and x∉Ax \notin A, by definition x∈A′x \in A'; since x∈Ux \in U and x∉Bx \notin B, by definition x∈B′x \in B'. Both hold together, so x∈A′∩B′x \in A' \cap B'. As xx was an arbitrary element of (A∪B)′(A \cup B)', this proves (A∪B)′⊂A′∩B′(A \cup B)' \subset A' \cap B'.

Step 4. Now show the reverse inclusion A′∩B′⊂(A∪B)′A' \cap B' \subset (A \cup B)'. Let y∈A′∩B′y \in A' \cap B'; then y∈A′y \in A' and y∈B′y \in B', so y∉Ay \notin A and y∉By \notin B. If yy belonged to A∪BA \cup B it would have to be in AA or in BB, contradicting both — so y∉A∪By \notin A \cup B, and since y∈Uy \in U, this means y∈(A∪B)′y \in (A \cup B)'. This proves A′∩B′⊂(A∪B)′A' \cap B' \subset (A \cup B)'. Combining Steps 3 and 4 gives (A∪B)′=A′∩B′(A \cup B)' = A' \cap B' exactly. The second law, (A∩B)′=A′∪B′(A \cap B)' = A' \cup B', follows by an identical argument with "and" and "or" exchanged throughout — or, more slickly, by substituting A′A' and B′B' in place of AA and BB in the law just proved and applying (A′)′=A(A')' = A to both sides.

Go deeper · Derivation C · 1 minDeriving the counting formula for the union of two finite sets
Derivation CDeriving the counting formula for the union of two finite sets

The goal is to derive n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A) + n(B) - n(A \cap B) rigorously, rather than simply stating it, by using a fact NCERT records as a remark right after the difference-of-sets definition: the three pieces A−BA - B, A∩BA \cap B and B−AB - A are mutually disjoint and together make up all of A∪BA \cup B. Splitting a union into non-overlapping pieces is exactly what lets us add cardinalities safely, since counting only works by plain addition when nothing is shared between the pieces being added.

Step 1. Partition the union: A∪B=(A−B)∪(A∩B)∪(B−A)A \cup B = (A - B) \cup (A \cap B) \cup (B - A). Every element of A∪BA \cup B is either in AA only (in A−BA - B), in both (in A∩BA \cap B), or in BB only (in B−AB - A) — these three cases are exhaustive and, by the remark above, pairwise disjoint, so no element is double-counted across them.

Step 2. Because the three pieces are pairwise disjoint, their cardinalities simply add: n(A∪B)=n(A−B)+n(A∩B)+n(B−A)n(A \cup B) = n(A - B) + n(A \cap B) + n(B - A). This step is the entire reason the partition into three disjoint pieces was worth setting up — cardinality is only additive across sets with no shared elements.

Step 3. Express n(A−B)n(A-B) and n(B−A)n(B-A) in terms of the more familiar quantities n(A)n(A), n(B)n(B), n(A∩B)n(A \cap B). Since AA itself splits into the two disjoint pieces A=(A−B)∪(A∩B)A = (A - B) \cup (A \cap B), we get n(A)=n(A−B)+n(A∩B)n(A) = n(A-B) + n(A \cap B), so n(A−B)=n(A)−n(A∩B)n(A-B) = n(A) - n(A \cap B). By the identical argument applied to B=(B−A)∪(A∩B)B = (B-A) \cup (A \cap B), n(B−A)=n(B)−n(A∩B)n(B-A) = n(B) - n(A \cap B).

Step 4. Substitute both expressions from Step 3 back into the equation from Step 2: n(A∪B)=[n(A)−n(A∩B)]+n(A∩B)+[n(B)−n(A∩B)]=n(A)+n(B)−n(A∩B)n(A \cup B) = \left[n(A) - n(A \cap B)\right] + n(A \cap B) + \left[n(B) - n(A \cap B)\right] = n(A) + n(B) - n(A \cap B), exactly the counting formula. Extending to three sets is now just two applications of this same two-set result, first treating B∪CB \cup C as a single set: n(A∪B∪C)=n(A)+n(B∪C)−n(A∩(B∪C))n(A \cup B \cup C) = n(A) + n(B \cup C) - n(A \cap (B \cup C)), then expanding n(B∪C)=n(B)+n(C)−n(B∩C)n(B \cup C) = n(B) + n(C) - n(B \cap C) and, using the distributive law, n(A∩(B∪C))=n((A∩B)∪(A∩C))=n(A∩B)+n(A∩C)−n(A∩B∩C)n(A \cap (B \cup C)) = n((A\cap B) \cup (A \cap C)) = n(A\cap B) + n(A \cap C) - n(A \cap B \cap C); collecting every term gives n(A∪B∪C)=n(A)+n(B)+n(C)−n(A∩B)−n(B∩C)−n(A∩C)+n(A∩B∩C)n(A \cup B \cup C) = n(A) + n(B) + n(C) - n(A \cap B) - n(B \cap C) - n(A \cap C) + n(A \cap B \cap C).

Figure
A Venn diagram with two overlapping circles A and B inside a rectangle labelled U, the left crescent labelled A only, the central lens labelled A intersection B, the right crescent labelled B only, and a formula box below reading n of A union B equals n of A plus n of B minus n of A intersection B
Splitting A union B into three disjoint pieces to count it U A only n(A) − n(A∩B) A∩B B only n(B) − n(A∩B) n(A ∪ B) = n(A) + n(B) − n(A ∩ B)

Worked examples

Board level - listing all subsets of a three element set and checking the power set count (Example 24 pattern)

List all the subsets of the set A={−1,0,1}A = \{-1, 0, 1\}, and verify that the total count matches the power-set formula.

Step 1. Since n(A)=3n(A) = 3, the power-set formula from equation (2)(2) region predicts n(P(A))=23=8n(P(A)) = 2^3 = 8 subsets before any listing is done — a target to check the final list against.

Step 2. List subsets systematically by size, from smallest to largest. Size 00: ϕ\phi. Size 11: {−1},{0},{1}\{-1\}, \{0\}, \{1\}. Size 22: {−1,0},{−1,1},{0,1}\{-1,0\}, \{-1,1\}, \{0,1\}. Size 33: {−1,0,1}\{-1,0,1\}, which is AA itself.

Step 3. Count the list: 1+3+3+1=81 + 3 + 3 + 1 = 8 subsets in total, matching the prediction from Step 1 exactly.

Step 4. Note the pattern 1,3,3,11, 3, 3, 1 is the row of Pascal's triangle for n=3n=3, since choosing a subset of size kk from 33 elements can be done in (3k)\binom{3}{k} ways, and (30)+(31)+(32)+(33)=23\binom{3}{0}+\binom{3}{1}+\binom{3}{2}+\binom{3}{3} = 2^3. Answer: P(A) = {φ, {−1}, {0}, {1}, {−1,0}, {−1,1}, {0,1}, {−1,0,1}}, eight subsets in total.

Board level - proving A union B equals A intersection B forces A equal to B (Example 25 pattern)

Show that A∪B=A∩BA \cup B = A \cap B implies A=BA = B.

Step 1. To prove A=BA = B, use the double-inclusion method: show A⊂BA \subset B first. Let aa be an arbitrary element of AA. Since A⊂A∪BA \subset A \cup B always (every element of a set is trivially in that set's union with anything), a∈A∪Ba \in A \cup B.

Step 2. By the given hypothesis, A∪B=A∩BA \cup B = A \cap B, so a∈A∩Ba \in A \cap B as well. By the definition of intersection, membership in A∩BA \cap B requires membership in both sets, so in particular a∈Ba \in B. Since aa was an arbitrary element of AA, this shows every element of AA lies in BB, i.e. A⊂BA \subset B.

Step 3. Now show the reverse inclusion B⊂AB \subset A by the identical argument with the roles swapped. Let b∈Bb \in B; then b∈A∪Bb \in A \cup B (since B⊂A∪BB \subset A \cup B), so by the hypothesis b∈A∩Bb \in A \cap B, which by definition of intersection gives b∈Ab \in A. Hence B⊂AB \subset A.

Step 4. Combining Steps 2 and 3, A⊂BA \subset B and B⊂AB \subset A, which is exactly the definition of set equality. Answer: A = B.

Competitive level (JEE / NEET) - a three-subject survey solved with the inclusion-exclusion formula

In a survey of 100100 students, 4242 like Mathematics, 4040 like Physics, 3838 like Chemistry, 2020 like both Mathematics and Physics, 1818 like both Mathematics and Chemistry, 1515 like both Physics and Chemistry, and 88 like all three subjects. Find how many students like none of the three subjects, and how many like exactly one subject.

Step 1. Apply the three-set inclusion-exclusion formula from equation (6)(6): n(M∪P∪C)=n(M)+n(P)+n(C)−n(M∩P)−n(M∩C)−n(P∩C)+n(M∩P∩C)n(M \cup P \cup C) = n(M) + n(P) + n(C) - n(M \cap P) - n(M \cap C) - n(P \cap C) + n(M \cap P \cap C).

Step 2. Substitute the given values: n(M∪P∪C)=42+40+38−20−18−15+8n(M \cup P \cup C) = 42 + 40 + 38 - 20 - 18 - 15 + 8. Summing the additions first, 42+40+38=12042+40+38 = 120; summing the pairwise subtractions, 20+18+15=5320+18+15=53; so n(M∪P∪C)=120−53+8=75n(M \cup P \cup C) = 120 - 53 + 8 = 75.

Step 3. Students liking none of the three subjects lie outside M∪P∪CM \cup P \cup C within the universal set of 100100 surveyed students, so that count is 100−n(M∪P∪C)=100−75=25100 - n(M \cup P \cup C) = 100 - 75 = 25.

Step 4. For exactly one subject, subtract both pairwise overlaps from each single count but add back the triple overlap once (since it was subtracted twice by the two pairwise terms): exactly-Mathematics =42−20−18+8=12= 42 - 20 - 18 + 8 = 12; exactly-Physics =40−20−15+8=13= 40 - 20 - 15 + 8 = 13; exactly-Chemistry =38−18−15+8=13= 38 - 18 - 15 + 8 = 13. Adding these disjoint counts, 12+13+13=3812+13+13 = 38. Answer: 25 students like none of the three subjects, and 38 students like exactly one subject. Timing note: budget about three to four minutes. The efficient route is to compute n(M∪P∪C)n(M \cup P \cup C) once with the full inclusion-exclusion formula and reuse it for the "none" count, rather than drawing and labelling all seven Venn-diagram regions by hand — reserve the region-by-region breakdown (as in Step 4) only for questions that explicitly ask for an "exactly one" or "exactly two" count.

Common traps

The most common slip in this chapter is confusing ∈\in (element of) with ⊂\subset (subset of): for A={1,2,{3,4},5}A = \{1, 2, \{3,4\}, 5\}, the object {3,4}\{3,4\} is itself an element of AA, so {3,4}∈A\{3,4\} \in A is correct, while {3,4}⊂A\{3,4\} \subset A is false, since 3∉A3 \notin A and 4∉A4 \notin A individually — only the singleton {{3,4}}⊂A\{\{3,4\}\} \subset A is a valid subset statement. A closely related error treats an element and the singleton set containing it as interchangeable: 1∈A1 \in A is correct but 1⊂A1 \subset A is meaningless, since an element can never be a subset of itself unless it happens to be a set already containing that element. Students also frequently forget that ϕ⊂A\phi \subset A for every set AA, including ϕ\phi itself, yet confuse ϕ\phi (a set with zero elements) with {ϕ}\{\phi\} (a set with one element, namely ϕ\phi) — these are never equal. In roster form, forgetting that order and repetition are immaterial leads to wrongly calling equal sets "different" when written differently. With set operations, difference is the one operation that is not commutative — A−B≠B−AA - B \neq B - A in general — and inclusion-exclusion is routinely botched by adding n(A)+n(B)n(A)+n(B) without subtracting the overlap, or, for three sets, forgetting to add back n(A∩B∩C)n(A \cap B \cap C) after subtracting all three pairwise intersections. Finally, in interval notation, mixing up round and square brackets silently changes whether an endpoint counts, which matters enormously in inequalities and later in domains of functions.

You should be able to…

  • Translate a set fluently between roster form and set-builder form in both directions.
  • Classify a given set as empty, finite or infinite, and justify the classification.
  • Prove two sets are equal using the double-inclusion method: show each is a subset of the other.
  • Distinguish ∈\in (element of) from ⊂\subset (subset of), especially when a set contains another set as an element.
  • Write and interpret all four interval types (a,b)(a,b), [a,b][a,b], [a,b)[a,b), (a,b](a,b] as subsets of R\mathbb{R}, and convert between interval and set-builder notation.
  • State the power-set formula n(P(A))=2nn(P(A)) = 2^n and justify it by the independent include/exclude argument or by induction.
  • Compute A∪BA \cup B, A∩BA \cap B, A−BA - B and A′A' for concrete sets, and identify disjoint sets.
  • State and apply De Morgan's laws (A∪B)′=A′∩B′(A \cup B)' = A' \cap B' and (A∩B)′=A′∪B′(A \cap B)' = A' \cup B', and prove either one from the definitions.
  • Apply n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A) + n(B) - n(A \cap B) and its three-set extension to solve survey-style counting problems, including "exactly one" and "none" counts.

Ask the tutor: Want to work through proving (A∩B)′=A′∪B′(A \cap B)' = A' \cup B' yourself, step by step, using the same double-inclusion method?

What is the actual difference between the symbols belongs to and is a subset of?

Belongs to (∈\in) relates a single object to a set — it says that object is one of the things sitting inside the set. Subset of (⊂\subset) relates two sets to each other — it says every element of the first set is also an element of the second. The confusion usually shows up when a set contains another set as one of its members, like A={1,{2,3}}A = \{1, \{2,3\}\}: here {2,3}∈A\{2,3\} \in A (it is a listed element) but {2,3}⊄A\{2,3\} \not\subset A (since 2∉A2 \notin A directly). Always check whether you are comparing "a thing to a collection" or "a collection to a collection" before choosing the symbol.

Why is the empty set considered a subset of every set, even though it has nothing in it?

The subset definition is a conditional statement: A⊂BA \subset B means "if x∈Ax \in A, then x∈Bx \in B." For A=ϕA = \phi, the condition "x∈ϕx \in \phi" is never true for any xx, because ϕ\phi has no elements — so the implication "if x∈ϕx \in \phi then x∈Bx \in B" is true automatically, no matter what BB is, simply because its hypothesis is never satisfied (this is the same logic as saying "all unicorns in this room are purple" is vacuously true when there are no unicorns in the room). That is why ϕ⊂A\phi \subset A holds for every set AA, including ϕ\phi itself.

Is A minus B the same as B minus A? They feel like they should cancel out.

No, and this trips up many students because subtraction of numbers is commutative but set difference is not. A−BA - B keeps only the elements of AA that are missing from BB, while B−AB - A keeps only the elements of BB that are missing from AA — these describe two entirely different collections built from different starting sets. For A={1,2,3,4,5,6}A = \{1,2,3,4,5,6\} and B={2,4,6,8}B = \{2,4,6,8\}, A−B={1,3,5}A - B = \{1,3,5\} while B−A={8}B - A = \{8\} — completely different sets, with different sizes. The only situation where A−B=B−AA - B = B - A is the degenerate case A=BA = B, where both differences equal ϕ\phi.

Do I really need to memorise the three-set formula n of A union B union C for boards, or is it only for JEE?

CBSE board papers mostly test the two-set formula n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A)+n(B)-n(A\cap B) and simple Venn-diagram reasoning; the full three-set survey formula with the triple-intersection correction term is much more heavily favoured in JEE Main and NEET, where "three subjects" or "three languages" survey questions are a recurring pattern. That said, it costs little to learn both together, since the three-set formula is derived from the two-set one by simply treating B∪CB \cup C as a single set (shown in the third derivation above) — understanding why the correction term appears makes both formulas far less likely to be misremembered under exam pressure.

Why does the power set of a 3 element set have 8 elements and not just the original 3 subsets I can immediately think of?

It is easy to list only the "obvious" subsets — the empty set, the full set, and maybe the three singletons — and stop there, forgetting the subsets of size 22. For a 3-element set every possible size from 00 to 33 contributes subsets: 11 subset of size 00, 33 of size 11, 33 of size 22, and 11 of size 33, adding to 1+3+3+1=81+3+3+1=8. The power-set formula 2n2^n captures all of these at once because building a subset really is nn independent include-or-exclude decisions, one per element, and independent binary choices multiply rather than add — that is exactly why the count grows as a power of 22 rather than staying close to nn.

Where this leads