Define $g:\mathbb{R}^2 \to \mathbb{R}^2 \times \mathbb{R}^2$ by $g(x,y) = \left((x,y), (x,y)\right)$. Prove that $g$ is continuous. This exercise came out of the Continuity section of Mendelson's Introduction to Topology. I was first confused because it doesn't specify which metric is being used, but my professor suggested the max metric. So I went ahead and tried the following:
Let $\vec{x} = (x_1,x_2) \in \mathbb{R}^2$ and $\varepsilon > 0$ be given. Assume $d(\vec{x},\vec{y}) = \max_{1\leq i \leq n}\{|x_i-y_i|\} < \delta$. Then $d(g(\vec{x}),g(\vec{y})) = \max_{1\leq i \leq n}\{|g(\vec{x})-g(\vec{y})|\} = \max_{1\leq i \leq n}\{|(\vec{x},\vec{x})-(\vec{y},\vec{y})|\}$.
Here, I get confused because of all the parentheses going on. Can ordered pairs of vectors be subtracted component-wise? i.e. $(\vec{x},\vec{x})-(\vec{y},\vec{y})=(\vec{x}-\vec{y},\vec{x}-\vec{y}) = ((x_1-y_1, x_2-y_2),(x_1-y_1, x_2-y_2))$? If this is true, then what is $|((x_1-y_1, x_2-y_2),(x_1-y_1, x_2-y_2))|$?