I have to check for completeness of following metric spaces
$1)$ : $\mathbb{R}$ with metric defined by $d_1(x,y) =\mid e^x - e^y \mid$ for all $x, y \in \mathbb{R}$.
$2)$: $\mathbb{Q}$ with metric defined by $d_2(x,y) = 1$, for all $x, y\in \mathbb{Q}, ~~ x \neq y$.
I have shown that $(\mathbb{R}, d_1)$ is complete metric space. For that I took Cauchy sequence $(x_n)\subset\mathbb{R}$ that must converge to some point say $x$ with respect to standard metric say $d$ of $\mathbb{R}$ (Since $\mathbb{R}$ is complete then).
The exponential function is continuous so the sequence $e^{(x_n)}$ converges to $e^{x}$ with respect to standard metric of $\mathbb{R}$
from here we can conclude that $(x_n)$ converges to x w.r.t. $d_1$.
Hence $(\mathbb{R}, d_1)$ is complete.
For second I am not able to figure out how to proceed. But intuitively I think it is complete. Because given metric looks like discreet metric.
Please correct me if I am wrong. Is there any alternate way to solve this problem?
Thanks for giving me time.