# Equivalence relation

Main Article
Discussion
Related Articles  [?]
Bibliography  [?]
Citable Version  [?]

This editable, developed Main Article is subject to a disclaimer.

In mathematics, an equivalence relation is a (binary) relation between objects that formalises the intuitive notion that related objects have some specific property in common. Examples include equality between numbers or other quantities; geometrical relations such as parallel, congruence, similarity; abstract algebraic concepts such as isomorphism. The equivalence may be expressed by formulae, geometric concepts or algorithms, but in keeping with the modern definition of mathematics, it is most convenient to identify an equvialence relation with the sets of objects for which it holds true.

A relation ${\displaystyle \sim \,}$ on a set X is an equivalence relation if it satisfies the following three properties

• ${\displaystyle \sim \,}$ is reflexive: ${\displaystyle x\sim x\,}$ for all ${\displaystyle x\in X}$.
• ${\displaystyle \sim \,}$ is symmetric: ${\displaystyle x\sim y\Leftrightarrow y\sim x}$.
• ${\displaystyle \sim \,}$ is transitive: ${\displaystyle x\sim y,~y\sim z\Rightarrow x\sim z}$.

An equivalence class for ${\displaystyle \sim \,}$ is the set of elements of X all related to some particular element

${\displaystyle [x]_{\sim }=\{y\in x:x\sim y\}.\,}$

The equivalence classes form a partition of the set X, that is, two classes ${\displaystyle [x]_{\sim }}$ and ${\displaystyle [y]_{\sim }}$ are either equal (have the same members), which is the case when ${\displaystyle x\sim y\,}$, or are disjoint (have no members in common), which is the case when ${\displaystyle x\not \sim y}$.

## Examples

• On any set X, the identity relation ${\displaystyle x\sim y\Leftrightarrow x=y}$. The equivalence classes are the singleton sets ${\displaystyle \{x\}}$.
• On any set X, the universal relation ${\displaystyle x\sim y\,}$ for all x,y. There is one equivalence class, X itself.
• On the integers, parity: ${\displaystyle m\equiv n}$ iff m,n have the same remainder on division by 2. There are two equivalence classes, "even" and "odd".
• On the integers more generally, modular arithmetic operates on the equivalence classes defined by remainder on division by a fixed modulus M.
• On lines in the plane, being parallel. The equivalence classes are the directions.
• On triangles in the plane, being congruent.
• On triangles in the plane, being similar.

## Quotient classes

It will be seen in the examples that a common way of defining an equivalence relation is to state that elements have some common property. We can formalise this by saying that if f is a function defined on the set X, we define the relation ${\displaystyle {\stackrel {f}{\equiv }}}$ by

${\displaystyle x_{1}{\stackrel {f}{\equiv }}x_{2}\Leftrightarrow f(x_{1})=f(x_{2}).\,}$

This is an equivalence relation, the kernel of f. Every equivalence relation can be defined in this way for a suitable function f.