I have to check if the following set is an equivalence relation:
Set: $A=\mathbb{R}$
Relation: $x \sim y$ if $x=ay$ for some $a \in \mathbb{Q}\backslash \{0\}$
I know I have to use the reflexive, symmetric and transitive properties here.
It's reflexive since for $x \sim x$, we have $x=ax$ which is true if $a=1$. It's symmetric because for all $x,y \in A$ and $a,b \in \mathbb{Q}$, we have: $x=ay$, $y=bx$which implies that $y=(ba)y$. Since $0$ is not included in $\mathbb{Q}$, this is always possible since we will never have a division by $0$ error or some kind of statement which does not make sense.
How do I show transitivity though?
I believe this means I have to show that if $x=ay$ and $y=bz$ then $x=cz$ for $a,b,c\in\mathbb{Q}$.
Is my understanding right? How would I proceed from here?
Yes, you are right. You need only to use existence quantifier: if $\exists a, x=ay$ and $\exists b,y=bz$, then $\exists c = a\cdot b$ for which $x=ab \cdot z=c\cdot z$.
For symmetry: if $\exists a, x=ay,a\ne 0$, then $y = \frac{1}{a}x$.