The supremum of a function $f(x)$, where $x$ is a member of the closed interval $[a,b]$, is one of the values assumed by $f(x)$ in the $x$-interval $[a,b]$
So, if $f(x)$ is piecewise continuous over an open interval of $x$, is sup $f(x)$ not one of the $f(x)$ values for $x \in (a,b)?$ Could anybody please explain why and show an example?
The intuition that I have (I may be very very wrong) is that, for an open interval $(a,b)$ of $x$, as $x\rightarrow a$ or $x\rightarrow b$, there are infinite $x$ values and $f(x)$ may be (asymptotically?) increasing, and $f(a)$ or $f(b)$ may be $> f(x_0)$ for all $a <x_0<b$.
Looking for some expert opinion.
Consider $f(x)= 1/x$ on $(0,1)$. You will not be able to find any $c$ in $(0,1)$ such that $f(c)= \sup \{f(x) :x \in (0,1) \}$