I'm new so this will be my first question!
The question is this:
Define a Relation R on $\mathbb Z$ (integer set) as follows: $ (x, y) \in R $ iff $x = |y|$.
Is $R$ symmetric, reflexive, and transitive?
My work:
$xRx$ -> $x = |x|$ but $x \in \mathbb Z$, therefore, R is not reflexive as $-x \neq |-x|$
$xRy, yRx$
WTS: $y= |x|$
$x=|y|$
$x^2 = |y|^2 = y^2$
$-y^2 = -x^2$
$y^2 = x^2$
$\sqrt{y^2} = \sqrt{x^2}$
$|y| = |x|$ which does not equal $y = |x|$ Therefore, R is not symmetric
$xRy, yRh$, WTS: $xRh$
$y=|h| $ From work in previous step:
$|y| = |h|$
$x = |y|$ -> $x = |h|$ Therefore, R is transitive.
Is my thinking correct? Did I make a mistake?