Suppose $(X,P)$ is a metric space and $x_0$ is fixed point of $X$.
Define $f:X \longrightarrow \mathbb{R}$ ($x\in X$) by $x\mapsto P(x,x_0)$, which means that $f(x)=P(x,x_0)=|x-x_0|$.
Show that f is continuous on $X$.
I know that for $f$ to be continuous on $X$, $f$ is continuous at each point of $X$.
This is what I did Show $f$ is continuous on $X$
$\forall \epsilon>0 \exists \delta>0$ such that $P(x,x_0)<\delta$ then $P(f(x),f(x_0)<\epsilon=|x-x_0|+|x_0-x_0|$
But this show it is continuous on $x_0$ and I am a bit stuck.