I need to show that, for $f:X\to \mathbb{R}$ bounded, we have:
$$\sup\{|f(x)-f(y)|, x,y\in X\}= \sup f - \inf f$$
Well, I know that
$$\sup\{|f(x)-f(y)|, x,y\in X\}\ge |f(x)-f(y)|$$ but in what this helps? I really have no idea in how to prove this one
We have
$$\inf f \leqslant f(x) \leqslant \sup f, \\ -\inf f \geqslant -f(y) \geqslant -\sup f.$$
Hence,
$$f(x) - f(y) \leqslant \sup f - \inf f.$$
Now interchange $x$ and $y$.
$$f(x) - f(y) \geqslant -(\sup f - \inf f).$$