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

Example 24: Equivalence relations containing (1, 2): counting

ExamplesCounting equivalence relations · Miscellaneous Examples
The question

Show that the number of equivalence relation in the set {1,2,3}\{1, 2, 3\} containing (1,2)(1, 2) and (2,1)(2, 1) is two.

Exam answer

A required relation contains (1,2),(2,1)(1, 2), (2, 1) and, being reflexive, (1,1),(2,2),(3,3)(1, 1), (2, 2), (3, 3)⁠. The relation

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

is reflexive, symmetric and transitive, so it is an equivalence relation.

The pairs left are (2,3),(3,2),(2, 3), (3, 2), (1,3),(3,1)(1, 3), (3, 1)⁠. By symmetry they must be added in the pairs {(2,3),(3,2)}\{(2, 3), (3, 2)\} and {(1,3),(3,1)}\{(1, 3), (3, 1)\}⁠.

Adding only (2,3),(3,2)(2, 3), (3, 2)⁠: (1,2),(2,3)∈R(1, 2), (2, 3) \in R but (1,3)∉R(1, 3) \notin R⁠, so RR is not transitive.

Adding only (1,3),(3,1)(1, 3), (3, 1)⁠: (2,1),(1,3)∈R(2, 1), (1, 3) \in R but (2,3)∉R(2, 3) \notin R⁠, so RR is not transitive.

Adding both pairs gives the universal relation, which is an equivalence relation.

Hence the number of such equivalence relations is two.

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

The one idea this problem is built on

An equivalence relation must be reflexive, symmetric and transitive, and each property forces pairs in. Reflexive and the two given pairs fix a smallest relation R1R_1 with 5 pairs. The other 4 pairs must come in mirror pairs (symmetry), and either mirror pair, once added, drags in the other one (transitivity). So there are only two possibilities: add nothing, or add everything. That gives R1R_1 and the universal relation.

Given, to show, and the plan
Given
The set A={1,2,3}A=\{1,2,3\}⁠, whose relations are the subsets of the 9-pair set A×AA\times A⁠.
To show
Exactly two equivalence relations in AA contain both (1,2)(1,2) and (2,1)(2,1)⁠.
Plan
(1) Find the smallest such relation R1R_1 and check it is an equivalence relation. (2) Group the 4 leftover pairs into mirror pairs, as symmetry requires. (3) Test the 4 ways of adding mirror pairs. (4) Count, and interpret the answer as ways of sorting {1,2,3}\{1,2,3\} into classes.

Basics you need

1A relation is a set of pairs

A relation in AA is a subset of A×AA\times A⁠. For A={1,2,3}A=\{1,2,3\} there are 9 possible pairs. Basics: what a relation is

2Equivalence relation

A relation that is reflexive ((a,a)∈R(a,a)\in R for all aa⁠), symmetric ((a,b)∈R⇒(b,a)∈R(a,b)\in R\Rightarrow(b,a)\in R⁠) and transitive ((a,b),(b,c)∈R⇒(a,c)∈R(a,b),(b,c)\in R\Rightarrow(a,c)\in R⁠). Basics: reflexive, symmetric, transitive

3Mirror pairs

The mirror of (a,b)(a,b) is (b,a)(b,a)⁠. A relation is symmetric exactly when, for every pair it contains, it also contains the mirror. So pairs can only be added to a symmetric relation together with their mirrors.

4Equivalence classes

An equivalence relation sorts the set into non-overlapping classes of mutually related elements. Knowing the classes tells you the relation, and vice versa. Basics: equivalence classes

5How to show a property fails

One chain (a,b),(b,c)∈R(a,b),(b,c)\in R with (a,c)∉R(a,c)\notin R shows "not transitive"; one pair without its mirror shows "not symmetric". Basics: proving and disproving

Solution

  1. The smallest candidate R1R_1

    Every relation we are counting contains (1,2)(1,2) and (2,1)(2,1) (given) and, being reflexive, (1,1),(2,2),(3,3)(1,1), (2,2), (3,3)⁠. So it contains

    R1={(1,1),(2,2),(3,3),(1,2),(2,1)}.R_1 = \{(1,1), (2,2), (3,3), (1,2), (2,1)\}.

    Check that R1R_1 is itself an equivalence relation:

    • Reflexive: all three loops are present.
    • Symmetric: loops are their own mirrors, and the only other pairs, (1,2)(1,2) and (2,1)(2,1)⁠, are mirrors of each other.
    • Transitive: the only chains of two non-loop pairs are (1,2),(2,1)(1,2),(2,1)⁠, giving (1,1)(1,1)⁠, and (2,1),(1,2)(2,1),(1,2)⁠, giving (2,2)(2,2)⁠. Both are in R1R_1⁠. Chains through a loop give back a pair already present.

    So R1R_1 is an equivalence relation, and it is contained in every relation we want.

    Starting from what is forced splits the problem in two: everything in R1R_1 is compulsory, and the only question left is which of the remaining pairs may be added. We check R1R_1 itself carefully, because if it failed one of the properties it would not count.
    Definition 4: an equivalence relation is reflexive, symmetric and transitive. For transitivity on a finite relation, only chains of two non-loop pairs can produce something new.
  2. The four leftover pairs come in two mirror pairs

    A×AA\times A has 9 pairs and R1R_1 has 5, so 4 remain:

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

    Group them with their mirrors:

    P={(2,3),(3,2)},Q={(1,3),(3,1)}.P = \{(2,3), (3,2)\}, \qquad Q = \{(1,3), (3,1)\}.

    If an equivalence relation contains (2,3)(2,3) it must contain (3,2)(3,2)⁠, and the other way round; likewise for QQ⁠. So any equivalence relation we want is one of

    R1,R1∪P,R1∪Q,R1∪P∪Q.R_1, \qquad R_1\cup P, \qquad R_1\cup Q, \qquad R_1\cup P\cup Q.
    There are 24=162^4 = 16 ways to choose which of the 4 leftover pairs to add. Symmetry immediately throws out the 12 choices that include one pair of PP or QQ without its mirror (for instance, adding (2,3)(2,3) alone leaves (2,3)(2,3) without (3,2)(3,2)⁠). Only the 4 choices that respect mirror pairs remain.
    Symmetric means every pair's mirror is also present (Basic 3). So pairs join a symmetric relation two at a time.
  3. Adding only one mirror pair breaks transitivity

    R1∪PR_1\cup P contains (1,2)(1,2) and (2,3)(2,3)⁠. Transitivity would need (1,3)(1,3)⁠, but (1,3)∈Q(1,3)\in Q⁠, which was not added:

    (1,2), (2,3)∈R1∪Pbut(1,3)∉R1∪P.(1,2),\ (2,3) \in R_1\cup P \quad\text{but}\quad (1,3)\notin R_1\cup P.

    R1∪QR_1\cup Q contains (2,1)(2,1) and (1,3)(1,3)⁠. Transitivity would need (2,3)(2,3)⁠, but (2,3)∈P(2,3)\in P⁠, which was not added:

    (2,1), (1,3)∈R1∪Qbut(2,3)∉R1∪Q.(2,1),\ (1,3) \in R_1\cup Q \quad\text{but}\quad (2,3)\notin R_1\cup Q.

    So neither R1∪PR_1\cup P nor R1∪QR_1\cup Q is an equivalence relation.

    This is the textbook's "for transitivity we are forced to add (1,3)(1,3) and (3,1)(3,1)". Relating 3 to 2 while 2 is already related to 1 forces 3 to be related to 1, and the same with the roles of 1 and 2 swapped. Each mirror pair drags in the other.
    One chain with a missing shortcut disproves transitivity (Basic 5).
  4. Adding both gives the universal relation, which works

    R1∪P∪QR_1\cup P\cup Q contains all 9 pairs, so it is the universal relation A×AA\times A⁠. It is reflexive (all loops present), symmetric (every mirror is present, since every pair is) and transitive (every shortcut (a,c)(a,c) is present, since every pair is). So the universal relation is an equivalence relation containing (1,2)(1,2) and (2,1)(2,1).

    R1universal relation A × A 123 123 classes {1, 2} and {3}one class {1, 2, 3}
    The two answers seen as sortings of {1,2,3}\{1,2,3\} into classes. Since 1 and 2 must share a class, the only question is where 3 goes: on its own (R1R_1⁠) or with 1 and 2 (the universal relation).
    The universal relation always has all three properties, because each property only ever asks for some pair to be present, and every pair is. So the "add everything" option always works.
    The universal relation A×AA\times A (Definition 2) is an equivalence relation on any set AA⁠. Equivalence classes partition the set (Basic 4).
  5. Count

    Of the four candidates in Step 2, exactly two are equivalence relations:

    R1={(1,1),(2,2),(3,3),(1,2),(2,1)}andA×A.\begin{gathered} R_1 = \{(1,1),(2,2),(3,3),(1,2),(2,1)\} \\ \text{and}\quad A\times A. \end{gathered}

    Hence the number of equivalence relations in {1,2,3}\{1,2,3\} containing (1,2)(1,2) and (2,1)(2,1) is two.

    Every relation we want contains R1R_1 (Step 1), every enlargement either breaks symmetry (Step 2), breaks transitivity (Step 3), or is the universal relation (Step 4). Nothing was left unchecked, so the count is exactly two. The picture gives the same answer: 3 can go with {1,2}\{1,2\} or on its own, two choices.
Result

The equivalence relations in {1,2,3}\{1,2,3\} containing (1,2)(1,2) and (2,1)(2,1) are R1={(1,1),(2,2),(3,3),R_1 = \{(1,1),(2,2),(3,3), (1,2),(2,1)}(1,2),(2,1)\} and the universal relation. Their number is two, as the textbook states.

Play this problem

Relation Builder, in the chapter’s Games tab. Level 1 builds the same two relations. Play Relation Builder ↗

Check it with numbers

The site's verification script tests all 512 relations on {1,2,3}\{1,2,3\} and finds exactly 2 equivalence relations containing (1,2)(1,2) and (2,1)(2,1)⁠: R1R_1 and A×AA\times A⁠. It also tries all 16 ways of adding leftover pairs to R1R_1 and confirms only 2 succeed. As a wider check, {1,2,3}\{1,2,3\} has 5 equivalence relations in total (one for each way of sorting it into classes: {1},{2},{3}\{1\},\{2\},\{3\}⁠; {1,2},{3}\{1,2\},\{3\}⁠; {1,3},{2}\{1,3\},\{2\}⁠; {2,3},{1}\{2,3\},\{1\}⁠; {1,2,3}\{1,2,3\}⁠), and exactly 2 of those 5 put 1 and 2 together.

Common mistakes
  1. Counting R1∪{(2,3),(3,2)}R_1\cup\{(2,3),(3,2)\}⁠. It is reflexive and symmetric, but (1,2),(2,3)(1,2),(2,3) needs (1,3)(1,3)⁠, so it is not transitive.
  2. Forgetting the universal relation. It contains (1,2)(1,2) and (2,1)(2,1) and is an equivalence relation, so it counts.
  3. Forgetting the loops. {(1,2),(2,1)}\{(1,2),(2,1)\} alone is symmetric but neither reflexive nor transitive ((1,2),(2,1)(1,2),(2,1) needs (1,1)(1,1)⁠).
  4. Adding single pairs. Adding just (1,3)(1,3) breaks symmetry at once, so it is never a candidate.
What to take away
  1. For equivalence relations, think in terms of classes: count the ways to sort the set into groups that respect the given pairs. It is usually much faster than handling pairs one by one.
  2. Symmetry makes pairs come in mirror pairs; transitivity makes classes merge completely.
  3. An equivalence relation containing (1,2)(1,2) must contain (2,1)(2,1) anyway, so Miscellaneous Q7 (containing (1,2)(1,2)⁠) has the same answer, 2. Compare Example 23, where symmetry is not required and the count is different.

Every fact used, and where it comes from

FactUsed inSource
A relation in AA is a subset of A×AA\times ASteps 1, 2Section 1.1 (Lesson: relations)
Reflexive, symmetric, transitiveSteps 1–4Definition 3, Section 1.2 (Lesson: types of relations)
Equivalence relationSteps 1, 4, 5Definition 4, Section 1.2 (Lesson: equivalence relations)
Universal relation A×AA\times AStep 4Definition 2, Section 1.2
Equivalence classes partition the setStep 4, CheckSection 1.2, note after Example 5
Count = 2; 16 enlargements; 5 equivalence relations in totalSteps 2–5, 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 →