[Math] Does extreme value theorem hold when continuous is replaced with bounded

bounded-variationcompactnesscontinuityreal-analysis

The extreme value theorem says that if the domain of a 'continuous' function is compact then both the max and min of the function lies in the domain set. My question is: can the 'continuity' be replaced by 'bounded' function keeping the domain compact and the theorem continue to hold? I haven't seen a proof, but if not, I'd be interested in seeing a counterexample.

Best Answer

I guess I found the counterexample myself. Consider the following function defined on $[0,1]$. $$f(x) = \left \{ \begin{array}{ll} 2x & \mbox{ if } 0 \leq x < 0.5 \\ 0.5 & \mbox{ if } 0.5 \leq x \leq 1 \end{array} \right . $$

The sup of the function is $1$, but there is no point in the domain $[0,1]$ that 'attains' this point.

Related Question