Relations and FunctionsTypes of Relations
A relation in a set A is a subset of . So two relations sit at the very ends of the scale: the empty set , which contains no pair at all, and itself, which contains every pair there is.
Take and the relation . The largest difference between two elements of A is
Now take . A modulus is never
Definition 1: A relation R in a set A is called the
Definition 2: A relation R in a set A is called the
Both are sometimes called trivial relations — not because they are unimportant, but because they carry no information. One says "nothing is related to anything", the other "everything is related to everything", so neither can tell two elements of A apart. Every interesting relation lies somewhere between them.
Example 1 : Let A be the set of all students of a boys' school. Show that the relation R in A given by R = {(a, b) : a is a sister of b} is the empty relation and R′ = {(a, b) : the difference between the heights of a and b is less than 3 metres} is the universal relation.
Solution : In a boys' school, no student can be the sister of any student. So
No two people differ in height by 3 metres or more, so every pair of students belongs to R′. Hence is the
Note
In Class XI you wrote relations in roster form and in set-builder form. Many books also write a relation such as in the set as "
Quick check. In a girls' hostel H, which of these relations in H is the empty relation?
Nobody in a girls' hostel is anybody's brother, so that relation is empty — the hostel version of Example 1.
Three Tests for Any Relation
Think of the relation "is the same height as" among the students of your class. Three things are true of it without measuring anyone: everyone is the same height as themselves; if Aman is the same height as Riya, then Riya is the same height as Aman; and if Aman matches Riya and Riya matches Kabir, then Aman matches Kabir. Those three facts have names, and they are the three tests every relation in this chapter will face.
Definition 3: A relation R in a set A is called
(i)
(ii)
(iii)
On a grid of , each test has a picture. Reflexive: the whole diagonal, , is filled. Symmetric: the filled squares are a mirror image of themselves across that diagonal. Transitive: whenever and are filled, the shortcut is filled too.
Definition 4: A relation R in a set A is said to be an
An equivalence relation is mathematics' way of saying "these two things are not identical, but for our purpose they count as the same" — just like "is the same height as".
The relation lab. The grid is a relation in ; row
Common trap
The three properties are independent — a relation can have any one of them without the other two — so test all three before you call R an equivalence relation. Reflexive needs for every
Testing Relations
Example 2 : Let T be the set of all triangles in a plane, and let R be the relation in T given by . Show that R is an equivalence relation.
Solution : R is reflexive, since every triangle is congruent to
If , then is congruent to , so is congruent to and . Hence R is
If and are in R, then and , so and . So R is transitive too, and R is an equivalence relation.
Example 3 : Let L be the set of all lines in a plane and R the relation in L defined as . Show that R is symmetric but neither reflexive nor transitive.
Solution : A line is never perpendicular to
R is symmetric: if is perpendicular to , then is perpendicular to .
R is not transitive: if and , then is
Example 4 : Show that the relation R in the set given by is reflexive but neither symmetric nor transitive.
Solution : and all lie in R, so R is
R is not symmetric, because but
R is not transitive, because and , but
Tip
For a relation given as a list of pairs, make three sweeps. Reflexive: look only at the diagonal pairs . Symmetric: for each pair, hunt for its mirror image. Transitive: follow every two-step path and check that is there.
Example 5 : Show that the relation R in the set Z of integers given by
is an equivalence relation.
Solution : For every integer
If , then 2 divides , so 2 also divides . Hence and R is
If and , then and for some integers
,
which is
Notice that each test used exactly one arithmetic fact: 0 is even; ; and even plus even is even.
Speed Round: Which Test Fails?
Every relation below fails at most one of the three tests. Find the one that fails — or say that all three hold. After each answer you will see the reason.
Get five right to move on.
Sorting Into Classes
Go back to Example 5. Every even integer is related to 0, because lie in R, and no odd integer is related to 0. In the same way every odd integer is related to 1, and no even integer is. So the set E of even integers and the set O of odd integers satisfy:
(i) all elements of E are related to each other, and all elements of O are related to each other;
(ii) no element of E is related to any element of O, and vice versa;
(iii) E and O are disjoint and .
E is called the
Now you sort. Use the relation "3 divides " instead. Drop each integer into the bin of the number it is related to.
What you just did works for every equivalence relation, not only these two. Given an arbitrary equivalence relation R in an arbitrary set X, R divides X into mutually
(i) all elements of are related to each other, for all
(ii) no element of is related to any element of , ;
(iii) and , .
The subsets are called equivalence classes. Why can two classes never merely overlap? Suppose some
The road also runs the other way: a partition gives an equivalence relation. Split Z into the three disjoint subsets whose union is Z:
Define in Z. The argument of Example 5, with 3 in place of 2, shows that R is an equivalence relation — and its classes are exactly the bins you just filled: , , and is the class containing
You use such a partition every day: a 12-hour clock shows the same position for 3, 15 and 27 hours, because they leave the same remainder on division by 12. Each position on the clock face is one equivalence class.
Example 6 : Let R be the relation defined in the set by R = {(a, b) : both a and b are either odd or even}. Show that R is an equivalence relation. Further, show that all the elements of the subset are related to each other and all the elements of the subset are related to each other, but no element of the subset is related to any element of the subset .
Solution : Any
If , then
The elements of are all odd, so they are related to each other; the elements of are all even, so they are related to each other. An odd number and an even number never share a parity, so no element of the first subset is related to any element of the second. These two subsets are the equivalence classes and of R, and every element of A lies in exactly