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

Exercise 1.1 · Q7: Books with the same number of pages

Exercise 1.1Equivalence relations · Exercise 1.1
The question

Show that the relation RR in the set AA of all the books in a library of a college, given by R={(x,y):R = \{(x, y) : xx and yy have same number of pages}\} is an equivalence relation.

Exam answer

For a book xx⁠, let p(x)p(x) be its number of pages. Then (x,y)∈R  ⟺  p(x)=p(y)(x, y) \in R \iff p(x) = p(y)⁠.

Reflexive: Let x∈Ax \in A⁠. Then p(x)=p(x)p(x) = p(x)⁠, so (x,x)∈R(x, x) \in R⁠. Thus RR is reflexive.

Symmetric: Let (x,y)∈R(x, y) \in R⁠. Then p(x)=p(y)p(x) = p(y)⁠, so p(y)=p(x)p(y) = p(x) and (y,x)∈R(y, x) \in R⁠. Thus RR is symmetric.

Transitive: Let (x,y)∈R(x, y) \in R and (y,z)∈R(y, z) \in R⁠. Then p(x)=p(y)p(x) = p(y) and p(y)=p(z)p(y) = p(z)⁠, so p(x)=p(z)p(x) = p(z) and (x,z)∈R(x, z) \in R⁠. Thus RR is transitive.

Hence RR is an equivalence relation.

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

The one idea this problem is built on

Every book has exactly one number of pages. Call it p(x)p(x) for the book xx⁠. Then "xx and yy have the same number of pages" is simply the equation p(x)=p(y)p(x) = p(y)⁠, and the three properties of an equivalence relation are inherited directly from three properties of equality: every number equals itself, an equation can be read backwards, and two things equal to the same thing are equal to each other.

Given, to show, and the plan
Given
The set AA of all books in a college library, and the rule: (x,y)∈R(x,y)\in R exactly when xx and yy have the same number of pages.
To show
RR is reflexive, symmetric and transitive, so that it is an equivalence relation.
Plan
(1) Name the page count p(x)p(x) and rewrite the rule as p(x)=p(y)p(x) = p(y)⁠. (2) Prove each property for arbitrary books, using the matching property of equality. (3) Conclude, and describe the equivalence classes.

Basics you need

1A relation on a set of objects

The elements of AA are books, not numbers, but nothing changes: RR is still a set of ordered pairs (x,y)(x,y) of elements of AA⁠. Basics: what a relation is

2The three properties and equivalence

Reflexive: (x,x)∈R(x,x)\in R for every xx⁠. Symmetric: (x,y)∈R⇒(y,x)∈R(x,y)\in R\Rightarrow(y,x)\in R⁠. Transitive: (x,y),(y,z)∈R⇒(x,z)∈R(x,y),(y,z)\in R\Rightarrow(x,z)\in R⁠. An equivalence relation has all three. Basics: reflexive, symmetric, transitive

3Properties of equality

For any numbers m,n,km, n, k⁠: m=mm = m⁠; if m=nm = n then n=mn = m⁠; if m=nm = n and n=kn = k then m=km = k⁠. These are the reflexive, symmetric and transitive properties of "==" itself.

4Arbitrary elements

A library may have thousands of books, so we cannot check them one by one. We argue about arbitrary books x,y,zx, y, z⁠, using only facts true of every book. Basics: proving and disproving

5Equivalence classes

The class of xx is the set of all elements related to xx⁠. The classes of an equivalence relation do not overlap and together make up the whole set. Basics: equivalence classes

Solution

  1. Give the page count a name

    For each book x∈Ax\in A⁠, let

    p(x)=the number of pages of x.p(x) = \text{the number of pages of } x.

    Each book has one definite number of pages, so p(x)p(x) is a single natural number for every xx⁠. The rule becomes

    (x,y)∈R  ⟺  p(x)=p(y).(x,y)\in R \iff p(x) = p(y).
    A sentence like "xx and yy have the same number of pages" is hard to manipulate. The equation p(x)=p(y)p(x)=p(y) is easy: it is an equality between two numbers, and we know exactly how equality behaves (Basic 3). The fact that each book has exactly one page count matters: it means p(x)p(x) is a well-defined number we can compare.
    pp is a function from AA to N\N⁠: it assigns one natural number to each book. Basics: what a function is
  2. Reflexive: every book has the same number of pages as itself

    Take any book x∈Ax\in A⁠. Then p(x)=p(x)p(x) = p(x)⁠, so (x,x)∈R(x,x)\in R⁠. Since xx was arbitrary, RR is reflexive.

    This looks too obvious to write down, but it is exactly what the definition asks: each element related to itself. It uses the reflexive property of equality, m=mm = m⁠.
    Reflexive: (x,x)∈R(x,x)\in R for every x∈Ax\in A (Definition 3(i), Section 1.2).
  3. Symmetric: "same pages" reads the same both ways

    Suppose (x,y)∈R(x,y)\in R⁠. Then p(x)=p(y)p(x) = p(y)⁠. Reading the equation from right to left, p(y)=p(x)p(y) = p(x)⁠, so (y,x)∈R(y,x)\in R⁠. Hence RR is symmetric.

    We start from the "if" part, (x,y)∈R(x,y)\in R⁠, and derive (y,x)∈R(y,x)\in R⁠. The step uses the symmetric property of equality: if m=nm = n then n=mn = m⁠. In words: if xx has as many pages as yy⁠, then yy has as many pages as xx⁠.
    Symmetric: (x,y)∈R⇒(y,x)∈R(x,y)\in R \Rightarrow (y,x)\in R (Definition 3(ii)).
  4. Transitive: two equalities chain into one

    Suppose (x,y)∈R(x,y)\in R and (y,z)∈R(y,z)\in R⁠. Then

    p(x)=p(y)andp(y)=p(z).p(x) = p(y) \qquad\text{and}\qquad p(y) = p(z).

    Both p(x)p(x) and p(z)p(z) equal the same number p(y)p(y)⁠, so p(x)=p(z)p(x) = p(z)⁠. Hence (x,z)∈R(x,z)\in R⁠, and RR is transitive.

    This uses the transitive property of equality. The middle book yy acts as a link: if xx and yy both have, say, 200 pages, and yy and zz both have 200 pages, then xx and zz both have 200 pages. Note that xx⁠, yy⁠, zz need not be different books; the argument works whether or not they are.
    Transitive: (x,y)∈R(x,y)\in R and (y,z)∈R⇒(x,z)∈R(y,z)\in R \Rightarrow (x,z)\in R (Definition 3(iii)).
  5. Conclude, and see the equivalence classes

    RR is reflexive, symmetric and transitive, so by Definition 4 RR is an equivalence relation.

    Its equivalence classes are the groups "all books with exactly nn pages", one group for each page count that occurs in the library. For a small shelf of eight books A to H with page counts 200, 350, 200, 120, 350, 200, 120, 480:

    120 pages D 120 G 120 200 pages A 200 C 200 F 200 350 pages B 350 E 350 480 pages H 480 each book is in exactly one box: the box for its own page count
    Eight books sorted by RR⁠. Books in the same box are related to each other; books in different boxes are not. The four boxes are the equivalence classes {D,G}\{D,G\}⁠, {A,C,F}\{A,C,F\}⁠, {B,E}\{B,E\}⁠, {H}\{H\}⁠. A class can contain a single book.
    An equivalence relation always sorts its set into non-overlapping groups. Here the grouping is by page count, and since each book has exactly one page count, each book lands in exactly one group. This is the same pattern as Example 21: whenever a relation is defined by "f(x)=f(y)f(x) = f(y)" for some function ff⁠, it is an equivalence relation.
    The equivalence classes of an equivalence relation are disjoint and their union is the whole set. Basics: equivalence classes
Result

Writing p(x)p(x) for the number of pages of book xx⁠, (x,y)∈R  ⟺  p(x)=p(y)(x,y)\in R \iff p(x) = p(y)⁠. RR is reflexive (p(x)=p(x)p(x) = p(x)⁠), symmetric (p(x)=p(y)⇒p(y)=p(x)p(x)=p(y)\Rightarrow p(y)=p(x)⁠) and transitive (p(x)=p(y)p(x)=p(y) and p(y)=p(z)⇒p(x)=p(z)p(y)=p(z)\Rightarrow p(x)=p(z)⁠). Hence RR is an equivalence relation, whose classes are the sets of books with a given number of pages.

Check it with numbers

On the eight-book shelf above, RR contains 32+22+22+12=9+4+4+1=183^2 + 2^2 + 2^2 + 1^2 = 9 + 4 + 4 + 1 = 18 ordered pairs (every ordered pair inside one box). A computer check of all 83=5128^3 = 512 triples of books confirms all three properties, and the same check passes on 200 randomly generated libraries. Transitivity in one case: p(A)=200=p(C)p(A) = 200 = p(C) and p(C)=200=p(F)p(C) = 200 = p(F) give p(A)=p(F)p(A) = p(F)⁠, so (A,F)∈R(A,F)\in R⁠. ✓

Common mistakes
  1. Changing the rule to "nearly the same". "Differ by at most 10 pages" is not transitive: books with 100, 108 and 116 pages give 108−100=8108-100 = 8 and 116−108=8116-108 = 8⁠, both at most 10, but 116−100=16116-100 = 16⁠. Exact equality is what makes the proof work.
  2. Proving with a few named books. The library is a general set; the argument must use arbitrary books x,y,zx, y, z⁠.
  3. Thinking a class needs two or more books. A book whose page count is unique forms a class on its own, like {H}\{H\}⁠.
What to take away
  1. "xx and yy have the same something" is an equivalence relation whenever each element has exactly one value of that something. The three properties come straight from the three properties of ==⁠.
  2. Give the shared quantity a name, such as p(x)p(x)⁠, so the rule becomes an equation.
  3. The same reasoning covers Q11 (same distance from the origin) and Q13 (same number of sides).

Every fact used, and where it comes from

FactUsed inSource
Reflexive, symmetric, transitiveSteps 2–4Definition 3, Section 1.2 (Lesson: types of relations)
Equivalence relationStep 5Definition 4, Section 1.2
m=mm = m⁠; m=n⇒n=mm=n\Rightarrow n=m⁠; m=n, n=k⇒m=km=n,\ n=k\Rightarrow m=kSteps 2–4Properties of equality
Each book has exactly one page countStep 1Meaning of "number of pages"
"f(x)=f(y)f(x)=f(y)" relations are equivalence relationsStep 5Example 21
Classes are disjoint and cover the setStep 5Section 1.2, after Example 5 (Lesson: equivalence relations)
Shelf counts and the 100, 108, 116 exampleStep 5; Check; MistakesBrute-force check 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 →