The problem is : define relation equivalence on Z by $m=n$ in case $m^2=n^2$.
a)Show that its an equivalence relation on Z.
b)Describe the equivalence classes for = how many are there.
For part a, I proved it to be true by showing that it's reflexive, symmetric and transitive. I have used matrix to do that however I cant figure out part b. Can someone explain part b to me please.
Hint
$$ m^2 = n^2 \iff m^2 - n^2 = 0 \iff (m - n)(m + n) = 0 \iff m = n \text{ or } m = -n $$
So $m$ and $n$ are equivalent if and only if either $m = n$ or $m = -n$.