The relation $R$ is defined n all positive integers such that, $(a,b)R(c,d) \iff a+d =b+c$ . Show that $R$ is an equivalence relation.
In order to be an equivalence relation, $R$ has to be reflexive, symmetric and transitive. I tried it as follows -
$(a,b)R(c,d) \iff a+d =b+c \equiv (a,b)R(c,d) \iff a-b =c-d$
$$(a,b)R(a,b) \iff a-b = a-b $$
It is true, therefore $R$ is reflexive. $$(c,d)R(a,b) \iff c-d=a-b $$ It is true, therefore R is symmetric. \begin{align*}(a,b)R(x,y) &\iff a-b = x-y \tag 1 \\ (x,y)R(c,d) &\iff x-y=c-d \tag 2 \\ \therefore (a,b)R(x,y) \land (x,y)R(c,d) &\iff a-b = x-y=c-d \implies a-b =c-d \end{align*} It is true, therefore $R$ is transitive. Is the above method correct?
Its not a good idea to use subtraction, for by default that relation is not symmetric. However you are correct. But I would suggest the following : $(a,b)R(c,d) \iff a+d =b+c \equiv (a,b)R(a,b) \iff a+b =a+b$
therefore R is trivially reflexive. $$(c,d)R(a,b) \iff c+b=d+a $$*and so a+d=b+c, which means (a,b)R(c,d)*. Therefore R is symmetric. \begin{align*}(a,b)R(x,y) &\iff a+y = b+x \tag 1 \\ (x,y)R(c,d) &\iff x+d=y+c \tag 2 \\ \therefore (a,b)R(x,y) \land (x,y)R(c,d) &\iff a+(x+d-c) = b+x \implies a+d =b+c \end{align*} Hence R is transitive. I hope you realized the difference. + is more convenient to work with.