For the continuous function $f : [a,b] \to \Bbb R$
Let $g(x) = \max\{f(y) : a \le y \le x \}. x\in[a,b]$ Show $g(x)$ is continuous
I tried to use $\epsilon\text{-}\delta$ first, but I failed. I thought that this function is continuous because of pasting lemma. Can you give me a few hints to show this.. ?