2

$f:\left[ a,b\right] \rightarrow \mathbb{R}$ is a continuous function.$g\left( x\right) =\sup \left\{ f\left( t\right) :t\in \left[ a,x\right) \right\}$.How can I show that $g: \left[ a,b\right] \rightarrow \mathbb{R}$ is continuous?

John Hughes
  • 93,729
furkans
  • 51

1 Answers1

1

If $g(x)>f(x)$ then $f(y)<g(x)$ and hence $g(y)=g(x)$ for all $y$ sufficiently close to $x$.

If $g(x)=f(x)$, then for $y<x$, $f(y)\le g(y)\le g(x)$; and for $y>x$, there exists $z$ with $x<z\le y$ and $f(z)\ge g(y)$.