Let $X$ be a metric space , $d$ is the metric , show that $d$ is a continuous function from $X\times X$ to $R$.
I think the definition is all we need , but I just don't know where to start , can anyone help me.
Let $X$ be a metric space , $d$ is the metric , show that $d$ is a continuous function from $X\times X$ to $R$.
I think the definition is all we need , but I just don't know where to start , can anyone help me.
Define $f:X\times X\to \mathbb R$ by $f(x,y)=d(x,y)$.
Let $(x_n,y_n)$ be a sequence in $X\times X$ such that $(x_n,y_n)\to (x,y)$
Then $(x_n)\to x,(y_n)\to y\implies d(x_n,x)\to 0 ,d(y_n,y)\to 0 $ as $n\to \infty\implies d(x_n,y_n)\leq d(x_n,x)+d(x,y)+d(y_n,y)\to d(x,y)$
$\implies d(x_n,y_n)\to d(x,y) $ as $n\to \infty \implies f(x_n,y_n)\to f(x,y)$
Let $\varepsilon > 0$, and let $(x_1,x_2) \in X \times X$. Then if we let $\delta = \frac\varepsilon2$ we get that $U = B_\delta(x_1) \times B_\delta(x_2)$ is a neighborhood of $(x_1,x_2)$ in $X \times X$ such that $d(U) \subseteq (d(x_1,x_2) - \varepsilon, d(x_1,x_2) + \varepsilon)$ by an application of the triangle inequality. Therefore $d:X \times X \to \mathbb R$ is a continuous function.