Step-by-step solved exercise: Relations and functions
Let \(\displaystyle A=\{1,2,3,4\}\) and \(\displaystyle R=\{(1,1),(2,2),(3,3),(4,4),(1,2),(2,1)\}\). Is \(\displaystyle R\) an equivalence relation?
Step by step with comments, a check and common mistakes.
Step-by-step solution
Reflexivity: every element of \(\displaystyle A\) has its pair \(\displaystyle (x,x)\) in \(\displaystyle R\).
\[\displaystyle (1,1),(2,2),(3,3),(4,4)\in R\]
Symmetry: the pairs \(\displaystyle (1,2)\) and \(\displaystyle (2,1)\) both appear, and the rest are diagonal pairs.
Transitivity: the two-step paths \(\displaystyle 1\to2\to1\) and \(\displaystyle 2\to1\to2\) close at \(\displaystyle (1,1)\) and \(\displaystyle (2,2)\), which are already in \(\displaystyle R\).