WishWasTraining Academy
NDA & Naval Academy entrance exam school
โ† home
Chapter M1-2 ยท 2 of 11 in Algebra ยท 14 min read

Relations and equivalence relations

22 real NDA questions of this kind in the 19 papers of 2017 to 2026.

Try three questions free โ†“
This chapter has a video lessonWatch it, practise with a drill and keep your record, all with a free account. No fee, no card.

Why this chapter matters. Relations gave 11 questions in the 7 papers from NDA II 2023 to NDA II 2026, with three in NDA II 2026 alone. The questions are of three kinds: counting the pairs in a Cartesian product, finding the domain and range of a relation, and testing whether a relation is reflexive, symmetric or transitive. There is little to calculate: you need exact definitions and the habit of looking for one example that fails. Five real questions are solved in section 7.

What you will be able to do

  • Write the Cartesian product โ€‹A \times Bโ€‹ and count its elements.
  • Find the domain and range of a relation and tell them from the codomain.
  • Test a relation for the three properties: reflexive, symmetric, transitive.
  • Recognise an equivalence relation and its equivalence classes.

Before you start you should know: sets, subsets and the number of subsets of a set (Chapter M1-1).

1. Ordered pairs and the Cartesian product

In an ordered pair โ€‹(a, b)โ€‹ the order matters: โ€‹aโ€‹ is the first element and โ€‹bโ€‹ is the second. So โ€‹(2, 3) \ne (3, 2)โ€‹, and โ€‹(a, b) = (c, d)โ€‹ only when โ€‹a = cโ€‹ and โ€‹b = dโ€‹.

The Cartesian product โ€‹A \times Bโ€‹ is the set of all ordered pairs with the first element from โ€‹Aโ€‹ and the second from โ€‹Bโ€‹:

A \times B = \{(a, b) : a \in A,\ b \in B\}

For โ€‹A = \{1, 2\}โ€‹ and โ€‹B = \{3, 4, 5\}โ€‹:

โ€‹A \times B = \{(1, 3), (1, 4), (1, 5), (2, 3), (2, 4), (2, 5)\}โ€‹.

Two facts to remember:

  • โ€‹n(A \times B) = n(A) \times n(B)โ€‹. Here โ€‹2 \times 3 = 6โ€‹. So โ€‹A \times Aโ€‹ has โ€‹n(A)^2โ€‹ elements.
  • โ€‹A \times Bโ€‹ and โ€‹B \times Aโ€‹ are different sets (unless โ€‹A = Bโ€‹), because โ€‹(1, 3)โ€‹ is not โ€‹(3, 1)โ€‹.

Two grids of ordered pairs: A times B has the pairs (1,3) to (2,5); B times A has the pairs (3,1) to (5,2)

2. What a relation is

A relation โ€‹Rโ€‹ from โ€‹Aโ€‹ to โ€‹Bโ€‹ is any subset of โ€‹A \times Bโ€‹. It is usually given by a rule that picks out some of the pairs.

Take โ€‹A = \{1, 2, 3, 4, 5\}โ€‹, โ€‹B = \{1, 4, 9, 16, 30\}โ€‹ and the rule "โ€‹yโ€‹ is the square of โ€‹xโ€‹":

โ€‹R = \{(x, y) : y = x^2,\ x \in A,\ y \in B\} = \{(1, 1), (2, 4), (3, 9), (4, 16)\}โ€‹.

Word Meaning In the example
Domain the first elements that are used in โ€‹Rโ€‹ โ€‹\{1, 2, 3, 4\}โ€‹
Range the second elements that are used in โ€‹Rโ€‹ โ€‹\{1, 4, 9, 16\}โ€‹
Codomain the whole of the second set โ€‹Bโ€‹ โ€‹\{1, 4, 9, 16, 30\}โ€‹

The domain is a part of โ€‹Aโ€‹ and the range is a part of the codomain. They may be smaller: here 5 is not in the domain and 30 is not in the range.

Arrow diagram from A to B for y equals x squared: 1 to 1, 2 to 4, 3 to 9, 4 to 16; 5 and 30 have no arrow

How many relations? โ€‹A \times Bโ€‹ has โ€‹mnโ€‹ elements when โ€‹n(A) = mโ€‹ and โ€‹n(B) = nโ€‹. Each subset is a relation, so there are โ€‹2^{mn}โ€‹ relations from โ€‹Aโ€‹ to โ€‹Bโ€‹. For โ€‹n(A) = 3โ€‹ and โ€‹n(B) = 4โ€‹ that is โ€‹2^{12} = 4096โ€‹ relations.

3. A relation on a set: three properties

A relation on โ€‹Aโ€‹ is a subset of โ€‹A \times Aโ€‹. We write โ€‹aRbโ€‹ to mean โ€‹(a, b) \in Rโ€‹.

Property โ€‹Rโ€‹ has it if To show it fails, find
Reflexive โ€‹(a, a) \in Rโ€‹ for every โ€‹aโ€‹ in โ€‹Aโ€‹ one element โ€‹aโ€‹ with โ€‹(a, a)โ€‹ missing
Symmetric whenever โ€‹(a, b) \in Rโ€‹, also โ€‹(b, a) \in Rโ€‹ one pair in โ€‹Rโ€‹ whose reverse is missing
Transitive whenever โ€‹(a, b) \in Rโ€‹ and โ€‹(b, c) \in Rโ€‹, also โ€‹(a, c) \in Rโ€‹ one chain โ€‹a \to b \to cโ€‹ with โ€‹(a, c)โ€‹ missing

Drawn with arrows on the set โ€‹\{1, 2, 3\}โ€‹, the three properties look like this.

Three arrow pictures on the points 1, 2, 3: a loop at every element (reflexive), every arrow with a return arrow (symmetric), a two-step path with its short cut (transitive)

Example: on the integers, let โ€‹aRbโ€‹ mean โ€‹a \le bโ€‹.

  • Reflexive: yes, โ€‹a \le aโ€‹ for every โ€‹aโ€‹.
  • Symmetric: no. โ€‹2 \le 3โ€‹ but โ€‹3 \le 2โ€‹ is false.
  • Transitive: yes. If โ€‹a \le bโ€‹ and โ€‹b \le cโ€‹ then โ€‹a \le cโ€‹.

4. Equivalence relations

A relation that is reflexive, symmetric and transitive is called an equivalence relation.

Example: on the integers, let โ€‹aRbโ€‹ mean "โ€‹a - bโ€‹ is divisible by 3".

  • Reflexive: โ€‹a - a = 0โ€‹, and 0 is divisible by 3.
  • Symmetric: if โ€‹a - bโ€‹ is divisible by 3, so is โ€‹b - a = -(a - b)โ€‹.
  • Transitive: if โ€‹a - bโ€‹ and โ€‹b - cโ€‹ are divisible by 3, so is their sum โ€‹a - cโ€‹.

An equivalence relation cuts the set into separate groups called equivalence classes. Elements in one class are all related to each other, and no element is in two classes. Here there are three classes:

โ€‹\{\dots, -3, 0, 3, 6, \dots\}โ€‹, โ€‹\{\dots, -2, 1, 4, 7, \dots\}โ€‹ and โ€‹\{\dots, -1, 2, 5, 8, \dots\}โ€‹.

The integers from -3 to 8 on a line in three colours, one colour for each remainder on division by 3

5. Three special relations

On a non-empty set โ€‹Aโ€‹:

Relation What it contains Properties
Empty (void) relation no pairs at all symmetric and transitive, but not reflexive
Universal relation every pair: the whole of โ€‹A \times Aโ€‹ an equivalence relation
Identity relation only the pairs โ€‹(a, a)โ€‹ an equivalence relation

The empty relation is symmetric and transitive because there is no pair in it that can fail the test.

6. Worked examples

Example 1. โ€‹R = \{(x, y) : x + 2y = 10\}โ€‹, where โ€‹xโ€‹ and โ€‹yโ€‹ are natural numbers. Write โ€‹Rโ€‹ in roster form and find its domain and range.

Put โ€‹y = 1, 2, 3, 4โ€‹: then โ€‹x = 8, 6, 4, 2โ€‹. For โ€‹y = 5โ€‹, โ€‹x = 0โ€‹, which is not a natural number. So โ€‹R = \{(8, 1), (6, 2), (4, 3), (2, 4)\}โ€‹. Domain โ€‹= \{2, 4, 6, 8\}โ€‹. Range โ€‹= \{1, 2, 3, 4\}โ€‹.

Example 2. โ€‹A = \{1, 2, 3\}โ€‹ and โ€‹R = \{(1, 1), (2, 2), (3, 3), (1, 2), (2, 3)\}โ€‹. Which of the three properties does โ€‹Rโ€‹ have?

  • Reflexive: yes. โ€‹(1, 1)โ€‹, โ€‹(2, 2)โ€‹ and โ€‹(3, 3)โ€‹ are all present.
  • Symmetric: no. โ€‹(1, 2) \in Rโ€‹ but โ€‹(2, 1) \notin Rโ€‹.
  • Transitive: no. โ€‹(1, 2)โ€‹ and โ€‹(2, 3)โ€‹ are in โ€‹Rโ€‹ but โ€‹(1, 3)โ€‹ is not.

Example 3. On the integers, โ€‹aRbโ€‹ means "โ€‹a + bโ€‹ is even". Show that โ€‹Rโ€‹ is an equivalence relation.

  • Reflexive: โ€‹a + a = 2aโ€‹ is even.
  • Symmetric: โ€‹a + b = b + aโ€‹, so if one is even the other is.
  • Transitive: if โ€‹a + bโ€‹ and โ€‹b + cโ€‹ are even, their sum โ€‹a + 2b + cโ€‹ is even. Take away the even number โ€‹2bโ€‹: โ€‹a + cโ€‹ is even.

There are two equivalence classes: the even integers and the odd integers.

Example 4. On the integers, โ€‹aRbโ€‹ means โ€‹|a - b| \le 1โ€‹. Is โ€‹Rโ€‹ an equivalence relation?

It is reflexive (โ€‹|a - a| = 0โ€‹) and symmetric (โ€‹|a - b| = |b - a|โ€‹). But โ€‹1R2โ€‹ and โ€‹2R3โ€‹, while โ€‹|1 - 3| = 2โ€‹, so โ€‹1R3โ€‹ is false. โ€‹Rโ€‹ is not transitive, so it is not an equivalence relation.

7. From the real papers

Try each question for 75 seconds before you read the solution.

NDA II 2025, Q42. Set โ€‹Xโ€‹ contains โ€‹3nโ€‹ elements and set โ€‹Yโ€‹ contains โ€‹2nโ€‹ elements, and they have โ€‹nโ€‹ elements in common. How many elements does โ€‹(X - Y) \times (Y - X)โ€‹ have?

(a) โ€‹5n^2โ€‹โ€ƒโ€ƒ(b) โ€‹4n^2โ€‹โ€ƒโ€ƒ(c) โ€‹3n^2โ€‹โ€ƒโ€ƒ(d) โ€‹2n^2โ€‹

Solution. โ€‹X - Yโ€‹ has โ€‹3n - n = 2nโ€‹ elements and โ€‹Y - Xโ€‹ has โ€‹2n - n = nโ€‹ elements. The product has โ€‹2n \times n = 2n^2โ€‹ pairs. Answer (d).

NDA II 2023, Q22. Let โ€‹A = \{1, 2, 3, \ldots, 20\}โ€‹. Define a relation โ€‹Rโ€‹ from โ€‹Aโ€‹ to โ€‹Aโ€‹ by โ€‹R = \{(x, y) : 4x - 3y = 1\}โ€‹, where โ€‹x, y \in Aโ€‹. Which of the following statements is/are correct? 1. The domain of โ€‹Rโ€‹ is โ€‹\{1, 4, 7, 10, 13, 16\}โ€‹. 2. The range of โ€‹Rโ€‹ is โ€‹\{1, 5, 9, 13, 17\}โ€‹. 3. The range of โ€‹Rโ€‹ is equal to codomain of โ€‹Rโ€‹. Select the correct answer using the code given below :

(a) 1 onlyโ€ƒโ€ƒ(b) 2 onlyโ€ƒโ€ƒ(c) 1 and 2โ€ƒโ€ƒ(d) 2 and 3

Solution. โ€‹y = \dfrac{4x - 1}{3}โ€‹ is a whole number for โ€‹x = 1, 4, 7, 10, 13, 16โ€‹, giving โ€‹y = 1, 5, 9, 13, 17, 21โ€‹. But 21 is not in โ€‹Aโ€‹, so the pair with โ€‹x = 16โ€‹ is not in โ€‹Rโ€‹. Domain โ€‹= \{1, 4, 7, 10, 13\}โ€‹: statement 1 is wrong. Range โ€‹= \{1, 5, 9, 13, 17\}โ€‹: statement 2 is correct. The codomain is all of โ€‹Aโ€‹, which is larger than the range: statement 3 is wrong. Answer (b).

NDA I 2024, Q23. Let โ€‹Rโ€‹ be a relation on the open interval โ€‹(-1, 1)โ€‹ and is given by โ€‹R = \{(x, y) : |x + y| < 2\}โ€‹. Then which one of the following is correct?

(a) โ€‹Rโ€‹ is reflexive but neither symmetric nor transitiveโ€ƒโ€ƒ(b) โ€‹Rโ€‹ is reflexive and symmetric but not transitiveโ€ƒโ€ƒ(c) โ€‹Rโ€‹ is reflexive and transitive but not symmetricโ€ƒโ€ƒ(d) โ€‹Rโ€‹ is an equivalence relation

Solution. For any โ€‹xโ€‹ and โ€‹yโ€‹ between โ€‹-1โ€‹ and โ€‹1โ€‹, the sum โ€‹x + yโ€‹ lies between โ€‹-2โ€‹ and โ€‹2โ€‹. So โ€‹|x + y| < 2โ€‹ is always true and every pair is in โ€‹Rโ€‹. This is the universal relation, which is an equivalence relation (section 5). Answer (d).

NDA I 2026, Q41. Let โ€‹Rโ€‹ be a relation on the set โ€‹Nโ€‹ of natural numbers defined by โ€‹R = \{(x, y) : x, y \in N \text{ and } x = y^3\}โ€‹. Which of the following statements is/are correct? I. โ€‹Rโ€‹ is symmetric relation II. โ€‹Rโ€‹ is transitive relation Select the answer using the code given below :

(a) I onlyโ€ƒโ€ƒ(b) II onlyโ€ƒโ€ƒ(c) Both I and IIโ€ƒโ€ƒ(d) Neither I nor II

Solution. โ€‹(8, 2) \in Rโ€‹ because โ€‹8 = 2^3โ€‹, but โ€‹(2, 8) \notin Rโ€‹ because โ€‹2 \ne 8^3โ€‹. Not symmetric. Next, โ€‹(512, 8) \in Rโ€‹ and โ€‹(8, 2) \in Rโ€‹, but โ€‹(512, 2) \notin Rโ€‹ because โ€‹2^3 = 8โ€‹, not 512. Not transitive. Answer (d).

NDA II 2026, Q23. Let โ€‹Sโ€‹ be the set of all real numbers and โ€‹Rโ€‹ be a relation on โ€‹Sโ€‹ defined by โ€‹xRy \Rightarrow |x| \le yโ€‹. Then โ€‹Rโ€‹ is

(a) reflexive onlyโ€ƒโ€ƒ(b) transitive onlyโ€ƒโ€ƒ(c) both reflexive and transitiveโ€ƒโ€ƒ(d) neither reflexive nor transitive

Solution. Reflexive needs โ€‹|x| \le xโ€‹ for every real โ€‹xโ€‹. For โ€‹x = -1โ€‹ this says โ€‹1 \le -1โ€‹, which is false. Not reflexive. Transitive: let โ€‹|x| \le yโ€‹ and โ€‹|y| \le zโ€‹. The first shows โ€‹y \ge 0โ€‹, so โ€‹|y| = yโ€‹ and then โ€‹y \le zโ€‹. Hence โ€‹|x| \le y \le zโ€‹, which means โ€‹xRzโ€‹. Transitive. Answer (b).

Notice the pattern: to show a property fails, give one example. To show it holds, argue for every element.

8. Mistakes that cost marks

  1. Treating โ€‹(a, b)โ€‹ like โ€‹\{a, b\}โ€‹. In a set, order does not matter. In an ordered pair it does: โ€‹(2, 3) \ne (3, 2)โ€‹, and so โ€‹A \times B \ne B \times Aโ€‹ in general.
  2. Mixing range and codomain. The codomain is the whole second set. The range is only the part that is used. They are equal only in special cases.
  3. Thinking "symmetric and transitive" gives "reflexive". It does not. On โ€‹\{1, 2, 3\}โ€‹, โ€‹R = \{(1, 1), (1, 2), (2, 1), (2, 2)\}โ€‹ is symmetric and transitive, but โ€‹(3, 3)โ€‹ is missing.

9. Quick check

Do these without help. Answers are at the end.

  1. โ€‹n(A) = 3โ€‹ and โ€‹n(B) = 2โ€‹. Find โ€‹n(A \times B)โ€‹ and the number of relations from โ€‹Aโ€‹ to โ€‹Bโ€‹.
  2. โ€‹A = \{1, 2, 3, 4, 5, 6\}โ€‹ and โ€‹R = \{(x, y) : y = x + 2\}โ€‹ is a relation on โ€‹Aโ€‹. Write โ€‹Rโ€‹ in roster form, with its domain and range.
  3. On โ€‹A = \{1, 2, 3\}โ€‹, โ€‹R = \{(1, 2), (2, 1)\}โ€‹. Is โ€‹Rโ€‹ reflexive? Symmetric? Transitive?
  4. On the natural numbers, โ€‹aRbโ€‹ means "โ€‹aโ€‹ divides โ€‹bโ€‹". Which of the three properties does โ€‹Rโ€‹ have?
  5. On the integers, โ€‹aRbโ€‹ means "โ€‹a - bโ€‹ is divisible by 5". How many equivalence classes are there?

10. Read and watch more, free

What Where Language
Textbook: Cartesian product, relations, domain and range NCERT Class 11 Mathematics, Chapter 2 Relations and Functions ยท Hindi edition English, Hindi
Textbook: reflexive, symmetric, transitive, equivalence NCERT Class 12 Mathematics, Chapter 1 Relations and Functions ยท Hindi edition English, Hindi
Self-study notes NIOS Mathematics: Lesson 2 Relations and Functions-I ยท Hindi edition ยท Lesson 23 Relations and Functions-II ยท Hindi edition English, Hindi
Video, the chapter for NDA Defence Wallah: Complete Maths, Fast Track Series (the lesson titled "Relations", 1 to 2 hours) Hinglish
Video, short lessons Khan Academy India: เค•เค•เฅเคทเคพ 11 เคเคจเคธเฅ€เคˆเค†เคฐเคŸเฅ€ เค—เคฃเคฟเคค (find the lessons on relations; the playlist is not in chapter order) Hindi
Past NDA questions ExamSIDE: Sets, Relations and Functions (no login needed) English

The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.

Answers to the quick check

  1. โ€‹n(A \times B) = 6โ€‹. Number of relations โ€‹= 2^6 = 64โ€‹.
  2. โ€‹R = \{(1, 3), (2, 4), (3, 5), (4, 6)\}โ€‹. Domain โ€‹= \{1, 2, 3, 4\}โ€‹. Range โ€‹= \{3, 4, 5, 6\}โ€‹.
  3. Symmetric only. It is not reflexive (โ€‹(1, 1)โ€‹ is missing). It is not transitive: โ€‹(1, 2)โ€‹ and โ€‹(2, 1)โ€‹ are in โ€‹Rโ€‹, so โ€‹(1, 1)โ€‹ would be needed.
  4. Reflexive (โ€‹aโ€‹ divides โ€‹aโ€‹) and transitive (if โ€‹aโ€‹ divides โ€‹bโ€‹ and โ€‹bโ€‹ divides โ€‹cโ€‹, then โ€‹aโ€‹ divides โ€‹cโ€‹). Not symmetric: 2 divides 4 but 4 does not divide 2.
  5. Five: one class for each remainder 0, 1, 2, 3, 4 on division by 5.

Next chapter: Real numbers and the number line.

Free ยท no sign-up

Try three questions on this chapter

Exam-pattern questions from this chapter's drill. Pick an answer for each, then check.

  1. Question 1 of 3
    Which one of the following relations on the set โ€‹A = \{a, b, c\}โ€‹ is symmetric but neither reflexive nor transitive?
  2. Question 2 of 3
    Let โ€‹Lโ€‹ be the set of all straight lines in a plane, and let โ€‹Rโ€‹ be the relation on โ€‹Lโ€‹ defined by โ€‹l\,R\,mโ€‹ if and only if โ€‹lโ€‹ is perpendicular to โ€‹mโ€‹. Then โ€‹Rโ€‹ is
  3. Question 3 of 3
    A relation โ€‹Rโ€‹ on the set โ€‹Zโ€‹ of integers is defined by โ€‹xRyโ€‹ if and only if โ€‹xy \ge 0โ€‹. Then โ€‹Rโ€‹ is
Free sign-up

You have read the chapter. Now make it stick.

A free account adds the video lesson, a drill of ten questions on this chapter marked like the exam, the timed mock papers, a study plan to your exam date and your own record of what you have done. No fee, no card.

Past questions quoted are from the official UPSC paper named in the text; the explanations are WishWas's own and have been checked against the official key. The links under โ€œRead and watch moreโ€ go to free material on other sites; nothing is copied.