Let $(X,d)$ be a metric space. Show that both $d_1=\sqrt{d}$ and $d_2=\log(1+d)$ are metrics on $X$.
As far as I know metric is a distance function $d: X\times X\to\mathbb{R}$ that takes two inputs such as $d(x,y)=|x-y|$. But both $d_1$ and $d_2$ have only one input $d$.
And if we are going to show that a function is a metric, do we just need to show that it satisfies:
1. $d(x,y)\geq0$, $d(x,y)=0$ iff $x=y$,
2. $d(x,y)=d(y,x)$,
3. $d(x,y)\leq d(x,z)+d(z,y)$ ?
My dumb guess is that we make:
$(d_1)^2=d$ and $e^{d_2}=1+d$, so $e^{d_2}-(d_1)^2=1$ (so now we have two variables $d_1$ and $d_2$)
But it is still not very clear what should we do with the $d_1$ and $d_2$? In the case of $d(x,y)=|x-y|$ in $\mathbb{R}^n$, we can treat $x$ and $y$ as vectors and use their components. But the $X$ that we have here is a general metric space.
I am confused.
Thanks for the help!