Let $X=(0,1]$ and $d:(0,1]\times(0,1] \to \mathbb{R} $ be a function defined as
$$d(x,y):=\left|\frac 1x - \frac 1y\right| $$
I have managed to show that d is infact the distance by using the axioms of a Metric.
However I am struggling to show that it in fact a complete metric space
The space $[1,+\infty)$ is complete with respect to the usual metric. Now, use the fact that$$\begin{array}{ccc}(0,1]&\longrightarrow&[1,+\infty)\\x&\mapsto&\frac1x\end{array}$$is an isometry, if you consider the metric $d$ in $[0,1]$ and the usual metric in $[1,+\infty)$.