Let $X$ be a set and $(M, d)$ be a metric space. Let $f:X\to M$ be an injective map. Then we define $f∗d := d \circ (f \times f): X \times X →(0,\infty)$, i.e. $f*d(x, y) = d(f(x), f(y))$ for $x, y \in X$. Let $d^{k}$ denote the standard euclidean metric on $\mathbb{R}^k$. Is there an injective map $f: \mathbb{R}^{2}\to \mathbb{R}$ such that $d^2 = f∗d^1$? Hint: Look at a triangle in $\mathbb{R}^2$.
Usually I would put up an attempt at a solution first but I've tried a few that were utterly fruitless to the point that I'm starting to think this must be a trick question and that there is no such $f$. Any help would be very much appreciated.