Let a<b be real numbers, and let f:[a,b]→R be continuous. Show that f is bounded on [a,b], and that there exist c,d∈[a,b] such that for all x∈[a,b], f(c)⩽f(x)⩽f(d).
Let g:R→R be a continuous function such that
x→+∞limg(x)=x→−∞limg(x)=0
Show that g is bounded. Show also that, if a and c are real numbers with 0<c⩽g(a), then there exists x∈R with g(x)=c.