.
sup(f)=−inf(−f).
Task. Let X be a set and f:X→R be a function. Prove the following equality:
sup(f)=−inf(−f).
Solution. By definition sup(f) is a number such that f(x)≤sup(f) for all x∈X, and for every ε>0 there exists x∈X such that
sup(f)<f(x)+ε.
Similarly, inf(f) is the number such that sup(f)≤f(x) for every x∈X, and for every ε>0 there exists x∈X such that
f(x)−ε<inf(f).
In particular, if we know that
A≤f(x)≤B
for all x∈A, then
A≤inf(f)≤sup(f)≤B.
Now we can deduce from latter property that
sup(f)=−inf(−f).
First we show that
sup(f)≤−inf(−f).
We have that f(x)≤sup(f) for all x∈X, which is equivalent to
−f(x)≥−sup(f)
whence
−f(x)≥inf(−f)≥−sup(f)
and so
−inf(−f)≤sup(f). (1)
Conversely, we have that inf(−f)≤−f(x) for all x∈X, which is equivalent to
−inf(−f)≥f(x)
whence
−inf(−f)≥sup(f)≥f(x)
and so
−inf(−f)≥sup(f). (2)
Therefore from (1) and (2) we obtain that
sup(f)=−inf(−f).