Example 21: defines an equivalence relation
Let be a function. Define a relation in given by Examine whether is an equivalence relation or not.
Reflexive: For every , , so . Thus is reflexive.
Symmetric: Let . Then , so . Thus is symmetric.
Transitive: Let . Then and , so and . Thus is transitive.
Hence is an equivalence relation.
Want the reason behind every step, the basics and the checks?
says " and have the same image under ". The three properties of an equivalence relation then come straight from three properties of the ordinary equals sign: everything equals itself, , and . So the answer is yes, is always an equivalence relation, whatever the function is. Its classes are the groups of points that sends to the same place.
- Given
- An arbitrary function (nothing else is known about it), and the relation on .
- To examine
- Whether is reflexive, symmetric and transitive.
- Plan
- (1) Note that is a single, definite element of for each . (2) Check each property for arbitrary elements, using only properties of "". (3) Conclude, then look at a concrete to see the classes.
Basics you need
For , each has exactly one image . So "" names a definite element, and comparing with makes sense. Basics: what a function is
For any elements of a set: ; if then ; if and then .
Reflexive: for all . Symmetric: . Transitive: . Basics: reflexive, symmetric, transitive
An equivalence relation sorts into disjoint classes of mutually related elements. Basics: equivalence classes
Since could be any function, the proof may use only the fact that is a function, and must work for arbitrary . Basics: proving and disproving
Solution
Read the rule
By definition,
Because is a function, and are definite elements of , so for any the question "is ?" has a definite yes or no answer. Thus is a well-defined relation in .
Every property we test will be turned into a statement about equality of images in . This only works because each element has a single image (Basic 1). If were allowed to give two outputs for one input, "" would be ambiguous.A function assigns exactly one image to each element of its domain. Basics: what a function isReflexive
Take any . Then , since any element equals itself. So for every , and is reflexive.
means , which compares an element of with itself. That is always true, for every , whatever is.Equality is reflexive: (Basic 2).Symmetric
Suppose . Then
So is symmetric.
"" and "" are the same statement read in two directions. The first is the meaning of , the second the meaning of .Equality is symmetric: (Basic 2).Transitive
Suppose and . Then
So is transitive.
The middle element appears only through its image , which is equal to both and . Two things equal to the same thing are equal to each other, so , and has disappeared, as transitivity requires.Equality is transitive: and (Basic 2).Conclude
is reflexive, symmetric and transitive. Hence is an equivalence relation in , for every function .
The question says "examine whether … or not", so the answer could have been "no". It is "yes", and the proof used nothing about except that it is a function. So the conclusion holds for every function, with no exceptions to look for.Definition 4: a relation that is reflexive, symmetric and transitive is an equivalence relation. Lesson: types of relationsSee the classes on a concrete function
Take , and . The images are , , . Two elements are related exactly when their squares are equal, so the equivalence classes are
Arrows of , coloured by the image they reach. Each colour is one equivalence class of : the elements of sent to the same point of . In general the class of is , the set of all elements with the same image as . Two special cases are worth noting. If is one-one, then only when , so and every class has a single element. If is constant, then all images are equal, so and there is one class.
This construction is how many equivalence relations in the chapter arise. In Example 5 and Example 6, take to be the remainder of on division by 2: "same parity" is "same image". In Example 20, take to be the remainder on division by 3. Seeing a relation as "same value of some function" is a quick way to know it is an equivalence relation.One-one means . Basics: one-one and onto The classes of an equivalence relation are disjoint and cover . Basics: equivalence classes
Yes, is an equivalence relation for every function . It is reflexive because , symmetric because , and transitive because and give . Its classes are the sets of elements with a common image. This agrees with the textbook's solution.
With on : since , and as well. and . No chain links two different classes, since . The relation has pairs. The verification script also tests the result by brute force: for every one of the functions from to , it builds and confirms it is reflexive, symmetric and transitive.
- Confusing with . relates elements of to elements of . It is not the set of pairs .
- Assuming must be one-one or onto. The proof works for any function. If is one-one, is just the identity relation; that is still an equivalence relation.
- Proving it only for one function, such as . The example illustrates; the proof must be for an arbitrary .
- Leaving the answer as a calculation. "Examine whether" needs a clear verdict: yes, it is an equivalence relation.
- "Same value of a function" is always an equivalence relation, because equality itself is reflexive, symmetric and transitive.
- Its classes are the sets of points with the same image, one class for each value in the range of .
- Many relations in this chapter (same parity, same remainder, equal ratio) are of this kind: find the function and the proof is immediate.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| A function gives each element exactly one image | Step 1 | Meaning of a function (Basics: what a function is) |
| Equality is reflexive, symmetric and transitive | Steps 2–4 | Logic of equality |
| Reflexive, symmetric, transitive; equivalence relation | Steps 2–5 | Definitions 3 and 4, Section 1.2 (Lesson: types of relations) |
| One-one function | Step 6 | Definition 5, Section 1.3 (Lesson: types of functions) |
| Equivalence classes | Step 6 | Section 1.2, after Example 5 (Lesson: equivalence relations) |
| The classes and the 81-function brute force | Step 6, Check | Recomputed in the site's verification script |
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 →