Suppose $X$ is a metric space. Let $S$ be a subset of $C(X)$ which is the set of continuous real-valued functions on $X$. If $S$ is equicontinuous and bounded, define $g:X \rightarrow \mathbb{R}$ such that for every $x\in X$, $g(x)=\sup \{f(x)| f\in S\}$
Show that $g\in C(X)$
I am not sure how to do this problem.
I think since $S$ is equicontinuous you have $\forall \epsilon>0$ $\exists \delta>0$ such that $|f(x)-f(y)|<\epsilon$ whenever $|x-y|<\delta$ for all $f\in S$
Using Ian's idea of seperating of assuming only S two element. I assume that $S $ has $f_1,f_2$.
and $f_1<f_2$ for all $x\in X$ and $f_1<f_2$ for all $y\in X$. Also we know that S is equicontinous then $\forall \epsilon>0$ $\exists \delta>0$ such that $|f(x)-f(y)|<\epsilon$ when $|x-y|<\delta$
Because $g(x)=\sup f(x)$ then $g(x)=f_2(x)$ and by a similar logic $g(y)=f_2(y)$
and because $f\in S$ then $g\in S$ so then
$\forall \epsilon >0$ $\exists \delta>0$ such that $|g(x)-g(y)|<\epsilon$ when $|x-y|<\epsilon$