How do we express a straight line of $R^2$, with equation $y=x$, in set notation? Is this okay?
$ \{y \ | \ y=x, x \in R \} $
How do we express a straight line of $R^2$, with equation $y=x$, in set notation? Is this okay?
$ \{y \ | \ y=x, x \in R \} $
You want to have a set of points in the plane. A point in the plane is usually written as $(x, y)$. We start with that: $$ \{(x, y)\in \Bbb R^2\mid{} $$ (The $\in \Bbb R^2$ is to make it clear to anyone reading this line that we are actually talking about points in the plane, and implicitly that $x$ and $y$ are real numbers.)
Now, which $x$ and $y$ pairs are we after? It's all the pairs where $x = y$ and no other pairs. So we add that, and we're done: $$ \{(x, y)\in \Bbb R^2\mid x = y\} $$