I am trying to prove some defined function of two points if it is a metric or not. From the properties, I am having hard time showing $$\delta (p,q) \le \delta (p,r)+\delta (r,q)$$ for any $p,q,r$ in a metric space $X$.
I for some examples such as $$\delta (p,q) := (x^2-y^2)$$ I was able to come with some examples that doesn't satisfy this, therefore this function is not a metric.
However, the following two examples are not easy for me to see if it is a metric or not. $$\delta _1(p,q) := \sqrt{|p-q|}$$ and $$\delta _2(p,q):= {|p-q| \over {1+|p-q|}}$$.
If the explanation in the following is answered I would be delighted.
1),Is there an algebraic way to show these without taking too much time ?
2),Is it ok if I only checked two cases where p
I am self teaching analysis, and I have not taken topology. I only know pretty much up abstract algebra, so please keep that in mind.