4

Which of the following functions, $f: [0,\infty) \rightarrow [0,\infty)$, can be composed with a metric $d$ to get a new metric $f \circ d$:

a)$\;f(x) = \begin{cases}0 & \text{if $x=0$} \\x+1 & \text{if $x >0$}\end{cases}$

b)$f(x) = x^2, x \ge 0$

c)$f(x) = \arctan(x), x \ge 0$

In order for $f \circ d$ to be a metric we need $f$ to be monotonic and subadditive (and of course evaluate to 0 only when the input is 0) so that we can have the triangle inequality property satisfied. This is what I have so far:

a) $f$ is monotonic (looking at the graph, it is always increasing over $[0,\infty)$)
$\;\;\;f$ is subadditive since $1+(x+y) \le (1+x) + (1+y)$, for all $x,y$

b)$f$ is monotonic(looking at the graph, it is always increasing over $[0,\infty)$)
$\;\;\;f$ is not subadditive since $(x+y)^2 = x^2 + 2xy + y^2 \not\le x^2 + y^2$

c)$f$ is monotonic(looking at the graph, it is always increasing over $[0,\infty)$)
$\;\;\;f$ is or is not subadditive ??

I'm thinking that $\arctan(x)$ is subadditive since I can't think of any case where $\arctan(x+y) \le \arctan(x) + \arctan(y)$ doesn't hold over $[0,\infty)$.

Feedback on what I have so far is appreciated.

AlexR
  • 24,905
user92638
  • 487
  • 5
  • 10

1 Answers1

10

In general, if $d$ is a metric, and $f$ is strictly increasing, $f(0)=0$, and concave on $[0,\infty)$, then $f\circ d$ is again an metric.

Here is a short proof for triangle inequality. Let $d_1=d(x,y),d_2=d(y,z),d_3=d(x,z)$, we have $d_1\leq d_2+d_3$. By increasing, we have $f(d_1)\leq f(d_2+d_3)$, and we want $f(d_2+f_3)\leq f(d_2)+f(d_3)$, which is equivalent to $\frac{f(d_2+d_3)-f(d_2)}{(d_2+d_3)-d_2}\leq \frac{f(d_3)-f(0)}{d_3-0}$. But this follows directly from concavity of $f$ since $0\leq d_2\leq d_2+d_3$.

Note, if $f$ is 2nd order differentiable, $f$ is concave iff $f''(x)\leq 0$ for all $x\in(0,\infty)$.

So by this criterion, a),c) will give you a metric.

John
  • 13,204
  • Actually, it suffices that $f$ is increasing, $f(x) \geq 0 \wedge f(x) = 0 \Leftrightarrow x = 0$ (positive definite) and $f(x+y) \leq f(x) + f(y)$ (subadditive). Then we get the triangle inequality via: $f(d(x, y)) \leq f(d(x, y) + d(y, z)) \leq f(d(x, y)) + f(d(y, z))$$. – ComFreek Apr 30 '19 at 07:31