I´m thinking about why the distance for the set $\{f : [a,b] \to \mathbb{R} : \mbox{continious and bounded}\}$ is define as $$d_{\infty}(f,g) := sup_{x \in [a,b]}|f(x)-g(x)|$$ meanwhile for $\{f : [a,b] \to \mathbb{R} : \mbox{continious}\}$ is given as $$d(f,g) := \int_a^b|f(x)-g(x)| dx.$$
I know that you can assign any distance, of course. But my question is if they are well-defined.
What happens, for $0$ the zero constant map, with $d(0,\frac{1}{x}) := \int_a^b|\frac{1}{x}| dx$?
Thank you very much.