How can I prove this lemma?

27 Views Asked by At

How can I prove that for every function g that is bounded in interval I:

$\sup_{I}(g) - \inf_{I}(g) = \sup_{x,y \in I} |g(x) - g(y)|$