Uniform distance: $|f-g|_A= \sup \{ f(x)-g(x), x \in A\}, f(x)-g(x) \geq 0 \forall x \in A$
Find the uniform distance of $f(x)=x, g(x)=1 \forall x \in \mathbb{R}$
My attempt is to take cases for $x$.
$x \geq 1: h(x)=x-1 \geq 0, h'(x)=1$,so $h$ increasing, $\sup \{h(x) | x \geq 1\}= \lim_{x \to +\infty} (x-1)=+\infty$
$x \leq 1:h(x)=1-x \geq 0, h'(x)=-1<0$,so $h$ decreasing, $\sup \{h(x) | x \leq 1 \}=\lim_{x \to -\infty} (1-x)=+\infty$
uniform distance=$+\infty$
Make my thoughts sense?