I was asked to prove the following problem: A map $f:([a,b], |\cdot|) \to ([c,d], |\cdot|)$ is an isometry if and only if $d-c = b-a$.
But I think this is not correct, specifically the sufficient part. Can anyone please suggest the correct version of the question and a hint to solve it?
The correct definition of an isometry under the $|\cdot |$ metric is $|f(x)-f(y)|=|x-y|$ for all $x,y\in [a,b]$.