If $A$ is a non empty subset of the reals and $f$ is a bounded function from $A$ to the reals, how can we show that:
$\sup|f(x)| - \inf|f(x)| \le \sup(f(x)) - \inf(f(x))$?
I started by stating that since $f$ is bounded, $\inf(f(x)) \le f(x) \le \sup(f(x))$. And then $|f(x)| \le \max\{|\sup(f(x))|,|\inf(f(x))|\}$.
So $\sup|f(x)| = \max\{|\sup(f(x))|,|\inf(f(x))|\}$ and $\inf|f(x)| = \max\{\min\{|\sup(f(x))|,|\inf(f(x))|\},0\}$.
I feel like my $\inf|f(x)|$ is wrong though, and I don't know where to get it.
Any help would be really appreciated!
Hint:
LHS= $\sup \{|f(x)|-|f(y)|\}$
RHS=$\sup\{f(x)- f(y)\}= \sup\{|f(x) - f(y)|\}$