I can understand "relation $R$ in $X$" through the following example in the book, but I haven't got a clue of what "relation on $X$" looks like. Can you give an example of of a relation on $X$?
"Often $A$ and $B$ are the same set, say $X$. In that case, we shall say that $R$ is a relation in $X$ instead of "from $X$ to $X$. For example, in a community $X$, to say that $a$ (for Albert) is the husband of $b$ (for Bonita), is to consider Albert and Bonita as an (ordered) pair $(a, b)$ in the relation $H$ (of being the husband of...)"
Source: Set Theory: An Intutive Approach by Shwu-Yeng T. Lin, You-Feng Lin, p.137
I understand from the above explanation that $a$ relation in $X$ means $R=\{(a, b)|(a, b) \in X \times X\}$
"When the domain of a relation $R$ is obviously $X$ itself, most mathematicians prefer to say "relation on $X$" instead of "relation $R$ in $X$""
Source: Set Theory: An Intutive Approach by Shwu-Yeng T. Lin, You-Feng Lin, p.143
I understand from the above explantion that a relation in $X$, i.e. $R=\{(a, b)|(a, b) \in X \times X\}$, is called a relation on $X$ when Dom($R$)$=X$
But I can't find examples of the relation on $X$.