Class 12 Maths, Worked in Full Past papersGet updates
Chapter 1 · Relations and Functions

Example 23: Reflexive, transitive, not symmetric: counting

ExamplesCounting relations · Miscellaneous Examples
The question

Let A={1,2,3}A = \{1, 2, 3\}⁠. Then show that the number of relations containing (1,2)(1, 2) and (2,3)(2, 3) which are reflexive and transitive but not symmetric is three.

Exam answer

A required relation RR contains (1,1),(2,2),(3,3)(1, 1), (2, 2), (3, 3) (reflexive) and (1,2),(2,3)(1, 2), (2, 3) (given), so it also contains (1,3)(1, 3) (transitive). So RR contains

R1={(1,1),(2,2),(3,3),(1,2),(2,3),(1,3)}\begin{aligned} R_1 = \{&(1, 1), (2, 2), (3, 3), \\ &(1, 2), (2, 3), (1, 3)\} \end{aligned}

R1R_1 is reflexive and transitive, and not symmetric as (1,2)∈R1(1, 2) \in R_1⁠, (2,1)∉R1(2, 1) \notin R_1⁠.

The pairs left are (2,1),(3,2),(3,1)(2, 1), (3, 2), (3, 1)⁠.

R2=R1∪{(2,1)}R_2 = R_1 \cup \{(2, 1)\} is reflexive and transitive, and not symmetric as (2,3)∈R2(2, 3) \in R_2⁠, (3,2)∉R2(3, 2) \notin R_2⁠.

R3=R1∪{(3,2)}R_3 = R_1 \cup \{(3, 2)\} is reflexive and transitive, and not symmetric as (1,2)∈R3(1, 2) \in R_3⁠, (2,1)∉R3(2, 1) \notin R_3⁠.

Adding (3,1)(3, 1) alone breaks transitivity, as (3,1),(1,2)∈R(3, 1), (1, 2) \in R but (3,2)∉R(3, 2) \notin R⁠. Adding two or all three of the pairs forces all three by transitivity, which gives A×AA \times A⁠, a symmetric relation.

Hence the number of such relations is three.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Start from the smallest relation that the conditions force on us, then ask which of the leftover pairs can be added. Reflexive forces the three pairs (1,1),(2,2),(3,3)(1,1), (2,2), (3,3)⁠. Transitivity applied to (1,2)(1,2) and (2,3)(2,3) forces (1,3)(1,3)⁠. That leaves only three optional pairs, (2,1),(3,2),(3,1)(2,1), (3,2), (3,1)⁠, so there are only 23=82^3 = 8 candidate relations. Checking all eight, exactly three survive.

Given, to show, and the plan
Given
A={1,2,3}A = \{1,2,3\}⁠. A relation in AA is any subset of A×AA\times A⁠, which has 9 pairs.
To show
Exactly three relations RR satisfy all of: (1,2)∈R(1,2)\in R⁠, (2,3)∈R(2,3)\in R⁠, RR reflexive, RR transitive, RR not symmetric.
Plan
(1) Find the pairs every such RR must contain. (2) Check that this smallest set, R1R_1⁠, already works. (3) Every other candidate is R1R_1 plus some of the 3 leftover pairs: test all 8 possibilities. (4) Count the survivors.

Basics you need

1A relation is a set of pairs

A relation RR in AA is a subset of A×AA\times A⁠. On {1,2,3}\{1,2,3\} the possible pairs are the 3×3=93\times3 = 9 pairs (a,b)(a,b) with a,b∈{1,2,3}a,b\in\{1,2,3\}⁠. Two relations are equal exactly when they contain the same pairs. Basics: what a relation is

2Reflexive, symmetric, transitive

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)∈R(a,b)\in R and (b,c)∈R⇒(a,c)∈R(b,c)\in R \Rightarrow (a,c)\in R⁠. Basics: reflexive, symmetric, transitive

3How to show a property fails

"Not symmetric" needs just one pair (a,b)∈R(a,b)\in R with (b,a)∉R(b,a)\notin R⁠. "Not transitive" needs one chain (a,b),(b,c)∈R(a,b),(b,c)\in R with (a,c)∉R(a,c)\notin R⁠. Basics: proving and disproving

4Counting subsets

A set with kk elements has 2k2^k subsets, because each element is either in or out. Three optional pairs give 23=82^3 = 8 ways to choose which ones to add. Basics: counting choices

5Checking transitivity on a small set

Look at every chain (a,b),(b,c)(a,b), (b,c) in RR where the middle elements match. Chains that use a loop like (b,b)(b,b) give back a pair already present, so only chains of two non-loop pairs need checking.

Solution

  1. Pairs forced by "reflexive" and by the question

    The question requires (1,2)∈R(1,2)\in R and (2,3)∈R(2,3)\in R⁠. Reflexive requires (a,a)∈R(a,a)\in R for each a∈Aa\in A⁠, so

    (1,1), (2,2), (3,3)∈R.(1,1),\ (2,2),\ (3,3) \in R.

    So far five pairs are forced.

    We are counting relations with several properties at once. The cleanest way is to first collect everything those properties force, because those pairs are in every relation we count and need no further thought.
    Reflexive means every element is related to itself (Definition 3, Basic 2). On {1,2,3}\{1,2,3\} that is exactly the three "loops" (1,1),(2,2),(3,3)(1,1), (2,2), (3,3)⁠.
  2. Transitivity forces (1,3)(1,3)

    Since (1,2)∈R(1,2)\in R and (2,3)∈R(2,3)\in R⁠, transitivity (with a=1,b=2,c=3a=1, b=2, c=3⁠) demands

    (1,2)∈R and (2,3)∈R ⟹ (1,3)∈R.(1,2)\in R \ \text{and}\ (2,3)\in R \ \Longrightarrow\ (1,3)\in R.

    So every relation we are counting contains the six pairs

    R1={(1,1),(2,2),(3,3),(1,2),(2,3),(1,3)}.R_1 = \{(1,1), (2,2), (3,3), (1,2), (2,3), (1,3)\}.
    Without (1,3)(1,3) the relation would have a chain 1→2→31\to2\to3 with no direct link 1→31\to3⁠, which is exactly what transitivity forbids. So (1,3)(1,3) is not a choice: it is compulsory.
    Transitive: (a,b),(b,c)∈R⇒(a,c)∈R(a,b), (b,c)\in R \Rightarrow (a,c)\in R (Definition 3). One missing "shortcut" is enough to break it (Basic 3).
  3. R1R_1 itself is reflexive, transitive and not symmetric

    Reflexive: it contains (1,1),(2,2),(3,3)(1,1), (2,2), (3,3)⁠.

    Transitive: the non-loop pairs are (1,2),(2,3),(1,3)(1,2), (2,3), (1,3)⁠. The only chain of two of them with matching middle element is (1,2),(2,3)(1,2), (2,3)⁠, and its shortcut (1,3)(1,3) is in R1R_1⁠. (The pair (1,3)(1,3) cannot start a chain, because no non-loop pair begins with 3, and nothing non-loop ends in 1.) Chains through a loop, such as (1,2),(2,2)(1,2),(2,2)⁠, give back (1,2)(1,2)⁠, already present. So R1R_1 is transitive.

    Not symmetric: (1,2)∈R1(1,2)\in R_1 but (2,1)∉R1(2,1)\notin R_1⁠.

    So R1R_1 is one of the required relations, and it is the smallest one: every required relation contains it.

    We must check R1R_1 really has all the properties, not just assume it. "Smallest" matters for the counting: since every required relation contains R1R_1⁠, each one is R1R_1 together with some extra pairs, and that is what makes a complete search possible in the next step.
    For transitivity, only chains of two non-loop pairs can produce a new pair (Basic 5). A single counterexample is enough to show "not symmetric" (Basic 3).
  4. Only three optional pairs are left, so only 8 candidates

    A×AA\times A has 9 pairs and R1R_1 uses 6. The three left over are

    (2,1),(3,2),(3,1).(2,1), \qquad (3,2), \qquad (3,1).

    Every required relation is R1R_1 plus some subset of these three pairs. A set of 3 pairs has 23=82^3 = 8 subsets, so there are exactly 8 candidates to test.

    R1 (smallest)R2 = R1 + (2,1)R3 = R1 + (3,2) 123 123 123 not symmetric: no (2,1)not symmetric: no (3,2)not symmetric: no (2,1)
    The three relations that work, drawn as arrow diagrams (an arrow a→ba\to b means (a,b)∈R(a,b)\in R⁠; the loops (1,1),(2,2),(3,3)(1,1), (2,2), (3,3) are in all three but not drawn). Gold arrows are the extra pair added to R1R_1⁠. Each still has an arrow with no return arrow, so none is symmetric.
    Reducing the problem to 8 concrete candidates is what turns "show the number is three" into something we can check completely. Without Steps 1 and 2 we would face 29=5122^9 = 512 relations on {1,2,3}\{1,2,3\}⁠.
    A set of kk objects has 2k2^k subsets (Basic 4).
  5. Test all 8 candidates

    Reflexivity and the two given pairs hold automatically, because every candidate contains R1R_1⁠. So for each candidate we only test transitivity and symmetry. When transitivity fails, the table names a chain whose shortcut is missing.

    Pairs added to R1R_1Transitive?Symmetric?Counts?
    none (R1R_1⁠)yes (Step 3)no: (2,1)(2,1) missingyes
    (2,1)(2,1)yesno: (2,3)(2,3) in, (3,2)(3,2) missingyes (R2R_2⁠)
    (3,2)(3,2)yesno: (1,2)(1,2) in, (2,1)(2,1) missingyes (R3R_3⁠)
    (3,1)(3,1)no: (3,1),(1,2)(3,1),(1,2) but (3,2)(3,2) missingnono
    (2,1),(3,2)(2,1), (3,2)no: (3,2),(2,1)(3,2),(2,1) but (3,1)(3,1) missingnono
    (2,1),(3,1)(2,1), (3,1)no: (3,1),(1,2)(3,1),(1,2) but (3,2)(3,2) missingnono
    (3,2),(3,1)(3,2), (3,1)no: (2,3),(3,1)(2,3),(3,1) but (2,1)(2,1) missingnono
    all threeyes (universal relation)yesno

    Why the two "yes" rows for transitivity really are transitive:

    • R2=R1∪{(2,1)}R_2 = R_1\cup\{(2,1)\}⁠. The new chains are (1,2),(2,1)→(1,1)(1,2),(2,1)\to(1,1)⁠, (2,1),(1,2)→(2,2)(2,1),(1,2)\to(2,2) and (2,1),(1,3)→(2,3)(2,1),(1,3)\to(2,3)⁠. All three shortcuts are present, and no other chain uses (2,1)(2,1) (no non-loop pair other than (1,2)(1,2) ends in 2). So R2R_2 is transitive.
    • R3=R1∪{(3,2)}R_3 = R_1\cup\{(3,2)\}⁠. The new chains are (2,3),(3,2)→(2,2)(2,3),(3,2)\to(2,2)⁠, (3,2),(2,3)→(3,3)(3,2),(2,3)\to(3,3) and (1,3),(3,2)→(1,2)(1,3),(3,2)\to(1,2)⁠. All present, so R3R_3 is transitive.
    This table is the textbook's argument written out in full. It says that adding (3,1)(3,1)⁠, or adding both (2,1)(2,1) and (3,2)(3,2)⁠, forces the remaining pairs in "to maintain transitivity". Indeed, (3,1)(3,1) forces both (3,2)(3,2) (via (3,1),(1,2)(3,1),(1,2)⁠) and (2,1)(2,1) (via (2,3),(3,1)(2,3),(3,1)⁠), and the pair (2,1),(3,2)(2,1),(3,2) forces (3,1)(3,1)⁠. Once all three are in, we have the universal relation A×AA\times A⁠, which is symmetric, so it is not wanted. Every one of the 8 cases is accounted for.
    To disprove transitivity, give one chain with its shortcut missing (Basic 3). To prove it on a finite relation, check every chain of non-loop pairs (Basic 5). The universal relation A×AA\times A (Definition 2, Section 1.2) contains every pair, so it is reflexive, symmetric and transitive.
  6. Count the survivors

    Exactly three candidates pass every test:

    R1={(1,1),(2,2),(3,3),(1,2),(2,3),(1,3)},R2=R1∪{(2,1)},R3=R1∪{(3,2)}.\begin{aligned} R_1 &= \{(1,1),(2,2),(3,3),(1,2),(2,3),(1,3)\},\\ R_2 &= R_1 \cup \{(2,1)\},\\ R_3 &= R_1 \cup \{(3,2)\}. \end{aligned}

    Hence the number of relations containing (1,2)(1,2) and (2,3)(2,3) that are reflexive and transitive but not symmetric is three.

    Steps 1 and 2 showed that every relation we want contains R1R_1⁠, and Step 5 tested every way of enlarging R1R_1⁠. So no relation can have been missed, and none counted twice: the 8 candidates are 8 different sets.
Result

The required relations are R1R_1⁠, R1∪{(2,1)}R_1\cup\{(2,1)\} and R1∪{(3,2)}R_1\cup\{(3,2)\}⁠, where R1R_1 consists of the three loops (1,1),(2,2),(3,3)(1,1), (2,2), (3,3) together with (1,2),(2,3),(1,3)(1,2), (2,3), (1,3)⁠. Their number is three, as the textbook states.

Check it with numbers

The site's verification script runs through all 512 relations on {1,2,3}\{1,2,3\} (every subset of the 9 pairs) and tests each one for: contains (1,2)(1,2) and (2,3)(2,3)⁠, reflexive, transitive, not symmetric. Exactly 3 pass, and they are exactly R1,R2,R3R_1, R_2, R_3⁠. It also confirms the "missing shortcut" entries in the table for each failing case.

Common mistakes
  1. Forgetting (1,3)(1,3)⁠. The relation {(1,1),(2,2),(3,3),\{(1,1),(2,2),(3,3), (1,2),(2,3)}(1,2),(2,3)\} is not transitive, so it cannot be one of the answers.
  2. Counting the universal relation. It is reflexive and transitive, but it is symmetric, and the question asks for not symmetric.
  3. Adding (3,1)(3,1) and stopping. (3,1)(3,1) creates the chains (3,1),(1,2)(3,1),(1,2) and (2,3),(3,1)(2,3),(3,1)⁠, whose shortcuts (3,2)(3,2) and (2,1)(2,1) are missing.
  4. Only checking some cases. To show the number is exactly three you must rule out every other candidate, not just find three that work.
What to take away
  1. To count relations with given properties on a small set: first find the smallest relation the properties force, then test each way of adding the leftover pairs.
  2. Transitivity is the property that "spreads": one new pair can force others, and those can force more.
  3. The same method solves Miscellaneous Q6 (reflexive and symmetric but not transitive) and Example 24 (equivalence relations).

Every fact used, and where it comes from

FactUsed inSource
A relation in AA is a subset of A×AA\times ASteps 1, 4Section 1.1 (Lesson: relations)
Reflexive, symmetric, transitiveSteps 1–5Definition 3, Section 1.2 (Lesson: types of relations)
Universal relation A×AA\times AStep 5Definition 2, Section 1.2
2k2^k subsets of a kk-element setStep 4Class XI, Sets (Lesson: counting functions and relations)
Count = 3, the three relations, the failing chainsSteps 5, 6, CheckBrute force over all 512 relations in the site's verification script
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →