HOME/NOTES/CONCEPT

Sets and Relations for JEE: Venn Counting, Types and Equivalence

Ritesh Raj · 5 Nov 2026
Aa
44 min read16 sectionsConcept

A set is a well defined collection of objects, and a relation is a set of ordered pairs. These two ideas carry the whole language of class 11 and 12 mathematics: domains and ranges are sets, solution sets of inequalities are sets, and every function is a special relation. JEE Main asks this chapter in almost every shift, usually as a counting question: count the elements of a relation, count the pairs to add, count subsets or count equivalence relations.

This note covers sets, subsets and power sets, the operations and their laws, counting with Venn diagrams, the cartesian product, relations and their types, counting relations, the smallest number of pairs to add, and equivalence relations with their classes. Every worked example is a JEE Main 2025 or 2026 or JEE Advanced 2026 question unless it says otherwise, and every answer was re-derived from scratch.

Sets and their representation

A set is a well defined collection of distinct objects, called its elements. "Well defined" means that for any object we can say without argument whether it belongs. Write x∈Ax\in A when xx belongs to AA and x∉Ax\notin A when it does not.

There are two ways to write a set.

FormExample
RosterA={1,2,3,6}A=\{1,2,3,6\}
Set-builderA={x∈N:x divides 6}A=\{x\in\mathbb{N}:x\text{ divides }6\}

In roster form the order does not matter and repeats do not count: {1,2,2}={2,1}\{1,2,2\}=\{2,1\}.

The standard number sets lie one inside the next.

SymbolSet
N\mathbb{N}natural numbers 1,2,3,…1,2,3,\dots
W\mathbb{W}whole numbers 0,1,2,…0,1,2,\dots
Z\mathbb{Z}integers
Q\mathbb{Q}rational numbers pq\frac pq, q≠0q\ne0
R\mathbb{R}real numbers
Five nested rounded rectangles labelled R, Q, Z, W and N from the outside in; the numbers 1, 2, 3 lie in the innermost box N, 0 lies in W outside N, minus 3 lies in Z outside W, two sevenths lies in Q outside Z, and root 2 and pi lie in R outside Q

Types of sets.

TypeMeaning
Empty set ∅\varnothingno element
Singletonexactly one element
Finite, infinitethe count of elements ends, or does not
Equal setsthe same elements
Equivalent setsthe same number of elements

n(A)n(A) denotes the number of elements of a finite set AA. Equal sets are equivalent; equivalent sets need not be equal.

Example 1 (IITianForum). (a) Write in roster form: A={x∈N:x2<20}A=\{x\in\mathbb{N}:x^2<20\} and B={x∈Z:∣2x−1∣≤5}B=\{x\in\mathbb{Z}:\lvert 2x-1\rvert\le5\}. (b) Write C={1,4,9,16,25}C=\{1,4,9,16,25\} in set-builder form.

▸ SHOW SOLUTION

Step 1. Set A

x2<20x^2<20 with x∈Nx\in\mathbb{N}: x=1,2,3,4x=1,2,3,4, since 52=255^2=25.

A={1,2,3,4}A=\{1,2,3,4\}

Step 2. Set B

−5≤2x−1≤5 ⇒ −2≤x≤3-5\le2x-1\le5\ \Rightarrow\ -2\le x\le3B={−2,−1,0,1,2,3}B=\{-2,-1,0,1,2,3\}

Step 3. Set C

The elements are the squares of 11 to 55.

C={x2:x∈N, x≤5}C=\{x^2:x\in\mathbb{N},\ x\le5\}

Answer: A={1,2,3,4}A=\{1,2,3,4\}, B={−2,−1,0,1,2,3}B=\{-2,-1,0,1,2,3\}, C={x2:x∈N, x≤5}C=\{x^2:x\in\mathbb{N},\ x\le5\}

Example 2 (IITianForum). Classify each set as empty, singleton, finite or infinite.

P={x∈R:x2+1=0}P=\{x\in\mathbb{R}:x^2+1=0\} Q={x∈N:2<x<3}Q=\{x\in\mathbb{N}:2<x<3\} S={x∈Z:x2=4, x>0}S=\{x\in\mathbb{Z}:x^2=4,\ x>0\} T={∅},V={x∈Q:0<x<1}T=\{\varnothing\},\qquad V=\{x\in\mathbb{Q}:0<x<1\}
▸ SHOW SOLUTION

Step 1. P and Q

x2=−1x^2=-1 has no real root, so P=∅P=\varnothing. No natural number lies strictly between 22 and 33, so Q=∅Q=\varnothing.

Step 2. S and T

S={2}S=\{2\}, a singleton. TT has one element, the empty set itself, so TT is a singleton and is not empty.

Step 3. V

12,13,14,…\frac12,\frac13,\frac14,\dots all lie in VV, so VV is infinite.

Answer: P,QP,Q empty; S,TS,T singletons; VV infinite

Empty set and the set containing it

∅\varnothing has no element; {∅}\{\varnothing\} has one element. Similarly {0}\{0\} is not empty. Always read which universe the builder form uses: {x:x2+1=0}\{x:x^2+1=0\} is empty in R\mathbb{R} but equals {i,−i}\{i,-i\} in C\mathbb{C}.

Subsets and power set

AA is a subset of BB, written A⊆BA\subseteq B, when every element of AA is an element of BB. If also A≠BA\ne B, then AA is a proper subset, A⊂BA\subset B.

  • ∅⊆A\varnothing\subseteq A and A⊆AA\subseteq A for every set AA.
  • A=BA=B exactly when A⊆BA\subseteq B and B⊆AB\subseteq A.
  • ∈\in joins an element to a set; ⊆\subseteq joins a set to a set.
A rectangle labelled U containing a large ellipse labelled A, and inside it a smaller shaded ellipse labelled B, showing B as a subset of A

Power set

The power set P(A)P(A) is the set of all subsets of AA. Building a subset means deciding "in or out" once for each element, so

n(A)=m ⇒ n(P(A))=2mn(A)=m\ \Rightarrow\ n\big(P(A)\big)=2^m
Count, for n(A)=mn(A)=mValue
all subsets2m2^m
proper subsets2m−12^m-1
subsets with exactly rr elementsmCr{}^mC_r
subsets containing a fixed element2m−12^{m-1}
pairs (X,Y)(X,Y) with X⊆Y⊆AX\subseteq Y\subseteq A3m3^m
pairs (X,Y)(X,Y) with X∩Y=∅X\cap Y=\varnothing3m3^m

Example 3 (IITianForum). Let A={1,{2},{1,2}}A=\{1,\{2\},\{1,2\}\}. (a) Decide true or false: 1∈A1\in A; 2∈A2\in A; {2}∈A\{2\}\in A; {2}⊆A\{2\}\subseteq A; {1}⊆A\{1\}\subseteq A; {{2}}⊆A\{\{2\}\}\subseteq A; {1,2}⊆A\{1,2\}\subseteq A. (b) Find n(P(A))n(P(A)) and n(P(P(A)))n(P(P(A))).

▸ SHOW SOLUTION

Step 1. The elements

AA has three elements: 11, {2}\{2\} and {1,2}\{1,2\}. The number 22 is not one of them.

Step 2. Membership

1∈A1\in A true; 2∈A2\in A false; {2}∈A\{2\}\in A true.

Step 3. Subsets

A set is a subset of AA when each of its elements is an element of AA.

  • {2}⊆A\{2\}\subseteq A needs 2∈A2\in A: false.
  • {1}⊆A\{1\}\subseteq A: true. {{2}}⊆A\{\{2\}\}\subseteq A: true.
  • {1,2}⊆A\{1,2\}\subseteq A needs 2∈A2\in A: false. (But {1,2}∈A\{1,2\}\in A is true.)

Step 4. Power sets

n(P(A))=23=8n(P(A))=2^3=8n(P(P(A)))=28=256n(P(P(A)))=2^8=256

Answer: (a) T, F, T, F, T, T, F; (b) 88 and 256256

Example 4 (IITianForum). Finite sets AA and BB have mm and nn elements. The number of subsets of AA is 112112 more than the number of subsets of BB. Find m+nm+n.

▸ SHOW SOLUTION

Step 1. Equation

2m−2n=1122^m-2^n=1122n(2m−n−1)=24⋅72^n\left(2^{m-n}-1\right)=2^4\cdot7

Step 2. Match the factors

2m−n−12^{m-n}-1 is odd, so it must be 77 and 2n=162^n=16.

n=4,2m−n=8 ⇒ m=7n=4,\qquad 2^{m-n}=8\ \Rightarrow\ m=7

Check: 128−16=112128-16=112.

Answer: m+n=11m+n=11

Example 5 (JEE Main 2026, 22 January Shift 2). Let SS be the set of the first 1111 natural numbers. Then the number of elements in A={B⊆S:n(B)≥2 and the product of all elements of B is even}A=\{B\subseteq S:n(B)\ge2\text{ and the product of all elements of }B\text{ is even}\} is ______.

▸ SHOW SOLUTION

Step 1. Subsets with at least two elements

211−1−11=20362^{11}-1-11=2036

Step 2. Remove the odd products

The product is odd exactly when every element is odd. SS has 66 odd numbers 1,3,5,7,9,111,3,5,7,9,11; their subsets with at least two elements number

26−1−6=572^6-1-6=57

Step 3. Count

2036−57=19792036-57=1979

Answer: 19791979

Example 6 (JEE Main 2025, 7 April Shift 1). For n≥2n\ge2, let SnS_n denote the set of all subsets of {1,2,…,n}\{1,2,\dots,n\} with no two consecutive numbers. For example {1,3,5}∈S6\{1,3,5\}\in S_6, but {1,2,4}∉S6\{1,2,4\}\notin S_6. Then n(S5)n(S_5) is equal to ______.

▸ SHOW SOLUTION

Step 1. Count by size

A subset of {1,…,5}\{1,\dots,5\} with kk elements and no two consecutive: choose kk numbers so that gaps of at least one remain. The count is 6−kCk{}^{6-k}C_k.

k=0: 1,k=1: 5k=0:\ 1,\qquad k=1:\ 5k=2: 4C2=6,k=3: 3C3=1k=2:\ {}^4C_2=6,\qquad k=3:\ {}^3C_3=1

For k=3k=3 the only subset is {1,3,5}\{1,3,5\}. No subset with 44 elements exists.

Step 2. Add

1+5+6+1=131+5+6+1=13

The empty set is counted; it has no two consecutive numbers.

Answer: 1313

Example 7 (JEE Main 2026, 24 January Shift 2). Let SS be a set of 55 elements and P(S)P(S) denote the power set of SS. Let EE be the event of choosing an ordered pair (A,B)(A,B) from the set P(S)×P(S)P(S)\times P(S) such that A∩B=∅A\cap B=\varnothing. If the probability of the event EE is 3p2q\dfrac{3^p}{2^q}, where p,q∈Np,q\in\mathbb{N}, then p+qp+q is equal to ______.

▸ SHOW SOLUTION

Step 1. Total pairs

n(P(S)×P(S))=25⋅25=210n\big(P(S)\times P(S)\big)=2^5\cdot2^5=2^{10}

Step 2. Disjoint pairs

Each element of SS has three choices: in AA only, in BB only, or in neither. It cannot be in both. So there are 353^5 disjoint pairs.

Step 3. Probability

P(E)=35210 ⇒ p=5, q=10P(E)=\frac{3^5}{2^{10}}\ \Rightarrow\ p=5,\ q=10

Answer: p+q=15p+q=15

Example 8 (JEE Main 2025, 24 January Shift 1). Let S={p1,p2,…,p10}S=\{p_1,p_2,\dots,p_{10}\} be the set of first ten prime numbers. Let A=S∪PA=S\cup P, where PP is the set of all possible products of distinct elements of SS. Then the number of all ordered pairs (x,y)(x,y), x∈Sx\in S, y∈Ay\in A, such that xx divides yy, is ______.

▸ SHOW SOLUTION

Step 1. Elements of A as subsets

Every element of AA is the product of a non-empty subset of SS, and different subsets give different products. So AA matches the 210−12^{10}-1 non-empty subsets of SS.

Step 2. Fix x

xx divides yy exactly when the subset of yy contains xx. Subsets of SS containing a fixed xx number 29=5122^9=512.

Step 3. Count

10×512=512010\times512=5120

Answer: 51205120

Operations on sets

All sets in a question are taken inside a universal set UU. A Venn diagram draws UU as a rectangle and the sets as circles. Two sets cut UU into 44 regions; three sets cut it into 88 regions.

Two Venn diagrams side by side: on the left two overlapping circles A and B in a rectangle U with regions labelled p in A only, q in both, r in B only and s outside both; on the right three overlapping circles A, B and C with regions labelled a, b, c in one set only, d, e, f in exactly two, g in all three and h outside all
OperationDefinitionTwo-set regions
union A∪BA\cup Bin AA or in BBp,q,rp,q,r
intersection A∩BA\cap Bin bothqq
difference A−BA-Bin AA, not in BBpp
symmetric difference A △ BA\,\triangle\,Bin exactly onep,rp,r
complement A′A'in UU, not in AAr,sr,s

AA and BB are disjoint when A∩B=∅A\cap B=\varnothing.

Three Venn diagrams of two overlapping circles A and B inside U; from left to right the shaded part is the union of A and B, then only the lens common to both, then the part of A outside B
Two Venn diagrams of two overlapping circles A and B inside U; on the left both circles are shaded except their common lens, showing the symmetric difference; on the right everything outside circle A is shaded, showing the complement of A

Three facts used again and again:

A−B=A∩B′A-B=A\cap B' A △ B=(A∪B)−(A∩B)A\,\triangle\,B=(A\cup B)-(A\cap B) n(A−B)=n(A)−n(A∩B)n(A-B)=n(A)-n(A\cap B)

Example 9 (IITianForum). Let U={1,2,…,10}U=\{1,2,\dots,10\}, A={1,2,3,4,5}A=\{1,2,3,4,5\} and B={2,4,6,8,10}B=\{2,4,6,8,10\}. Find A∪BA\cup B, A∩BA\cap B, A−BA-B, B−AB-A, A △ BA\,\triangle\,B, A′A' and (A∪B)′(A\cup B)'.

▸ SHOW SOLUTION

Step 1. Union and intersection

A∪B={1,2,3,4,5,6,8,10}A\cup B=\{1,2,3,4,5,6,8,10\}A∩B={2,4}A\cap B=\{2,4\}

Step 2. Differences

A−B={1,3,5},B−A={6,8,10}A-B=\{1,3,5\},\quad B-A=\{6,8,10\}A △ B={1,3,5,6,8,10}A\,\triangle\,B=\{1,3,5,6,8,10\}

Step 3. Complements

A′={6,7,8,9,10},(A∪B)′={7,9}A'=\{6,7,8,9,10\},\quad (A\cup B)'=\{7,9\}

Answer: as above; note n(A △ B)=n(A−B)+n(B−A)=6n(A\,\triangle\,B)=n(A-B)+n(B-A)=6

Example 10 (JEE Main 2026, 21 January Shift 2). Let A={x:∣x2−10∣≤6}A=\{x:\lvert x^2-10\rvert\le6\} and B={x:∣x−2∣>1}B=\{x:\lvert x-2\rvert>1\}. Then

Tap an option to check your answer
(1)A∪B=(−∞,1]∪(2,∞)A\cup B=(-\infty,1]\cup(2,\infty)
(2)A−B=[2,3)A-B=[2,3)
(3)A∩B=[−4,−2]∪[3,4]A\cap B=[-4,-2]\cup[3,4]
(4)B−A=(−∞,−4)∪(−2,1)∪(4,∞)B-A=(-\infty,-4)\cup(-2,1)\cup(4,\infty)
▸ SHOW SOLUTION

Step 1. Set A

−6≤x2−10≤6 ⇒ 4≤x2≤16-6\le x^2-10\le6\ \Rightarrow\ 4\le x^2\le16A=[−4,−2]∪[2,4]A=[-4,-2]\cup[2,4]

Step 2. Set B

x−2>1x-2>1 or x−2<−1x-2<-1:

B=(−∞,1)∪(3,∞)B=(-\infty,1)\cup(3,\infty)

Step 3. Test each option

  • A∪B=(−∞,1)∪[2,∞)A\cup B=(-\infty,1)\cup[2,\infty); option (1) is wrong at x=1x=1 and x=2x=2.
  • A−B=A∩[1,3]=[2,3]A-B=A\cap[1,3]=[2,3]; option (2) misses 33.
  • A∩B=[−4,−2]∪(3,4]A\cap B=[-4,-2]\cup(3,4]; option (3) wrongly includes 33.
  • B−AB-A: remove AA from BB. This leaves (−∞,−4)(-\infty,-4), (−2,1)(-2,1) and (4,∞)(4,\infty). Option (4) is correct.

Answer: option (4)

Example 11 (JEE Main 2026, 2 April Shift 1). Let AA be the set of first 101101 terms of an A.P. whose first term is 11 and common difference is 55, and let BB be the set of first 7171 terms of an A.P. whose first term is 99 and common difference is 77. Then the number of elements in A∩BA\cap B which are divisible by 33 is

Tap an option to check your answer
(1)44
(2)55
(3)66
(4)77
▸ SHOW SOLUTION

Step 1. The two sets

A={1,6,11,…,501}A=\{1,6,11,\dots,501\}B={9,16,23,…,499}B=\{9,16,23,\dots,499\}

Step 2. Common terms

The first common term is 1616. Common terms form an A.P. with difference LCM(5,7)=35\mathrm{LCM}(5,7)=35:

16+35k≤499 ⇒ k≤1316+35k\le499\ \Rightarrow\ k\le13

So A∩BA\cap B has 1414 elements, k=0,1,…,13k=0,1,\dots,13.

Step 3. Divisible by 3

16+35k≡1+2k(mod3)16+35k\equiv1+2k\pmod 3

This is 00 when k≡1(mod3)k\equiv1\pmod3: k=1,4,7,10,13k=1,4,7,10,13.

The numbers are 51,156,261,366,47151,156,261,366,471.

Answer: 55, option (2)

Example 12 (JEE Main 2025, 4 April Shift 1). Let A={1,6,11,16,… }A=\{1,6,11,16,\dots\} and B={9,16,23,30,… }B=\{9,16,23,30,\dots\} be the sets consisting of the first 20252025 terms of two arithmetic progressions. Then n(A∪B)n(A\cup B) is:

Tap an option to check your answer
(1)38143814
(2)40274027
(3)37613761
(4)40034003
▸ SHOW SOLUTION

Step 1. Last terms

a2025=1+5⋅2024=10121a_{2025}=1+5\cdot2024=10121b2025=9+7⋅2024=14177b_{2025}=9+7\cdot2024=14177

Step 2. Common terms

Common terms are 16,51,86,…16,51,86,\dots with difference 3535, and they cannot pass 1012110121:

16+35k≤10121 ⇒ k≤28816+35k\le10121\ \Rightarrow\ k\le288

So n(A∩B)=289n(A\cap B)=289.

Step 3. Union

n(A∪B)=2025+2025−289=3761n(A\cup B)=2025+2025-289=3761

Answer: option (3)

Example 13 (JEE Main 2025, 7 April Shift 2). Let A={(α,β)∈R×R:∣α−1∣≤4 and ∣β−5∣≤6}A=\{(\alpha,\beta)\in\mathbb{R}\times\mathbb{R}:\lvert\alpha-1\rvert\le4\text{ and }\lvert\beta-5\rvert\le6\} and B={(α,β)∈R×R:16(α−2)2+9(β−6)2≤144}B=\{(\alpha,\beta)\in\mathbb{R}\times\mathbb{R}:16(\alpha-2)^2+9(\beta-6)^2\le144\}. Then:

Tap an option to check your answer
(1)B⊂AB\subset A
(2)A∪B={(x,y):−4≤x≤4, −1≤y≤11}A\cup B=\{(x,y):-4\le x\le4,\ -1\le y\le11\}
(3)neither A⊂BA\subset B nor B⊂AB\subset A
(4)A⊂BA\subset B
▸ SHOW SOLUTION

Step 1. Set A is a rectangle

−3≤α≤5,−1≤β≤11-3\le\alpha\le5,\qquad -1\le\beta\le11

Step 2. Set B is an ellipse with its inside

(α−2)29+(β−6)216≤1\frac{(\alpha-2)^2}{9}+\frac{(\beta-6)^2}{16}\le1

Each fraction is at most 11, so for every point of BB,

−1≤α≤5,2≤β≤10-1\le\alpha\le5,\qquad 2\le\beta\le10

Step 3. Compare

Every point of BB satisfies the rectangle conditions, so B⊆AB\subseteq A. The corner (−3,−1)(-3,-1) lies in AA but not in BB, so B≠AB\ne A. Also A∪B=AA\cup B=A, and AA has −3≤α≤5-3\le\alpha\le5, so option (2) is false.

Answer: B⊂AB\subset A, option (1)

A rectangle A with corners at x equals minus 3 and 5 and y from minus 1 to 11, drawn on axes, with a shaded ellipse B centred at the point 2 comma 6 lying wholly inside it and touching the right side

Algebra of sets

These laws hold for all sets inside UU. Each can be checked on the Venn regions.

LawStatement
commutativeA∪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)
distributiveA∩(B∪C)=(A∩B)∪(A∩C)A\cap(B\cup C)=(A\cap B)\cup(A\cap C)
distributiveA∪(B∩C)=(A∪B)∩(A∪C)A\cup(B\cap C)=(A\cup B)\cap(A\cup C)
identityA∪∅=AA\cup\varnothing=A, A∩U=AA\cap U=A
complementA∪A′=UA\cup A'=U, A∩A′=∅A\cap A'=\varnothing, (A′)′=A(A')'=A
absorptionA∪(A∩B)=AA\cup(A\cap B)=A, A∩(A∪B)=AA\cap(A\cup B)=A
De Morgan(A∪B)′=A′∩B′(A\cup B)'=A'\cap B'
De Morgan(A∩B)′=A′∪B′(A\cap B)'=A'\cup B'
Three Venn diagrams of two circles A and B inside U; the first shades everything outside A, the second shades everything outside B, and the third shades only the part outside both circles, which is the common part of the first two shadings

The picture shows the first law of De Morgan: the region common to A′A' and B′B' is exactly the region outside A∪BA\cup B. The same laws hold with differences:

A−(B∪C)=(A−B)∩(A−C)A-(B\cup C)=(A-B)\cap(A-C) A−(B∩C)=(A−B)∪(A−C)A-(B\cap C)=(A-B)\cup(A-C)
Simplifying an expression

Write every difference as an intersection with a complement, X−Y=X∩Y′X-Y=X\cap Y'. The expression then uses only ∪\cup, ∩\cap and ′', and the laws above apply directly.

Example 14 (IITianForum). Simplify (A−B)∪(A∩B)∪(A′∩B′)(A-B)\cup(A\cap B)\cup(A'\cap B').

▸ SHOW SOLUTION

Step 1. First two pieces

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

Step 2. Add the third piece

A∪(A′∩B′)=(A∪A′)∩(A∪B′)A\cup(A'\cap B')=(A\cup A')\cap(A\cup B')=U∩(A∪B′)=A∪B′=U\cap(A\cup B')=A\cup B'

In regions: p,qp,q and ss, everything except rr.

Answer: A∪B′A\cup B', which equals (B−A)′(B-A)'

Example 15 (IITianForum). Simplify [(A∪B)′∪(A′∩B)]′\big[(A\cup B)'\cup(A'\cap B)\big]'.

▸ SHOW SOLUTION

Step 1. De Morgan inside

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

Step 2. Take out A'

A′∩(B′∪B)=A′∩U=A′A'\cap(B'\cup B)=A'\cap U=A'

Step 3. Complement

(A′)′=A(A')'=A

Answer: AA

Example 16 (IITianForum). Let A={1,2,3,5}A=\{1,2,3,5\} and B={2,4,5,6}B=\{2,4,5,6\}. Find the set XX with A △ X=BA\,\triangle\,X=B. Is it unique?

▸ SHOW SOLUTION

Step 1. Take the symmetric difference with A on both sides

△\triangle is associative, A △ A=∅A\,\triangle\,A=\varnothing and ∅ △ X=X\varnothing\,\triangle\,X=X. So

A △ (A △ X)=A △ B ⇒ X=A △ BA\,\triangle\,(A\,\triangle\,X)=A\,\triangle\,B\ \Rightarrow\ X=A\,\triangle\,B

Step 2. Compute

X={1,3}∪{4,6}={1,3,4,6}X=\{1,3\}\cup\{4,6\}=\{1,3,4,6\}

Check: A △ X={2,5}∪{4,6}=BA\,\triangle\,X=\{2,5\}\cup\{4,6\}=B.

Answer: X={1,3,4,6}X=\{1,3,4,6\}, and it is unique

Counting with sets

For finite sets,

n(A∪B)=n(A)+n(B)−n(A∩B)n(A\cup B)=n(A)+n(B)-n(A\cap B)

For three sets write S1=n(A)+n(B)+n(C)S_1=n(A)+n(B)+n(C), S2=n(A∩B)+n(B∩C)+n(C∩A)S_2=n(A\cap B)+n(B\cap C)+n(C\cap A) and S3=n(A∩B∩C)S_3=n(A\cap B\cap C). Then

n(A∪B∪C)=S1−S2+S3n(A\cup B\cup C)=S_1-S_2+S_3
CountFormula
at least oneS1−S2+S3S_1-S_2+S_3
exactly oneS1−2S2+3S3S_1-2S_2+3S_3
exactly twoS2−3S3S_2-3S_3
at least twoS2−2S3S_2-2S_3
nonen(U)−(S1−S2+S3)n(U)-(S_1-S_2+S_3)
neither, for two setsn(U)−n(A∪B)n(U)-n(A\cup B)
Read the words carefully

"Neither" is (A∪B)′(A\cup B)', while "not both" is (A∩B)′(A\cap B)'. "Only AA" is A−BA-B. Most mistakes in survey questions come from mixing these.

Example 17 (IITianForum). If n(A)=25n(A)=25, n(B)=18n(B)=18 and n(A∪B)=35n(A\cup B)=35, find n(A∩B)n(A\cap B), n(A−B)n(A-B) and n(A △ B)n(A\,\triangle\,B).

▸ SHOW SOLUTION

Step 1. Intersection

n(A∩B)=25+18−35=8n(A\cap B)=25+18-35=8

Step 2. The rest

n(A−B)=25−8=17n(A-B)=25-8=17n(B−A)=18−8=10n(B-A)=18-8=10n(A △ B)=17+10=27n(A\,\triangle\,B)=17+10=27

Answer: 88, 1717, 2727

Example 18 (IITianForum). In a class of 100100 students, 4545 study Mathematics, 4040 Physics and 3535 Chemistry; 1515 study M and P, 1212 study P and C, 1010 study M and C, and 55 study all three. Find the number who study none, exactly one, exactly two and at least two subjects.

▸ SHOW SOLUTION

Step 1. The sums

S1=120,S2=37,S3=5S_1=120,\quad S_2=37,\quad S_3=5

Step 2. At least one and none

n(M∪P∪C)=120−37+5=88n(M\cup P\cup C)=120-37+5=88

None: 100−88=12100-88=12.

Step 3. Exactly one, exactly two, at least two

exactly two=37−3⋅5=22\text{exactly two}=37-3\cdot5=22exactly one=120−74+15=61\text{exactly one}=120-74+15=61at least two=37−10=27\text{at least two}=37-10=27

Check: 61+22+5=8861+22+5=88.

Answer: none 1212, exactly one 6161, exactly two 2222, at least two 2727

A three-set Venn diagram with circles M, P and C inside U; the regions carry 25 in M only, 18 in P only, 18 in C only, 10 in M and P only, 7 in P and C only, 5 in M and C only, 5 in all three, and 12 outside all circles

The picture fills the regions from the centre outwards: first 55 in all three, then 15−5=1015-5=10, 12−5=712-5=7, 10−5=510-5=5 in exactly two, then 45−10−5−5=2545-10-5-5=25 and so on in one set only.

Bounds on the overlap

When only n(A)n(A), n(B)n(B) and n(U)n(U) are known, the overlap is not fixed, but it is bounded:

n(A∩B)≥n(A)+n(B)−n(U)n(A\cap B)\ge n(A)+n(B)-n(U) n(A∩B)≤min⁡{n(A),n(B)}n(A\cap B)\le\min\{n(A),n(B)\}

The overlap is also never below 00. Both ends can occur.

Example 19 (IITianForum). In a group of 200200 people, 130130 read Hindi and 110110 read English. Find the least and the greatest number who read both, and the range of the number who read at least one.

▸ SHOW SOLUTION

Step 1. Least overlap

n(H∪E)≤200n(H\cup E)\le200, so

n(H∩E)≥130+110−200=40n(H\cap E)\ge130+110-200=40

Step 2. Greatest overlap

The overlap cannot exceed the smaller set: n(H∩E)≤110n(H\cap E)\le110, reached when every English reader also reads Hindi.

Step 3. At least one

n(H∪E)=240−n(H∩E)n(H\cup E)=240-n(H\cap E)

As the overlap runs from 4040 to 110110, the union runs from 200200 down to 130130.

Answer: both: from 4040 to 110110; at least one: from 130130 to 200200

Example 20 (IITianForum). Of 100100 students, 7070 like tea, 7575 like coffee and 8080 like juice. Find the least possible number who like all three.

▸ SHOW SOLUTION

Step 1. Count those who miss something

3030 do not like tea, 2525 do not like coffee and 2020 do not like juice. A student outside T∩C∩JT\cap C\cap J misses at least one drink, so

n((T∩C∩J)′)≤30+25+20=75n\big((T\cap C\cap J)'\big)\le30+25+20=75

Step 2. Least value

n(T∩C∩J)≥100−75=25n(T\cap C\cap J)\ge100-75=25

It is reached when the three groups of "misses" have no student in common.

Answer: 2525. In general the least triple overlap is n(A)+n(B)+n(C)−2n(U)n(A)+n(B)+n(C)-2n(U) when this is positive.

Cartesian product

An ordered pair (a,b)(a,b) has a first and a second entry: (a,b)=(c,d)(a,b)=(c,d) exactly when a=ca=c and b=db=d. The cartesian product is

A×B={(a,b):a∈A, b∈B}A\times B=\{(a,b):a\in A,\ b\in B\}
PropertyStatement
sizen(A×B)=n(A) n(B)n(A\times B)=n(A)\,n(B)
orderA×B=B×AA\times B=B\times A only when A=BA=B (or one is empty)
emptyA×B=∅A\times B=\varnothing exactly when AA or BB is empty
unionA×(B∪C)=(A×B)∪(A×C)A\times(B\cup C)=(A\times B)\cup(A\times C)
intersectionA×(B∩C)=(A×B)∩(A×C)A\times(B\cap C)=(A\times B)\cap(A\times C)
two products(A×B)∩(C×D)=(A∩C)×(B∩D)(A\times B)\cap(C\times D)=(A\cap C)\times(B\cap D)

Example 21 (IITianForum). Let A={1,2}A=\{1,2\} and B={x,y,z}B=\{x,y,z\}. Write A×BA\times B, and find n(A×B)n(A\times B) and n(A×B×A)n(A\times B\times A). Is A×B=B×AA\times B=B\times A?

▸ SHOW SOLUTION

Step 1. List

A×BA\times B consists of the six pairs (1,x)(1,x), (1,y)(1,y), (1,z)(1,z), (2,x)(2,x), (2,y)(2,y), (2,z)(2,z).

Step 2. Sizes

n(A×B)=2⋅3=6n(A\times B)=2\cdot3=6n(A×B×A)=2⋅3⋅2=12n(A\times B\times A)=2\cdot3\cdot2=12

Step 3. Order

(1,x)∈A×B(1,x)\in A\times B but (1,x)∉B×A(1,x)\notin B\times A, since the first entry of a pair in B×AB\times A is a letter.

Answer: 66, 1212; A×B≠B×AA\times B\ne B\times A

Example 22 (IITianForum). A×BA\times B has 66 elements, three of which are (−1,2)(-1,2), (0,3)(0,3) and (1,2)(1,2). Find AA, BB and the remaining elements.

▸ SHOW SOLUTION

Step 1. What is known

First entries give {−1,0,1}⊆A\{-1,0,1\}\subseteq A; second entries give {2,3}⊆B\{2,3\}\subseteq B.

Step 2. Sizes

n(A) n(B)=6n(A)\,n(B)=6 with n(A)≥3n(A)\ge3 and n(B)≥2n(B)\ge2 forces n(A)=3n(A)=3, n(B)=2n(B)=2. So

A={−1,0,1},B={2,3}A=\{-1,0,1\},\qquad B=\{2,3\}

Step 3. The rest

(−1,3), (0,2), (1,3)(-1,3),\ (0,2),\ (1,3)

Answer: A={−1,0,1}A=\{-1,0,1\}, B={2,3}B=\{2,3\}; remaining (−1,3),(0,2),(1,3)(-1,3),(0,2),(1,3)

Example 23 (IITianForum). Let A={1,2,3}A=\{1,2,3\} and B={2,3,4}B=\{2,3,4\}. Find (A×B)∩(B×A)(A\times B)\cap(B\times A).

▸ SHOW SOLUTION

Step 1. Use the two-product rule

(A×B)∩(B×A)(A\times B)\cap(B\times A)=(A∩B)×(B∩A)=(A\cap B)\times(B\cap A)

Step 2. Compute

A∩B={2,3}A\cap B=\{2,3\}, so the answer is {2,3}×{2,3}\{2,3\}\times\{2,3\}.

{(2,2),(2,3),(3,2),(3,3)}\{(2,2),(2,3),(3,2),(3,3)\}

Answer: 44 elements, as listed

Two lattice diagrams; on the left six dots form a 2 by 3 grid with 1 and 2 on the horizontal axis and x, y, z on the vertical axis, showing A cross B for Example 21; on the right solid dots mark the points of A cross B for A equal to 1, 2, 3 and B equal to 2, 3, 4, hollow rings mark the points of B cross A, and a shaded square holds the four points 2 comma 2, 2 comma 3, 3 comma 2 and 3 comma 3 that carry both a dot and a ring

The left picture is Example 21. In the right picture, solid dots are A×BA\times B and rings are B×AB\times A; the shaded square, where both appear, is (A∩B)×(A∩B)(A\cap B)\times(A\cap B) of Example 23.

Relations

A relation RR from AA to BB is any subset of A×BA\times B. If (a,b)∈R(a,b)\in R we write a R ba\,R\,b. A relation from AA to AA is a relation on AA.

  • Domain of RR: the set of first entries.
  • Range of RR: the set of second entries.
  • Inverse: R−1={(b,a):(a,b)∈R}R^{-1}=\{(b,a):(a,b)\in R\}, a relation from BB to AA.

Every subset of A×BA\times B is a relation, so for n(A)=mn(A)=m and n(B)=nn(B)=n,

relations from A to B=2mn\text{relations from }A\text{ to }B=2^{mn}

On a set with nn elements there are 2n22^{n^2} relations, including the void relation ∅\varnothing and the universal relation A×AA\times A.

A function is a special relation

A relation ff from AA to BB is a function when every element of AA appears as a first entry exactly once. The Functions note treats functions in full.

Example 24 (IITianForum). On A={1,2,3,4,5,6}A=\{1,2,3,4,5,6\} let R={(x,y):y=2x−1}R=\{(x,y):y=2x-1\}. Write RR in roster form, its domain, its range and R−1R^{-1}.

▸ SHOW SOLUTION

Step 1. List the pairs

x=1,2,3x=1,2,3 give y=1,3,5y=1,3,5; x=4x=4 gives 7∉A7\notin A.

R={(1,1),(2,3),(3,5)}R=\{(1,1),(2,3),(3,5)\}

Step 2. Domain, range, inverse

Dom R={1,2,3}\text{Dom}\,R=\{1,2,3\}Range R={1,3,5}\text{Range}\,R=\{1,3,5\}R−1={(1,1),(3,2),(5,3)}R^{-1}=\{(1,1),(3,2),(5,3)\}

Answer: as above; the range is a subset of the co-domain AA

An arrow diagram with two ovals, each holding the numbers 1 to 6 of the set A; arrows go from 1 to 1, from 2 to 3 and from 3 to 5, while 4, 5 and 6 on the left send no arrow

Example 25 (IITianForum). Let n(A)=3n(A)=3 and n(B)=2n(B)=2. Find the number of relations (a) from AA to BB; (b) on AA; (c) from AA to BB with exactly two pairs; (d) non-empty relations on AA.

▸ SHOW SOLUTION

Step 1. Using the subset count

n(A×B)=6n(A\times B)=6 and n(A×A)=9n(A\times A)=9.

Step 2. Each part

(a) 26=64,(b) 29=512\text{(a) }2^6=64,\qquad \text{(b) }2^9=512(c) 6C2=15,(d) 29−1=511\text{(c) }{}^6C_2=15,\qquad \text{(d) }2^9-1=511

Answer: 6464, 512512, 1515, 511511

Relations given by a rule

Most JEE questions define RR by a formula and ask for n(R)n(R). Fix the first entry, count the second entries that work, and add.

Example 26 (JEE Main 2025, 29 January Shift 2). Let S=N∪{0}S=\mathbb{N}\cup\{0\}. Define a relation RR from SS to R\mathbb{R} by R={(x,y):log⁡ey=xlog⁡e25, x∈S, y∈R}R=\left\{(x,y):\log_e y=x\log_e\dfrac25,\ x\in S,\ y\in\mathbb{R}\right\}. Then the sum of all the elements in the range of RR is equal to:

Tap an option to check your answer
(1)32\dfrac32
(2)53\dfrac53
(3)109\dfrac{10}{9}
(4)52\dfrac52
▸ SHOW SOLUTION

Step 1. Solve for y

y=(25)x,x=0,1,2,…y=\left(\frac25\right)^x,\quad x=0,1,2,\dots

Step 2. Range

Range={1, 25, 425, … }\text{Range}=\left\{1,\ \frac25,\ \frac4{25},\ \dots\right\}

Step 3. Sum of the G.P.

1+25+425+⋯=11−25=531+\frac25+\frac4{25}+\cdots=\frac{1}{1-\frac25}=\frac53

Answer: option (2)

Example 27 (JEE Main 2026, 22 January Shift 2). The number of elements in the relation R={(x,y):4x2+y2<52, x,y∈Z}R=\{(x,y):4x^2+y^2<52,\ x,y\in\mathbb{Z}\} is:

Tap an option to check your answer
(1)7777
(2)8989
(3)6767
(4)8686
▸ SHOW SOLUTION

Step 1. Possible x

4x2<524x^2<52 gives x2<13x^2<13, so x∈{0,±1,±2,±3}x\in\{0,\pm1,\pm2,\pm3\}.

Step 2. Count y for each x

xxconditionyy values
00y2<52y^2<52∣y∣≤7\lvert y\rvert\le7: 1515
±1\pm1y2<48y^2<48∣y∣≤6\lvert y\rvert\le6: 1313 each
±2\pm2y2<36y^2<36∣y∣≤5\lvert y\rvert\le5: 1111 each
±3\pm3y2<16y^2<16∣y∣≤3\lvert y\rvert\le3: 77 each

Step 3. Add

15+2(13+11+7)=7715+2(13+11+7)=77

Answer: option (1)

Example 28 (JEE Main 2026, 2 April Shift 2). Let A={2,3,4,5,6}A=\{2,3,4,5,6\}. Let RR be a relation on the set A×AA\times A given by (x,y) R (z,w)(x,y)\,R\,(z,w) if and only if xx divides zz and y≤wy\le w. Then the number of elements in RR is ______.

▸ SHOW SOLUTION

Step 1. Split the condition

The condition on (x,z)(x,z) and the condition on (y,w)(y,w) are independent, so

n(R)=(pairs x∣z)×(pairs y≤w)n(R)=(\text{pairs }x\mid z)\times(\text{pairs }y\le w)

Step 2. Pairs with x dividing z

x=2x=2: z=2,4,6z=2,4,6; x=3x=3: z=3,6z=3,6; x=4,5,6x=4,5,6: z=xz=x only.

3+2+1+1+1=83+2+1+1+1=8

Step 3. Pairs with y at most w

5+4+3+2+1=155+4+3+2+1=15

Answer: 8×15=1208\times15=120

Example 29 (JEE Main 2026, 24 January Shift 1). Let RR be a relation defined on the set {1,2,3,4}×{1,2,3,4}\{1,2,3,4\}\times\{1,2,3,4\} by R={((a,b),(c,d)):2a+3b=3c+4d}R=\{((a,b),(c,d)):2a+3b=3c+4d\}. Then the number of elements in RR is:

Tap an option to check your answer
(1)66
(2)1818
(3)1212
(4)1515
▸ SHOW SOLUTION

Step 1. Range of values

2a+3b2a+3b runs from 55 to 2020. So only those (c,d)(c,d) with 3c+4d≤203c+4d\le20 can match.

Step 2. Table

For each such (c,d)(c,d), list the (a,b)(a,b) with 2a+3b=3c+4d2a+3b=3c+4d:

(c,d)(c,d)3c+4d3c+4d(a,b)(a,b)
(1,1)(1,1)77(2,1)(2,1)
(1,2)(1,2)1111(1,3),(4,1)(1,3),(4,1)
(1,3)(1,3)1515(3,3)(3,3)
(2,1)(2,1)1010(2,2)(2,2)
(2,2)(2,2)1414(1,4),(4,2)(1,4),(4,2)
(2,3)(2,3)1818(3,4)(3,4)
(3,1)(3,1)1313(2,3)(2,3)
(3,2)(3,2)1717(4,3)(4,3)
(4,1)(4,1)1616(2,4)(2,4)
(4,2)(4,2)2020(4,4)(4,4)

The other six (c,d)(c,d) give values above 2020.

Step 3. Count

8⋅1+2⋅2=128\cdot1+2\cdot2=12

Answer: option (3)

Example 30 (JEE Main 2026, 5 April Shift 2). Let A={1,4,7}A=\{1,4,7\} and B={2,3,8}B=\{2,3,8\}. Then the number of elements in the relation R={((a1,b1),(a2,b2))∈(A×B)×(A×B):a1+b2 divides a2+b1}R=\{((a_1,b_1),(a_2,b_2))\in(A\times B)\times(A\times B):a_1+b_2\text{ divides }a_2+b_1\} is ______.

▸ SHOW SOLUTION

Step 1. Re-pair the entries

Choosing ((a1,b1),(a2,b2))((a_1,b_1),(a_2,b_2)) is the same as choosing the two pairs (a1,b2)(a_1,b_2) and (a2,b1)(a_2,b_1) freely from A×BA\times B. So count ordered pairs (s,t)(s,t) of sums a+ba+b with s∣ts\mid t.

Step 2. The nine sums

1+{2,3,8}={3,4,9}1+\{2,3,8\}=\{3,4,9\}4+{2,3,8}={6,7,12}4+\{2,3,8\}=\{6,7,12\}7+{2,3,8}={9,10,15}7+\{2,3,8\}=\{9,10,15\}

The list is 3,4,6,7,9,9,10,12,153,4,6,7,9,9,10,12,15, with 99 twice.

Step 3. Count divisors in the list

ttsums ss dividing ttcount
333311
444411
663,63,622
777711
99 (twice)3,9,93,9,93+33+3
1010101011
12123,4,6,123,4,6,1244
15153,153,1522
1+1+2+1+6+1+4+2=181+1+2+1+6+1+4+2=18

Answer: 1818

Example 31 (IITianForum). One relation is chosen at random from all non-empty relations on A={1,2,3}A=\{1,2,3\}. Find the probability that it is a function from AA to AA, and the probability that it is a one-one function.

▸ SHOW SOLUTION

Step 1. Total

29−1=5112^9-1=511

Step 2. Functions

A function gives each of 1,2,31,2,3 exactly one image: 33=273^3=27 relations. One-one functions: 3!=63!=6.

Answer: 27511\dfrac{27}{511} and 6511\dfrac{6}{511}

Example 32 (JEE Main 2025, 2 April Shift 2). Let A={1,2,3,…,100}A=\{1,2,3,\dots,100\} and RR be a relation on AA such that R={(a,b):a=2b+1}R=\{(a,b):a=2b+1\}. Let (a1,a2),(a2,a3),(a3,a4),…,(ak,ak+1)(a_1,a_2),(a_2,a_3),(a_3,a_4),\dots,(a_k,a_{k+1}) be a sequence of kk elements of RR such that the second entry of an ordered pair is equal to the first entry of the next ordered pair. Then the largest integer kk, for which such a sequence exists, is equal to:

Tap an option to check your answer
(1)66
(2)77
(3)55
(4)88
▸ SHOW SOLUTION

Step 1. Run the chain backwards

ai=2ai+1+1a_i=2a_{i+1}+1, so the numbers grow as we go back. To make the chain long, start the end at the smallest value ak+1=1a_{k+1}=1:

1→3→7→15→31→63→1271\to3\to7\to15\to31\to63\to127

Step 2. Stay inside A

127>100127>100, so the longest chain uses 63,31,15,7,3,163,31,15,7,3,1: six numbers.

(63,31),(31,15),(15,7),(7,3),(3,1)(63,31),(31,15),(15,7),(7,3),(3,1)

Answer: k=5k=5, option (3)

Types of relations

Let RR be a relation on a set AA.

TypeCondition
reflexive(a,a)∈R(a,a)\in R for every a∈Aa\in A
symmetric(a,b)∈R⇒(b,a)∈R(a,b)\in R\Rightarrow(b,a)\in R
transitive(a,b),(b,c)∈R⇒(a,c)∈R(a,b),(b,c)\in R\Rightarrow(a,c)\in R
anti-symmetric(a,b),(b,a)∈R⇒a=b(a,b),(b,a)\in R\Rightarrow a=b
identityR={(a,a):a∈A}R=\{(a,a):a\in A\}
equivalencereflexive, symmetric and transitive

On a grid of points (x,y)(x,y), a reflexive relation contains every point of the diagonal y=xy=x, and a symmetric relation is its own mirror image in that diagonal.

Two 4 by 4 grids of points with the diagonal y equals x dashed; the left grid has all four diagonal points filled together with 1 comma 3, 2 comma 4 and 4 comma 1, a reflexive relation; the right grid has filled points 1 comma 2 and 2 comma 1, 1 comma 4 and 4 comma 1, 2 comma 3 and 3 comma 2, and 3 comma 3, each off-diagonal point matched by its mirror, a symmetric relation
How to decide

To prove a property, argue for all elements. To disprove it, one counterexample is enough. Symmetric and transitive hold automatically for the void relation, because there is no pair to test; it is not reflexive on a non-empty set.

Example 33 (IITianForum). On A={1,2,3}A=\{1,2,3\} decide whether each relation is reflexive, symmetric or transitive.

R1={(1,1),(2,2),(3,3),(1,2)}R_1=\{(1,1),(2,2),(3,3),(1,2)\} R2={(1,2),(2,1)}R_2=\{(1,2),(2,1)\} R3={(1,2),(2,3),(1,3)},R4=∅R_3=\{(1,2),(2,3),(1,3)\},\qquad R_4=\varnothing
▸ SHOW SOLUTION

Step 1. R1

Reflexive: all three diagonal pairs. Not symmetric: (2,1)(2,1) is missing. Transitive: the only chain is through (1,2)(1,2) with diagonal pairs, which gives nothing new.

Step 2. R2

Not reflexive. Symmetric. Not transitive: (1,2),(2,1)(1,2),(2,1) need (1,1)(1,1).

Step 3. R3

Not reflexive, not symmetric. Transitive: the only chain (1,2),(2,3)(1,2),(2,3) needs (1,3)(1,3), which is present.

Step 4. R4

Not reflexive; symmetric and transitive, with nothing to test.

Answer: R1R_1: R, T; R2R_2: S; R3R_3: T; R4R_4: S, T

Example 34 (IITianForum). On Z\mathbb{Z}, decide which properties hold for aRbaRb defined by (a) 55 divides a−ba-b; (b) a≤ba\le b; (c) ∣a−b∣≤1\lvert a-b\rvert\le1.

▸ SHOW SOLUTION

Step 1. Divisibility by 5

5∣05\mid0; 5∣(a−b)⇒5∣(b−a)5\mid(a-b)\Rightarrow5\mid(b-a); 5∣(a−b)5\mid(a-b) and 5∣(b−c)5\mid(b-c) give 5∣(a−c)5\mid(a-c). An equivalence relation.

Step 2. Less than or equal

Reflexive and transitive. Not symmetric: 1≤21\le2 but 2≰12\not\le1. Anti-symmetric: a≤ba\le b and b≤ab\le a give a=ba=b.

Step 3. Distance at most 1

Reflexive and symmetric. Not transitive: (0,1)(0,1) and (1,2)(1,2) are in RR, but ∣0−2∣=2\lvert0-2\rvert=2.

Answer: (a) equivalence; (b) R, T, anti-symmetric; (c) R, S only

Example 35 (IITianForum). On R\mathbb{R}, aRbaRb holds whenever a≤∣b∣a\le\lvert b\rvert. Then RR is

Tap an option to check your answer
(A)reflexive only
(B)symmetric only
(C)transitive only
(D)an equivalence relation
▸ SHOW SOLUTION

Step 1. Reflexive

a≤∣a∣a\le\lvert a\rvert for every real aa. Reflexive.

Step 2. Symmetric

1≤∣3∣1\le\lvert3\rvert, so (1,3)∈R(1,3)\in R; but 3≤∣1∣3\le\lvert1\rvert is false. Not symmetric.

Step 3. Transitive

(3,−3)∈R(3,-3)\in R since 3≤33\le3, and (−3,0)∈R(-3,0)\in R since −3≤0-3\le0. But (3,0)∉R(3,0)\notin R. Not transitive.

Answer: option (A)

Example 36 (IITianForum). On R\mathbb{R}, aRbaRb holds whenever a−ba-b is irrational. Which of reflexive, symmetric, transitive hold?

▸ SHOW SOLUTION

Step 1. Reflexive

a−a=0a-a=0 is rational. Not reflexive.

Step 2. Symmetric

If a−ba-b is irrational, so is b−a=−(a−b)b-a=-(a-b). Symmetric.

Step 3. Transitive

(2,0)(\sqrt2,0) and (0,2)(0,\sqrt2) are in RR, since ±2\pm\sqrt2 is irrational. But 2−2=0\sqrt2-\sqrt2=0, so (2,2)∉R(\sqrt2,\sqrt2)\notin R. Not transitive.

Answer: symmetric only

Example 37 (JEE Main 2025, 29 January Shift 1). Define a relation RR on the interval [0,π2)\left[0,\dfrac\pi2\right) by x R yx\,R\,y if and only if sec⁡2x−tan⁡2y=1\sec^2x-\tan^2y=1. Then RR is:

Tap an option to check your answer
(1)an equivalence relation
(2)both reflexive and transitive but not symmetric
(3)both reflexive and symmetric but not transitive
(4)reflexive but neither symmetric nor transitive
▸ SHOW SOLUTION

Step 1. Rewrite

1+tan⁡2x−tan⁡2y=11+\tan^2x-\tan^2y=1tan⁡2x=tan⁡2y\tan^2x=\tan^2y

Step 2. Use the interval

On [0,π2)\left[0,\frac\pi2\right), tan⁡\tan is non-negative and increasing, so tan⁡2x=tan⁡2y\tan^2x=\tan^2y gives x=yx=y. Thus RR is the identity relation on the interval, which is reflexive, symmetric and transitive.

Answer: option (1)

Equal values give an equivalence

Any relation of the form xRy  ⟺  f(x)=f(y)xRy\iff f(x)=f(y) is an equivalence relation, whatever ff is. Its classes are the sets on which ff takes one value.

Example 38 (JEE Main 2025, 2 April Shift 1). Let AA be the set of all functions f:Z→Zf:\mathbb{Z}\to\mathbb{Z} and RR be a relation on AA such that R={(f,g):f(0)=g(1) and f(1)=g(0)}R=\{(f,g):f(0)=g(1)\text{ and }f(1)=g(0)\}. Then RR is:

Tap an option to check your answer
(1)Symmetric and transitive but not reflexive
(2)Symmetric but neither reflexive nor transitive
(3)Reflexive but neither symmetric nor transitive
(4)Transitive but neither reflexive nor symmetric
▸ SHOW SOLUTION

Step 1. Reflexive

fRffRf needs f(0)=f(1)f(0)=f(1). For f(x)=xf(x)=x this fails. Not reflexive.

Step 2. Symmetric

f(0)=g(1)f(0)=g(1) and f(1)=g(0)f(1)=g(0) say the same as g(0)=f(1)g(0)=f(1) and g(1)=f(0)g(1)=f(0). Symmetric.

Step 3. Transitive

Take f(x)=xf(x)=x and g(x)=1−xg(x)=1-x. Then f(0)=0=g(1)f(0)=0=g(1) and f(1)=1=g(0)f(1)=1=g(0), so fRgfRg, and by symmetry gRfgRf. Transitivity would give fRffRf, which is false. Not transitive.

Answer: option (2)

Example 39 (JEE Main 2026, 8 April Shift 2). Consider the relation RR on the set {−2,−1,0,1,2}\{-2,-1,0,1,2\} defined by (a,b)∈R(a,b)\in R if and only if 1+ab>01+ab>0. Among the statements: I. The number of elements in RR is 1717. II. RR is an equivalence relation.

Tap an option to check your answer
(1)Only I is true
(2)Only II is true
(3)Both I and II are true
(4)Neither I nor II is true
▸ SHOW SOLUTION

Step 1. Pairs that fail

1+ab≤01+ab\le0 means ab≤−1ab\le-1: one entry negative, one positive.

(−2,1),(−2,2),(−1,1),(−1,2)(-2,1),(-2,2),(-1,1),(-1,2)

and their reverses: 88 pairs.

n(R)=25−8=17n(R)=25-8=17

So I is true.

Step 2. Equivalence?

1+a2>01+a^2>0, so RR is reflexive, and it is symmetric. But (−2,0)(-2,0) and (0,2)(0,2) are in RR while (−2,2)(-2,2) is not. Not transitive, so II is false.

Answer: option (1)

Example 40 (JEE Main 2025, 8 April Shift 2). Let A={0,1,2,3,4,5}A=\{0,1,2,3,4,5\}. Let RR be a relation on AA defined by (x,y)∈R(x,y)\in R if and only if max⁡{x,y}∈{3,4}\max\{x,y\}\in\{3,4\}. Then among the statements (S1)(S_1): The number of elements in RR is 1818, and (S2)(S_2): The relation RR is symmetric but neither reflexive nor transitive:

Tap an option to check your answer
(1)both are true
(2)both are false
(3)only (S2)(S_2) is true
(4)only (S1)(S_1) is true
▸ SHOW SOLUTION

Step 1. Count

Pairs with maximum exactly 33: both entries in {0,…,3}\{0,\dots,3\} but not both in {0,1,2}\{0,1,2\}.

42−32=7,52−42=94^2-3^2=7,\qquad 5^2-4^2=9

So n(R)=16n(R)=16 and S1S_1 is false.

Step 2. Properties

max⁡{x,y}=max⁡{y,x}\max\{x,y\}=\max\{y,x\}, so RR is symmetric. (0,0)∉R(0,0)\notin R: not reflexive. (0,3),(3,0)∈R(0,3),(3,0)\in R but (0,0)∉R(0,0)\notin R: not transitive. So S2S_2 is true.

Answer: option (3) :::## Types of relations

Let RR be a relation on a set AA.

TypeCondition
reflexive(a,a)∈R(a,a)\in R for every a∈Aa\in A
symmetric(a,b)∈R⇒(b,a)∈R(a,b)\in R\Rightarrow(b,a)\in R
transitive(a,b),(b,c)∈R⇒(a,c)∈R(a,b),(b,c)\in R\Rightarrow(a,c)\in R
anti-symmetric(a,b),(b,a)∈R⇒a=b(a,b),(b,a)\in R\Rightarrow a=b
identityR={(a,a):a∈A}R=\{(a,a):a\in A\}
equivalencereflexive, symmetric and transitive

On a grid of points (x,y)(x,y), a reflexive relation contains every point of the diagonal y=xy=x, and a symmetric relation is its own mirror image in that diagonal.

Two 4 by 4 grids of points with the diagonal y equals x dashed; the left grid has all four diagonal points filled together with 1 comma 3, 2 comma 4 and 4 comma 1, a reflexive relation; the right grid has filled points 1 comma 2 and 2 comma 1, 1 comma 4 and 4 comma 1, 2 comma 3 and 3 comma 2, and 3 comma 3, each off-diagonal point matched by its mirror, a symmetric relation
How to decide

To prove a property, argue for all elements. To disprove it, one counterexample is enough. Symmetric and transitive hold automatically for the void relation, because there is no pair to test; it is not reflexive on a non-empty set.

Example 33 (IITianForum). On A={1,2,3}A=\{1,2,3\} decide whether each relation is reflexive, symmetric or transitive.

R1={(1,1),(2,2),(3,3),(1,2)}R_1=\{(1,1),(2,2),(3,3),(1,2)\} R2={(1,2),(2,1)}R_2=\{(1,2),(2,1)\} R3={(1,2),(2,3),(1,3)},R4=∅R_3=\{(1,2),(2,3),(1,3)\},\qquad R_4=\varnothing
▸ SHOW SOLUTION

Step 1. R1

Reflexive: all three diagonal pairs. Not symmetric: (2,1)(2,1) is missing. Transitive: the only chain is through (1,2)(1,2) with diagonal pairs, which gives nothing new.

Step 2. R2

Not reflexive. Symmetric. Not transitive: (1,2),(2,1)(1,2),(2,1) need (1,1)(1,1).

Step 3. R3

Not reflexive, not symmetric. Transitive: the only chain (1,2),(2,3)(1,2),(2,3) needs (1,3)(1,3), which is present.

Step 4. R4

Not reflexive; symmetric and transitive, with nothing to test.

Answer: R1R_1: R, T; R2R_2: S; R3R_3: T; R4R_4: S, T

Example 34 (IITianForum). On Z\mathbb{Z}, decide which properties hold for aRbaRb defined by (a) 55 divides a−ba-b; (b) a≤ba\le b; (c) ∣a−b∣≤1\lvert a-b\rvert\le1.

▸ SHOW SOLUTION

Step 1. Divisibility by 5

5∣05\mid0; 5∣(a−b)⇒5∣(b−a)5\mid(a-b)\Rightarrow5\mid(b-a); 5∣(a−b)5\mid(a-b) and 5∣(b−c)5\mid(b-c) give 5∣(a−c)5\mid(a-c). An equivalence relation.

Step 2. Less than or equal

Reflexive and transitive. Not symmetric: 1≤21\le2 but 2≰12\not\le1. Anti-symmetric: a≤ba\le b and b≤ab\le a give a=ba=b.

Step 3. Distance at most 1

Reflexive and symmetric. Not transitive: (0,1)(0,1) and (1,2)(1,2) are in RR, but ∣0−2∣=2\lvert0-2\rvert=2.

Answer: (a) equivalence; (b) R, T, anti-symmetric; (c) R, S only

Example 35 (IITianForum). On R\mathbb{R}, aRbaRb holds whenever a≤∣b∣a\le\lvert b\rvert. Then RR is

Tap an option to check your answer
(A)reflexive only
(B)symmetric only
(C)transitive only
(D)an equivalence relation
▸ SHOW SOLUTION

Step 1. Reflexive

a≤∣a∣a\le\lvert a\rvert for every real aa. Reflexive.

Step 2. Symmetric

1≤∣3∣1\le\lvert3\rvert, so (1,3)∈R(1,3)\in R; but 3≤∣1∣3\le\lvert1\rvert is false. Not symmetric.

Step 3. Transitive

(3,−3)∈R(3,-3)\in R since 3≤33\le3, and (−3,0)∈R(-3,0)\in R since −3≤0-3\le0. But (3,0)∉R(3,0)\notin R. Not transitive.

Answer: option (A)

Example 36 (IITianForum). On R\mathbb{R}, aRbaRb holds whenever a−ba-b is irrational. Which of reflexive, symmetric, transitive hold?

▸ SHOW SOLUTION

Step 1. Reflexive

a−a=0a-a=0 is rational. Not reflexive.

Step 2. Symmetric

If a−ba-b is irrational, so is b−a=−(a−b)b-a=-(a-b). Symmetric.

Step 3. Transitive

(2,0)(\sqrt2,0) and (0,2)(0,\sqrt2) are in RR, since ±2\pm\sqrt2 is irrational. But 2−2=0\sqrt2-\sqrt2=0, so (2,2)∉R(\sqrt2,\sqrt2)\notin R. Not transitive.

Answer: symmetric only

Example 37 (JEE Main 2025, 29 January Shift 1). Define a relation RR on the interval [0,π2)\left[0,\dfrac\pi2\right) by x R yx\,R\,y if and only if sec⁡2x−tan⁡2y=1\sec^2x-\tan^2y=1. Then RR is:

Tap an option to check your answer
(1)an equivalence relation
(2)both reflexive and transitive but not symmetric
(3)both reflexive and symmetric but not transitive
(4)reflexive but neither symmetric nor transitive
▸ SHOW SOLUTION

Step 1. Rewrite

1+tan⁡2x−tan⁡2y=11+\tan^2x-\tan^2y=1tan⁡2x=tan⁡2y\tan^2x=\tan^2y

Step 2. Use the interval

On [0,π2)\left[0,\frac\pi2\right), tan⁡\tan is non-negative and increasing, so tan⁡2x=tan⁡2y\tan^2x=\tan^2y gives x=yx=y. Thus RR is the identity relation on the interval, which is reflexive, symmetric and transitive.

Answer: option (1)

Equal values give an equivalence

Any relation of the form xRy  ⟺  f(x)=f(y)xRy\iff f(x)=f(y) is an equivalence relation, whatever ff is. Its classes are the sets on which ff takes one value.

Example 38 (JEE Main 2025, 2 April Shift 1). Let AA be the set of all functions f:Z→Zf:\mathbb{Z}\to\mathbb{Z} and RR be a relation on AA such that R={(f,g):f(0)=g(1) and f(1)=g(0)}R=\{(f,g):f(0)=g(1)\text{ and }f(1)=g(0)\}. Then RR is:

Tap an option to check your answer
(1)Symmetric and transitive but not reflexive
(2)Symmetric but neither reflexive nor transitive
(3)Reflexive but neither symmetric nor transitive
(4)Transitive but neither reflexive nor symmetric
▸ SHOW SOLUTION

Step 1. Reflexive

fRffRf needs f(0)=f(1)f(0)=f(1). For f(x)=xf(x)=x this fails. Not reflexive.

Step 2. Symmetric

f(0)=g(1)f(0)=g(1) and f(1)=g(0)f(1)=g(0) say the same as g(0)=f(1)g(0)=f(1) and g(1)=f(0)g(1)=f(0). Symmetric.

Step 3. Transitive

Take f(x)=xf(x)=x and g(x)=1−xg(x)=1-x. Then f(0)=0=g(1)f(0)=0=g(1) and f(1)=1=g(0)f(1)=1=g(0), so fRgfRg, and by symmetry gRfgRf. Transitivity would give fRffRf, which is false. Not transitive.

Answer: option (2)

Example 39 (JEE Main 2026, 8 April Shift 2). Consider the relation RR on the set {−2,−1,0,1,2}\{-2,-1,0,1,2\} defined by (a,b)∈R(a,b)\in R if and only if 1+ab>01+ab>0. Among the statements: I. The number of elements in RR is 1717. II. RR is an equivalence relation.

Tap an option to check your answer
(1)Only I is true
(2)Only II is true
(3)Both I and II are true
(4)Neither I nor II is true
▸ SHOW SOLUTION

Step 1. Pairs that fail

1+ab≤01+ab\le0 means ab≤−1ab\le-1: one entry negative, one positive.

(−2,1),(−2,2),(−1,1),(−1,2)(-2,1),(-2,2),(-1,1),(-1,2)

and their reverses: 88 pairs.

n(R)=25−8=17n(R)=25-8=17

So I is true.

Step 2. Equivalence?

1+a2>01+a^2>0, so RR is reflexive, and it is symmetric. But (−2,0)(-2,0) and (0,2)(0,2) are in RR while (−2,2)(-2,2) is not. Not transitive, so II is false.

Answer: option (1)

Example 40 (JEE Main 2025, 8 April Shift 2). Let A={0,1,2,3,4,5}A=\{0,1,2,3,4,5\}. Let RR be a relation on AA defined by (x,y)∈R(x,y)\in R if and only if max⁡{x,y}∈{3,4}\max\{x,y\}\in\{3,4\}. Then among the statements (S1)(S_1): The number of elements in RR is 1818, and (S2)(S_2): The relation RR is symmetric but neither reflexive nor transitive:

Tap an option to check your answer
(1)both are true
(2)both are false
(3)only (S2)(S_2) is true
(4)only (S1)(S_1) is true
▸ SHOW SOLUTION

Step 1. Count

Pairs with maximum exactly 33: both entries in {0,…,3}\{0,\dots,3\} but not both in {0,1,2}\{0,1,2\}.

42−32=7,52−42=94^2-3^2=7,\qquad 5^2-4^2=9

So n(R)=16n(R)=16 and S1S_1 is false.

Step 2. Properties

max⁡{x,y}=max⁡{y,x}\max\{x,y\}=\max\{y,x\}, so RR is symmetric. (0,0)∉R(0,0)\notin R: not reflexive. (0,3),(3,0)∈R(0,3),(3,0)\in R but (0,0)∉R(0,0)\notin R: not transitive. So S2S_2 is true.

Answer: option (3)

Counting relations of each type

For a set with nn elements, the n2n^2 pairs split into nn diagonal pairs (a,a)(a,a) and n(n−1)2\frac{n(n-1)}2 off-diagonal partner sets {(a,b),(b,a)}\{(a,b),(b,a)\}.

Relations on nn elementsCount
all2n22^{n^2}
reflexive2n2−n2^{n^2-n}
symmetric2n(n+1)/22^{n(n+1)/2}
reflexive and symmetric2n(n−1)/22^{n(n-1)/2}
anti-symmetric2n⋅3n(n−1)/22^n\cdot3^{n(n-1)/2}
smallest equivalenceidentity, nn pairs
largest equivalenceA×AA\times A, n2n^2 pairs

Example 41 (IITianForum). For A={1,2,3}A=\{1,2,3\}, find the number of relations that are (a) reflexive; (b) symmetric; (c) reflexive and symmetric; (d) anti-symmetric.

▸ SHOW SOLUTION

Step 1. The pairs

33 diagonal pairs and 33 partner sets {(1,2),(2,1)}\{(1,2),(2,1)\}, {(1,3),(3,1)}\{(1,3),(3,1)\}, {(2,3),(3,2)}\{(2,3),(3,2)\}.

Step 2. Reflexive and symmetric counts

Reflexive: diagonal fixed, the other 66 pairs free.

(a) 26=64\text{(a) }2^6=64

Symmetric: each diagonal pair free and each partner set wholly in or out.

(b) 23+3=64,(c) 23=8\text{(b) }2^{3+3}=64,\qquad\text{(c) }2^3=8

Step 3. Anti-symmetric

Each diagonal pair is free. Each partner set may take neither pair, the first or the second, but not both: 33 choices.

(d) 23⋅33=216\text{(d) }2^3\cdot3^3=216

Answer: 6464, 6464, 88, 216216

Example 42 (JEE Main 2026, 21 January Shift 1). The number of relations defined on the set {a,b,c,d}\{a,b,c,d\} which are both reflexive and symmetric is

Tap an option to check your answer
(1)256256
(2)1616
(3)10241024
(4)6464
▸ SHOW SOLUTION

Step 1. Diagonal

Reflexive: all 44 diagonal pairs are in, 11 way.

Step 2. Partner sets

The 1212 off-diagonal pairs form 66 partner sets; symmetric means each set is wholly in or out.

26=642^6=64

Answer: option (4)

Example 43 (JEE Main 2025, 22 January Shift 2). Let A={1,2,3}A=\{1,2,3\}. The number of relations on AA, containing (1,2)(1,2) and (2,3)(2,3), which are reflexive and transitive but not symmetric, is ______.

▸ SHOW SOLUTION

Step 1. Pairs forced in

Reflexive: (1,1),(2,2),(3,3)(1,1),(2,2),(3,3). Given: (1,2),(2,3)(1,2),(2,3). Transitive: (1,3)(1,3). Call this set R0R_0; it is transitive.

Step 2. Pairs left to decide

(2,1)(2,1), (3,2)(3,2) and (3,1)(3,1).

  • Adding (3,1)(3,1): then (3,1),(1,2)(3,1),(1,2) need (3,2)(3,2) and (2,3),(3,1)(2,3),(3,1) need (2,1)(2,1). That is all of A×AA\times A, which is symmetric.
  • Adding (2,1)(2,1) and (3,2)(3,2): (3,2),(2,1)(3,2),(2,1) need (3,1)(3,1), back to A×AA\times A.
  • Adding only (2,1)(2,1), or only (3,2)(3,2): each stays transitive, and neither is symmetric.

Step 3. Count

R0R_0, R0∪{(2,1)}R_0\cup\{(2,1)\} and R0∪{(3,2)}R_0\cup\{(3,2)\}.

Answer: 33

Smallest number of pairs to add

To make a given RR have a property with the fewest new pairs:

TargetAdd
reflexiveevery missing (a,a)(a,a)
symmetricthe reverse of every pair whose reverse is missing
transitive(a,c)(a,c) for every chain (a,b),(b,c)(a,b),(b,c), and repeat until nothing new appears
equivalencejoin elements linked by RR into classes; the result is all pairs inside each class

For an equivalence relation with classes of sizes n1,n2,…n_1,n_2,\dots the number of pairs is

n12+n22+⋯n_1^2+n_2^2+\cdots

Example 44 (JEE Main 2026, 22 January Shift 1). Let the relation RR on the set M={1,2,3,…,16}M=\{1,2,3,\dots,16\} be given by R={(x,y):4y=5x−3, x,y∈M}R=\{(x,y):4y=5x-3,\ x,y\in M\}. Then the minimum number of elements required to be added in RR to make it symmetric is

Tap an option to check your answer
(1)11
(2)22
(3)44
(4)33
▸ SHOW SOLUTION

Step 1. List R

y=5x−34y=\dfrac{5x-3}4 is an integer when x=3,7,11,15x=3,7,11,15, giving y=3,8,13,18y=3,8,13,18. 18∉M18\notin M.

R={(3,3),(7,8),(11,13)}R=\{(3,3),(7,8),(11,13)\}

Step 2. Missing reverses

(3,3)(3,3) is its own reverse. Add (8,7)(8,7) and (13,11)(13,11).

Answer: 22, option (2)

Example 45 (JEE Main 2026, 21 January Shift 2). Let A={2,3,5,7,9}A=\{2,3,5,7,9\} and RR be the relation on AA defined by xRyxRy iff 2x≤3y2x\le3y. Let ℓ\ell be the number of elements in RR and mm the minimum number of elements to add to make RR symmetric. Then ℓ+m\ell+m is

Tap an option to check your answer
(1)2323
(2)2525
(3)2121
(4)2727
▸ SHOW SOLUTION

Step 1. Count R

y≥2x3y\ge\frac{2x}3:

xxyycount
2,32,3all five55 each
5,75,75,7,95,7,933 each
997,97,922
ℓ=5+5+3+3+2=18\ell=5+5+3+3+2=18

Step 2. Missing reverses

(x,y)∈R(x,y)\in R with (y,x)∉R(y,x)\notin R means 2y>3x2y>3x:

(2,5),(2,7),(2,9),(3,5)(2,5),(2,7),(2,9),(3,5)(3,7),(3,9),(5,9)(3,7),(3,9),(5,9)

So m=7m=7.

Answer: ℓ+m=25\ell+m=25, option (2)

Example 46 (JEE Main 2026, 23 January Shift 1). Let A={−2,−1,0,1,2,3,4}A=\{-2,-1,0,1,2,3,4\}. Let RR be a relation on AA defined by xRyxRy if and only if 2x+y≤22x+y\le2. Let ll be the number of elements in RR. Let mm and nn be the minimum number of elements required to be added in RR to make it reflexive and symmetric relations respectively. Then l+m+nl+m+n is equal to:

Tap an option to check your answer
(1)3232
(2)3434
(3)3333
(4)3535
▸ SHOW SOLUTION

Step 1. Count R

y≤2−2xy\le2-2x:

xxyycount
−2,−1-2,-1all seven77 each
00y≤2y\le255
11y≤0y\le033
22y=−2y=-211
3,43,4none00
l=7+7+5+3+1=23l=7+7+5+3+1=23

Step 2. Reflexive

(a,a)∈R(a,a)\in R iff 3a≤23a\le2. Missing: (1,1),(2,2),(3,3),(4,4)(1,1),(2,2),(3,3),(4,4), so m=4m=4.

Step 3. Symmetric

(x,y)∈R(x,y)\in R but 2y+x>22y+x>2:

(−2,3),(−2,4),(−1,2)(-2,3),(-2,4),(-1,2)(−1,3),(−1,4),(0,2)(-1,3),(-1,4),(0,2)

So n=6n=6.

Answer: 23+4+6=3323+4+6=33, option (3)

Example 47 (JEE Main 2026, 6 April Shift 2). Let R={(x,y)∈N×N:log⁡e(x+y)≤2}R=\{(x,y)\in\mathbb{N}\times\mathbb{N}:\log_e(x+y)\le2\}. Then the minimum number of elements required to be added in RR to make it a transitive relation, is ______.

▸ SHOW SOLUTION

Step 1. R in plain terms

x+y≤e2≈7.39x+y\le e^2\approx7.39, so x+y≤7x+y\le7. For x+y=sx+y=s there are s−1s-1 pairs, s=2,…,7s=2,\dots,7:

n(R)=1+2+3+4+5+6=21n(R)=1+2+3+4+5+6=21

Step 2. What transitivity forces

Every a∈{1,…,6}a\in\{1,\dots,6\} satisfies (a,1)∈R(a,1)\in R, and (1,c)∈R(1,c)\in R for every c≤6c\le6. So (a,c)(a,c) must be added for all a,c∈{1,…,6}a,c\in\{1,\dots,6\}.

Step 3. The full set works

{1,…,6}×{1,…,6}\{1,\dots,6\}\times\{1,\dots,6\} is transitive and contains RR, with 3636 pairs.

36−21=1536-21=15

Answer: 1515

Example 48 (JEE Main 2025, 23 January Shift 1). Let R={(1,2),(2,3),(3,3)}R=\{(1,2),(2,3),(3,3)\} be a relation defined on the set {1,2,3,4}\{1,2,3,4\}. Then the minimum number of elements needed to be added in RR so that RR becomes an equivalence relation, is:

Tap an option to check your answer
(1)1010
(2)88
(3)99
(4)77
▸ SHOW SOLUTION

Step 1. Classes

(1,2)(1,2) and (2,3)(2,3) put 1,2,31,2,3 in one class. 44 is linked to nothing, so it is a class by itself.

Step 2. Pairs needed

32+12=103^2+1^2=10

Step 3. Add

RR already has 33 of them.

10−3=710-3=7

Answer: option (4)

Equivalence relations and classes

Let RR be an equivalence relation on AA. The equivalence class of aa is

[a]={x∈A:(a,x)∈R}[a]=\{x\in A:(a,x)\in R\}
  • Every element lies in its own class, since aRaaRa.
  • Two classes are either equal or disjoint.
  • The classes together cover AA.

So the classes form a partition of AA: disjoint non-empty blocks whose union is AA. Conversely every partition gives an equivalence relation, "same block". Hence

equivalence relations ↔ partitions\text{equivalence relations}\ \leftrightarrow\ \text{partitions}
n(A)n(A)11223344
equivalence relations1122551515

Example 49 (JEE Main 2025, 28 January Shift 1). The relation R={(x,y):x,y∈Z and x+y is even}R=\{(x,y):x,y\in\mathbb{Z}\text{ and }x+y\text{ is even}\} is:

Tap an option to check your answer
(1)reflexive and transitive but not symmetric
(2)reflexive and symmetric but not transitive
(3)an equivalence relation
(4)symmetric and transitive but not reflexive
▸ SHOW SOLUTION

Step 1. Same parity

x+yx+y is even exactly when xx and yy are both even or both odd.

Step 2. Conclude

"Same parity" is of the form f(x)=f(y)f(x)=f(y) with f(x)f(x) the remainder on division by 22. So RR is an equivalence relation with two classes, the even integers and the odd integers.

Answer: option (3)

Example 50 (JEE Main 2026, 23 January Shift 2). Let A={0,1,2,…,9}A=\{0,1,2,\dots,9\}. Let RR be a relation on AA defined by (x,y)∈R(x,y)\in R if and only if ∣x−y∣\lvert x-y\rvert is a multiple of 33. Given two statements: Statement I: n(R)=36n(R)=36. Statement II: RR is an equivalence relation.

Tap an option to check your answer
(1)Both Statement I and Statement II are correct
(2)Statement I is incorrect but Statement II is correct
(3)Statement I is correct but Statement II is incorrect
(4)Both Statement I and Statement II are incorrect
▸ SHOW SOLUTION

Step 1. Statement II

3∣(x−y)3\mid(x-y) means xx and yy leave the same remainder on division by 33. This is of the form f(x)=f(y)f(x)=f(y), so RR is an equivalence relation.

Step 2. Classes

{0,3,6,9},{1,4,7},{2,5,8}\{0,3,6,9\},\quad\{1,4,7\},\quad\{2,5,8\}

Step 3. Statement I

n(R)=42+32+32=34≠36n(R)=4^2+3^2+3^2=34\ne36

Answer: option (2)

A rounded box holding the numbers 0 to 9 split into three blocks: 0, 3, 6, 9 in the first block, 1, 4, 7 in the second and 2, 5, 8 in the third

Example 51 (IITianForum). On R\mathbb{R}, xRyxRy holds whenever x2+x=y2+yx^2+x=y^2+y. Show that RR is an equivalence relation, and find the classes of 22 and of −12-\frac12.

▸ SHOW SOLUTION

Step 1. Equivalence

With f(x)=x2+xf(x)=x^2+x, xRyxRy means f(x)=f(y)f(x)=f(y). So RR is reflexive, symmetric and transitive.

Step 2. Class of 2

y2+y=6 ⇒ (y−2)(y+3)=0y^2+y=6\ \Rightarrow\ (y-2)(y+3)=0[2]={2,−3}[2]=\{2,-3\}

Step 3. Class of minus one half

y2+y=−14 ⇒ (y+12)2=0y^2+y=-\frac14\ \Rightarrow\ \left(y+\frac12\right)^2=0[−12]={−12}\left[-\tfrac12\right]=\left\{-\tfrac12\right\}

Answer: [2]={2,−3}[2]=\{2,-3\}; [−12]\left[-\frac12\right] has one element. In general [a]={a,−1−a}[a]=\{a,-1-a\}.

Example 52 (JEE Main 2025, 23 January Shift 2). Let X=R×RX=\mathbb{R}\times\mathbb{R}. Define a relation RR on XX as (a1,b1) R (a2,b2)  ⟺  b1=b2(a_1,b_1)\,R\,(a_2,b_2)\iff b_1=b_2. Statement-I: RR is an equivalence relation. Statement-II: For some (a,b)∈X(a,b)\in X, the set S={(x,y)∈X:(x,y) R (a,b)}S=\{(x,y)\in X:(x,y)\,R\,(a,b)\} represents a line parallel to y=xy=x.

Tap an option to check your answer
(1)Both Statement-I and Statement-II are false.
(2)Statement-I is true but Statement-II is false.
(3)Both Statement-I and Statement-II are true.
(4)Statement-I is false but Statement-II is true.
▸ SHOW SOLUTION

Step 1. Statement I

The relation compares the second entries: f(x,y)=yf(x,y)=y takes equal values. So RR is an equivalence relation.

Step 2. Statement II

S={(x,y):y=b}S=\{(x,y):y=b\}, the horizontal line y=by=b. It is parallel to the xx axis for every bb, never to y=xy=x.

Answer: option (2)

Example 53 (JEE Main 2025, 22 January Shift 1). The number of non-empty equivalence relations on the set {1,2,3}\{1,2,3\} is:

Tap an option to check your answer
(1)66
(2)77
(3)55
(4)44
▸ SHOW SOLUTION

Step 1. Partitions of {1, 2, 3}

{1,2,3}\{1,2,3\}{1,2}{3},{1,3}{2},{2,3}{1}\{1,2\}\{3\},\quad\{1,3\}\{2\},\quad\{2,3\}\{1\}{1}{2}{3}\{1\}\{2\}\{3\}

Step 2. Count

55 partitions, so 55 equivalence relations. Each contains the diagonal, so each is non-empty.

Answer: option (3)

Example 54 (IITianForum). Find the number of equivalence relations on A={1,2,3,4}A=\{1,2,3,4\}, and the number of them that contain (1,2)(1,2).

▸ SHOW SOLUTION

Step 1. Partitions by block sizes

Block sizesNumber of partitions
4411
3,13,14C3=4{}^4C_3=4
2,22,212 4C2=3\frac12\,{}^4C_2=3
2,1,12,1,14C2=6{}^4C_2=6
1,1,1,11,1,1,111
1+4+3+6+1=151+4+3+6+1=15

Step 2. Containing (1, 2)

11 and 22 must be in one block. Treat them as a single object: partitions of the three objects {1,2}\{1,2\}, 33, 44 number 55.

Answer: 1515 and 55

Example 55 (JEE Advanced 2026, Paper 1). Let S={1,2,3,…,10}S=\{1,2,3,\dots,10\}. Consider the set XX of all equivalence relations RR on SS such that RR has exactly 4242 elements. Then the number of elements in XX is ______.

▸ SHOW SOLUTION

Step 1. Size of R from the classes

If the classes have sizes n1,n2,…,nkn_1,n_2,\dots,n_k, then

n1+⋯+nk=10n_1+\cdots+n_k=10n12+⋯+nk2=42n_1^2+\cdots+n_k^2=42

Step 2. Find the block sizes

A block of 77 or more gives at least 4949, too many. With largest block 66, the other blocks add to 44 and their squares to 66: only 2,1,12,1,1. With largest block 55, the rest add to 55 with squares adding to 1717: only 4,14,1. With largest block 44 or less, the squares add to at most 16+16+4=3616+16+4=36.

So the block sizes are 6,2,1,16,2,1,1 or 5,4,15,4,1.

Step 3. Count each shape

6,2,1,1: 10C6⋅4C2=210⋅6=12606,2,1,1:\ {}^{10}C_6\cdot{}^4C_2=210\cdot6=12605,4,1: 10C5⋅5C4=252⋅5=12605,4,1:\ {}^{10}C_5\cdot{}^5C_4=252\cdot5=1260

The two singletons in the first shape need no ordering; choosing the block of 22 fixes them.

Answer: 25202520

Which method to use

A decision chart: from a box asking what is asked, eight branches lead to the method; simplify a set expression leads to writing minus as intersection with a complement; survey numbers to filling the Venn regions from the centre; count subsets to in or out for each element; count a relation to fixing the first entry and counting the second; is it reflexive, symmetric, transitive to checking each and finding one counterexample; count reflexive or symmetric relations to the diagonal then partner pairs; pairs to add to mirrors, diagonal, then closure; equivalence relations to counting partitions into classes
SituationMethod
expression with −- and ′'X−Y=X∩Y′X-Y=X\cap Y', then the laws
survey with three setsfill the 88 regions from the centre
least overlapn(A)+n(B)−n(U)n(A)+n(B)-n(U)
subsets with a condition"in or out", remove the bad ones
disjoint or nested pairs of subsets3n3^n
two A.P.s as setscommon terms form an A.P. with LCM difference
relation with a formulafix xx, count yy in a table
relation on A×AA\times A with split conditionsproduct of two counts
reflexive, symmetric countsdiagonal pairs, then partner sets
pairs to add for symmetrymissing reverses
pairs to add for equivalenceclasses, then ∑ni2\sum n_i^2
xRy  ⟺  f(x)=f(y)xRy\iff f(x)=f(y)equivalence at once
number of equivalence relationsnumber of partitions

Quick recall

ResultStatement
n(P(A))n(P(A))2n(A)2^{n(A)}
proper subsets2n−12^n-1
subsets containing a fixed element2n−12^{n-1}
X⊆Y⊆AX\subseteq Y\subseteq A, or X∩Y=∅X\cap Y=\varnothing3n3^n pairs
A−BA-BA∩B′A\cap B'
De Morgan(A∪B)′=A′∩B′(A\cup B)'=A'\cap B'
two setsn(A∪B)=n(A)+n(B)−n(A∩B)n(A\cup B)=n(A)+n(B)-n(A\cap B)
three setsS1−S2+S3S_1-S_2+S_3
exactly one, exactly twoS1−2S2+3S3S_1-2S_2+3S_3, S2−3S3S_2-3S_3
least overlapn(A)+n(B)−n(U)n(A)+n(B)-n(U)
n(A×B)n(A\times B)n(A) n(B)n(A)\,n(B)
(A×B)∩(C×D)(A\times B)\cap(C\times D)(A∩C)×(B∩D)(A\cap C)\times(B\cap D)
relations from AA to BB2mn2^{mn}
reflexive2n2−n2^{n^2-n}
symmetric2n(n+1)/22^{n(n+1)/2}
reflexive and symmetric2n(n−1)/22^{n(n-1)/2}
anti-symmetric2n 3n(n−1)/22^n\,3^{n(n-1)/2}
void relationsymmetric and transitive
equivalence with classes nin_i∑ni2\sum n_i^2 pairs
equivalence relations on 33, 44 elements55, 1515
Before you leave this chapter

Without a pen, answer these four: the number of subsets of a 66 element set that contain 11 but not 22; n(A∩B)n(A\cap B) if n(A)=n(B)=12n(A)=n(B)=12 and n(A∪B)=20n(A\cup B)=20; the number of symmetric relations on a 33 element set; and the number of pairs in the equivalence relation on {1,…,6}\{1,\dots,6\} with classes {1,2,3}\{1,2,3\}, {4,5}\{4,5\}, {6}\{6\}. If 1616, 44, 6464 and 1414 come quickly, the chapter is yours.

Practise these methods on real exam questions in the doMath Sets and Relations chapters. A function is a relation with one output for each input: the Functions note continues from here.

[ SHARE ] WhatsApp
[ practice these chapters ]
Reinforce this post with live problems on doMath.
Basics & LogarithmsSets & Relations
← Back to all notes